/drivers/scsi/bfa/ |
D | bfad.c | 156 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event); 158 bfad_sm_created(struct bfad_s *bfad, enum bfad_sm_event event); 160 bfad_sm_initializing(struct bfad_s *bfad, enum bfad_sm_event event); 162 bfad_sm_operational(struct bfad_s *bfad, enum bfad_sm_event event); 164 bfad_sm_stopping(struct bfad_s *bfad, enum bfad_sm_event event); 166 bfad_sm_failed(struct bfad_s *bfad, enum bfad_sm_event event); 168 bfad_sm_fcs_exit(struct bfad_s *bfad, enum bfad_sm_event event); 174 bfad_sm_uninit(struct bfad_s *bfad, enum bfad_sm_event event) in bfad_sm_uninit() argument 176 bfa_trc(bfad, event); in bfad_sm_uninit() 180 bfa_sm_set_state(bfad, bfad_sm_created); in bfad_sm_uninit() [all …]
|
D | bfad_bsg.c | 26 bfad_iocmd_ioc_enable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_enable() argument 31 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 33 if (!bfa_ioc_is_disabled(&bfad->bfa.ioc)) { in bfad_iocmd_ioc_enable() 34 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 39 init_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable() 40 bfa_iocfc_enable(&bfad->bfa); in bfad_iocmd_ioc_enable() 42 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_enable() 43 wait_for_completion(&bfad->enable_comp); in bfad_iocmd_ioc_enable() 49 bfad_iocmd_ioc_disable(struct bfad_s *bfad, void *cmd) in bfad_iocmd_ioc_disable() argument 54 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_iocmd_ioc_disable() [all …]
|
D | bfad_debugfs.c | 53 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_drvtrc() local 60 debug->debug_buffer = (void *) bfad->trcmod; in bfad_debugfs_open_drvtrc() 72 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwtrc() local 87 bfad->inst_no); in bfad_debugfs_open_fwtrc() 93 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc() 94 rc = bfa_ioc_debug_fwtrc(&bfad->bfa.ioc, in bfad_debugfs_open_fwtrc() 97 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_debugfs_open_fwtrc() 103 bfad->inst_no); in bfad_debugfs_open_fwtrc() 116 struct bfad_s *bfad = port->bfad; in bfad_debugfs_open_fwsave() local 131 bfad->inst_no); in bfad_debugfs_open_fwsave() [all …]
|
D | bfad_attr.c | 33 struct bfad_s *bfad; in bfad_im_get_starget_port_id() local 40 bfad = im_port->bfad; in bfad_im_get_starget_port_id() 41 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id() 48 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id() 59 struct bfad_s *bfad; in bfad_im_get_starget_node_name() local 66 bfad = im_port->bfad; in bfad_im_get_starget_node_name() 67 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name() 74 spin_unlock_irqrestore(&bfad->bfad_lock, flags); in bfad_im_get_starget_node_name() 85 struct bfad_s *bfad; in bfad_im_get_starget_port_name() local 92 bfad = im_port->bfad; in bfad_im_get_starget_port_name() [all …]
|
D | bfad_im.c | 45 struct bfad_s *bfad = drv; in bfa_cb_ioim_done() local 52 bfa_trc(bfad, scsi_status); in bfa_cb_ioim_done() 56 bfa_trc(bfad, sns_len); in bfa_cb_ioim_done() 63 bfa_trc(bfad, residue); in bfa_cb_ioim_done() 68 bfa_trc(bfad, 0); in bfa_cb_ioim_done() 94 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_done() 144 struct bfad_s *bfad = drv; in bfa_cb_ioim_abort() local 152 bfa_trc(bfad, cmnd->result); in bfa_cb_ioim_abort() 157 bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk, in bfa_cb_tskim_done() argument 184 struct bfad_s *bfad = im_port->bfad; in bfad_im_info() local [all …]
|
D | bfad_drv.h | 107 struct bfad_s *bfad; member 134 struct bfad_s *bfad; member 161 struct bfad_s *bfad; member 290 #define BFA_LOG(level, bfad, mask, fmt, arg...) \ argument 293 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \ 296 bfa_status_t bfad_vport_create(struct bfad_s *bfad, u16 vf_id, 299 bfa_status_t bfad_vf_create(struct bfad_s *bfad, u16 vf_id, 301 bfa_status_t bfad_cfg_pport(struct bfad_s *bfad, enum bfa_lport_role role); 302 bfa_status_t bfad_drv_init(struct bfad_s *bfad); 303 bfa_status_t bfad_start_ops(struct bfad_s *bfad); [all …]
|
D | bfad_im.h | 31 bfa_status_t bfad_im_probe(struct bfad_s *bfad); 32 void bfad_im_probe_undo(struct bfad_s *bfad); 33 bfa_status_t bfad_im_port_new(struct bfad_s *bfad, struct bfad_port_s *port); 34 void bfad_im_port_delete(struct bfad_s *bfad, struct bfad_port_s *port); 36 int bfad_im_scsi_host_alloc(struct bfad_s *bfad, 38 void bfad_im_scsi_host_free(struct bfad_s *bfad, 59 struct bfad_s *bfad; member 117 struct bfad_s *bfad; member 146 bfa_status_t bfad_thread_workq(struct bfad_s *bfad); 149 void bfad_scsi_host_free(struct bfad_s *bfad,
|
D | bfa_fcs_fcpim.c | 283 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_hcb_online() local 296 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_hcb_online() 321 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_sm_online() local 336 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online() 341 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_itnim_sm_online() 425 struct bfad_s *bfad = (struct bfad_s *)itnim->fcs->bfad; in bfa_fcs_itnim_aen_post() local 432 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_itnim_aen_post() 443 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_itnim_aen_post() 570 bfa_fcb_itnim_free(itnim->fcs->bfad, itnim->itnim_drv); in bfa_fcs_itnim_free() 594 bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv); in bfa_fcs_itnim_create()
|
D | bfa_fcs.c | 55 struct bfad_s *bfad = fcs->bfad; in bfa_fcs_exit_comp() local 57 complete(&bfad->comp); in bfa_fcs_exit_comp() 70 bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, in bfa_fcs_attach() argument 77 fcs->bfad = bfad; in bfa_fcs_attach() 148 bfa_fcb_pbc_vport_create(fcs->bfa->bfad, pbc_vports[i]); in bfa_fcs_pbc_vport_init() 699 struct bfad_s *bfad = (struct bfad_s *)fabric->fcs->bfad; in bfa_fcs_fabric_sm_isolated() local 706 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_fabric_sm_isolated() 924 bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status) in bfa_cb_lps_flogi_comp() argument 1496 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_fabric_aen_post() local 1499 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_fabric_aen_post() [all …]
|
D | bfa_modules.h | 72 void *bfad, struct bfa_iocfc_cfg_s *cfg, \ 101 void (*attach) (struct bfa_s *bfa, void *bfad, 112 void *bfad; /* BFA driver instance */ member
|
D | bfa_core.c | 1040 bfa_iocfc_init_mem(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_init_mem() argument 1045 bfa->bfad = bfad; in bfa_iocfc_init_mem() 1203 bfa_cb_init(bfa->bfad, bfa->iocfc.op_status); in bfa_iocfc_init_cb() 1210 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_stop_cb() local 1213 complete(&bfad->comp); in bfa_iocfc_stop_cb() 1220 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_enable_cb() local 1223 complete(&bfad->enable_comp); in bfa_iocfc_enable_cb() 1230 struct bfad_s *bfad = bfa->bfad; in bfa_iocfc_disable_cb() local 1233 complete(&bfad->disable_comp); in bfa_iocfc_disable_cb() 1513 bfa_iocfc_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_iocfc_attach() argument [all …]
|
D | bfa_svc.c | 125 static void bfa_lps_attach(struct bfa_s *bfa, void *bfad, 525 bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_fcxp_attach() argument 1530 bfa_lps_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, in bfa_lps_attach() argument 1807 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1809 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp_cb() 1825 bfa_cb_lps_fdisc_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1827 bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); in bfa_lps_login_comp() 1842 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1844 bfa_cb_lps_flogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp_cb() 1859 bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); in bfa_lps_logout_comp() [all …]
|
D | bfa_fcs.h | 697 struct bfad_s *bfad; /* corresponding BDA driver instance */ member 791 struct bfad_s *bfad, 855 struct bfad_port_s *bfa_fcb_lport_new(struct bfad_s *bfad, 864 void bfa_fcb_pbc_vport_create(struct bfad_s *bfad, struct bfi_pbc_vport_s); 869 bfa_status_t bfa_fcb_rport_alloc(struct bfad_s *bfad, 876 void bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim, 878 void bfa_fcb_itnim_free(struct bfad_s *bfad,
|
D | bfa_fcpim.h | 387 void bfa_cb_ioim_done(void *bfad, struct bfad_ioim_s *dio, 395 void bfa_cb_ioim_good_comp(void *bfad, struct bfad_ioim_s *dio); 400 void bfa_cb_ioim_abort(void *bfad, struct bfad_ioim_s *dio); 411 void bfa_cb_tskim_done(void *bfad, struct bfad_tskim_s *dtsk,
|
D | bfa_svc.h | 495 void *bfad; /* BFA driver handle */ member 682 void bfa_cb_lps_flogi_comp(void *bfad, void *uarg, bfa_status_t status); 683 void bfa_cb_lps_flogo_comp(void *bfad, void *uarg); 684 void bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status); 685 void bfa_cb_lps_fdisclogo_comp(void *bfad, void *uarg); 686 void bfa_cb_lps_cvl_event(void *bfad, void *uarg);
|
D | bfa.h | 304 void bfa_iocfc_attach(struct bfa_s *bfa, void *bfad, 407 void bfa_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, 411 void bfa_cb_init(void *bfad, bfa_status_t status); 412 void bfa_cb_updateq(void *bfad, bfa_status_t status);
|
D | Makefile | 3 bfa-y := bfad.o bfad_im.o bfad_attr.o bfad_debugfs.o bfad_bsg.o
|
D | bfa_fcs_rport.c | 2331 if (bfa_fcb_rport_alloc(fcs->bfad, &rport, &rport_drv) in bfa_fcs_rport_alloc() 2411 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_aen_post() local 2414 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_rport_aen_post() 2430 bfad_im_post_vendor_event(aen_entry, bfad, ++rport->fcs->fcs_aen_seq, in bfa_fcs_rport_aen_post() 2449 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_online_action() local 2469 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_online_action() 2489 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_rport_hal_offline_action() local 2504 BFA_LOG(KERN_ERR, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action() 2511 BFA_LOG(KERN_INFO, bfad, bfa_log_level, in bfa_fcs_rport_hal_offline_action() 2803 struct bfa_fcs_s *fcs = &((struct bfad_s *)bfa->bfad)->bfa_fcs; in bfa_cb_rport_scn_online() [all …]
|
D | bfa_fcs_lport.c | 352 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_lport_aen_post() local 355 bfad_get_aen_entry(bfad, aen_entry); in bfa_fcs_lport_aen_post() 366 bfad_im_post_vendor_event(aen_entry, bfad, ++port->fcs->fcs_aen_seq, in bfa_fcs_lport_aen_post() 652 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_online_actions() local 661 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_online_actions() 666 bfad->bfad_flags |= BFAD_PORT_ONLINE; in bfa_fcs_lport_online_actions() 674 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_offline_actions() local 684 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions() 689 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_fcs_lport_offline_actions() 744 struct bfad_s *bfad = (struct bfad_s *)port->fcs->bfad; in bfa_fcs_lport_deleted() local [all …]
|
D | bfa_ioc.c | 421 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_op_entry() local 426 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC enabled\n"); in bfa_ioc_sm_op_entry() 469 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_sm_disabling_entry() local 471 BFA_LOG(KERN_INFO, bfad, bfa_log_level, "IOC disabled\n"); in bfa_ioc_sm_disabling_entry() 2164 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_fail_notify() local 2174 BFA_LOG(KERN_CRIT, bfad, bfa_log_level, in bfa_ioc_fail_notify() 2183 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_pf_fwmismatch() local 2188 BFA_LOG(KERN_WARNING, bfad, bfa_log_level, in bfa_ioc_pf_fwmismatch() 2922 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; in bfa_ioc_aen_post() local 2926 bfad_get_aen_entry(bfad, aen_entry); in bfa_ioc_aen_post() [all …]
|
D | bfa_fcpim.c | 316 bfa_fcpim_attach(struct bfa_fcp_mod_s *fcp, void *bfad, in bfa_fcpim_attach() argument 2134 bfa_cb_ioim_good_comp(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_good_comp() 2177 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, m->io_status, in __bfa_cb_ioim_comp() 2292 port = bfa_fcs_lookup_port(&((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_add() 2361 &((struct bfad_s *)bfa->bfad)->bfa_fcs, in bfa_fcpim_lunmask_delete() 2409 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_ABORTED, in __bfa_cb_ioim_failed() 2424 bfa_cb_ioim_done(ioim->bfa->bfad, ioim->dio, BFI_IOIM_STS_PATHTOV, in __bfa_cb_ioim_pathtov() 2438 bfa_cb_ioim_abort(ioim->bfa->bfad, ioim->dio); in __bfa_cb_ioim_abort() 3274 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, tskim->tsk_status); in __bfa_cb_tskim_done() 3288 bfa_cb_tskim_done(tskim->bfa->bfad, tskim->dtsk, in __bfa_cb_tskim_failed() [all …]
|
D | bfa_ioc.h | 788 void *bfad; member
|