Home
last modified time | relevance | path

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

/linux-6.12.1/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.h99 struct bfad_s *bfad; member
126 struct bfad_s *bfad; member
153 struct bfad_s *bfad; member
285 #define BFA_LOG(level, bfad, mask, fmt, arg...) \ argument
288 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \
291 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id,
294 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id,
296 bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role);
297 bfa_status_t bfad_drv_init(struct bfad_s *bfad);
298 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
175 bfa_status_t bfad_thread_workq(struct bfad_s *bfad);
178 void bfad_scsi_host_free(struct bfad_s *bfad,
Dbfa_fcs_fcpim.c293 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_hcb_online() local
306 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_hcb_online()
331 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_online() local
346 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
351 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online()
435 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_aen_post() local
442 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_itnim_aen_post()
453 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_itnim_aen_post()
580 bfa_fcb_itnim_free(itnim->fcs->bfad, itnim->itnim_drv); in bfa_fcs_itnim_free()
605 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.h873 struct bfad_s *bfad; /* corresponding BDA driver instance */ member
895 struct bfad_s *bfad,
953 struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad,
962 void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s);
967 bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad,
974 int bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
976 void bfa_fcb_itnim_free(struct bfad_s *bfad,
Dbfa_svc.c470 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument
1460 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument
1722 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1724 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb()
1740 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1742 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp()
1757 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1759 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb()
1774 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp()
1790 bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); in bfa_lps_cvl_event_cb()
[all …]
Dbfa_fcpim.h440 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio,
448 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio);
453 void bfa_cb_ioim_abort(void *bfad, struct bfad_ioim_s *dio);
464 void bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk,
Dbfa_svc.h544 void *bfad; /* BFA driver handle */ member
731 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status);
732 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg);
733 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status);
734 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg);
735 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.h314 void bfa_iocfc_attach(struct bfa_s *bfa, void *bfad,
417 void bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg,
421 void bfa_cb_init(void *bfad, bfa_status_t status);
422 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_ioc.c413 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_op_entry() local
418 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC enabled\n"); in bfa_ioc_sm_op_entry()
461 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_disabling_entry() local
463 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC disabled\n"); in bfa_ioc_sm_disabling_entry()
2149 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_fail_notify() local
2159 BFA_LOG(KERN_CRIT, bfad, bfa_log_level, in bfa_ioc_fail_notify()
2168 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_pf_fwmismatch() local
2173 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_ioc_pf_fwmismatch()
2907 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_aen_post() local
2911 bfad_get_aen_entry(bfad, aen_entry); in bfa_ioc_aen_post()
[all …]
Dbfa_fcs_lport.c343 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_lport_aen_post() local
346 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_lport_aen_post()
357 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_lport_aen_post()
643 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_online_actions() local
652 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_online_actions()
657 bfad->bfad_flags |= BFAD_PORT_ONLINE; in bfa_fcs_lport_online_actions()
665 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_offline_actions() local
675 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
680 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions()
735 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_deleted() local
[all …]
Dbfa_fcpim.c257 bfa_fcpim_attach(struct bfa_fcp_mod_s *fcp, void *bfad, in bfa_fcpim_attach() argument
2076 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp()
2119 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp()
2234 port = bfa_fcs_lookup_port(&((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_add()
2301 &((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_delete()
2345 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed()
2360 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov()
2374 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort()
3210 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, tskim->tsk_status); in __bfa_cb_tskim_done()
3224 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, in __bfa_cb_tskim_failed()
[all …]
Dbfa_ioc.h827 void *bfad; member