Lines Matching refs:api
219 const struct ethernet_api *api = dev->api; in ethernet_mcast_monitor_cb() local
230 if (!api || !api->set_config) { in ethernet_mcast_monitor_cb()
249 api->set_config(dev, ETHERNET_CONFIG_TYPE_FILTER, &cfg); in ethernet_mcast_monitor_cb()
687 const struct ethernet_api *api = net_if_get_device(iface)->api; in ethernet_send() local
693 if (!api) { in ethernet_send()
698 if (!api->send) { in ethernet_send()
804 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in ethernet_send()
840 net_if_get_device(iface)->api; in ethernet_enable()
942 const struct ethernet_api *api = dev->api; in net_eth_get_phy() local
944 if (!api) { in net_eth_get_phy()
952 if (!api->get_phy) { in net_eth_get_phy()
956 return api->get_phy(net_if_get_device(iface)); in net_eth_get_phy()
963 const struct ethernet_api *api = dev->api; in net_eth_get_ptp_clock() local
965 if (!api) { in net_eth_get_ptp_clock()
977 if (!api->get_ptp_clock) { in net_eth_get_ptp_clock()
981 return api->get_ptp_clock(net_if_get_device(iface)); in net_eth_get_ptp_clock()