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
868 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_indicate_netevent()
869 lport = ctlr->lp; in bnx2fc_indicate_netevent()
875 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_indicate_netevent()
892 fcoe_ctlr_link_up(ctlr); in bnx2fc_indicate_netevent()
894 } else if (fcoe_ctlr_link_down(ctlr)) { in bnx2fc_indicate_netevent()
1009 struct fcoe_ctlr *ctlr; in bnx2fc_fip_recv() local
1012 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_fip_recv()
1013 fcoe_ctlr_recv(ctlr, skb); in bnx2fc_fip_recv()
1171 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_setup() local
1186 memcpy(ctlr->ctl_src_addr, ha->addr, in bnx2fc_interface_setup()
1243 struct fcoe_ctlr *ctlr; in bnx2fc_interface_release() local
1249 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_release()
1250 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in bnx2fc_interface_release()
1255 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_release()
1373 struct fcoe_ctlr *ctlr; in bnx2fc_interface_create() local
1384 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in bnx2fc_interface_create()
1385 ctlr->cdev = ctlr_dev; in bnx2fc_interface_create()
1386 interface = fcoe_ctlr_priv(ctlr); in bnx2fc_interface_create()
1393 fcoe_ctlr_init(ctlr, fip_mode); in bnx2fc_interface_create()
1394 ctlr->send = bnx2fc_fip_send; in bnx2fc_interface_create()
1395 ctlr->update_mac = bnx2fc_update_src_mac; in bnx2fc_interface_create()
1396 ctlr->get_src_addr = bnx2fc_get_src_mac; in bnx2fc_interface_create()
1403 fcoe_ctlr_destroy(ctlr); in bnx2fc_interface_create()
1423 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_if_create() local
1434 BNX2FC_HBA_DBG(ctlr->lp, "Unable to alloc blport\n"); in bnx2fc_if_create()
1531 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_interface_cleanup() local
1532 struct fc_lport *lport = ctlr->lp; in bnx2fc_interface_cleanup()
1572 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in __bnx2fc_destroy() local
1573 struct fc_lport *lport = ctlr->lp; in __bnx2fc_destroy()
1597 struct fcoe_ctlr *ctlr; in bnx2fc_destroy() local
1604 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_destroy()
1605 if (!interface || !ctlr->lp) { in bnx2fc_destroy()
1765 struct fcoe_ctlr *ctlr; in bnx2fc_ulp_start() local
1777 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_ulp_start()
1778 lport = ctlr->lp; in bnx2fc_ulp_start()
1798 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_stop() local
1805 lport = ctlr->lp; in bnx2fc_stop()
1814 fcoe_ctlr_link_down(ctlr); in bnx2fc_stop()
1926 struct fcoe_ctlr *ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_start_disc() local
1937 lport = ctlr->lp; in bnx2fc_start_disc()
1942 fcoe_ctlr_link_up(ctlr); in bnx2fc_start_disc()
1948 while (!ctlr->sel_fcf) { in bnx2fc_start_disc()
2010 static int __bnx2fc_disable(struct fcoe_ctlr *ctlr) in __bnx2fc_disable() argument
2012 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_disable()
2015 if (!ctlr->lp) { in __bnx2fc_disable()
2020 fcoe_ctlr_link_down(ctlr); in __bnx2fc_disable()
2021 fcoe_clean_pending_queue(ctlr->lp); in __bnx2fc_disable()
2033 struct fcoe_ctlr *ctlr; in bnx2fc_disable() local
2040 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_disable()
2046 rc = __bnx2fc_disable(ctlr); in bnx2fc_disable()
2090 static int __bnx2fc_enable(struct fcoe_ctlr *ctlr) in __bnx2fc_enable() argument
2092 struct bnx2fc_interface *interface = fcoe_ctlr_priv(ctlr); in __bnx2fc_enable()
2098 if (!ctlr->lp) { in __bnx2fc_enable()
2101 } else if (!bnx2fc_link_ok(ctlr->lp)) { in __bnx2fc_enable()
2102 fcoe_ctlr_link_up(ctlr); in __bnx2fc_enable()
2109 lport = ctlr->lp; in __bnx2fc_enable()
2146 struct fcoe_ctlr *ctlr; in bnx2fc_enable() local
2153 ctlr = bnx2fc_to_ctlr(interface); in bnx2fc_enable()
2158 rc = __bnx2fc_enable(ctlr); in bnx2fc_enable()
2178 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in bnx2fc_ctlr_enabled() local
2182 return __bnx2fc_enable(ctlr); in bnx2fc_ctlr_enabled()
2184 return __bnx2fc_disable(ctlr); in bnx2fc_ctlr_enabled()
2216 struct fcoe_ctlr *ctlr; in _bnx2fc_create() local
2284 ctlr = bnx2fc_to_ctlr(interface); in _bnx2fc_create()
2285 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in _bnx2fc_create()
2310 ctlr->lp = lport; in _bnx2fc_create()
2319 fcoe_ctlr_link_up(ctlr); in _bnx2fc_create()