Lines Matching defs:scmd
448 struct scsi_cmnd *scmd;
473 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid);
474 if (scmd == NULL) {
475 ioc_err(ioc, "scmd is NULL\n");
479 /* Get sg_scmd from scmd provided */
480 sg_scmd = scsi_sglist(scmd);
2135 * @scmd: SCSI commands of the IO request
2142 struct scsi_cmnd *scmd)
2145 struct scsiio_tracker *st = scsi_cmd_priv(scmd);
2431 * @scmd: SCSI command from the mid-layer
2441 struct scsi_cmnd *scmd,
2452 int data_len = scsi_bufflen(scmd);
2505 sg_scmd = scsi_sglist(scmd);
2533 scmd, "page boundary curr_buff: 0x%p\n",
2568 struct _pcie_device *pcie_device, struct scsi_cmnd *scmd, int sge_count)
2573 data_length = scsi_bufflen(scmd);
2599 * @scmd: scsi command
2606 Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd,
2612 sges_left = scsi_dma_map(scmd);
2618 scmd, sges_left)) {
2626 base_make_prp_nvme(ioc, scmd, mpi_request,
2631 scsi_dma_unmap(scmd);
2678 * @scmd: scsi command
2690 struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *unused)
2710 if (scmd->sc_data_direction == DMA_TO_DEVICE)
2719 sg_scmd = scsi_sglist(scmd);
2720 sges_left = scsi_dma_map(scmd);
2749 chain_req = _base_get_chain_buffer_tracker(ioc, scmd);
2789 chain_req = _base_get_chain_buffer_tracker(ioc, scmd);
2818 * @scmd: scsi command
2831 struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *pcie_device)
2858 smid, scmd, pcie_device) == 0)) {
2863 sg_scmd = scsi_sglist(scmd);
2864 sges_left = scsi_dma_map(scmd);
2888 chain_req = _base_get_chain_buffer_tracker(ioc, scmd);
2919 chain_req = _base_get_chain_buffer_tracker(ioc, scmd);
3843 * @scmd: scsi_cmnd object
3851 struct scsi_cmnd *scmd)
3859 if (scmd && ioc->shost->nr_hw_queues > 1) {
3860 u32 tag = blk_mq_unique_tag(scsi_cmd_to_rq(scmd));
3873 * @scmd: scsi_cmnd object
3881 struct scsi_cmnd *scmd)
3889 if (scsi_device_busy(scmd->device) > MPT3SAS_DEVICE_HIGH_IOPS_DEPTH)
3895 return _base_get_msix_index(ioc, scmd);
3932 * @scmd: pointer to scsi command object
3938 struct scsi_cmnd *scmd)
3940 struct scsiio_tracker *request = scsi_cmd_priv(scmd);
3944 unique_tag = blk_mq_unique_tag(scsi_cmd_to_rq(scmd));
3951 * is used to retrieve the scmd pointer corresponding
3962 request->scmd = scmd;
4016 st->scmd = NULL;
4135 st->msix_io = ioc->get_msix_index_for_smlio(ioc, st->scmd);