Lines Matching refs:trim_sz

4077 	size_t trim_sz;
4096 trim_sz = (*windowp)->wd_size & (attr->dma_attr_granular - 1);
4098 trim_sz = (*windowp)->wd_size % attr->dma_attr_granular;
4102 if (trim_sz == 0) {
4133 ASSERT(cookie->dmac_size > trim_sz);
4134 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4135 (*windowp)->wd_size -= trim_sz;
4138 coffset = cookie->dmac_size - trim_sz;
4156 (*windowp)->wd_trim.tr_first_size = trim_sz;
4168 (*windowp)->wd_size = trim_sz + cookie->dmac_size;
4180 trim_sz = (*windowp)->wd_size - dma->dp_maxxfer;
4184 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4185 (*windowp)->wd_size -= trim_sz;
4189 coffset = cookie->dmac_size - trim_sz;
4199 (*windowp)->wd_trim.tr_first_size = trim_sz;
4218 size_t trim_sz;
4267 trim_sz = (*windowp)->wd_size &
4270 trim_sz = (*windowp)->wd_size % hp->dmai_attr.dma_attr_granular;
4278 if (trim_sz == 0) {
4311 ASSERT(cookie->dmac_size > trim_sz);
4312 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4313 (*windowp)->wd_size -= trim_sz;
4344 coffset = cookie->dmac_size - trim_sz;
4362 (*windowp)->wd_trim.tr_first_size = trim_sz;
4435 (*windowp)->wd_size = trim_sz + cookie->dmac_size;
4459 size_t trim_sz;
4468 trim_sz = ((*windowp)->wd_size + cookie->dmac_size) - dma->dp_maxxfer;
4469 ASSERT(trim_sz <= cookie->dmac_size);
4470 ASSERT(trim_sz <= dma->dp_maxxfer);
4479 if (trim_sz < cookie->dmac_size) {
4484 (*windowp)->wd_trim.tr_last_size = cookie->dmac_size - trim_sz;
4498 coffset = dmac_size - trim_sz;
4505 (*windowp)->wd_size = trim_sz;
4506 if (trim_sz < dmac_size) {
4510 (*windowp)->wd_trim.tr_first_size = trim_sz;