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()
188 ioc_info(ioc, "%s: %s, smid(%d)\n", calling_function_name, desc, smid); in _ctl_display_some_debug()
252 mpt3sas_ctl_done(struct MPT3SAS_ADAPTER *ioc, u16 smid, u8 msix_index, in mpt3sas_ctl_done() argument
263 if (ioc->ctl_cmds.smid != smid) in mpt3sas_ctl_done()
280 smid); in mpt3sas_ctl_done()
293 sense_data = mpt3sas_base_get_sense_buffer(ioc, smid); in mpt3sas_ctl_done()
298 _ctl_display_some_debug(ioc, smid, "ctl_done", mpi_reply); in mpt3sas_ctl_done()
484 mpt3sas_base_free_smid(ioc, ioc->ctl_cmds.smid); in mpt3sas_ctl_after_reset_handler()
566 u16 smid; in _ctl_set_task_mid() local
585 for (smid = ioc->scsiio_depth; smid && !found; smid--) { in _ctl_set_task_mid()
588 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _ctl_set_task_mid()
605 if (!tm_request->TaskMID || tm_request->TaskMID == st->smid) { in _ctl_set_task_mid()
606 tm_request->TaskMID = cpu_to_le16(st->smid); in _ctl_set_task_mid()
652 u16 smid; in _ctl_do_mpt_command() local
702 smid = mpt3sas_base_get_smid_hpr(ioc, ioc->ctl_cb_idx); in _ctl_do_mpt_command()
703 if (!smid) { in _ctl_do_mpt_command()
710 smid = ioc->scsiio_depth - INTERNAL_SCSIIO_CMDS_COUNT + 1; in _ctl_do_mpt_command()
716 request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_do_mpt_command()
719 ioc->ctl_cmds.smid = smid; in _ctl_do_mpt_command()
733 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
746 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
754 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
766 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
774 _ctl_display_some_debug(ioc, smid, "ctl_request", NULL); in _ctl_do_mpt_command()
794 mpt3sas_base_get_sense_buffer_dma(ioc, smid))); in _ctl_do_mpt_command()
798 ioc->build_nvme_prp(ioc, smid, nvme_encap_request, in _ctl_do_mpt_command()
804 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
808 mpt3sas_base_put_smid_nvme_encap(ioc, smid); in _ctl_do_mpt_command()
818 mpt3sas_base_get_sense_buffer_dma(ioc, smid); in _ctl_do_mpt_command()
824 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
831 ioc->put_smid_scsi_io(ioc, smid, device_handle); in _ctl_do_mpt_command()
833 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
851 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
862 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
870 ioc->put_smid_hi_priority(ioc, smid, 0); in _ctl_do_mpt_command()
888 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
901 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
910 mpt3sas_base_free_smid(ioc, smid); in _ctl_do_mpt_command()
916 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
924 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
963 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
983 ioc->put_smid_default(ioc, smid); in _ctl_do_mpt_command()
1505 u16 smid; in _ctl_diag_register_2() local
1547 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in _ctl_diag_register_2()
1548 if (!smid) { in _ctl_diag_register_2()
1557 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_register_2()
1558 ioc->ctl_cmds.smid = smid; in _ctl_diag_register_2()
1586 mpt3sas_base_free_smid(ioc, smid); in _ctl_diag_register_2()
1613 ioc->put_smid_default(ioc, smid); in _ctl_diag_register_2()
1892 u16 smid; in mpt3sas_send_diag_release() local
1922 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in mpt3sas_send_diag_release()
1923 if (!smid) { in mpt3sas_send_diag_release()
1931 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_send_diag_release()
1932 ioc->ctl_cmds.smid = smid; in mpt3sas_send_diag_release()
1940 ioc->put_smid_default(ioc, smid); in mpt3sas_send_diag_release()
2076 u16 smid; in _ctl_diag_read_buffer() local
2162 smid = mpt3sas_base_get_smid(ioc, ioc->ctl_cb_idx); in _ctl_diag_read_buffer()
2163 if (!smid) { in _ctl_diag_read_buffer()
2172 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _ctl_diag_read_buffer()
2173 ioc->ctl_cmds.smid = smid; in _ctl_diag_read_buffer()
2188 ioc->put_smid_default(ioc, smid); in _ctl_diag_read_buffer()