Lines Matching refs:trim

3290 	 * if we need to trim the buffers when we munge the sgl.
3602 * extra pages on the trim for the first and last pages of the
3622 * trim]) plus one for remainder.
3636 * trim (see above comment about trim)
4082 * if we know we'll never have to trim, it's pretty easy. Just move to
4093 /* figure out how much we need to trim from the window */
4112 * is due to the sgllen, we need to go back to the last cookie and trim
4126 * first, setup the current window to account for the trim. Need to go
4171 * trim plus the next cookie could put us over maxxfer (a cookie can be
4177 * trim will be <= the previous trim (since a cookie can't be
4246 * if we don't have to trim (since granularity is set to 1), go to the
4262 * *** may need to trim, figure it out.
4265 /* figure out how much we need to trim from the window */
4290 * *** We figured it out, we definitly need to trim
4302 * first, setup the current window to account for the trim. Need to go
4401 * virtually broken it in half due to the trim, and it happens
4464 * calculate how much we have to trim off of the current cookie to equal
4477 * account for the trim.
4731 rootnex_trim_t *trim;
4830 /* if needed, adjust the first and/or last cookies for trim */
4831 trim = &window->wd_trim;
4832 if (trim->tr_trim_first) {
4833 window->wd_first_cookie->dmac_laddress = trim->tr_first_paddr;
4834 window->wd_first_cookie->dmac_size = trim->tr_first_size;
4840 if (trim->tr_first_copybuf_win) {
4841 dma->dp_pgmap[trim->tr_first_pidx].pm_cbaddr =
4842 trim->tr_first_cbaddr;
4844 dma->dp_pgmap[trim->tr_first_pidx].pm_kaddr =
4845 trim->tr_first_kaddr;
4849 if (trim->tr_trim_last) {
4850 trim->tr_last_cookie->dmac_laddress = trim->tr_last_paddr;
4851 trim->tr_last_cookie->dmac_size = trim->tr_last_size;
4852 if (trim->tr_last_copybuf_win) {
4853 dma->dp_pgmap[trim->tr_last_pidx].pm_cbaddr =
4854 trim->tr_last_cbaddr;
4856 dma->dp_pgmap[trim->tr_last_pidx].pm_kaddr =
4857 trim->tr_last_kaddr;
5107 * trim.
5118 * trim.