Lines Matching refs:ctlr
382 struct fcoe_ctlr *ctlr; in fcoe_interface_create() local
403 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
404 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
405 fcoe = fcoe_ctlr_priv(ctlr); in fcoe_interface_create()
412 fcoe_ctlr_init(ctlr, fip_mode); in fcoe_interface_create()
413 ctlr->send = fcoe_fip_send; in fcoe_interface_create()
414 ctlr->update_mac = fcoe_update_src_mac; in fcoe_interface_create()
415 ctlr->get_src_addr = fcoe_get_src_mac; in fcoe_interface_create()
419 fcoe_ctlr_destroy(ctlr); in fcoe_interface_create()
512 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
515 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
516 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
535 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local
538 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_vlan_recv()
539 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_vlan_recv()
704 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
710 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
743 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
746 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1124 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1195 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1338 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1346 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1347 lport = ctlr->lp; in fcoe_rcv()
1369 if (is_fip_mode(ctlr) && in fcoe_rcv()
1370 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1483 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_xmit() local
1499 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1563 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1564 if (ctlr->map_dest) in fcoe_xmit()
1567 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1568 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1608 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1629 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1630 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1794 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1811 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1823 ctlr->priority = prio; in fcoe_dcb_app_notification()
1847 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
1856 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
1857 lport = ctlr->lp; in fcoe_device_notification()
1893 fcoe_ctlr_device_delete(fcoe_ctlr_to_ctlr_dev(ctlr)); in fcoe_device_notification()
1905 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
1914 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
1916 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
1945 struct fcoe_ctlr *ctlr; in fcoe_disable() local
1956 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
1957 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
1958 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
1976 struct fcoe_ctlr *ctlr; in fcoe_enable() local
1990 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
1992 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
1993 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2012 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2013 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2037 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_mode() local
2038 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_ctlr_mode()
2041 ctlr->mode != FIP_MODE_VN2VN) { in fcoe_ctlr_mode()
2045 } else if (ctlr->mode != FIP_MODE_FABRIC) { in fcoe_ctlr_mode()
2063 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2076 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2077 lport = ctlr->lp; in fcoe_destroy()
2094 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2105 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2106 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2142 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2173 ctlr->priority = ctlr_prio; in fcoe_dcb_create()
2199 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2218 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2219 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2235 ctlr->lp = lport; in _fcoe_create()
2264 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2356 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2357 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2359 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2360 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2363 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2364 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2399 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2403 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2404 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2518 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2529 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2530 port = lport_priv(ctlr->lp); in fcoe_exit()
2806 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2807 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2829 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2832 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()