Lines Matching refs:ctlr
389 struct fcoe_ctlr *ctlr; in fcoe_interface_create() local
410 ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_interface_create()
411 ctlr->cdev = ctlr_dev; in fcoe_interface_create()
412 fcoe = fcoe_ctlr_priv(ctlr); in fcoe_interface_create()
419 fcoe_ctlr_init(ctlr, fip_mode); in fcoe_interface_create()
420 ctlr->send = fcoe_fip_send; in fcoe_interface_create()
421 ctlr->update_mac = fcoe_update_src_mac; in fcoe_interface_create()
422 ctlr->get_src_addr = fcoe_get_src_mac; in fcoe_interface_create()
426 fcoe_ctlr_destroy(ctlr); in fcoe_interface_create()
523 struct fcoe_ctlr *ctlr; in fcoe_fip_recv() local
526 ctlr = fcoe_to_ctlr(fcoe); in fcoe_fip_recv()
527 fcoe_ctlr_recv(ctlr, skb); in fcoe_fip_recv()
677 struct fcoe_ctlr *ctlr; in fcoe_netdev_config() local
683 ctlr = fcoe_to_ctlr(fcoe); in fcoe_netdev_config()
710 wwnn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, 1, 0); in fcoe_netdev_config()
713 wwpn = fcoe_wwn_from_mac(ctlr->ctl_src_addr, in fcoe_netdev_config()
1094 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_if_create() local
1165 rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1); in fcoe_if_create()
1433 struct fcoe_ctlr *ctlr; in fcoe_rcv() local
1441 ctlr = fcoe_to_ctlr(fcoe); in fcoe_rcv()
1442 lport = ctlr->lp; in fcoe_rcv()
1464 if (is_fip_mode(ctlr) && in fcoe_rcv()
1465 !ether_addr_equal(eh->h_source, ctlr->dest_addr)) { in fcoe_rcv()
1599 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_xmit() local
1615 fcoe_ctlr_els_send(ctlr, lport, skb)) in fcoe_xmit()
1680 memcpy(eh->h_dest, ctlr->dest_addr, ETH_ALEN); in fcoe_xmit()
1681 if (ctlr->map_dest) in fcoe_xmit()
1684 if (unlikely(ctlr->flogi_oxid != FC_XID_UNKNOWN)) in fcoe_xmit()
1685 memcpy(eh->h_source, ctlr->ctl_src_addr, ETH_ALEN); in fcoe_xmit()
1734 struct fcoe_ctlr *ctlr; in fcoe_filter_frames() local
1756 ctlr = fcoe_to_ctlr(fcoe); in fcoe_filter_frames()
1757 if (is_fip_mode(ctlr) && fc_frame_payload_op(fp) == ELS_LOGO && in fcoe_filter_frames()
1936 struct fcoe_ctlr *ctlr; in fcoe_dcb_app_notification() local
1953 ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_app_notification()
1965 ctlr->priority = prio; in fcoe_dcb_app_notification()
1989 struct fcoe_ctlr *ctlr; in fcoe_device_notification() local
1999 ctlr = fcoe_to_ctlr(fcoe); in fcoe_device_notification()
2000 lport = ctlr->lp; in fcoe_device_notification()
2029 port = lport_priv(ctlr->lp); in fcoe_device_notification()
2043 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_device_notification()
2052 fcoe_ctlr_link_up(ctlr); in fcoe_device_notification()
2054 } else if (fcoe_ctlr_link_down(ctlr)) { in fcoe_device_notification()
2083 struct fcoe_ctlr *ctlr; in fcoe_disable() local
2094 ctlr = fcoe_to_ctlr(fcoe); in fcoe_disable()
2095 fcoe_ctlr_link_down(ctlr); in fcoe_disable()
2096 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable()
2114 struct fcoe_ctlr *ctlr; in fcoe_enable() local
2128 ctlr = fcoe_to_ctlr(fcoe); in fcoe_enable()
2130 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable()
2131 fcoe_ctlr_link_up(ctlr); in fcoe_enable()
2150 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(cdev); in fcoe_ctlr_enabled() local
2151 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled()
2175 struct fcoe_ctlr *ctlr; in fcoe_destroy() local
2188 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy()
2189 lport = ctlr->lp; in fcoe_destroy()
2206 struct fcoe_ctlr *ctlr; in fcoe_destroy_work() local
2237 ctlr = fcoe_to_ctlr(fcoe); in fcoe_destroy_work()
2238 cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_destroy_work()
2274 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_dcb_create() local
2297 ctlr->priority = ffs(fup) ? ffs(fup) - 1 : fcoe->priority; in fcoe_dcb_create()
2325 struct fcoe_ctlr *ctlr; in _fcoe_create() local
2344 ctlr = fcoe_to_ctlr(fcoe); in _fcoe_create()
2345 ctlr_dev = fcoe_ctlr_to_ctlr_dev(ctlr); in _fcoe_create()
2359 ctlr->lp = lport; in _fcoe_create()
2388 fcoe_ctlr_link_up(ctlr); in _fcoe_create()
2497 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_reset() local
2498 struct fcoe_ctlr_device *cdev = fcoe_ctlr_to_ctlr_dev(ctlr); in fcoe_reset()
2500 fcoe_ctlr_link_down(ctlr); in fcoe_reset()
2501 fcoe_clean_pending_queue(ctlr->lp); in fcoe_reset()
2504 !fcoe_link_ok(ctlr->lp)) in fcoe_reset()
2505 fcoe_ctlr_link_up(ctlr); in fcoe_reset()
2540 struct fcoe_ctlr *ctlr; in fcoe_hostlist_lookup() local
2544 ctlr = fcoe_to_ctlr(fcoe); in fcoe_hostlist_lookup()
2545 return (fcoe) ? ctlr->lp : NULL; in fcoe_hostlist_lookup()
2675 struct fcoe_ctlr *ctlr; in fcoe_exit() local
2686 ctlr = fcoe_to_ctlr(fcoe); in fcoe_exit()
2687 port = lport_priv(ctlr->lp); in fcoe_exit()
2936 struct fcoe_ctlr *ctlr = fcoe_ctlr_device_priv(ctlr_dev); in fcoe_fcf_get_vlan_id() local
2937 struct fcoe_interface *fcoe = fcoe_ctlr_priv(ctlr); in fcoe_fcf_get_vlan_id()
2959 struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); in fcoe_set_port_id() local
2962 fcoe_ctlr_recv_flogi(ctlr, lport, fp); in fcoe_set_port_id()