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