Lines Matching refs:windowp
402 rootnex_dma_t *dma, rootnex_window_t **windowp, ddi_dma_cookie_t *cookie,
405 rootnex_dma_t *dma, rootnex_window_t **windowp,
408 rootnex_dma_t *dma, rootnex_window_t **windowp, ddi_dma_cookie_t *cookie);
3571 rootnex_window_t *windowp;
3664 windowp = (rootnex_window_t *)dma->dp_prealloc_buffer;
3673 windowp = (rootnex_window_t *)
3681 windowp = (rootnex_window_t *)
3700 dma->dp_window = windowp;
4073 rootnex_window_t **windowp, ddi_dma_cookie_t *cookie, ddi_dma_attr_t *attr,
4086 (*windowp)++;
4087 rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
4088 (*windowp)->wd_cookie_cnt++;
4089 (*windowp)->wd_size = cookie->dmac_size;
4096 trim_sz = (*windowp)->wd_size & (attr->dma_attr_granular - 1);
4098 trim_sz = (*windowp)->wd_size % attr->dma_attr_granular;
4103 (*windowp)++;
4104 rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
4105 (*windowp)->wd_cookie_cnt++;
4106 (*windowp)->wd_size = cookie->dmac_size;
4130 (*windowp)->wd_trim.tr_trim_last = B_TRUE;
4131 (*windowp)->wd_trim.tr_last_cookie = cookie;
4132 (*windowp)->wd_trim.tr_last_paddr = cookie->dmac_laddress;
4134 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4135 (*windowp)->wd_size -= trim_sz;
4139 new_offset = (*windowp)->wd_offset + (*windowp)->wd_size;
4145 cookie->dmac_size = (*windowp)->wd_trim.tr_last_size;
4151 (*windowp)++;
4152 rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
4153 (*windowp)->wd_cookie_cnt++;
4154 (*windowp)->wd_trim.tr_trim_first = B_TRUE;
4155 (*windowp)->wd_trim.tr_first_paddr = cookie->dmac_laddress + coffset;
4156 (*windowp)->wd_trim.tr_first_size = trim_sz;
4158 (*windowp)->wd_dosync = B_TRUE;
4167 (*windowp)->wd_cookie_cnt++;
4168 (*windowp)->wd_size = trim_sz + cookie->dmac_size;
4174 if ((*windowp)->wd_size > dma->dp_maxxfer) {
4180 trim_sz = (*windowp)->wd_size - dma->dp_maxxfer;
4181 (*windowp)->wd_trim.tr_trim_last = B_TRUE;
4182 (*windowp)->wd_trim.tr_last_cookie = cookie;
4183 (*windowp)->wd_trim.tr_last_paddr = cookie->dmac_laddress;
4184 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4185 (*windowp)->wd_size -= trim_sz;
4186 ASSERT((*windowp)->wd_size == dma->dp_maxxfer);
4190 new_offset = (*windowp)->wd_offset + (*windowp)->wd_size;
4193 (*windowp)++;
4194 rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
4195 (*windowp)->wd_cookie_cnt++;
4196 (*windowp)->wd_trim.tr_trim_first = B_TRUE;
4197 (*windowp)->wd_trim.tr_first_paddr = cookie->dmac_laddress +
4199 (*windowp)->wd_trim.tr_first_size = trim_sz;
4213 rootnex_window_t **windowp, ddi_dma_cookie_t *cookie, off_t cur_offset,
4251 (*windowp)++;
4252 rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
4255 (*windowp)->wd_cookie_cnt++;
4256 (*windowp)->wd_size += cookie->dmac_size;
4267 trim_sz = (*windowp)->wd_size &
4270 trim_sz = (*windowp)->wd_size % hp->dmai_attr.dma_attr_granular;
4279 (*windowp)++;
4280 rootnex_init_win(hp, dma, *windowp, cookie, cur_offset);
4283 (*windowp)->wd_cookie_cnt++;
4284 (*windowp)->wd_size += cookie->dmac_size;
4308 (*windowp)->wd_trim.tr_trim_last = B_TRUE;
4309 (*windowp)->wd_trim.tr_last_cookie = cookie;
4310 (*windowp)->wd_trim.tr_last_paddr = cookie->dmac_laddress;
4312 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4313 (*windowp)->wd_size -= trim_sz;
4331 pidx = (sinfo->si_buf_offset + (*windowp)->wd_offset +
4332 (*windowp)->wd_size) >> MMU_PAGESHIFT;
4333 (*windowp)->wd_trim.tr_last_copybuf_win = B_TRUE;
4334 (*windowp)->wd_trim.tr_last_pidx = pidx;
4335 (*windowp)->wd_trim.tr_last_cbaddr =
4338 (*windowp)->wd_trim.tr_last_kaddr =
4345 new_offset = (*windowp)->wd_offset + (*windowp)->wd_size;
4351 cookie->dmac_size = (*windowp)->wd_trim.tr_last_size;
4357 (*windowp)++;
4358 rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
4359 (*windowp)->wd_cookie_cnt++;
4360 (*windowp)->wd_trim.tr_trim_first = B_TRUE;
4361 (*windowp)->wd_trim.tr_first_paddr = cookie->dmac_laddress + coffset;
4362 (*windowp)->wd_trim.tr_first_size = trim_sz;
4374 (*windowp)->wd_dosync = B_TRUE;
4375 (*windowp)->wd_trim.tr_first_copybuf_win = B_TRUE;
4376 (*windowp)->wd_trim.tr_first_pidx = pidx;
4377 (*windowp)->wd_trim.tr_first_cbaddr = dma->dp_cbaddr;
4378 poff = (*windowp)->wd_trim.tr_first_paddr & MMU_PAGEOFFSET;
4382 (*windowp)->wd_trim.tr_first_paddr =
4386 (*windowp)->wd_trim.tr_first_kaddr = dma->dp_kva;
4434 (*windowp)->wd_cookie_cnt++;
4435 (*windowp)->wd_size = trim_sz + cookie->dmac_size;
4436 ASSERT((*windowp)->wd_size < dma->dp_maxxfer);
4455 rootnex_window_t **windowp, ddi_dma_cookie_t *cookie)
4468 trim_sz = ((*windowp)->wd_size + cookie->dmac_size) - dma->dp_maxxfer;
4480 (*windowp)->wd_cookie_cnt++;
4481 (*windowp)->wd_trim.tr_trim_last = B_TRUE;
4482 (*windowp)->wd_trim.tr_last_cookie = cookie;
4483 (*windowp)->wd_trim.tr_last_paddr = cookie->dmac_laddress;
4484 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4485 (*windowp)->wd_size = dma->dp_maxxfer;
4491 cookie->dmac_size = (*windowp)->wd_trim.tr_last_size;
4499 new_offset = (*windowp)->wd_offset + (*windowp)->wd_size;
4502 (*windowp)++;
4503 rootnex_init_win(hp, dma, *windowp, cookie, new_offset);
4504 (*windowp)->wd_cookie_cnt++;
4505 (*windowp)->wd_size = trim_sz;
4507 (*windowp)->wd_trim.tr_trim_first = B_TRUE;
4508 (*windowp)->wd_trim.tr_first_paddr = cookie->dmac_laddress +
4510 (*windowp)->wd_trim.tr_first_size = trim_sz;