Lines Matching refs:netusb
25 } netusb; variable
40 ret = netusb.func->send_pkt(pkt); in netusb_send()
50 return netusb.iface; in netusb_net_iface()
57 if (net_recv_data(netusb.iface, pkt) < 0) { in netusb_recv()
72 if (!netusb.func->connect_media) { in netusb_connect_media()
76 return netusb.func->connect_media(true); in netusb_connect_media()
88 if (!netusb.func->connect_media) { in netusb_disconnect_media()
92 return netusb.func->connect_media(false); in netusb_disconnect_media()
99 netusb.func = func; in netusb_enable()
101 net_if_carrier_on(netusb.iface); in netusb_enable()
113 netusb.func = NULL; in netusb_disable()
116 net_if_carrier_off(netusb.iface); in netusb_disable()
121 return !!netusb.func; in netusb_enabled()
130 netusb.iface = iface; in netusb_init()