Lines Matching refs:MPT_ADAPTER
163 static int mptbase_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req,
165 static int mpt_handshake_req_reply_wait(MPT_ADAPTER *ioc, int reqBytes,
168 static int mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag);
169 static void mpt_detect_bound_ports(MPT_ADAPTER *ioc, struct pci_dev *pdev);
170 static void mpt_adapter_disable(MPT_ADAPTER *ioc);
171 static void mpt_adapter_dispose(MPT_ADAPTER *ioc);
173 static void MptDisplayIocCapabilities(MPT_ADAPTER *ioc);
174 static int MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag);
175 static int GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason);
176 static int GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
177 static int SendIocInit(MPT_ADAPTER *ioc, int sleepFlag);
178 static int SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag);
179 static int mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag);
180 static int mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag);
181 static int mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
182 static int KickStart(MPT_ADAPTER *ioc, int ignore, int sleepFlag);
183 static int SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag);
184 static int PrimeIocFifos(MPT_ADAPTER *ioc);
185 static int WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
186 static int WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
187 static int WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag);
188 static int GetLanConfigPages(MPT_ADAPTER *ioc);
189 static int GetIoUnitPage2(MPT_ADAPTER *ioc);
190 int mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode);
191 static int mpt_GetScsiPortSettings(MPT_ADAPTER *ioc, int portnum);
192 static int mpt_readScsiDevicePageHeaders(MPT_ADAPTER *ioc, int portnum);
193 static void mpt_read_ioc_pg_1(MPT_ADAPTER *ioc);
194 static void mpt_read_ioc_pg_4(MPT_ADAPTER *ioc);
195 static void mpt_get_manufacturing_pg_0(MPT_ADAPTER *ioc);
196 static int SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch,
198 static int SendEventAck(MPT_ADAPTER *ioc, EventNotificationReply_t *evnp);
199 static int mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag);
200 static int mpt_host_page_alloc(MPT_ADAPTER *ioc, pIOCInit_t ioc_init);
207 static void mpt_get_fw_exp_ver(char *buf, MPT_ADAPTER *ioc);
209 static int ProcessEventNotification(MPT_ADAPTER *ioc,
211 static void mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf);
212 static void mpt_fc_log_info(MPT_ADAPTER *ioc, u32 log_info);
213 static void mpt_spi_log_info(MPT_ADAPTER *ioc, u32 log_info);
214 static void mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info , u8 cb_idx);
215 static int mpt_read_ioc_pg_3(MPT_ADAPTER *ioc);
216 static void mpt_inactive_raid_list_free(MPT_ADAPTER *ioc);
251 MPT_ADAPTER *ioc;
285 mpt_is_discovery_complete(MPT_ADAPTER *ioc)
336 MPT_ADAPTER *ioc =
337 container_of(work, MPT_ADAPTER, fault_reset_work.work);
387 mpt_turbo_reply(MPT_ADAPTER *ioc, u32 pa)
448 mpt_reply(MPT_ADAPTER *ioc, u32 pa)
521 * @bus_id: bus identifier cookie == pointer to MPT_ADAPTER structure
537 MPT_ADAPTER *ioc = bus_id;
560 * @ioc: Pointer to MPT_ADAPTER structure
572 mptbase_reply(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply)
777 MPT_ADAPTER *ioc;
805 MPT_ADAPTER *ioc;
834 mpt_get_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc)
903 mpt_put_msg_frame(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf)
939 mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf)
970 mpt_free_msg_frame(MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf)
1116 mpt_send_handshake_request(u8 cb_idx, MPT_ADAPTER *ioc, int reqBytes, u32 *req, int sleepFlag)
1211 mpt_host_page_access_control(MPT_ADAPTER *ioc, u8 access_control_value, int sleepFlag)
1244 mpt_host_page_alloc(MPT_ADAPTER *ioc, pIOCInit_t ioc_init)
1313 mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp)
1315 MPT_ADAPTER *ioc;
1576 mpt_mapresources(MPT_ADAPTER *ioc)
1707 MPT_ADAPTER *ioc;
1717 ioc = kzalloc(sizeof(MPT_ADAPTER), GFP_ATOMIC);
1761 ioc->alloc_total = sizeof(MPT_ADAPTER);
1990 MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
2056 MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
2095 MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
2158 mpt_signal_reset(u8 index, MPT_ADAPTER *ioc, int reset_phase)
2195 mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
2544 * using alt_ioc pointer fields in their %MPT_ADAPTER structures.
2547 mpt_detect_bound_ports(MPT_ADAPTER *ioc, struct pci_dev *pdev)
2552 MPT_ADAPTER *ioc_srch;
2598 mpt_adapter_disable(MPT_ADAPTER *ioc)
2722 mpt_adapter_dispose(MPT_ADAPTER *ioc)
2768 MptDisplayIocCapabilities(MPT_ADAPTER *ioc)
2799 * @ioc: Pointer to MPT_ADAPTER structure
2812 MakeIocReady(MPT_ADAPTER *ioc, int force, int sleepFlag)
2940 * @ioc: Pointer to MPT_ADAPTER structure
2947 mpt_GetIocState(MPT_ADAPTER *ioc, int cooked)
2964 * @ioc: Pointer to MPT_ADAPTER structure
2971 GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason)
3144 * @ioc: Pointer to MPT_ADAPTER structure
3151 GetPortFacts(MPT_ADAPTER *ioc, int portnum, int sleepFlag)
3226 * @ioc: Pointer to MPT_ADAPTER structure
3234 SendIocInit(MPT_ADAPTER *ioc, int sleepFlag)
3349 * @ioc: Pointer to MPT_ADAPTER structure
3358 SendPortEnable(MPT_ADAPTER *ioc, int portnum, int sleepFlag)
3398 * @ioc: Pointer to MPT_ADAPTER structure
3407 mpt_alloc_fw_memory(MPT_ADAPTER *ioc, int size)
3438 * @ioc: Pointer to MPT_ADAPTER structure
3444 mpt_free_fw_memory(MPT_ADAPTER *ioc)
3462 * @ioc: Pointer to MPT_ADAPTER structure
3474 mpt_do_upload(MPT_ADAPTER *ioc, int sleepFlag)
3563 * @ioc: Pointer to MPT_ADAPTER structure
3575 mpt_downloadboot(MPT_ADAPTER *ioc, MpiFwHeader_t *pFwHeader, int sleepFlag)
3768 * @ioc: Pointer to MPT_ADAPTER structure
3792 KickStart(MPT_ADAPTER *ioc, int force, int sleepFlag)
3842 * @ioc: Pointer to MPT_ADAPTER structure
3859 mpt_diag_reset(MPT_ADAPTER *ioc, int ignore, int sleepFlag)
4151 * @ioc: Pointer to MPT_ADAPTER structure
4161 SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag)
4211 * @ioc: Pointer to MPT_ADAPTER structure
4217 initChainBuffers(MPT_ADAPTER *ioc)
4319 * @ioc: Pointer to MPT_ADAPTER structure
4328 PrimeIocFifos(MPT_ADAPTER *ioc)
4534 * @ioc: Pointer to MPT_ADAPTER structure
4550 mpt_handshake_req_reply_wait(MPT_ADAPTER *ioc, int reqBytes, u32 *req,
4645 * @ioc: Pointer to MPT_ADAPTER structure
4656 WaitForDoorbellAck(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4696 * @ioc: Pointer to MPT_ADAPTER structure
4706 WaitForDoorbellInt(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4745 * @ioc: Pointer to MPT_ADAPTER structure
4756 WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag)
4823 * @ioc: Pointer to MPT_ADAPTER structure
4832 GetLanConfigPages(MPT_ADAPTER *ioc)
4926 * @ioc: Pointer to MPT_ADAPTER structure
4940 mptbase_sas_persist_operation(MPT_ADAPTER *ioc, u8 persist_opcode)
5027 mptbase_raid_process_event_data(MPT_ADAPTER *ioc,
5159 * @ioc: Pointer to MPT_ADAPTER structure
5168 GetIoUnitPage2(MPT_ADAPTER *ioc)
5236 mpt_GetScsiPortSettings(MPT_ADAPTER *ioc, int portnum)
5448 mpt_readScsiDevicePageHeaders(MPT_ADAPTER *ioc, int portnum)
5494 mpt_inactive_raid_list_free(MPT_ADAPTER *ioc)
5518 mpt_inactive_raid_volumes(MPT_ADAPTER *ioc, u8 channel, u8 id)
5606 mpt_raid_phys_disk_pg0(MPT_ADAPTER *ioc, u8 phys_disk_num,
5674 mpt_raid_phys_disk_get_num_paths(MPT_ADAPTER *ioc, u8 phys_disk_num)
5742 mpt_raid_phys_disk_pg1(MPT_ADAPTER *ioc, u8 phys_disk_num,
5830 mpt_findImVolumes(MPT_ADAPTER *ioc)
5899 mpt_read_ioc_pg_3(MPT_ADAPTER *ioc)
5958 mpt_read_ioc_pg_4(MPT_ADAPTER *ioc)
6011 mpt_read_ioc_pg_1(MPT_ADAPTER *ioc)
6098 mpt_get_manufacturing_pg_0(MPT_ADAPTER *ioc)
6143 * @ioc: Pointer to MPT_ADAPTER structure
6148 SendEventNotification(MPT_ADAPTER *ioc, u8 EvSwitch, int sleepFlag)
6172 * @ioc: Pointer to MPT_ADAPTER structure
6176 SendEventAck(MPT_ADAPTER *ioc, EventNotificationReply_t *evnp)
6216 mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg)
6420 mpt_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
6497 static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan);
6501 MPT_ADAPTER *ioc = m->private;
6584 MPT_ADAPTER *ioc = m->private;
6679 mpt_get_fw_exp_ver(char *buf, MPT_ADAPTER *ioc)
6696 * @ioc: Pointer to MPT_ADAPTER structure
6706 mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int showlan)
6741 static void seq_mpt_print_ioc_summary(MPT_ADAPTER *ioc, struct seq_file *m, int showlan)
6775 * @ioc: Pointer to MPT_ADAPTER structure
6782 mpt_set_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc)
6808 * @ioc: Pointer to MPT_ADAPTER structure
6812 mpt_clear_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc)
6831 * @ioc: Pointer to MPT_ADAPTER structure
6835 mpt_halt_firmware(MPT_ADAPTER *ioc)
6856 * @ioc: Pointer to MPT_ADAPTER structure
6868 mpt_SoftResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
7000 * @ioc: Pointer to MPT_ADAPTER structure
7008 mpt_Soft_Hard_ResetHandler(MPT_ADAPTER *ioc, int sleepFlag) {
7026 * @ioc: Pointer to MPT_ADAPTER structure
7041 mpt_HardResetHandler(MPT_ADAPTER *ioc, int sleepFlag)
7126 mpt_display_event_info(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply)
7568 * @ioc: Pointer to MPT_ADAPTER structure
7577 ProcessEventNotification(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply, int *evHandlers)
7680 * @ioc: Pointer to MPT_ADAPTER structure
7686 mpt_fc_log_info(MPT_ADAPTER *ioc, u32 log_info)
7724 * @ioc: Pointer to MPT_ADAPTER structure
7730 mpt_spi_log_info(MPT_ADAPTER *ioc, u32 log_info)
7935 * @ioc: Pointer to MPT_ADAPTER structure
7942 mpt_sas_log_info(MPT_ADAPTER *ioc, u32 log_info, u8 cb_idx)
8017 * @ioc: Pointer to MPT_ADAPTER structure
8024 mpt_iocstatus_info_config(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf)
8095 * @ioc: Pointer to MPT_ADAPTER structure
8102 mpt_iocstatus_info(MPT_ADAPTER *ioc, u32 ioc_status, MPT_FRAME_HDR *mf)