Lines Matching refs:scmnd
86 struct scsi_cmnd *scmnd = csio_scsi_cmnd(ioreq);
90 if (scmnd == NULL)
95 ((uint64_t)scmnd->device->lun == sld->oslun));
166 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req);
169 if (likely(csio_priv(scmnd)->fc_tm_flags == 0)) {
170 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun);
174 memcpy(fcp_cmnd->fc_cdb, scmnd->cmnd, 16);
176 fcp_cmnd->fc_dl = cpu_to_be32(scsi_bufflen(scmnd));
187 int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun);
188 fcp_cmnd->fc_tm_flags = csio_priv(scmnd)->fc_tm_flags;
299 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req);
305 scsi_for_each_sg(scmnd, sgel, req->nsge, i) {
327 xfer_len = scsi_bufflen(scmnd);
368 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req);
378 wr->xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd));
379 wr->ini_xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd));
421 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req);
431 wr->xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd));
432 wr->ini_xfer_cnt = cpu_to_be32(scsi_bufflen(scmnd));
559 struct scsi_cmnd *scmnd = csio_scsi_cmnd(req);
569 scsi_for_each_sg(scmnd, sgel, req->nsge, i) {
608 xfer_len = scsi_bufflen(scmnd);
1164 struct scsi_cmnd *scmnd;
1171 scmnd = csio_scsi_cmnd(ioreq);
1178 if (scmnd != NULL)
1192 csio_abrt_cls(struct csio_ioreq *ioreq, struct scsi_cmnd *scmnd)
1200 if (csio_scsi_cmnd(ioreq) != scmnd) {
1238 struct scsi_cmnd *scmnd;
1247 scmnd = csio_scsi_cmnd((struct csio_ioreq *)tmp);
1248 csio_abrt_cls((struct csio_ioreq *)tmp, scmnd);
1495 struct scsi_cmnd *scmnd = (struct scsi_cmnd *)csio_scsi_cmnd(req);
1506 bytes_left = scsi_bufflen(scmnd);
1507 sg = scsi_sglist(scmnd);