Lines Matching refs:ctlr
390 struct fcoe_ctlr *ctlr; in fcoe_interface_create() local
411 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
412 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
413 fcoe = fcoe_ctlr_priv(ctlr); in fcoe_interface_create()
420 fcoe_ctlr_init(ctlr, fip_mode); in fcoe_interface_create()
421 ctlr->send = fcoe_fip_send; in fcoe_interface_create()
422 ctlr->update_mac = fcoe_update_src_mac; in fcoe_interface_create()
423 ctlr->get_src_addr = fcoe_get_src_mac; in fcoe_interface_create()
427 fcoe_ctlr_destroy(ctlr); in fcoe_interface_create()
524 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
527 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
528 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
678 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
684 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
711 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
714 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1095 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1166 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1434 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1442 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1443 lport = ctlr->lp; in fcoe_rcv()
1465 if (is_fip_mode(ctlr) && in fcoe_rcv()
1466 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1600 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_xmit() local
1616 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1681 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1682 if (ctlr->map_dest) in fcoe_xmit()
1685 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1686 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1735 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1757 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1758 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1938 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1955 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1967 ctlr->priority = prio; in fcoe_dcb_app_notification()
1991 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
2001 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
2002 lport = ctlr->lp; in fcoe_device_notification()
2031 port = lport_priv(ctlr->lp); in fcoe_device_notification()
2045 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
2054 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
2056 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
2085 struct fcoe_ctlr *ctlr; in fcoe_disable() local
2096 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
2097 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
2098 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
2116 struct fcoe_ctlr *ctlr; in fcoe_enable() local
2130 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
2132 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
2133 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2152 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2153 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2177 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2190 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2191 lport = ctlr->lp; in fcoe_destroy()
2208 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2239 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2240 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2276 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2299 ctlr->priority = ffs(fup) ? ffs(fup) - 1 : fcoe->priority; in fcoe_dcb_create()
2327 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2346 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2347 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2361 ctlr->lp = lport; in _fcoe_create()
2390 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2499 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2500 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2502 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2503 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2506 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2507 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2542 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2546 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2547 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2677 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2688 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2689 port = lport_priv(ctlr->lp); in fcoe_exit()
2938 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2939 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2961 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2964 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()