Lines Matching refs:ctlr

383 	struct fcoe_ctlr *ctlr;  in fcoe_interface_create()  local
404 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
405 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
406 fcoe = fcoe_ctlr_priv(ctlr); in fcoe_interface_create()
413 fcoe_ctlr_init(ctlr, fip_mode); in fcoe_interface_create()
414 ctlr->send = fcoe_fip_send; in fcoe_interface_create()
415 ctlr->update_mac = fcoe_update_src_mac; in fcoe_interface_create()
416 ctlr->get_src_addr = fcoe_get_src_mac; in fcoe_interface_create()
420 fcoe_ctlr_destroy(ctlr); in fcoe_interface_create()
513 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
516 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
517 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
536 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local
539 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_vlan_recv()
540 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_vlan_recv()
705 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
711 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
744 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
747 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1125 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1196 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1339 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1347 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1348 lport = ctlr->lp; in fcoe_rcv()
1370 if (is_fip_mode(ctlr) && in fcoe_rcv()
1371 !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
1498 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1562 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1563 if (ctlr->map_dest) in fcoe_xmit()
1566 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1567 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1605 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1625 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1626 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1786 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1803 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1815 ctlr->priority = prio; in fcoe_dcb_app_notification()
1839 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
1847 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
1848 lport = ctlr->lp; in fcoe_device_notification()
1884 fcoe_ctlr_device_delete(fcoe_ctlr_to_ctlr_dev(ctlr)); in fcoe_device_notification()
1896 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
1905 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
1907 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
1934 struct fcoe_ctlr *ctlr; in fcoe_disable() local
1945 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
1946 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
1947 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
1965 struct fcoe_ctlr *ctlr; in fcoe_enable() local
1979 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
1981 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
1982 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2001 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2002 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2026 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_mode() local
2027 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_ctlr_mode()
2030 ctlr->mode != FIP_MODE_VN2VN) { in fcoe_ctlr_mode()
2034 } else if (ctlr->mode != FIP_MODE_FABRIC) { in fcoe_ctlr_mode()
2052 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2065 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2066 lport = ctlr->lp; in fcoe_destroy()
2083 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2094 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2095 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2131 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2162 ctlr->priority = ctlr_prio; in fcoe_dcb_create()
2188 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2207 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2208 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2224 ctlr->lp = lport; in _fcoe_create()
2253 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2345 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2346 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2348 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2349 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2352 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2353 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2388 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2392 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2393 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2508 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2519 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2520 port = lport_priv(ctlr->lp); in fcoe_exit()
2796 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2797 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2819 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2822 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()