Lines Matching refs:MPT_ADAPTER
160 static int mptbase_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req,
162 static int mpt_handshake_req_reply_wait(MPT_ADAPTER *ioc, int reqBytes,
165 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
166 static void mpt_detect_bound_ports(MPT_ADAPTER *ioc, struct pci_dev *pdev);
167 static void mpt_adapter_disable(MPT_ADAPTER *ioc);
168 static void mpt_adapter_dispose(MPT_ADAPTER *ioc);
170 static void MptDisplayIocCapabilities(MPT_ADAPTER *ioc);
171 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
172 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
173 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
174 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
175 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
176 static int mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag);
177 static int mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag);
178 static int mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
179 static int KickStart(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
180 static int SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag);
181 static int PrimeIocFifos(MPT_ADAPTER *ioc);
182 static int WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
183 static int WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
184 static int WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
185 static int GetLanConfigPages(MPT_ADAPTER *ioc);
186 static int GetIoUnitPage2(MPT_ADAPTER *ioc);
187 int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode);
188 static int mpt_GetScsiPortSettings(MPT_ADAPTER *ioc, int portnum);
189 static int mpt_readScsiDevicePageHeaders(MPT_ADAPTER *ioc, int portnum);
190 static void mpt_read_ioc_pg_1(MPT_ADAPTER *ioc);
191 static void mpt_read_ioc_pg_4(MPT_ADAPTER *ioc);
192 static void mpt_get_manufacturing_pg_0(MPT_ADAPTER *ioc);
193 static int SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch,
195 static int SendEventAck(MPT_ADAPTER *ioc, EventNotificationReply_t *evnp);
196 static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag);
197 static int mpt_host_page_alloc(MPT_ADAPTER *ioc, pIOCInit_t ioc_init);
204 static void mpt_get_fw_exp_ver(char *buf, MPT_ADAPTER *ioc);
206 static int ProcessEventNotification(MPT_ADAPTER *ioc,
208 static void mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf);
209 static void mpt_fc_log_info(MPT_ADAPTER *ioc, u32 log_info);
210 static void mpt_spi_log_info(MPT_ADAPTER *ioc, u32 log_info);
211 static void mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info , u8 cb_idx);
212 static int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc);
213 static void mpt_inactive_raid_list_free(MPT_ADAPTER *ioc);
248 MPT_ADAPTER *ioc; in mpt_set_debug_level()
282 mpt_is_discovery_complete(MPT_ADAPTER *ioc) in mpt_is_discovery_complete()
335 MPT_ADAPTER *ioc = (MPT_ADAPTER *)arg; in mpt_remove_dead_ioc_func()
359 MPT_ADAPTER *ioc = in mpt_fault_reset_work()
360 container_of(work, MPT_ADAPTER, fault_reset_work.work); in mpt_fault_reset_work()
443 mpt_turbo_reply(MPT_ADAPTER *ioc, u32 pa) in mpt_turbo_reply()
503 mpt_reply(MPT_ADAPTER *ioc, u32 pa) in mpt_reply()
592 MPT_ADAPTER *ioc = bus_id; in mpt_interrupt()
627 mptbase_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply) in mptbase_reply()
831 MPT_ADAPTER *ioc; in mpt_device_driver_register()
856 MPT_ADAPTER *ioc; in mpt_device_driver_deregister()
885 mpt_get_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc) in mpt_get_msg_frame()
954 mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) in mpt_put_msg_frame()
990 mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) in mpt_put_msg_frame_hi_pri()
1021 mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) in mpt_free_msg_frame()
1180 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag) in mpt_send_handshake_request()
1275 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag) in mpt_host_page_access_control()
1306 mpt_host_page_alloc(MPT_ADAPTER *ioc, pIOCInit_t ioc_init) in mpt_host_page_alloc()
1375 mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp) in mpt_verify_adapter()
1377 MPT_ADAPTER *ioc; in mpt_verify_adapter()
1636 mpt_mapresources(MPT_ADAPTER *ioc) in mpt_mapresources()
1765 MPT_ADAPTER *ioc; in mpt_attach()
1774 ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_KERNEL); in mpt_attach()
1817 ioc->alloc_total = sizeof(MPT_ADAPTER); in mpt_attach()
2078 MPT_ADAPTER *ioc = pci_get_drvdata(pdev); in mpt_detach()
2144 MPT_ADAPTER *ioc = pci_get_drvdata(pdev); in mpt_suspend()
2183 MPT_ADAPTER *ioc = pci_get_drvdata(pdev); in mpt_resume()
2253 mpt_signal_reset(u8 index, MPT_ADAPTER *ioc, int reset_phase) in mpt_signal_reset()
2290 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag) in mpt_do_ioc_recovery()
2639 mpt_detect_bound_ports(MPT_ADAPTER *ioc, struct pci_dev *pdev) in mpt_detect_bound_ports()
2644 MPT_ADAPTER *ioc_srch; in mpt_detect_bound_ports()
2690 mpt_adapter_disable(MPT_ADAPTER *ioc) in mpt_adapter_disable()
2814 mpt_adapter_dispose(MPT_ADAPTER *ioc) in mpt_adapter_dispose()
2859 MptDisplayIocCapabilities(MPT_ADAPTER *ioc) in MptDisplayIocCapabilities()
2912 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag) in MakeIocReady()
3047 mpt_GetIocState(MPT_ADAPTER *ioc, int cooked) in mpt_GetIocState()
3071 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason) in GetIocFacts()
3245 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in GetPortFacts()
3328 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag) in SendIocInit()
3452 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag) in SendPortEnable()
3501 mpt_alloc_fw_memory(MPT_ADAPTER *ioc, int size) in mpt_alloc_fw_memory()
3539 mpt_free_fw_memory(MPT_ADAPTER *ioc) in mpt_free_fw_memory()
3570 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag) in mpt_do_upload()
3671 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag) in mpt_downloadboot()
3892 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag) in KickStart()
3959 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag) in mpt_diag_reset()
4261 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag) in SendIocReset()
4317 initChainBuffers(MPT_ADAPTER *ioc) in initChainBuffers()
4428 PrimeIocFifos(MPT_ADAPTER *ioc) in PrimeIocFifos()
4650 mpt_handshake_req_reply_wait(MPT_ADAPTER *ioc, int reqBytes, u32 *req, in mpt_handshake_req_reply_wait()
4756 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellAck()
4806 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellInt()
4856 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag) in WaitForDoorbellReply()
4940 GetLanConfigPages(MPT_ADAPTER *ioc) in GetLanConfigPages()
5062 mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode) in mptbase_sas_persist_operation()
5149 mptbase_raid_process_event_data(MPT_ADAPTER *ioc, in mptbase_raid_process_event_data()
5290 GetIoUnitPage2(MPT_ADAPTER *ioc) in GetIoUnitPage2()
5360 mpt_GetScsiPortSettings(MPT_ADAPTER *ioc, int portnum) in mpt_GetScsiPortSettings()
5580 mpt_readScsiDevicePageHeaders(MPT_ADAPTER *ioc, int portnum) in mpt_readScsiDevicePageHeaders()
5626 mpt_inactive_raid_list_free(MPT_ADAPTER *ioc) in mpt_inactive_raid_list_free()
5650 mpt_inactive_raid_volumes(MPT_ADAPTER *ioc, u8 channel, u8 id) in mpt_inactive_raid_volumes()
5738 mpt_raid_phys_disk_pg0(MPT_ADAPTER *ioc, u8 phys_disk_num, in mpt_raid_phys_disk_pg0()
5806 mpt_raid_phys_disk_get_num_paths(MPT_ADAPTER *ioc, u8 phys_disk_num) in mpt_raid_phys_disk_get_num_paths()
5874 mpt_raid_phys_disk_pg1(MPT_ADAPTER *ioc, u8 phys_disk_num, in mpt_raid_phys_disk_pg1()
5962 mpt_findImVolumes(MPT_ADAPTER *ioc) in mpt_findImVolumes()
6033 mpt_read_ioc_pg_3(MPT_ADAPTER *ioc) in mpt_read_ioc_pg_3()
6093 mpt_read_ioc_pg_4(MPT_ADAPTER *ioc) in mpt_read_ioc_pg_4()
6148 mpt_read_ioc_pg_1(MPT_ADAPTER *ioc) in mpt_read_ioc_pg_1()
6236 mpt_get_manufacturing_pg_0(MPT_ADAPTER *ioc) in mpt_get_manufacturing_pg_0()
6288 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag) in SendEventNotification()
6316 SendEventAck(MPT_ADAPTER *ioc, EventNotificationReply_t *evnp) in SendEventAck()
6355 mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg) in mpt_config()
6562 mpt_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) in mpt_ioc_reset()
6641 static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan);
6645 MPT_ADAPTER *ioc = m->private; in mpt_summary_proc_show()
6702 MPT_ADAPTER *ioc = m->private; in mpt_iocinfo_proc_show()
6783 mpt_get_fw_exp_ver(char *buf, MPT_ADAPTER *ioc) in mpt_get_fw_exp_ver()
6810 mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int showlan) in mpt_print_ioc_summary()
6845 static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan) in seq_mpt_print_ioc_summary()
6886 mpt_set_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc) in mpt_set_taskmgmt_in_progress_flag()
6916 mpt_clear_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc) in mpt_clear_taskmgmt_in_progress_flag()
6939 mpt_halt_firmware(MPT_ADAPTER *ioc) in mpt_halt_firmware()
6972 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_SoftResetHandler()
7110 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) { in mpt_Soft_Hard_ResetHandler()
7143 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag) in mpt_HardResetHandler()
7240 mpt_display_event_info(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply) in mpt_display_event_info()
7696 ProcessEventNotification(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply, int *evHandlers) in ProcessEventNotification()
7806 mpt_fc_log_info(MPT_ADAPTER *ioc, u32 log_info) in mpt_fc_log_info()
7850 mpt_spi_log_info(MPT_ADAPTER *ioc, u32 log_info) in mpt_spi_log_info()
8062 mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info, u8 cb_idx) in mpt_sas_log_info()
8144 mpt_iocstatus_info_config(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf) in mpt_iocstatus_info_config()
8222 mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf) in mpt_iocstatus_info()