Lines Matching refs:tsize
1092 u32 tsize; in srpt_map_sg_to_ib_sge() local
1127 tsize = cmd->data_length; in srpt_map_sg_to_ib_sge()
1140 j < count && i < ioctx->n_rbuf && tsize > 0; ++i, ++riu, ++db) { in srpt_map_sg_to_ib_sge()
1148 while (rsize > 0 && tsize > 0) { in srpt_map_sg_to_ib_sge()
1151 tsize -= dma_len; in srpt_map_sg_to_ib_sge()
1155 if (tsize > 0) { in srpt_map_sg_to_ib_sge()
1164 tsize -= rsize; in srpt_map_sg_to_ib_sge()
1194 tsize = cmd->data_length; in srpt_map_sg_to_ib_sge()
1202 j < count && i < ioctx->n_rbuf && tsize > 0; ++i, ++riu, ++db) { in srpt_map_sg_to_ib_sge()
1207 while (rsize > 0 && tsize > 0) { in srpt_map_sg_to_ib_sge()
1213 (tsize < dma_len) ? tsize : dma_len; in srpt_map_sg_to_ib_sge()
1214 tsize -= dma_len; in srpt_map_sg_to_ib_sge()
1217 if (tsize > 0) { in srpt_map_sg_to_ib_sge()
1228 sge->length = (tsize < rsize) ? tsize : rsize; in srpt_map_sg_to_ib_sge()
1229 tsize -= rsize; in srpt_map_sg_to_ib_sge()
1236 if (k == riu->sge_cnt && rsize > 0 && tsize > 0) { in srpt_map_sg_to_ib_sge()
1240 } else if (rsize > 0 && tsize > 0) in srpt_map_sg_to_ib_sge()