Lines Matching refs:bfa_ioc
50 static void bfa_ioc_hw_sem_init(struct bfa_ioc *ioc);
51 static void bfa_ioc_hw_sem_get(struct bfa_ioc *ioc);
52 static void bfa_ioc_hw_sem_get_cancel(struct bfa_ioc *ioc);
53 static void bfa_ioc_hwinit(struct bfa_ioc *ioc, bool force);
54 static void bfa_ioc_poll_fwinit(struct bfa_ioc *ioc);
55 static void bfa_ioc_send_enable(struct bfa_ioc *ioc);
56 static void bfa_ioc_send_disable(struct bfa_ioc *ioc);
57 static void bfa_ioc_send_getattr(struct bfa_ioc *ioc);
58 static void bfa_ioc_hb_monitor(struct bfa_ioc *ioc);
59 static void bfa_ioc_hb_stop(struct bfa_ioc *ioc);
60 static void bfa_ioc_reset(struct bfa_ioc *ioc, bool force);
61 static void bfa_ioc_mbox_poll(struct bfa_ioc *ioc);
62 static void bfa_ioc_mbox_flush(struct bfa_ioc *ioc);
63 static void bfa_ioc_recover(struct bfa_ioc *ioc);
64 static void bfa_ioc_event_notify(struct bfa_ioc *, enum bfa_ioc_event);
65 static void bfa_ioc_disable_comp(struct bfa_ioc *ioc);
66 static void bfa_ioc_lpu_stop(struct bfa_ioc *ioc);
67 static void bfa_nw_ioc_debug_save_ftrc(struct bfa_ioc *ioc);
68 static void bfa_ioc_fail_notify(struct bfa_ioc *ioc);
69 static void bfa_ioc_pf_enabled(struct bfa_ioc *ioc);
70 static void bfa_ioc_pf_disabled(struct bfa_ioc *ioc);
71 static void bfa_ioc_pf_failed(struct bfa_ioc *ioc);
72 static void bfa_ioc_pf_hwfailed(struct bfa_ioc *ioc);
73 static void bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc);
74 static enum bfa_status bfa_ioc_boot(struct bfa_ioc *ioc,
76 static u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr);
77 static void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc,
79 static void bfa_ioc_get_adapter_fw_ver(struct bfa_ioc *ioc,
81 static void bfa_ioc_get_pci_chip_rev(struct bfa_ioc *ioc,
83 static void bfa_ioc_get_adapter_optrom_ver(struct bfa_ioc *ioc,
85 static void bfa_ioc_get_adapter_manufacturer(struct bfa_ioc *ioc,
87 static void bfa_ioc_get_adapter_model(struct bfa_ioc *ioc, char *model);
88 static u64 bfa_ioc_get_pwwn(struct bfa_ioc *ioc);
106 bfa_fsm_state_decl(bfa_ioc, uninit, struct bfa_ioc, enum ioc_event);
107 bfa_fsm_state_decl(bfa_ioc, reset, struct bfa_ioc, enum ioc_event);
108 bfa_fsm_state_decl(bfa_ioc, enabling, struct bfa_ioc, enum ioc_event);
109 bfa_fsm_state_decl(bfa_ioc, getattr, struct bfa_ioc, enum ioc_event);
110 bfa_fsm_state_decl(bfa_ioc, op, struct bfa_ioc, enum ioc_event);
111 bfa_fsm_state_decl(bfa_ioc, fail_retry, struct bfa_ioc, enum ioc_event);
112 bfa_fsm_state_decl(bfa_ioc, fail, struct bfa_ioc, enum ioc_event);
113 bfa_fsm_state_decl(bfa_ioc, disabling, struct bfa_ioc, enum ioc_event);
114 bfa_fsm_state_decl(bfa_ioc, disabled, struct bfa_ioc, enum ioc_event);
115 bfa_fsm_state_decl(bfa_ioc, hwfail, struct bfa_ioc, enum ioc_event);
133 static void bfa_iocpf_enable(struct bfa_ioc *ioc);
134 static void bfa_iocpf_disable(struct bfa_ioc *ioc);
135 static void bfa_iocpf_fail(struct bfa_ioc *ioc);
136 static void bfa_iocpf_initfail(struct bfa_ioc *ioc);
137 static void bfa_iocpf_getattrfail(struct bfa_ioc *ioc);
138 static void bfa_iocpf_stop(struct bfa_ioc *ioc);
207 bfa_ioc_sm_uninit_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_uninit_entry()
213 bfa_ioc_sm_uninit(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_uninit()
227 bfa_ioc_sm_reset_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_reset_entry()
234 bfa_ioc_sm_reset(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_reset()
255 bfa_ioc_sm_enabling_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_enabling_entry()
264 bfa_ioc_sm_enabling(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_enabling()
304 bfa_ioc_sm_getattr_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_getattr_entry()
313 bfa_ioc_sm_getattr(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_getattr()
346 bfa_ioc_sm_op_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_op_entry()
354 bfa_ioc_sm_op(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_op()
388 bfa_ioc_sm_disabling_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_disabling_entry()
395 bfa_ioc_sm_disabling(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_disabling()
423 bfa_ioc_sm_disabled_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_disabled_entry()
429 bfa_ioc_sm_disabled(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_disabled()
451 bfa_ioc_sm_fail_retry_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_fail_retry_entry()
457 bfa_ioc_sm_fail_retry(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_fail_retry()
498 bfa_ioc_sm_fail_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_fail_entry()
504 bfa_ioc_sm_fail(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_fail()
530 bfa_ioc_sm_hwfail_entry(struct bfa_ioc *ioc) in bfa_ioc_sm_hwfail_entry()
536 bfa_ioc_sm_hwfail(struct bfa_ioc *ioc, enum ioc_event event) in bfa_ioc_sm_hwfail()
596 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_fwcheck()
654 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_mismatch()
688 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_semwait()
730 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_hwinit()
773 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_enabling()
843 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_disabling()
878 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_disabling_sync()
911 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_disabled()
939 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_initfail_sync()
983 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_initfail()
1019 struct bfa_ioc *ioc = iocpf->ioc; in bfa_iocpf_sm_fail_sync()
1081 bfa_ioc_event_notify(struct bfa_ioc *ioc, enum bfa_ioc_event event) in bfa_ioc_event_notify()
1090 bfa_ioc_disable_comp(struct bfa_ioc *ioc) in bfa_ioc_disable_comp()
1126 bfa_ioc_fwver_clear(struct bfa_ioc *ioc) in bfa_ioc_fwver_clear()
1142 bfa_ioc_hw_sem_init(struct bfa_ioc *ioc) in bfa_ioc_hw_sem_init()
1182 bfa_ioc_hw_sem_get(struct bfa_ioc *ioc) in bfa_ioc_hw_sem_get()
1205 bfa_nw_ioc_hw_sem_release(struct bfa_ioc *ioc) in bfa_nw_ioc_hw_sem_release()
1211 bfa_ioc_hw_sem_get_cancel(struct bfa_ioc *ioc) in bfa_ioc_hw_sem_get_cancel()
1218 bfa_ioc_lmem_init(struct bfa_ioc *ioc) in bfa_ioc_lmem_init()
1254 bfa_ioc_lpu_start(struct bfa_ioc *ioc) in bfa_ioc_lpu_start()
1268 bfa_ioc_lpu_stop(struct bfa_ioc *ioc) in bfa_ioc_lpu_stop()
1283 bfa_nw_ioc_fwver_get(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) in bfa_nw_ioc_fwver_get()
1740 bfa_nw_ioc_flash_img_get_chnk(struct bfa_ioc *ioc, u32 off, in bfa_nw_ioc_flash_img_get_chnk()
1749 bfa_ioc_flash_fwver_cmp(struct bfa_ioc *ioc, in bfa_ioc_flash_fwver_cmp()
1771 bfa_nw_ioc_fwver_cmp(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) in bfa_nw_ioc_fwver_cmp()
1805 bfa_ioc_fwver_valid(struct bfa_ioc *ioc, u32 boot_env) in bfa_ioc_fwver_valid()
1818 bfa_ioc_msgflush(struct bfa_ioc *ioc) in bfa_ioc_msgflush()
1828 bfa_ioc_hwinit(struct bfa_ioc *ioc, bool force) in bfa_ioc_hwinit()
1887 bfa_nw_ioc_timeout(struct bfa_ioc *ioc) in bfa_nw_ioc_timeout()
1893 bfa_ioc_mbox_send(struct bfa_ioc *ioc, void *ioc_msg, int len) in bfa_ioc_mbox_send()
1918 bfa_ioc_send_enable(struct bfa_ioc *ioc) in bfa_ioc_send_enable()
1932 bfa_ioc_send_disable(struct bfa_ioc *ioc) in bfa_ioc_send_disable()
1946 bfa_ioc_send_getattr(struct bfa_ioc *ioc) in bfa_ioc_send_getattr()
1957 bfa_nw_ioc_hb_check(struct bfa_ioc *ioc) in bfa_nw_ioc_hb_check()
1975 bfa_ioc_hb_monitor(struct bfa_ioc *ioc) in bfa_ioc_hb_monitor()
1983 bfa_ioc_hb_stop(struct bfa_ioc *ioc) in bfa_ioc_hb_stop()
1990 bfa_ioc_download_fw(struct bfa_ioc *ioc, u32 boot_type, in bfa_ioc_download_fw()
2083 bfa_ioc_reset(struct bfa_ioc *ioc, bool force) in bfa_ioc_reset()
2090 bfa_ioc_enable_reply(struct bfa_ioc *ioc, enum bfa_mode port_mode, in bfa_ioc_enable_reply()
2102 bfa_ioc_getattr_reply(struct bfa_ioc *ioc) in bfa_ioc_getattr_reply()
2115 bfa_ioc_mbox_attach(struct bfa_ioc *ioc) in bfa_ioc_mbox_attach()
2129 bfa_ioc_mbox_poll(struct bfa_ioc *ioc) in bfa_ioc_mbox_poll()
2170 bfa_ioc_mbox_flush(struct bfa_ioc *ioc) in bfa_ioc_mbox_flush()
2190 bfa_nw_ioc_smem_read(struct bfa_ioc *ioc, void *tbuf, u32 soff, u32 sz) in bfa_nw_ioc_smem_read()
2236 bfa_nw_ioc_debug_fwtrc(struct bfa_ioc *ioc, void *trcdata, int *trclen) in bfa_nw_ioc_debug_fwtrc()
2252 bfa_nw_ioc_debug_save_ftrc(struct bfa_ioc *ioc) in bfa_nw_ioc_debug_save_ftrc()
2267 bfa_nw_ioc_debug_fwsave(struct bfa_ioc *ioc, void *trcdata, int *trclen) in bfa_nw_ioc_debug_fwsave()
2284 bfa_ioc_fail_notify(struct bfa_ioc *ioc) in bfa_ioc_fail_notify()
2296 bfa_ioc_pf_enabled(struct bfa_ioc *ioc) in bfa_ioc_pf_enabled()
2302 bfa_ioc_pf_disabled(struct bfa_ioc *ioc) in bfa_ioc_pf_disabled()
2308 bfa_ioc_pf_failed(struct bfa_ioc *ioc) in bfa_ioc_pf_failed()
2314 bfa_ioc_pf_hwfailed(struct bfa_ioc *ioc) in bfa_ioc_pf_hwfailed()
2320 bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc) in bfa_ioc_pf_fwmismatch()
2330 bfa_ioc_pll_init(struct bfa_ioc *ioc) in bfa_ioc_pll_init()
2356 bfa_ioc_boot(struct bfa_ioc *ioc, enum bfi_fwboot_type boot_type, in bfa_ioc_boot()
2406 bfa_ioc_msgget(struct bfa_ioc *ioc, void *mbmsg) in bfa_ioc_msgget()
2436 bfa_ioc_isr(struct bfa_ioc *ioc, struct bfi_mbmsg *m) in bfa_ioc_isr()
2476 bfa_nw_ioc_attach(struct bfa_ioc *ioc, void *bfa, struct bfa_ioc_cbfn *cbfn) in bfa_nw_ioc_attach()
2494 bfa_nw_ioc_detach(struct bfa_ioc *ioc) in bfa_nw_ioc_detach()
2510 bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, in bfa_nw_ioc_pci_init()
2581 bfa_nw_ioc_mem_claim(struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa) in bfa_nw_ioc_mem_claim()
2599 bfa_nw_ioc_enable(struct bfa_ioc *ioc) in bfa_nw_ioc_enable()
2608 bfa_nw_ioc_disable(struct bfa_ioc *ioc) in bfa_nw_ioc_disable()
2616 bfa_nw_ioc_debug_memclaim(struct bfa_ioc *ioc, void *dbg_fwsave) in bfa_nw_ioc_debug_memclaim()
2623 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr) in bfa_ioc_smem_pgnum()
2630 bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, in bfa_nw_ioc_mbox_regisr()
2650 bfa_nw_ioc_mbox_queue(struct bfa_ioc *ioc, struct bfa_mbox_cmd *cmd, in bfa_nw_ioc_mbox_queue()
2686 bfa_nw_ioc_mbox_isr(struct bfa_ioc *ioc) in bfa_nw_ioc_mbox_isr()
2717 bfa_nw_ioc_error_isr(struct bfa_ioc *ioc) in bfa_nw_ioc_error_isr()
2726 bfa_nw_ioc_is_disabled(struct bfa_ioc *ioc) in bfa_nw_ioc_is_disabled()
2734 bfa_nw_ioc_is_operational(struct bfa_ioc *ioc) in bfa_nw_ioc_is_operational()
2743 bfa_nw_ioc_notify_register(struct bfa_ioc *ioc, in bfa_nw_ioc_notify_register()
2751 bfa_ioc_get_adapter_attr(struct bfa_ioc *ioc, in bfa_ioc_get_adapter_attr()
2792 bfa_ioc_get_type(struct bfa_ioc *ioc) in bfa_ioc_get_type()
2804 bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc, char *serial_num) in bfa_ioc_get_adapter_serial_num()
2812 bfa_ioc_get_adapter_fw_ver(struct bfa_ioc *ioc, char *fw_ver) in bfa_ioc_get_adapter_fw_ver()
2818 bfa_ioc_get_pci_chip_rev(struct bfa_ioc *ioc, char *chip_rev) in bfa_ioc_get_pci_chip_rev()
2833 bfa_ioc_get_adapter_optrom_ver(struct bfa_ioc *ioc, char *optrom_ver) in bfa_ioc_get_adapter_optrom_ver()
2840 bfa_ioc_get_adapter_manufacturer(struct bfa_ioc *ioc, char *manufacturer) in bfa_ioc_get_adapter_manufacturer()
2846 bfa_ioc_get_adapter_model(struct bfa_ioc *ioc, char *model) in bfa_ioc_get_adapter_model()
2860 bfa_ioc_get_state(struct bfa_ioc *ioc) in bfa_ioc_get_state()
2899 bfa_nw_ioc_get_attr(struct bfa_ioc *ioc, struct bfa_ioc_attr *ioc_attr) in bfa_nw_ioc_get_attr()
2922 bfa_ioc_get_pwwn(struct bfa_ioc *ioc) in bfa_ioc_get_pwwn()
2928 bfa_nw_ioc_get_mac(struct bfa_ioc *ioc, u8 *mac) in bfa_nw_ioc_get_mac()
2935 bfa_ioc_recover(struct bfa_ioc *ioc) in bfa_ioc_recover()
2946 bfa_iocpf_enable(struct bfa_ioc *ioc) in bfa_iocpf_enable()
2952 bfa_iocpf_disable(struct bfa_ioc *ioc) in bfa_iocpf_disable()
2958 bfa_iocpf_fail(struct bfa_ioc *ioc) in bfa_iocpf_fail()
2964 bfa_iocpf_initfail(struct bfa_ioc *ioc) in bfa_iocpf_initfail()
2970 bfa_iocpf_getattrfail(struct bfa_ioc *ioc) in bfa_iocpf_getattrfail()
2976 bfa_iocpf_stop(struct bfa_ioc *ioc) in bfa_iocpf_stop()
2982 bfa_nw_iocpf_timeout(struct bfa_ioc *ioc) in bfa_nw_iocpf_timeout()
2995 bfa_nw_iocpf_sem_timeout(struct bfa_ioc *ioc) in bfa_nw_iocpf_sem_timeout()
3001 bfa_ioc_poll_fwinit(struct bfa_ioc *ioc) in bfa_ioc_poll_fwinit()
3219 bfa_nw_flash_attach(struct bfa_flash *flash, struct bfa_ioc *ioc, void *dev) in bfa_nw_flash_attach()