Lines Matching refs:scmd
432 struct scsi_cmnd *scmd; in _clone_sg_entries() local
457 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _clone_sg_entries()
458 if (scmd == NULL) { in _clone_sg_entries()
464 sg_scmd = scsi_sglist(scmd); in _clone_sg_entries()
2125 struct scsi_cmnd *scmd) in _base_get_chain_buffer_tracker() argument
2128 struct scsiio_tracker *st = scsi_cmd_priv(scmd); in _base_get_chain_buffer_tracker()
2424 struct scsi_cmnd *scmd, in base_make_prp_nvme() argument
2435 int data_len = scsi_bufflen(scmd); in base_make_prp_nvme()
2488 sg_scmd = scsi_sglist(scmd); in base_make_prp_nvme()
2516 scmd, "page boundary curr_buff: 0x%p\n", in base_make_prp_nvme()
2551 struct _pcie_device *pcie_device, struct scsi_cmnd *scmd, int sge_count) in base_is_prp_possible() argument
2556 data_length = scsi_bufflen(scmd); in base_is_prp_possible()
2589 Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd, in _base_check_pcie_native_sgl() argument
2595 sges_left = scsi_dma_map(scmd); in _base_check_pcie_native_sgl()
2597 sdev_printk(KERN_ERR, scmd->device, in _base_check_pcie_native_sgl()
2599 scsi_bufflen(scmd)); in _base_check_pcie_native_sgl()
2605 scmd, sges_left)) { in _base_check_pcie_native_sgl()
2613 base_make_prp_nvme(ioc, scmd, mpi_request, in _base_check_pcie_native_sgl()
2618 scsi_dma_unmap(scmd); in _base_check_pcie_native_sgl()
2677 struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *unused) in _base_build_sg_scmd() argument
2697 if (scmd->sc_data_direction == DMA_TO_DEVICE) in _base_build_sg_scmd()
2706 sg_scmd = scsi_sglist(scmd); in _base_build_sg_scmd()
2707 sges_left = scsi_dma_map(scmd); in _base_build_sg_scmd()
2709 sdev_printk(KERN_ERR, scmd->device, in _base_build_sg_scmd()
2711 scsi_bufflen(scmd)); in _base_build_sg_scmd()
2740 chain_req = _base_get_chain_buffer_tracker(ioc, scmd); in _base_build_sg_scmd()
2780 chain_req = _base_get_chain_buffer_tracker(ioc, scmd); in _base_build_sg_scmd()
2822 struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *pcie_device) in _base_build_sg_scmd_ieee() argument
2849 smid, scmd, pcie_device) == 0)) { in _base_build_sg_scmd_ieee()
2854 sg_scmd = scsi_sglist(scmd); in _base_build_sg_scmd_ieee()
2855 sges_left = scsi_dma_map(scmd); in _base_build_sg_scmd_ieee()
2857 sdev_printk(KERN_ERR, scmd->device, in _base_build_sg_scmd_ieee()
2859 scsi_bufflen(scmd)); in _base_build_sg_scmd_ieee()
2883 chain_req = _base_get_chain_buffer_tracker(ioc, scmd); in _base_build_sg_scmd_ieee()
2914 chain_req = _base_get_chain_buffer_tracker(ioc, scmd); in _base_build_sg_scmd_ieee()
3844 struct scsi_cmnd *scmd) in _base_get_msix_index() argument
3852 if (scmd && ioc->shost->nr_hw_queues > 1) { in _base_get_msix_index()
3853 u32 tag = blk_mq_unique_tag(scsi_cmd_to_rq(scmd)); in _base_get_msix_index()
3874 struct scsi_cmnd *scmd) in _base_get_high_iops_msix_index() argument
3882 if (scsi_device_busy(scmd->device) > MPT3SAS_DEVICE_HIGH_IOPS_DEPTH) in _base_get_high_iops_msix_index()
3888 return _base_get_msix_index(ioc, scmd); in _base_get_high_iops_msix_index()
3931 struct scsi_cmnd *scmd) in mpt3sas_base_get_smid_scsiio() argument
3933 struct scsiio_tracker *request = scsi_cmd_priv(scmd); in mpt3sas_base_get_smid_scsiio()
3937 unique_tag = blk_mq_unique_tag(scsi_cmd_to_rq(scmd)); in mpt3sas_base_get_smid_scsiio()
3955 request->scmd = scmd; in mpt3sas_base_get_smid_scsiio()
4009 st->scmd = NULL; in mpt3sas_base_clear_st()
4128 st->msix_io = ioc->get_msix_index_for_smlio(ioc, st->scmd); in _base_set_and_get_msix_index()