Lines Matching refs:ctlr

396 	struct fcoe_ctlr *ctlr;  in fcoe_interface_create()  local
417 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
418 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
419 fcoe = fcoe_ctlr_priv(ctlr); in fcoe_interface_create()
426 fcoe_ctlr_init(ctlr, fip_mode); in fcoe_interface_create()
427 ctlr->send = fcoe_fip_send; in fcoe_interface_create()
428 ctlr->update_mac = fcoe_update_src_mac; in fcoe_interface_create()
429 ctlr->get_src_addr = fcoe_get_src_mac; in fcoe_interface_create()
433 fcoe_ctlr_destroy(ctlr); in fcoe_interface_create()
527 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
530 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
531 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
550 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local
553 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_vlan_recv()
554 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_vlan_recv()
719 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
725 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
758 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
761 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1139 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1210 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1347 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1355 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1356 lport = ctlr->lp; in fcoe_rcv()
1378 if (is_fip_mode(ctlr) && in fcoe_rcv()
1379 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1492 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_xmit() local
1508 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1573 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1574 if (ctlr->map_dest) in fcoe_xmit()
1577 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1578 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1618 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1640 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1641 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1807 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1824 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1836 ctlr->priority = prio; in fcoe_dcb_app_notification()
1860 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
1870 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
1871 lport = ctlr->lp; in fcoe_device_notification()
1900 port = lport_priv(ctlr->lp); in fcoe_device_notification()
1908 fcoe_ctlr_device_delete(fcoe_ctlr_to_ctlr_dev(ctlr)); in fcoe_device_notification()
1921 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
1930 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
1932 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
1961 struct fcoe_ctlr *ctlr; in fcoe_disable() local
1972 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
1973 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
1974 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
1992 struct fcoe_ctlr *ctlr; in fcoe_enable() local
2006 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
2008 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
2009 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2028 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2029 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2053 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_mode() local
2054 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_ctlr_mode()
2057 ctlr->mode != FIP_MODE_VN2VN) { in fcoe_ctlr_mode()
2061 } else if (ctlr->mode != FIP_MODE_FABRIC) { in fcoe_ctlr_mode()
2079 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2092 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2093 lport = ctlr->lp; in fcoe_destroy()
2110 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2121 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2122 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2160 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2191 ctlr->priority = ctlr_prio; in fcoe_dcb_create()
2217 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2236 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2237 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2253 ctlr->lp = lport; in _fcoe_create()
2282 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2374 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2375 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2377 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2378 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2381 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2382 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2417 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2421 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2422 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2536 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2547 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2548 port = lport_priv(ctlr->lp); in fcoe_exit()
2824 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2825 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2847 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2850 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()