Lines Matching refs:ctlr
143 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_fcf_get_vlan_id() local
144 struct bnx2fc_interface *fcoe = fcoe_ctlr_priv(ctlr); in bnx2fc_fcf_get_vlan_id()
271 struct fcoe_ctlr *ctlr; in bnx2fc_xmit() local
284 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_xmit()
297 if (!ctlr->sel_fcf) { in bnx2fc_xmit()
302 if (fcoe_ctlr_els_send(ctlr, lport, skb)) in bnx2fc_xmit()
375 if (ctlr->map_dest) in bnx2fc_xmit()
379 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in bnx2fc_xmit()
381 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in bnx2fc_xmit()
382 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in bnx2fc_xmit()
432 struct fcoe_ctlr *ctlr; in bnx2fc_rcv() local
439 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_rcv()
440 lport = ctlr->lp; in bnx2fc_rcv()
524 struct fcoe_ctlr *ctlr; in bnx2fc_recv_frame() local
562 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_recv_frame()
582 if (ctlr->state) { in bnx2fc_recv_frame()
583 if (!ether_addr_equal(mac, ctlr->dest_addr)) { in bnx2fc_recv_frame()
585 mac, ctlr->dest_addr); in bnx2fc_recv_frame()
803 struct fcoe_ctlr *ctlr; in bnx2fc_net_config() local
809 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_net_config()
828 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in bnx2fc_net_config()
834 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in bnx2fc_net_config()
872 struct fcoe_ctlr *ctlr; in bnx2fc_indicate_netevent() local
925 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_indicate_netevent()
926 lport = ctlr->lp; in bnx2fc_indicate_netevent()
932 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_indicate_netevent()
949 fcoe_ctlr_link_up(ctlr); in bnx2fc_indicate_netevent()
951 } else if (fcoe_ctlr_link_down(ctlr)) { in bnx2fc_indicate_netevent()
1065 struct fcoe_ctlr *ctlr; in bnx2fc_fip_recv() local
1068 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_fip_recv()
1069 fcoe_ctlr_recv(ctlr, skb); in bnx2fc_fip_recv()
1243 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_setup() local
1258 memcpy(ctlr->ctl_src_addr, ha->addr, in bnx2fc_interface_setup()
1315 struct fcoe_ctlr *ctlr; in bnx2fc_interface_release() local
1321 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_release()
1322 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_interface_release()
1327 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_release()
1447 struct fcoe_ctlr *ctlr; in bnx2fc_interface_create() local
1458 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_interface_create()
1459 ctlr->cdev = ctlr_dev; in bnx2fc_interface_create()
1460 interface = fcoe_ctlr_priv(ctlr); in bnx2fc_interface_create()
1467 fcoe_ctlr_init(ctlr, fip_mode); in bnx2fc_interface_create()
1468 ctlr->send = bnx2fc_fip_send; in bnx2fc_interface_create()
1469 ctlr->update_mac = bnx2fc_update_src_mac; in bnx2fc_interface_create()
1470 ctlr->get_src_addr = bnx2fc_get_src_mac; in bnx2fc_interface_create()
1477 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_create()
1497 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_if_create() local
1508 BNX2FC_HBA_DBG(ctlr->lp, "Unable to alloc blport\n"); in bnx2fc_if_create()
1608 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_cleanup() local
1609 struct fc_lport *lport = ctlr->lp; in bnx2fc_interface_cleanup()
1649 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in __bnx2fc_destroy() local
1650 struct fc_lport *lport = ctlr->lp; in __bnx2fc_destroy()
1673 struct fcoe_ctlr *ctlr; in bnx2fc_destroy() local
1680 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_destroy()
1681 if (!interface || !ctlr->lp) { in bnx2fc_destroy()
1841 struct fcoe_ctlr *ctlr; in bnx2fc_ulp_start() local
1853 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_ulp_start()
1854 lport = ctlr->lp; in bnx2fc_ulp_start()
1874 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_stop() local
1881 lport = ctlr->lp; in bnx2fc_stop()
1890 fcoe_ctlr_link_down(ctlr); in bnx2fc_stop()
2001 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_start_disc() local
2012 lport = ctlr->lp; in bnx2fc_start_disc()
2017 fcoe_ctlr_link_up(ctlr); in bnx2fc_start_disc()
2023 while (!ctlr->sel_fcf) { in bnx2fc_start_disc()
2087 static int __bnx2fc_disable(struct fcoe_ctlr *ctlr) in __bnx2fc_disable() argument
2089 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_disable()
2092 if (!ctlr->lp) { in __bnx2fc_disable()
2097 fcoe_ctlr_link_down(ctlr); in __bnx2fc_disable()
2098 fcoe_clean_pending_queue(ctlr->lp); in __bnx2fc_disable()
2110 struct fcoe_ctlr *ctlr; in bnx2fc_disable() local
2117 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_disable()
2123 rc = __bnx2fc_disable(ctlr); in bnx2fc_disable()
2182 static int __bnx2fc_enable(struct fcoe_ctlr *ctlr) in __bnx2fc_enable() argument
2184 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_enable()
2190 if (!ctlr->lp) { in __bnx2fc_enable()
2193 } else if (!bnx2fc_link_ok(ctlr->lp)) { in __bnx2fc_enable()
2194 fcoe_ctlr_link_up(ctlr); in __bnx2fc_enable()
2201 lport = ctlr->lp; in __bnx2fc_enable()
2238 struct fcoe_ctlr *ctlr; in bnx2fc_enable() local
2245 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_enable()
2250 rc = __bnx2fc_enable(ctlr); in bnx2fc_enable()
2270 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in bnx2fc_ctlr_enabled() local
2274 return __bnx2fc_enable(ctlr); in bnx2fc_ctlr_enabled()
2276 return __bnx2fc_disable(ctlr); in bnx2fc_ctlr_enabled()
2308 struct fcoe_ctlr *ctlr; in _bnx2fc_create() local
2376 ctlr = bnx2fc_to_ctlr(interface); in _bnx2fc_create()
2377 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in _bnx2fc_create()
2403 ctlr->lp = lport; in _bnx2fc_create()
2412 fcoe_ctlr_link_up(ctlr); in _bnx2fc_create()