Lines Matching refs:dxfer_len
169 uint32_t dxfer_len; member
959 int dxfer_len) in set_scsi_pt_data_in() argument
965 if (dxfer_len > 0) { in set_scsi_pt_data_in()
967 psp->dxfer_len = (uint32_t)dxfer_len; in set_scsi_pt_data_in()
979 int dxfer_len) in set_scsi_pt_data_out() argument
985 if (dxfer_len > 0) { in set_scsi_pt_data_out()
987 psp->dxfer_len = (uint32_t)dxfer_len; in set_scsi_pt_data_out()
1072 psp->swb_d.spt.DataTransferLength = psp->dxfer_len; in scsi_pt_direct()
1119 if ((psp->dxfer_len > 0) && (psp->swb_d.spt.DataTransferLength > 0)) in scsi_pt_direct()
1120 psp->resid = psp->dxfer_len - psp->swb_d.spt.DataTransferLength; in scsi_pt_direct()
1144 if (psp->dxfer_len > (int)sizeof(psp->swb_i.ucDataBuf)) { in scsi_pt_indirect()
1145 int extra = psp->dxfer_len - (int)sizeof(psp->swb_i.ucDataBuf); in scsi_pt_indirect()
1150 " buffer (%d bytes), try enlarging\n", psp->dxfer_len, in scsi_pt_indirect()
1156 psp->dxfer_len); in scsi_pt_indirect()
1172 psp->swb_i.spt.DataTransferLength = psp->dxfer_len; in scsi_pt_indirect()
1191 if ((psp->dxfer_len > 0) && in scsi_pt_indirect()
1193 memcpy(psp->swb_i.ucDataBuf, psp->dxferp, psp->dxfer_len); in scsi_pt_indirect()
1214 if ((psp->dxfer_len > 0) && (SCSI_IOCTL_DATA_IN == psp->swb_i.spt.DataIn)) in scsi_pt_indirect()
1215 memcpy(psp->dxferp, psp->swb_i.ucDataBuf, psp->dxfer_len); in scsi_pt_indirect()
1224 if ((psp->dxfer_len > 0) && (psp->swb_i.spt.DataTransferLength > 0)) in scsi_pt_indirect()
1225 psp->resid = psp->dxfer_len - psp->swb_i.spt.DataTransferLength; in scsi_pt_indirect()
1326 if (psp->is_read && (psp->dxfer_len > 0)) in get_pt_req_lengths()
1327 *req_dinp = psp->dxfer_len; in get_pt_req_lengths()
1332 if ((! psp->is_read) && (psp->dxfer_len > 0)) in get_pt_req_lengths()
1333 *req_doutp = psp->dxfer_len; in get_pt_req_lengths()
1346 if (psp->is_read && (psp->dxfer_len > 0)) in get_pt_actual_lengths()
1347 *act_dinp = psp->dxfer_len - psp->resid; in get_pt_actual_lengths()
1352 if ((! psp->is_read) && (psp->dxfer_len > 0)) in get_pt_actual_lengths()
1353 *act_doutp = psp->dxfer_len - psp->resid; in get_pt_actual_lengths()
1995 dlen = psp->dxfer_len; in do_nvme_admin_cmd()
2091 dlen = psp->dxfer_len; in do_nvme_admin_cmd()
2432 n = (n < psp->dxfer_len) ? n : psp->dxfer_len; in sntl_inq()
2433 psp->resid = psp->dxfer_len - n; in sntl_inq()
2458 n = (n < psp->dxfer_len) ? n : psp->dxfer_len; in sntl_inq()
2459 psp->resid = psp->dxfer_len - n; in sntl_inq()
2523 n = (n < psp->dxfer_len) ? n : psp->dxfer_len; in sntl_rluns()
2524 psp->resid = psp->dxfer_len - n; in sntl_rluns()
2631 n = (n < psp->dxfer_len) ? n : psp->dxfer_len; in sntl_req_sense()
2632 psp->resid = psp->dxfer_len - n; in sntl_req_sense()
2659 len = psp->dxfer_len; in sntl_mode_ss()
2667 len = psp->dxfer_len; in sntl_mode_ss()
2752 dout_len = psp->dxfer_len; in sntl_senddiag()
2843 din_len = psp->dxfer_len; in sntl_recvdiag()
2998 psp->resid = psp->dxfer_len - len; in sntl_rep_opcodes()
3032 psp->resid = psp->dxfer_len - len; in sntl_rep_tmfs()
3079 __func__, cdbp[0], cmd_len, shp->dname, psp->dxfer_len); in nvme_pt()
3119 if(psp->dxfer_len > 0) { in nvme_pt()
3122 sg_put_unaligned_le32(psp->dxfer_len, cmdp + SG_NVME_PT_DATA_LEN); in nvme_pt()
3127 psp->dxfer_len, psp->dxferp); in nvme_pt()