Lines Matching refs:api
20 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_recv() local
22 if (api == NULL) { in dummy_recv()
26 if (api->recv == NULL) { in dummy_recv()
30 return api->recv(iface, pkt); in dummy_recv()
35 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_send() local
38 if (!api) { in dummy_send()
42 ret = net_l2_send(api->send, net_if_get_device(iface), iface, pkt); in dummy_send()
54 const struct dummy_api *api = net_if_get_device(iface)->api; in dummy_enable() local
56 if (!api) { in dummy_enable()
61 if (api->stop) { in dummy_enable()
62 ret = api->stop(net_if_get_device(iface)); in dummy_enable()
65 if (api->start) { in dummy_enable()
66 ret = api->start(net_if_get_device(iface)); in dummy_enable()