Home
last modified time | relevance | path

Searched refs:bfad (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/drivers/scsi/bfa/
Dbfad.c153 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event);
155 bfad_sm_created(struct bfad_s *bfad, enum bfad_sm_event event);
157 bfad_sm_initializing(struct bfad_s *bfad, enum bfad_sm_event event);
159 bfad_sm_operational(struct bfad_s *bfad, enum bfad_sm_event event);
161 bfad_sm_stopping(struct bfad_s *bfad, enum bfad_sm_event event);
163 bfad_sm_failed(struct bfad_s *bfad, enum bfad_sm_event event);
165 bfad_sm_fcs_exit(struct bfad_s *bfad, enum bfad_sm_event event);
171 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event) in bfad_sm_uninit() argument
173 bfa_trc(bfad, event); in bfad_sm_uninit()
177 bfa_sm_set_state(bfad, bfad_sm_created); in bfad_sm_uninit()
[all …]
Dbfad_bsg.c27 bfad_iocmd_ioc_enable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_enable() argument
32 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
34 if (!bfa_ioc_is_disabled(&bfad->bfa.ioc)) { in bfad_iocmd_ioc_enable()
35 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
40 init_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable()
41 bfa_iocfc_enable(&bfad->bfa); in bfad_iocmd_ioc_enable()
43 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
44 wait_for_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable()
50 bfad_iocmd_ioc_disable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_disable() argument
55 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
[all …]
Dbfad_debugfs.c54 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_drvtrc() local
61 debug->debug_buffer = (void *) bfad->trcmod; in bfad_debugfs_open_drvtrc()
73 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwtrc() local
88 bfad->inst_no); in bfad_debugfs_open_fwtrc()
92 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc()
93 rc = bfa_ioc_debug_fwtrc(&bfad->bfa.ioc, in bfad_debugfs_open_fwtrc()
96 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc()
102 bfad->inst_no); in bfad_debugfs_open_fwtrc()
115 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwsave() local
130 bfad->inst_no); in bfad_debugfs_open_fwsave()
[all …]
Dbfad_attr.c34 struct bfad_s *bfad; in bfad_im_get_starget_port_id() local
41 bfad = im_port->bfad; in bfad_im_get_starget_port_id()
42 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id()
49 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id()
60 struct bfad_s *bfad; in bfad_im_get_starget_node_name() local
67 bfad = im_port->bfad; in bfad_im_get_starget_node_name()
68 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name()
75 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name()
86 struct bfad_s *bfad; in bfad_im_get_starget_port_name() local
93 bfad = im_port->bfad; in bfad_im_get_starget_port_name()
[all …]
Dbfad_im.c46 struct bfad_s *bfad = drv; in bfa_cb_ioim_done() local
53 bfa_trc(bfad, scsi_status); in bfa_cb_ioim_done()
57 bfa_trc(bfad, sns_len); in bfa_cb_ioim_done()
64 bfa_trc(bfad, residue); in bfa_cb_ioim_done()
69 bfa_trc(bfad, 0); in bfa_cb_ioim_done()
92 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_done()
142 struct bfad_s *bfad = drv; in bfa_cb_ioim_abort() local
150 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_abort()
155 bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk, in bfa_cb_tskim_done() argument
182 struct bfad_s *bfad = im_port->bfad; in bfad_im_info() local
[all …]
Dbfad_drv.h108 struct bfad_s *bfad; member
135 struct bfad_s *bfad; member
162 struct bfad_s *bfad; member
291 #define BFA_LOG(level, bfad, mask, fmt, arg...) \ argument
294 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \
297 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
300 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
302 bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role);
303 bfa_status_t bfad_drv_init(struct bfad_s *bfad);
304 bfa_status_t bfad_start_ops(struct bfad_s *bfad);
[all …]
Dbfad_im.h32 bfa_status_t bfad_im_probe(struct bfad_s *bfad);
33 void bfad_im_probe_undo(struct bfad_s *bfad);
34 bfa_status_t bfad_im_port_new(struct bfad_s *bfad, struct bfad_port_s *port);
35 void bfad_im_port_delete(struct bfad_s *bfad, struct bfad_port_s *port);
37 int bfad_im_scsi_host_alloc(struct bfad_s *bfad,
39 void bfad_im_scsi_host_free(struct bfad_s *bfad,
59 struct bfad_s *bfad; member
127 struct bfad_s *bfad; member
168 bfa_status_t bfad_thread_workq(struct bfad_s *bfad);
171 void bfad_scsi_host_free(struct bfad_s *bfad,
Dbfa_fcs_fcpim.c284 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_hcb_online() local
297 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_hcb_online()
322 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_online() local
337 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
342 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
426 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_aen_post() local
433 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_itnim_aen_post()
444 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_itnim_aen_post()
571 bfa_fcb_itnim_free(itnim->fcs->bfad, itnim->itnim_drv); in bfa_fcs_itnim_free()
596 ret = bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv); in bfa_fcs_itnim_create()
Dbfa_fcs.c38 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp() local
40 complete(&bfad->comp); in bfa_fcs_exit_comp()
98 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]); in bfa_fcs_pbc_vport_init()
637 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated() local
644 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_fabric_sm_isolated()
862 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument
1378 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post() local
1381 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_fabric_aen_post()
1389 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_fabric_aen_post()
1404 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_set_fabric_name() local
[all …]
Dbfa_core.c1044 bfa_iocfc_init_mem(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_init_mem() argument
1049 bfa->bfad = bfad; in bfa_iocfc_init_mem()
1215 bfa_cb_init(bfa->bfad, bfa->iocfc.op_status); in bfa_iocfc_init_cb()
1222 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_stop_cb() local
1225 complete(&bfad->comp); in bfa_iocfc_stop_cb()
1232 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_enable_cb() local
1235 complete(&bfad->enable_comp); in bfa_iocfc_enable_cb()
1242 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_disable_cb() local
1245 complete(&bfad->disable_comp); in bfa_iocfc_disable_cb()
1525 bfa_iocfc_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_attach() argument
[all …]
Dbfa_modules.h67 void *bfad; /* BFA driver instance */ member
122 void bfa_sgpg_attach(struct bfa_s *, void *bfad, struct bfa_iocfc_cfg_s *,
Dbfa_fcs.h698 struct bfad_s *bfad; /* corresponding BDA driver instance */ member
792 struct bfad_s *bfad,
852 struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad,
861 void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s);
866 bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad,
873 int bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
875 void bfa_fcb_itnim_free(struct bfad_s *bfad,
Dbfa_fcpim.h388 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio,
396 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio);
401 void bfa_cb_ioim_abort(void *bfad, struct bfad_ioim_s *dio);
412 void bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk,
Dbfa_svc.c498 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument
1488 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument
1750 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1752 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1768 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1770 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1785 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1787 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1802 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1818 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
[all …]
Dbfa_svc.h496 void *bfad; /* BFA driver handle */ member
683 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status);
684 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg);
685 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status);
686 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg);
687 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
DMakefile4 bfa-y := bfad.o bfad_im.o bfad_attr.o bfad_debugfs.o bfad_bsg.o
Dbfa.h305 void bfa_iocfc_attach(struct bfa_s *bfa, void *bfad,
408 void bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
412 void bfa_cb_init(void *bfad, bfa_status_t status);
413 void bfa_cb_updateq(void *bfad, bfa_status_t status);
Dbfa_fcs_rport.c2332 if (bfa_fcb_rport_alloc(fcs->bfad, &rport, &rport_drv) in bfa_fcs_rport_alloc()
2412 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_aen_post() local
2415 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_rport_aen_post()
2431 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_rport_aen_post()
2450 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_online_action() local
2470 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_online_action()
2490 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_offline_action() local
2505 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action()
2512 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action()
2804 struct bfa_fcs_s *fcs = &((struct bfad_s *)bfa->bfad)->bfa_fcs; in bfa_cb_rport_scn_online()
[all …]
Dbfa_fcs_lport.c364 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_lport_aen_post() local
367 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_lport_aen_post()
378 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_lport_aen_post()
664 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_online_actions() local
673 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_online_actions()
678 bfad->bfad_flags |= BFAD_PORT_ONLINE; in bfa_fcs_lport_online_actions()
686 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_offline_actions() local
696 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
701 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
756 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_deleted() local
[all …]
Dbfa_ioc.c422 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_op_entry() local
427 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC enabled\n"); in bfa_ioc_sm_op_entry()
470 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_disabling_entry() local
472 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC disabled\n"); in bfa_ioc_sm_disabling_entry()
2167 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_fail_notify() local
2177 BFA_LOG(KERN_CRIT, bfad, bfa_log_level, in bfa_ioc_fail_notify()
2186 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_pf_fwmismatch() local
2191 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_ioc_pf_fwmismatch()
2925 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_aen_post() local
2929 bfad_get_aen_entry(bfad, aen_entry); in bfa_ioc_aen_post()
[all …]
Dbfa_fcpim.c316 bfa_fcpim_attach(struct bfa_fcp_mod_s *fcp, void *bfad, in bfa_fcpim_attach() argument
2135 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp()
2178 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp()
2293 port = bfa_fcs_lookup_port(&((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_add()
2362 &((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_delete()
2410 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed()
2425 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov()
2439 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort()
3275 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, tskim->tsk_status); in __bfa_cb_tskim_done()
3289 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, in __bfa_cb_tskim_failed()
[all …]
Dbfa_ioc.h793 void *bfad; member