Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/scsi/bfa/ !
Dbfad.c145 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event);
147 bfad_sm_created(struct bfad_s *bfad, enum bfad_sm_event event);
149 bfad_sm_initializing(struct bfad_s *bfad, enum bfad_sm_event event);
151 bfad_sm_operational(struct bfad_s *bfad, enum bfad_sm_event event);
153 bfad_sm_stopping(struct bfad_s *bfad, enum bfad_sm_event event);
155 bfad_sm_failed(struct bfad_s *bfad, enum bfad_sm_event event);
157 bfad_sm_fcs_exit(struct bfad_s *bfad, enum bfad_sm_event event);
163 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event) in bfad_sm_uninit() argument
165 bfa_trc(bfad, event); in bfad_sm_uninit()
169 bfa_sm_set_state(bfad, bfad_sm_created); in bfad_sm_uninit()
[all …]
Dbfad_bsg.c19 bfad_iocmd_ioc_enable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_enable() argument
24 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
26 if (!bfa_ioc_is_disabled(&bfad->bfa.ioc)) { in bfad_iocmd_ioc_enable()
27 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
32 init_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable()
33 bfa_iocfc_enable(&bfad->bfa); in bfad_iocmd_ioc_enable()
35 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable()
36 wait_for_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable()
42 bfad_iocmd_ioc_disable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_disable() argument
47 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable()
[all …]
Dbfad_debugfs.c46 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_drvtrc() local
53 debug->debug_buffer = (void *) bfad->trcmod; in bfad_debugfs_open_drvtrc()
65 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwtrc() local
80 bfad->inst_no); in bfad_debugfs_open_fwtrc()
84 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc()
85 rc = bfa_ioc_debug_fwtrc(&bfad->bfa.ioc, in bfad_debugfs_open_fwtrc()
88 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc()
94 bfad->inst_no); in bfad_debugfs_open_fwtrc()
107 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwsave() local
122 bfad->inst_no); in bfad_debugfs_open_fwsave()
[all …]
Dbfad_attr.c26 struct bfad_s *bfad; in bfad_im_get_starget_port_id() local
33 bfad = im_port->bfad; in bfad_im_get_starget_port_id()
34 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id()
41 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id()
52 struct bfad_s *bfad; in bfad_im_get_starget_node_name() local
59 bfad = im_port->bfad; in bfad_im_get_starget_node_name()
60 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name()
67 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name()
78 struct bfad_s *bfad; in bfad_im_get_starget_port_name() local
85 bfad = im_port->bfad; in bfad_im_get_starget_port_name()
[all …]
Dbfad_im.c38 struct bfad_s *bfad = drv; in bfa_cb_ioim_done() local
45 bfa_trc(bfad, scsi_status); in bfa_cb_ioim_done()
49 bfa_trc(bfad, sns_len); in bfa_cb_ioim_done()
56 bfa_trc(bfad, residue); in bfa_cb_ioim_done()
61 bfa_trc(bfad, 0); in bfa_cb_ioim_done()
84 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_done()
134 struct bfad_s *bfad = drv; in bfa_cb_ioim_abort() local
142 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_abort()
147 bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk, in bfa_cb_tskim_done() argument
174 struct bfad_s *bfad = im_port->bfad; in bfad_im_info() local
[all …]
Dbfad_drv.h100 struct bfad_s *bfad; member
127 struct bfad_s *bfad; member
154 struct bfad_s *bfad; member
283 #define BFA_LOG(level, bfad, mask, fmt, arg...) \ argument
286 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \
289 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
292 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
294 bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role);
295 bfa_status_t bfad_drv_init(struct bfad_s *bfad);
296 bfa_status_t bfad_start_ops(struct bfad_s *bfad);
[all …]
Dbfad_im.h24 bfa_status_t bfad_im_probe(struct bfad_s *bfad);
25 void bfad_im_probe_undo(struct bfad_s *bfad);
26 bfa_status_t bfad_im_port_new(struct bfad_s *bfad, struct bfad_port_s *port);
27 void bfad_im_port_delete(struct bfad_s *bfad, struct bfad_port_s *port);
29 int bfad_im_scsi_host_alloc(struct bfad_s *bfad,
31 void bfad_im_scsi_host_free(struct bfad_s *bfad,
67 struct bfad_s *bfad; member
135 struct bfad_s *bfad; member
176 bfa_status_t bfad_thread_workq(struct bfad_s *bfad);
179 void bfad_scsi_host_free(struct bfad_s *bfad,
Dbfa_fcs_fcpim.c276 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_hcb_online() local
289 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_hcb_online()
314 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_online() local
329 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
334 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
418 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_aen_post() local
425 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_itnim_aen_post()
436 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_itnim_aen_post()
563 bfa_fcb_itnim_free(itnim->fcs->bfad, itnim->itnim_drv); in bfa_fcs_itnim_free()
588 ret = bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv); in bfa_fcs_itnim_create()
Dbfa_fcs.c30 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp() local
32 complete(&bfad->comp); in bfa_fcs_exit_comp()
90 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]); in bfa_fcs_pbc_vport_init()
629 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated() local
636 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_fabric_sm_isolated()
854 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument
1370 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post() local
1373 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_fabric_aen_post()
1381 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_fabric_aen_post()
1396 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_set_fabric_name() local
[all …]
Dbfa_core.c1036 bfa_iocfc_init_mem(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_init_mem() argument
1041 bfa->bfad = bfad; in bfa_iocfc_init_mem()
1207 bfa_cb_init(bfa->bfad, bfa->iocfc.op_status); in bfa_iocfc_init_cb()
1214 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_stop_cb() local
1217 complete(&bfad->comp); in bfa_iocfc_stop_cb()
1224 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_enable_cb() local
1227 complete(&bfad->enable_comp); in bfa_iocfc_enable_cb()
1234 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_disable_cb() local
1237 complete(&bfad->disable_comp); in bfa_iocfc_disable_cb()
1517 bfa_iocfc_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_attach() argument
[all …]
Dbfa_modules.h59 void *bfad; /* BFA driver instance */ member
114 void bfa_sgpg_attach(struct bfa_s *, void *bfad, struct bfa_iocfc_cfg_s *,
Dbfa_fcs.h687 struct bfad_s *bfad; /* corresponding BDA driver instance */ member
781 struct bfad_s *bfad,
841 struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad,
850 void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s);
855 bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad,
862 int bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
864 void bfa_fcb_itnim_free(struct bfad_s *bfad,
Dbfa_fcpim.h380 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio,
388 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio);
393 void bfa_cb_ioim_abort(void *bfad, struct bfad_ioim_s *dio);
404 void bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk,
Dbfa_svc.c484 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument
1474 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument
1736 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1738 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1754 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1756 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1771 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1773 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1788 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1804 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
[all …]
Dbfa_svc.h488 void *bfad; /* BFA driver handle */ member
675 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status);
676 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg);
677 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status);
678 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg);
679 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.h296 void bfa_iocfc_attach(struct bfa_s *bfa, void *bfad,
399 void bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
403 void bfa_cb_init(void *bfad, bfa_status_t status);
404 void bfa_cb_updateq(void *bfad, bfa_status_t status);
Dbfa_fcs_rport.c2316 if (bfa_fcb_rport_alloc(fcs->bfad, &rport, &rport_drv) in bfa_fcs_rport_alloc()
2396 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_aen_post() local
2399 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_rport_aen_post()
2415 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_rport_aen_post()
2434 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_online_action() local
2454 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_online_action()
2474 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_offline_action() local
2489 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action()
2496 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action()
2788 struct bfa_fcs_s *fcs = &((struct bfad_s *)bfa->bfad)->bfa_fcs; in bfa_cb_rport_scn_online()
[all …]
Dbfa_ioc.c414 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_op_entry() local
419 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC enabled\n"); in bfa_ioc_sm_op_entry()
462 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_disabling_entry() local
464 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC disabled\n"); in bfa_ioc_sm_disabling_entry()
2150 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_fail_notify() local
2160 BFA_LOG(KERN_CRIT, bfad, bfa_log_level, in bfa_ioc_fail_notify()
2169 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_pf_fwmismatch() local
2174 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_ioc_pf_fwmismatch()
2908 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_aen_post() local
2912 bfad_get_aen_entry(bfad, aen_entry); in bfa_ioc_aen_post()
[all …]
Dbfa_fcs_lport.c356 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_lport_aen_post() local
359 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_lport_aen_post()
370 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_lport_aen_post()
656 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_online_actions() local
665 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_online_actions()
670 bfad->bfad_flags |= BFAD_PORT_ONLINE; in bfa_fcs_lport_online_actions()
678 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_offline_actions() local
688 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
693 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
748 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_deleted() local
[all …]
Dbfa_fcpim.c308 bfa_fcpim_attach(struct bfa_fcp_mod_s *fcp, void *bfad, in bfa_fcpim_attach() argument
2127 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp()
2170 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp()
2285 port = bfa_fcs_lookup_port(&((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_add()
2352 &((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_delete()
2396 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed()
2411 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov()
2425 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort()
3261 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, tskim->tsk_status); in __bfa_cb_tskim_done()
3275 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, in __bfa_cb_tskim_failed()
[all …]
Dbfa_ioc.h785 void *bfad; member