Lines Matching refs:scmnd

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