Lines Matching refs:smid
80 static u8 _scsih_check_for_pending_tm(struct MPT3SAS_ADAPTER *ioc, u16 smid);
1694 int smid; in _scsih_scsi_lookup_find_by_target() local
1697 for (smid = 1; in _scsih_scsi_lookup_find_by_target()
1698 smid <= ioc->shost->can_queue; smid++) { in _scsih_scsi_lookup_find_by_target()
1699 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_scsi_lookup_find_by_target()
1724 int smid; in _scsih_scsi_lookup_find_by_lun() local
1727 for (smid = 1; smid <= ioc->shost->can_queue; smid++) { in _scsih_scsi_lookup_find_by_lun()
1729 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_scsi_lookup_find_by_lun()
1749 mpt3sas_scsih_scsi_lookup_get(struct MPT3SAS_ADAPTER *ioc, u16 smid) in mpt3sas_scsih_scsi_lookup_get() argument
1754 u16 tag = smid - 1; in mpt3sas_scsih_scsi_lookup_get()
1756 if (smid > 0 && in mpt3sas_scsih_scsi_lookup_get()
1757 smid <= ioc->scsiio_depth - INTERNAL_SCSIIO_CMDS_COUNT) { in mpt3sas_scsih_scsi_lookup_get()
1761 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_scsi_lookup_get()
1775 if (st->cb_idx == 0xFF || st->smid == 0) in mpt3sas_scsih_scsi_lookup_get()
2859 _scsih_tm_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_tm_done() argument
2865 if (ioc->tm_cmds.smid != smid) in _scsih_tm_done()
2967 } else if (smid_task == ioc->scsih_cmds.smid) { in scsih_tm_cmd_map_status()
2971 } else if (smid_task == ioc->ctl_cmds.smid) { in scsih_tm_cmd_map_status()
3053 u16 smid = 0; in mpt3sas_scsih_issue_tm() local
3091 smid = mpt3sas_base_get_smid_hpr(ioc, ioc->tm_cb_idx); in mpt3sas_scsih_issue_tm()
3092 if (!smid) { in mpt3sas_scsih_issue_tm()
3101 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_scsih_issue_tm()
3102 ioc->tm_cmds.smid = smid; in mpt3sas_scsih_issue_tm()
3115 ioc->put_smid_hi_priority(ioc, smid, msix_task); in mpt3sas_scsih_issue_tm()
3350 st->smid, st->msix_io, timeout, 0); in scsih_abort()
4080 u16 smid; in _scsih_tm_tr_send() local
4170 smid = mpt3sas_base_get_smid_hpr(ioc, ioc->tm_tr_cb_idx); in _scsih_tm_tr_send()
4171 if (!smid) { in _scsih_tm_tr_send()
4186 handle, smid, ioc->tm_tr_cb_idx)); in _scsih_tm_tr_send()
4187 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_send()
4194 ioc->put_smid_hi_priority(ioc, smid, 0); in _scsih_tm_tr_send()
4221 _scsih_tm_tr_complete(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, in _scsih_tm_tr_complete() argument
4251 mpi_request_tm = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_complete()
4257 le16_to_cpu(mpi_reply->DevHandle), smid)); in _scsih_tm_tr_complete()
4264 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
4272 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_tr_complete()
4279 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_tr_complete()
4292 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_tr_complete()
4346 _scsih_sas_control_complete(struct MPT3SAS_ADAPTER *ioc, u16 smid, in _scsih_sas_control_complete() argument
4355 le16_to_cpu(mpi_reply->DevHandle), smid, in _scsih_sas_control_complete()
4367 return mpt3sas_check_for_pending_internal_cmds(ioc, smid); in _scsih_sas_control_complete()
4384 u16 smid; in _scsih_tm_tr_volume_send() local
4394 smid = mpt3sas_base_get_smid_hpr(ioc, ioc->tm_tr_volume_cb_idx); in _scsih_tm_tr_volume_send()
4395 if (!smid) { in _scsih_tm_tr_volume_send()
4410 handle, smid, ioc->tm_tr_volume_cb_idx)); in _scsih_tm_tr_volume_send()
4411 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_volume_send()
4416 ioc->put_smid_hi_priority(ioc, smid, 0); in _scsih_tm_tr_volume_send()
4431 _scsih_tm_volume_tr_complete(struct MPT3SAS_ADAPTER *ioc, u16 smid, in _scsih_tm_volume_tr_complete() argument
4451 mpi_request_tm = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_tm_volume_tr_complete()
4457 smid)); in _scsih_tm_volume_tr_complete()
4463 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
4467 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_volume_tr_complete()
4480 _scsih_issue_delayed_event_ack(struct MPT3SAS_ADAPTER *ioc, u16 smid, U16 event, in _scsih_issue_delayed_event_ack() argument
4484 int i = smid - ioc->internal_smid; in _scsih_issue_delayed_event_ack()
4497 le16_to_cpu(event), smid, ioc->base_cb_idx)); in _scsih_issue_delayed_event_ack()
4498 ack_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_issue_delayed_event_ack()
4505 ioc->put_smid_default(ioc, smid); in _scsih_issue_delayed_event_ack()
4519 u16 smid, u16 handle) in _scsih_issue_delayed_sas_io_unit_ctrl() argument
4523 int i = smid - ioc->internal_smid; in _scsih_issue_delayed_sas_io_unit_ctrl()
4555 handle, smid, ioc->tm_sas_control_cb_idx)); in _scsih_issue_delayed_sas_io_unit_ctrl()
4556 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_issue_delayed_sas_io_unit_ctrl()
4561 ioc->put_smid_default(ioc, smid); in _scsih_issue_delayed_sas_io_unit_ctrl()
4578 mpt3sas_check_for_pending_internal_cmds(struct MPT3SAS_ADAPTER *ioc, u16 smid) in mpt3sas_check_for_pending_internal_cmds() argument
4586 _scsih_issue_delayed_event_ack(ioc, smid, in mpt3sas_check_for_pending_internal_cmds()
4596 _scsih_issue_delayed_sas_io_unit_ctrl(ioc, smid, in mpt3sas_check_for_pending_internal_cmds()
4617 _scsih_check_for_pending_tm(struct MPT3SAS_ADAPTER *ioc, u16 smid) in _scsih_check_for_pending_tm() argument
4624 mpt3sas_base_free_smid(ioc, smid); in _scsih_check_for_pending_tm()
4634 mpt3sas_base_free_smid(ioc, smid); in _scsih_check_for_pending_tm()
5017 u16 smid; in _scsih_flush_running_cmds() local
5020 for (smid = 1; smid <= ioc->scsiio_depth; smid++) { in _scsih_flush_running_cmds()
5021 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_flush_running_cmds()
5136 u16 smid; in scsih_qcmd() local
5226 smid = mpt3sas_base_get_smid_scsiio(ioc, ioc->scsi_io_cb_idx, scmd); in scsih_qcmd()
5227 if (!smid) { in scsih_qcmd()
5232 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in scsih_qcmd()
5251 mpt3sas_base_get_sense_buffer_dma(ioc, smid); in scsih_qcmd()
5259 if (ioc->build_sg_scmd(ioc, scmd, smid, pcie_device)) { in scsih_qcmd()
5260 mpt3sas_base_free_smid(ioc, smid); in scsih_qcmd()
5276 ioc->put_smid_fast_path(ioc, smid, handle); in scsih_qcmd()
5278 ioc->put_smid_scsi_io(ioc, smid, in scsih_qcmd()
5281 ioc->put_smid_default(ioc, smid); in scsih_qcmd()
5322 Mpi2SCSIIOReply_t *mpi_reply, u16 smid) in _scsih_scsi_ioc_info() argument
5498 desc_ioc_state, ioc_status, smid); in _scsih_scsi_ioc_info()
5706 _scsih_io_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_io_done() argument
5722 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_io_done()
5728 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_io_done()
5756 ioc->put_smid_scsi_io(ioc, smid, in _scsih_io_done()
5796 smid); in _scsih_io_done()
5811 _scsih_scsi_ioc_info(ioc, scmd, mpi_reply, smid); in _scsih_io_done()
5922 _scsih_scsi_ioc_info(ioc , scmd, mpi_reply, smid); in _scsih_io_done()
5927 mpt3sas_base_free_smid(ioc, smid); in _scsih_io_done()
7088 _scsih_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_done() argument
7095 if (ioc->scsih_cmds.smid != smid) in _scsih_done()
8662 u16 smid, handle; in _scsih_sas_broadcast_primitive_event() local
8698 for (smid = 1; smid <= ioc->scsiio_depth; smid++) { in _scsih_sas_broadcast_primitive_event()
8701 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_sas_broadcast_primitive_event()
8731 MPI2_SCSITASKMGMT_TASKTYPE_QUERY_TASK, st->smid, in _scsih_sas_broadcast_primitive_event()
8773 st->smid, st->msix_io, 30, 0); in _scsih_sas_broadcast_primitive_event()
8919 u16 smid; in _scsih_ir_fastpath() local
8937 smid = mpt3sas_base_get_smid(ioc, ioc->scsih_cb_idx); in _scsih_ir_fastpath()
8938 if (!smid) { in _scsih_ir_fastpath()
8945 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_fastpath()
8946 ioc->scsih_cmds.smid = smid; in _scsih_ir_fastpath()
8958 ioc->put_smid_default(ioc, smid); in _scsih_ir_fastpath()
10672 mpt3sas_base_free_smid(ioc, ioc->scsih_cmds.smid); in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
10677 mpt3sas_base_free_smid(ioc, ioc->tm_cmds.smid); in mpt3sas_scsih_clear_outstanding_scsi_tm_commands()
11104 u16 smid; in _scsih_nvme_shutdown() local
11119 smid = mpt3sas_base_get_smid(ioc, ioc->scsih_cb_idx); in _scsih_nvme_shutdown()
11120 if (!smid) { in _scsih_nvme_shutdown()
11127 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_nvme_shutdown()
11128 ioc->scsih_cmds.smid = smid; in _scsih_nvme_shutdown()
11134 ioc->put_smid_default(ioc, smid); in _scsih_nvme_shutdown()
11172 u16 smid; in _scsih_ir_shutdown() local
11190 smid = mpt3sas_base_get_smid(ioc, ioc->scsih_cb_idx); in _scsih_ir_shutdown()
11191 if (!smid) { in _scsih_ir_shutdown()
11197 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _scsih_ir_shutdown()
11198 ioc->scsih_cmds.smid = smid; in _scsih_ir_shutdown()
11207 ioc->put_smid_default(ioc, smid); in _scsih_ir_shutdown()