Lines Matching refs:smid

93 _ctl_display_some_debug(struct MPT3SAS_ADAPTER *ioc, u16 smid,  in _ctl_display_some_debug()  argument
102 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_display_some_debug()
194 ioc_info(ioc, "%s: %s, smid(%d)\n", calling_function_name, desc, smid); in _ctl_display_some_debug()
258 mpt3sas_ctl_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, in mpt3sas_ctl_done() argument
269 if (ioc->ctl_cmds.smid != smid) in mpt3sas_ctl_done()
286 smid); in mpt3sas_ctl_done()
299 sense_data = mpt3sas_base_get_sense_buffer(ioc, smid); in mpt3sas_ctl_done()
304 _ctl_display_some_debug(ioc, smid, "ctl_done", mpi_reply); in mpt3sas_ctl_done()
500 mpt3sas_base_free_smid(ioc, ioc->ctl_cmds.smid); in mpt3sas_ctl_clear_outstanding_ioctls()
582 u16 smid; in _ctl_set_task_mid() local
601 for (smid = ioc->scsiio_depth; smid && !found; smid--) { in _ctl_set_task_mid()
605 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _ctl_set_task_mid()
622 task_mid = cpu_to_le16(st->smid); in _ctl_set_task_mid()
669 u16 smid; in _ctl_do_mpt_command() local
719 smid = mpt3sas_base_get_smid_hpr(ioc, ioc->ctl_cb_idx); in _ctl_do_mpt_command()
720 if (!smid) { in _ctl_do_mpt_command()
727 smid = ioc->scsiio_depth - INTERNAL_SCSIIO_CMDS_COUNT + 1; in _ctl_do_mpt_command()
733 request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_do_mpt_command()
736 ioc->ctl_cmds.smid = smid; in _ctl_do_mpt_command()
750 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
763 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
771 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
783 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
791 _ctl_display_some_debug(ioc, smid, "ctl_request", NULL); in _ctl_do_mpt_command()
806 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
823 mpt3sas_base_get_sense_buffer_dma(ioc, smid))); in _ctl_do_mpt_command()
827 ioc->build_nvme_prp(ioc, smid, nvme_encap_request, in _ctl_do_mpt_command()
833 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
837 mpt3sas_base_put_smid_nvme_encap(ioc, smid); in _ctl_do_mpt_command()
847 mpt3sas_base_get_sense_buffer_dma(ioc, smid); in _ctl_do_mpt_command()
853 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
860 ioc->put_smid_scsi_io(ioc, smid, device_handle); in _ctl_do_mpt_command()
862 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
880 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
891 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
899 ioc->put_smid_hi_priority(ioc, smid, 0); in _ctl_do_mpt_command()
919 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
932 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
941 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
947 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
963 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
1002 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
1022 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
1567 u16 smid; in _ctl_diag_register_2() local
1686 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in _ctl_diag_register_2()
1687 if (!smid) { in _ctl_diag_register_2()
1696 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_register_2()
1698 ioc->ctl_cmds.smid = smid; in _ctl_diag_register_2()
1730 mpt3sas_base_free_smid(ioc, smid); in _ctl_diag_register_2()
1758 ioc->put_smid_default(ioc, smid); in _ctl_diag_register_2()
2134 u16 smid; in mpt3sas_send_diag_release() local
2166 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in mpt3sas_send_diag_release()
2167 if (!smid) { in mpt3sas_send_diag_release()
2175 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_send_diag_release()
2177 ioc->ctl_cmds.smid = smid; in mpt3sas_send_diag_release()
2185 ioc->put_smid_default(ioc, smid); in mpt3sas_send_diag_release()
2328 u16 smid; in _ctl_diag_read_buffer() local
2420 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in _ctl_diag_read_buffer()
2421 if (!smid) { in _ctl_diag_read_buffer()
2430 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_read_buffer()
2432 ioc->ctl_cmds.smid = smid; in _ctl_diag_read_buffer()
2447 ioc->put_smid_default(ioc, smid); in _ctl_diag_read_buffer()