Lines Matching refs:xfer_cnt
3647 unsigned int min_cnt, xfer_cnt; local
3650 for (i = 0, xfer_cnt = 0;
3651 (i < scmd->use_sg) && (xfer_cnt < count); i++) {
3654 min_cnt = min(count - xfer_cnt, sg[i].length);
3655 memcpy(IPS_SG_ADDRESS(&sg[i]), &cdata[xfer_cnt],
3657 xfer_cnt += min_cnt;
3679 unsigned int min_cnt, xfer_cnt; local
3682 for (i = 0, xfer_cnt = 0;
3683 (i < scmd->use_sg) && (xfer_cnt < count); i++) {
3686 min_cnt = min(count - xfer_cnt, sg[i].length);
3687 memcpy(&cdata[xfer_cnt], IPS_SG_ADDRESS(&sg[i]),
3689 xfer_cnt += min_cnt;