Lines Matching refs:api
20 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_rx() local
21 net_if_get_device(iface)->api; in eth_stats_update_bytes_rx()
24 if (!api->get_stats) { in eth_stats_update_bytes_rx()
28 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_rx()
39 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_bytes_tx() local
40 net_if_get_device(iface)->api; in eth_stats_update_bytes_tx()
43 if (!api->get_stats) { in eth_stats_update_bytes_tx()
47 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_bytes_tx()
57 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_pkts_rx() local
58 net_if_get_device(iface)->api; in eth_stats_update_pkts_rx()
61 if (!api->get_stats) { in eth_stats_update_pkts_rx()
65 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_pkts_rx()
75 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_pkts_tx() local
76 net_if_get_device(iface)->api; in eth_stats_update_pkts_tx()
79 if (!api->get_stats) { in eth_stats_update_pkts_tx()
83 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_pkts_tx()
93 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_broadcast_rx() local
94 net_if_get_device(iface)->api; in eth_stats_update_broadcast_rx()
97 if (!api->get_stats) { in eth_stats_update_broadcast_rx()
101 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_broadcast_rx()
111 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_broadcast_tx() local
112 net_if_get_device(iface)->api; in eth_stats_update_broadcast_tx()
115 if (!api->get_stats) { in eth_stats_update_broadcast_tx()
119 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_broadcast_tx()
129 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_multicast_rx() local
130 net_if_get_device(iface)->api; in eth_stats_update_multicast_rx()
133 if (!api->get_stats) { in eth_stats_update_multicast_rx()
137 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_multicast_rx()
147 const struct ethernet_api *api = (const struct ethernet_api *) in eth_stats_update_multicast_tx() local
148 net_if_get_device(iface)->api; in eth_stats_update_multicast_tx()
151 if (!api->get_stats) { in eth_stats_update_multicast_tx()
155 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_multicast_tx()
167 const struct ethernet_api *api; in eth_stats_update_errors_rx() local
173 api = ((const struct ethernet_api *) in eth_stats_update_errors_rx()
174 net_if_get_device(iface)->api); in eth_stats_update_errors_rx()
176 if (!api->get_stats) { in eth_stats_update_errors_rx()
180 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_errors_rx()
191 const struct ethernet_api *api = ((const struct ethernet_api *) in eth_stats_update_errors_tx() local
192 net_if_get_device(iface)->api); in eth_stats_update_errors_tx()
194 if (!api->get_stats) { in eth_stats_update_errors_tx()
198 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_errors_tx()
209 const struct ethernet_api *api = ((const struct ethernet_api *) in eth_stats_update_unknown_protocol() local
210 net_if_get_device(iface)->api); in eth_stats_update_unknown_protocol()
212 if (!api->get_stats) { in eth_stats_update_unknown_protocol()
216 stats = api->get_stats(net_if_get_device(iface)); in eth_stats_update_unknown_protocol()