Lines Matching refs:ctlr
118 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_fcf_get_vlan_id() local
119 struct bnx2fc_interface *fcoe = fcoe_ctlr_priv(ctlr); in bnx2fc_fcf_get_vlan_id()
250 struct fcoe_ctlr *ctlr; in bnx2fc_xmit() local
263 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_xmit()
276 if (!ctlr->sel_fcf) { in bnx2fc_xmit()
281 if (fcoe_ctlr_els_send(ctlr, lport, skb)) in bnx2fc_xmit()
354 if (ctlr->map_dest) in bnx2fc_xmit()
358 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in bnx2fc_xmit()
360 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in bnx2fc_xmit()
361 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in bnx2fc_xmit()
411 struct fcoe_ctlr *ctlr; in bnx2fc_rcv() local
420 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_rcv()
421 lport = ctlr->lp; in bnx2fc_rcv()
746 struct fcoe_ctlr *ctlr; in bnx2fc_net_config() local
752 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_net_config()
771 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in bnx2fc_net_config()
777 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in bnx2fc_net_config()
815 struct fcoe_ctlr *ctlr; in bnx2fc_indicate_netevent() local
869 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_indicate_netevent()
870 lport = ctlr->lp; in bnx2fc_indicate_netevent()
876 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_indicate_netevent()
893 fcoe_ctlr_link_up(ctlr); in bnx2fc_indicate_netevent()
895 } else if (fcoe_ctlr_link_down(ctlr)) { in bnx2fc_indicate_netevent()
1010 struct fcoe_ctlr *ctlr; in bnx2fc_fip_recv() local
1013 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_fip_recv()
1014 fcoe_ctlr_recv(ctlr, skb); in bnx2fc_fip_recv()
1172 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_setup() local
1187 memcpy(ctlr->ctl_src_addr, ha->addr, in bnx2fc_interface_setup()
1244 struct fcoe_ctlr *ctlr; in bnx2fc_interface_release() local
1250 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_release()
1251 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_interface_release()
1256 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_release()
1374 struct fcoe_ctlr *ctlr; in bnx2fc_interface_create() local
1385 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_interface_create()
1386 ctlr->cdev = ctlr_dev; in bnx2fc_interface_create()
1387 interface = fcoe_ctlr_priv(ctlr); in bnx2fc_interface_create()
1394 fcoe_ctlr_init(ctlr, fip_mode); in bnx2fc_interface_create()
1395 ctlr->send = bnx2fc_fip_send; in bnx2fc_interface_create()
1396 ctlr->update_mac = bnx2fc_update_src_mac; in bnx2fc_interface_create()
1397 ctlr->get_src_addr = bnx2fc_get_src_mac; in bnx2fc_interface_create()
1404 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_create()
1424 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_if_create() local
1435 BNX2FC_HBA_DBG(ctlr->lp, "Unable to alloc blport\n"); in bnx2fc_if_create()
1532 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_cleanup() local
1533 struct fc_lport *lport = ctlr->lp; in bnx2fc_interface_cleanup()
1573 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in __bnx2fc_destroy() local
1574 struct fc_lport *lport = ctlr->lp; in __bnx2fc_destroy()
1598 struct fcoe_ctlr *ctlr; in bnx2fc_destroy() local
1605 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_destroy()
1606 if (!interface || !ctlr->lp) { in bnx2fc_destroy()
1766 struct fcoe_ctlr *ctlr; in bnx2fc_ulp_start() local
1778 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_ulp_start()
1779 lport = ctlr->lp; in bnx2fc_ulp_start()
1799 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_stop() local
1806 lport = ctlr->lp; in bnx2fc_stop()
1815 fcoe_ctlr_link_down(ctlr); in bnx2fc_stop()
1927 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_start_disc() local
1938 lport = ctlr->lp; in bnx2fc_start_disc()
1943 fcoe_ctlr_link_up(ctlr); in bnx2fc_start_disc()
1949 while (!ctlr->sel_fcf) { in bnx2fc_start_disc()
2011 static int __bnx2fc_disable(struct fcoe_ctlr *ctlr) in __bnx2fc_disable() argument
2013 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_disable()
2016 if (!ctlr->lp) { in __bnx2fc_disable()
2021 fcoe_ctlr_link_down(ctlr); in __bnx2fc_disable()
2022 fcoe_clean_pending_queue(ctlr->lp); in __bnx2fc_disable()
2034 struct fcoe_ctlr *ctlr; in bnx2fc_disable() local
2041 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_disable()
2047 rc = __bnx2fc_disable(ctlr); in bnx2fc_disable()
2054 static int __bnx2fc_enable(struct fcoe_ctlr *ctlr) in __bnx2fc_enable() argument
2056 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_enable()
2059 if (!ctlr->lp) { in __bnx2fc_enable()
2062 } else if (!bnx2fc_link_ok(ctlr->lp)) { in __bnx2fc_enable()
2063 fcoe_ctlr_link_up(ctlr); in __bnx2fc_enable()
2076 struct fcoe_ctlr *ctlr; in bnx2fc_enable() local
2083 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_enable()
2088 rc = __bnx2fc_enable(ctlr); in bnx2fc_enable()
2108 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in bnx2fc_ctlr_enabled() local
2112 return __bnx2fc_enable(ctlr); in bnx2fc_ctlr_enabled()
2114 return __bnx2fc_disable(ctlr); in bnx2fc_ctlr_enabled()
2146 struct fcoe_ctlr *ctlr; in _bnx2fc_create() local
2214 ctlr = bnx2fc_to_ctlr(interface); in _bnx2fc_create()
2215 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in _bnx2fc_create()
2240 ctlr->lp = lport; in _bnx2fc_create()
2249 fcoe_ctlr_link_up(ctlr); in _bnx2fc_create()