Lines Matching refs:smid

73 static u8 _scsih_check_for_pending_tm(struct MPT2SAS_ADAPTER *ioc, u16 smid);
829 _scsih_scsi_lookup_get(struct MPT2SAS_ADAPTER *ioc, u16 smid) in _scsih_scsi_lookup_get() argument
831 return ioc->scsi_lookup[smid - 1].scmd; in _scsih_scsi_lookup_get()
843 _scsih_scsi_lookup_get_clear(struct MPT2SAS_ADAPTER *ioc, u16 smid) in _scsih_scsi_lookup_get_clear() argument
849 scmd = ioc->scsi_lookup[smid - 1].scmd; in _scsih_scsi_lookup_get_clear()
850 ioc->scsi_lookup[smid - 1].scmd = NULL; in _scsih_scsi_lookup_get_clear()
870 u16 smid; in _scsih_scsi_lookup_find_by_scmd() local
875 smid = 0; in _scsih_scsi_lookup_find_by_scmd()
878 smid = ioc->scsi_lookup[i].smid; in _scsih_scsi_lookup_find_by_scmd()
884 return smid; in _scsih_scsi_lookup_find_by_scmd()
963 _scsih_get_chain_buffer_tracker(struct MPT2SAS_ADAPTER *ioc, u16 smid) in _scsih_get_chain_buffer_tracker() argument
979 &ioc->scsi_lookup[smid - 1].chain_list); in _scsih_get_chain_buffer_tracker()
998 struct scsi_cmnd *scmd, u16 smid) in _scsih_build_scatter_gather() argument
1014 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_build_scatter_gather()
1060 chain_req = _scsih_get_chain_buffer_tracker(ioc, smid); in _scsih_build_scatter_gather()
1100 chain_req = _scsih_get_chain_buffer_tracker(ioc, smid); in _scsih_build_scatter_gather()
1930 _scsih_tm_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_tm_done() argument
1936 if (ioc->tm_cmds.smid != smid) in _scsih_tm_done()
2031 u16 smid = 0; in mpt2sas_scsih_issue_tm() local
2072 smid = mpt2sas_base_get_smid_hpr(ioc, ioc->tm_cb_idx); in mpt2sas_scsih_issue_tm()
2073 if (!smid) { in mpt2sas_scsih_issue_tm()
2084 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in mpt2sas_scsih_issue_tm()
2085 ioc->tm_cmds.smid = smid; in mpt2sas_scsih_issue_tm()
2094 mpt2sas_base_put_smid_hi_priority(ioc, smid); in mpt2sas_scsih_issue_tm()
2233 u16 smid; in _scsih_abort() local
2252 smid = _scsih_scsi_lookup_find_by_scmd(ioc, scmd); in _scsih_abort()
2253 if (!smid) { in _scsih_abort()
2273 MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30, scmd); in _scsih_abort()
2687 u16 smid; in _scsih_tm_tr_send() local
2717 smid = mpt2sas_base_get_smid_hpr(ioc, ioc->tm_tr_cb_idx); in _scsih_tm_tr_send()
2718 if (!smid) { in _scsih_tm_tr_send()
2732 "(open), smid(%d), cb(%d)\n", ioc->name, handle, smid, in _scsih_tm_tr_send()
2734 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_send()
2739 mpt2sas_base_put_smid_hi_priority(ioc, smid); in _scsih_tm_tr_send()
2760 _scsih_sas_control_complete(struct MPT2SAS_ADAPTER *ioc, u16 smid, in _scsih_sas_control_complete() argument
2770 ioc->name, le16_to_cpu(mpi_reply->DevHandle), smid, in _scsih_sas_control_complete()
2790 u16 smid; in _scsih_tm_tr_volume_send() local
2800 smid = mpt2sas_base_get_smid_hpr(ioc, ioc->tm_tr_volume_cb_idx); in _scsih_tm_tr_volume_send()
2801 if (!smid) { in _scsih_tm_tr_volume_send()
2815 "(open), smid(%d), cb(%d)\n", ioc->name, handle, smid, in _scsih_tm_tr_volume_send()
2817 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_volume_send()
2822 mpt2sas_base_put_smid_hi_priority(ioc, smid); in _scsih_tm_tr_volume_send()
2837 _scsih_tm_volume_tr_complete(struct MPT2SAS_ADAPTER *ioc, u16 smid, in _scsih_tm_volume_tr_complete() argument
2852 mpi_request_tm = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_tm_volume_tr_complete()
2857 le16_to_cpu(mpi_reply->DevHandle), smid)); in _scsih_tm_volume_tr_complete()
2864 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_volume_tr_complete()
2868 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_volume_tr_complete()
2888 _scsih_tm_tr_complete(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, in _scsih_tm_tr_complete() argument
2905 mpi_request_tm = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_tm_tr_complete()
2910 le16_to_cpu(mpi_reply->DevHandle), smid)); in _scsih_tm_tr_complete()
2917 handle, smid, le16_to_cpu(mpi_reply->IOCStatus), in _scsih_tm_tr_complete()
2938 return _scsih_check_for_pending_tm(ioc, smid); in _scsih_tm_tr_complete()
2953 _scsih_check_for_pending_tm(struct MPT2SAS_ADAPTER *ioc, u16 smid) in _scsih_check_for_pending_tm() argument
2960 mpt2sas_base_free_smid(ioc, smid); in _scsih_check_for_pending_tm()
2970 mpt2sas_base_free_smid(ioc, smid); in _scsih_check_for_pending_tm()
3228 u16 smid; in _scsih_flush_running_cmds() local
3231 for (smid = 1; smid <= ioc->scsiio_depth; smid++) { in _scsih_flush_running_cmds()
3232 scmd = _scsih_scsi_lookup_get_clear(ioc, smid); in _scsih_flush_running_cmds()
3236 mpt2sas_base_free_smid(ioc, smid); in _scsih_flush_running_cmds()
3368 u16 smid; in _scsih_qcmd_lck() local
3432 smid = mpt2sas_base_get_smid_scsiio(ioc, ioc->scsi_io_cb_idx, scmd); in _scsih_qcmd_lck()
3433 if (!smid) { in _scsih_qcmd_lck()
3438 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_qcmd_lck()
3457 mpt2sas_base_get_sense_buffer_dma(ioc, smid); in _scsih_qcmd_lck()
3470 if (_scsih_build_scatter_gather(ioc, scmd, smid)) { in _scsih_qcmd_lck()
3471 mpt2sas_base_free_smid(ioc, smid); in _scsih_qcmd_lck()
3477 mpt2sas_base_put_smid_scsi_io(ioc, smid, in _scsih_qcmd_lck()
3480 mpt2sas_base_put_smid_default(ioc, smid); in _scsih_qcmd_lck()
3527 Mpi2SCSIIOReply_t *mpi_reply, u16 smid) in _scsih_scsi_ioc_info() argument
3683 desc_ioc_state, ioc_status, smid); in _scsih_scsi_ioc_info()
3812 _scsih_io_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_io_done() argument
3826 scmd = _scsih_scsi_lookup_get_clear(ioc, smid); in _scsih_io_done()
3830 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_io_done()
3879 smid); in _scsih_io_done()
3980 _scsih_scsi_ioc_info(ioc , scmd, mpi_reply, smid); in _scsih_io_done()
4364 _scsih_done(struct MPT2SAS_ADAPTER *ioc, u16 smid, u8 msix_index, u32 reply) in _scsih_done() argument
4371 if (ioc->scsih_cmds.smid != smid) in _scsih_done()
5128 u16 smid, handle; in _scsih_sas_broadcast_primative_event() local
5152 for (smid = 1; smid <= ioc->scsiio_depth; smid++) { in _scsih_sas_broadcast_primative_event()
5153 scmd = _scsih_scsi_lookup_get(ioc, smid); in _scsih_sas_broadcast_primative_event()
5175 MPI2_SCSITASKMGMT_TASKTYPE_QUERY_TASK, smid, 30, NULL); in _scsih_sas_broadcast_primative_event()
5188 sdev->lun, MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK, smid, 30, in _scsih_sas_broadcast_primative_event()
6270 mpt2sas_base_free_smid(ioc, ioc->scsih_cmds.smid); in mpt2sas_scsih_reset_handler()
6275 mpt2sas_base_free_smid(ioc, ioc->tm_cmds.smid); in mpt2sas_scsih_reset_handler()
6552 u16 smid; in _scsih_ir_shutdown() local
6571 smid = mpt2sas_base_get_smid(ioc, ioc->scsih_cb_idx); in _scsih_ir_shutdown()
6572 if (!smid) { in _scsih_ir_shutdown()
6579 mpi_request = mpt2sas_base_get_msg_frame(ioc, smid); in _scsih_ir_shutdown()
6580 ioc->scsih_cmds.smid = smid; in _scsih_ir_shutdown()
6588 mpt2sas_base_put_smid_default(ioc, smid); in _scsih_ir_shutdown()