Lines Matching full:fabric

173 			bfa_wc_down(&(port->fabric->stop_wc));  in bfa_fcs_lport_sm_init()
202 __port_action[port->fabric->fab_type].offline(port); in bfa_fcs_lport_sm_online()
210 bfa_wc_down(&(port->fabric->stop_wc)); in bfa_fcs_lport_sm_online()
222 __port_action[port->fabric->fab_type].offline(port); in bfa_fcs_lport_sm_online()
268 bfa_wc_down(&(port->fabric->stop_wc)); in bfa_fcs_lport_sm_offline()
315 bfa_wc_down(&(port->fabric->stop_wc)); in bfa_fcs_lport_sm_stopping()
356 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_lport_aen_post()
363 aen_entry->aen_data.lport.vf_id = port->fabric->vf_id; in bfa_fcs_lport_aen_post()
397 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_ls_rjt()
431 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_send_fcgs_rjt()
470 if ((!bfa_fcs_fabric_is_switched(port->fabric)) && in bfa_fcs_lport_plogi()
481 bfa_lps_set_n2n_pid(port->fabric->lps, rx_fchs->d_id); in bfa_fcs_lport_plogi()
492 if ((!bfa_fcs_fabric_is_switched(port->fabric)) && in bfa_fcs_lport_plogi()
496 bfa_lps_set_n2n_pid(port->fabric->lps, rx_fchs->d_id); in bfa_fcs_lport_plogi()
576 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_echo()
633 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_rnid()
659 bfa_trc(port->fcs, port->fabric->oper_type); in bfa_fcs_lport_online_actions()
661 __port_action[port->fabric->fab_type].init(port); in bfa_fcs_lport_online_actions()
662 __port_action[port->fabric->fab_type].online(port); in bfa_fcs_lport_online_actions()
681 bfa_trc(port->fcs, port->fabric->oper_type); in bfa_fcs_lport_offline_actions()
683 __port_action[port->fabric->fab_type].offline(port); in bfa_fcs_lport_offline_actions()
686 if (bfa_sm_cmp_state(port->fabric, in bfa_fcs_lport_offline_actions()
689 "Logical port lost fabric connectivity: WWN = %s Role = %s\n", in bfa_fcs_lport_offline_actions()
741 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_abts_acc()
761 bfa_wc_down(&port->fabric->wc); in bfa_fcs_lport_deleted()
1020 * Called by fabric for base port when fabric login is complete.
1030 * Called by fabric for base port when fabric goes offline.
1040 * Called by fabric for base port and by vport for virtual ports
1050 * Called by fabric to delete base lport and associated resources.
1078 lport->fabric = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_lport_attach()
1081 lport->fabric->lps->bfa_tag; in bfa_fcs_lport_attach()
1089 * Called by fabric for base port or by vport for virtual ports.
1104 lport->fabric->vf_drv, in bfa_fcs_lport_init()
1144 if (port->fabric) { in bfa_fcs_lport_get_attr()
1145 port_attr->port_type = port->fabric->oper_type; in bfa_fcs_lport_get_attr()
1146 port_attr->loopback = bfa_sm_cmp_state(port->fabric, in bfa_fcs_lport_get_attr()
1149 bfa_sm_cmp_state(port->fabric, in bfa_fcs_lport_get_attr()
1162 port->fabric->lps->lp_mac; in bfa_fcs_lport_get_attr()
1175 * Called by port to initialize fabric services of the base port.
1242 bfa_lps_set_n2n_pid(port->fabric->lps, N2N_LOCAL_PID); in bfa_fcs_lport_n2n_online()
1891 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rhba()
2224 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rprt()
2545 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_fdmi_send_rpa()
2663 hba_attr->fabric_name = port->fabric->lps->pr_nwwn; in bfa_fcs_fdmi_get_hbaattr()
2748 port_attr->port_fabric_name = port->fabric->lps->pr_nwwn; in bfa_fcs_fdmi_get_portattr()
3154 port->fabric->lps->pr_nwwn); in bfa_fcs_lport_ms_send_gmal()
3156 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ms_send_gmal()
3223 /* copy IP Address to fabric */ in bfa_fcs_lport_ms_gmal_response()
3355 port->fabric->lps->pr_nwwn); in bfa_fcs_lport_ms_send_gfn()
3357 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ms_send_gfn()
3395 bfa_fcs_fabric_set_fabric_name(port->fabric, *gfn_resp); in bfa_fcs_lport_ms_gfn_response()
3438 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ms_send_plogi()
4188 * discovery with the fabric. Instead, we will retrieve the in bfa_fcs_lport_ns_sm_rff_id()
4403 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_plogi()
4499 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_rnn_id()
4578 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_rsnn_nn()
4676 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_rspn_id()
4750 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_rft_id()
4828 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_rff_id()
4879 * Query Fabric for FC4-Types Devices.
4911 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_send_gid_ft()
4974 * There may not have been any FC4 devices in the fabric in bfa_fcs_lport_ns_gid_ft_response()
5030 struct bfa_fcs_fabric_s *fabric = port->fabric; in bfa_fcs_lport_ns_process_gidft_pids() local
5045 if (gidft_entry->pid == fabric->bport.pid) in bfa_fcs_lport_ns_process_gidft_pids()
5053 list_for_each(qe, &fabric->vport_q) { in bfa_fcs_lport_ns_process_gidft_pids()
5201 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_ns_util_send_rspn_id()
5393 port->fabric->lps->brcd_switch, in bfa_fcs_lport_scn_send_scr()
5401 bfa_fcxp_send(fcxp, NULL, port->fabric->vf_id, port->lp_tag, BFA_FALSE, in bfa_fcs_lport_scn_send_scr()
5475 bfa_fcxp_send(fcxp, bfa_rport, port->fabric->vf_id, port->lp_tag, in bfa_fcs_lport_scn_send_ls_acc()
5541 struct bfa_fcs_fabric_s *fabric = port->fabric; in bfa_fcs_lport_scn_portid_rscn() local
5552 if (rpid == fabric->bport.pid) in bfa_fcs_lport_scn_portid_rscn()
5555 list_for_each(qe, &fabric->vport_q) { in bfa_fcs_lport_scn_portid_rscn()
5692 * If any of area, domain or fabric RSCN is received, do a fresh in bfa_fcs_lport_scn_process_rscn()
5708 return &fcs->fabric.bport; in bfa_fcs_get_base_port()
5897 bfa_trc(port->fcs, port->fabric->fabric_name); in bfa_fcs_lport_get_info()
5917 port->fabric->num_vports; in bfa_fcs_lport_get_info()
5968 #define __vport_fabric(__vp) ((__vp)->lport.fabric)
5969 #define __vport_vfid(__vp) ((__vp)->lport.fabric->vf_id)
5992 BFA_FCS_VPORT_SM_ONLINE = 5, /* fabric online */
5993 BFA_FCS_VPORT_SM_OFFLINE = 6, /* fabric offline event */
6002 BFA_FCS_VPORT_SM_FABRIC_MAX = 15, /* max vports on fabric */
6086 * Fabric is offline or not NPIV capable, stay in in bfa_fcs_vport_sm_created()
6102 * Ignore ONLINE/OFFLINE events from fabric in bfa_fcs_vport_sm_created()
6113 * Offline state - awaiting ONLINE event from fabric SM.
6156 * FDISC is sent and awaiting reply from fabric.
6305 * LOGO to fabric.
6331 * LOGO to fabric.
6383 * Lport cleanup is in progress since vport is being deleted. Fabric is
6412 * LOGO is sent to fabric. Vport stop is in progress. Lport stop cleanup
6438 * LOGO is sent to fabric. Vport delete is in progress. Lport delete cleanup
6479 struct bfad_s *bfad = (struct bfad_s *)port->fabric->fcs->bfad; in bfa_fcs_vport_aen_post()
6486 aen_entry->aen_data.lport.vf_id = port->fabric->vf_id; in bfa_fcs_vport_aen_post()
6554 * Called to send a logout to the fabric. Used when a V-Port is
6616 * Online notification from fabric SM.
6629 * Offline notification from fabric SM.
6639 * Cleanup notification from fabric SM on link timer expiry.
6648 * Stop notification from fabric SM. To be invoked from within FCS.
6657 * delete notification from fabric SM. To be invoked from within FCS.
6699 * FC_VF_ID_NULL to specify base fabric.
6714 if (bfa_fcs_lport_get_pwwn(&fcs->fabric.bport) == vport_cfg->pwwn) in bfa_fcs_vport_create()
6720 if (fcs->fabric.num_vports == in bfa_fcs_vport_create()
6749 * FC_VF_ID_NULL to specify base fabric.
6820 * Use this function to delete a vport object. Fabric object should
6870 struct bfa_fcs_fabric_s *fabric; in bfa_fcs_vport_lookup() local
6875 fabric = bfa_fcs_vf_lookup(fcs, vf_id); in bfa_fcs_vport_lookup()
6876 if (!fabric) { in bfa_fcs_vport_lookup()
6881 vport = bfa_fcs_fabric_vport_lookup(fabric, vpwwn); in bfa_fcs_vport_lookup()