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()
514 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
517 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
518 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
537 struct fcoe_ctlr *ctlr; in fcoe_fip_vlan_recv() local
540 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_vlan_recv()
541 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_vlan_recv()
706 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
712 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
745 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
748 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1126 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1197 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1340 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1348 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1349 lport = ctlr->lp; in fcoe_rcv()
1371 if (is_fip_mode(ctlr) && in fcoe_rcv()
1372 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1485 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_xmit() local
1501 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1565 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1566 if (ctlr->map_dest) in fcoe_xmit()
1569 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1570 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1610 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1631 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1632 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1796 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1813 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1825 ctlr->priority = prio; in fcoe_dcb_app_notification()
1849 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
1858 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
1859 lport = ctlr->lp; in fcoe_device_notification()
1895 fcoe_ctlr_device_delete(fcoe_ctlr_to_ctlr_dev(ctlr)); in fcoe_device_notification()
1908 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
1917 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
1919 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
1948 struct fcoe_ctlr *ctlr; in fcoe_disable() local
1959 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
1960 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
1961 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
1979 struct fcoe_ctlr *ctlr; in fcoe_enable() local
1993 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
1995 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
1996 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2015 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2016 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2040 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_ctlr_mode() local
2041 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_ctlr_mode()
2044 ctlr->mode != FIP_MODE_VN2VN) { in fcoe_ctlr_mode()
2048 } else if (ctlr->mode != FIP_MODE_FABRIC) { in fcoe_ctlr_mode()
2066 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2079 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2080 lport = ctlr->lp; in fcoe_destroy()
2097 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2108 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2109 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2145 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2176 ctlr->priority = ctlr_prio; in fcoe_dcb_create()
2202 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2221 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2222 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2238 ctlr->lp = lport; in _fcoe_create()
2267 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2359 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2360 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2362 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2363 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2366 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2367 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2402 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2406 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2407 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2521 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2532 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2533 port = lport_priv(ctlr->lp); in fcoe_exit()
2809 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2810 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2832 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2835 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()