Lines Matching defs:trim

3285 	 * if we need to trim the buffers when we munge the sgl.
3597 * extra pages on the trim for the first and last pages of the
3617 * trim]) plus one for remainder.
3631 * trim (see above comment about trim)
4077 * if we know we'll never have to trim, it's pretty easy. Just move to
4088 /* figure out how much we need to trim from the window */
4107 * is due to the sgllen, we need to go back to the last cookie and trim
4121 * first, setup the current window to account for the trim. Need to go
4166 * trim plus the next cookie could put us over maxxfer (a cookie can be
4172 * trim will be <= the previous trim (since a cookie can't be
4241 * if we don't have to trim (since granularity is set to 1), go to the
4257 * *** may need to trim, figure it out.
4260 /* figure out how much we need to trim from the window */
4285 * *** We figured it out, we definitly need to trim
4297 * first, setup the current window to account for the trim. Need to go
4396 * virtually broken it in half due to the trim, and it happens
4459 * calculate how much we have to trim off of the current cookie to equal
4472 * account for the trim.
4726 rootnex_trim_t *trim;
4825 /* if needed, adjust the first and/or last cookies for trim */
4826 trim = &window->wd_trim;
4827 if (trim->tr_trim_first) {
4828 window->wd_first_cookie->dmac_laddress = trim->tr_first_paddr;
4829 window->wd_first_cookie->dmac_size = trim->tr_first_size;
4835 if (trim->tr_first_copybuf_win) {
4836 dma->dp_pgmap[trim->tr_first_pidx].pm_cbaddr =
4837 trim->tr_first_cbaddr;
4839 dma->dp_pgmap[trim->tr_first_pidx].pm_kaddr =
4840 trim->tr_first_kaddr;
4844 if (trim->tr_trim_last) {
4845 trim->tr_last_cookie->dmac_laddress = trim->tr_last_paddr;
4846 trim->tr_last_cookie->dmac_size = trim->tr_last_size;
4847 if (trim->tr_last_copybuf_win) {
4848 dma->dp_pgmap[trim->tr_last_pidx].pm_cbaddr =
4849 trim->tr_last_cbaddr;
4851 dma->dp_pgmap[trim->tr_last_pidx].pm_kaddr =
4852 trim->tr_last_kaddr;
5102 * trim.
5113 * trim.