Searched refs:usb_netif (Results 1 – 2 of 2) sorted by relevance
/third_party/FreeBSD/sys/dev/usb/net/ |
D | usb_eth_drv.c | 42 static void eth_drv_send(struct netif *usb_netif, struct pbuf *p); 63 struct netif *usb_netif = &sc->ac_if; in eth_drv_init() local 72 usb_netif->state = sc; in eth_drv_init() 73 usb_netif->drv_send = eth_drv_send; in eth_drv_init() 74 usb_netif->drv_set_hwaddr = NULL; in eth_drv_init() 75 usb_netif->link_layer_type = ETHERNET_DRIVER_IF; in eth_drv_init() 76 usb_netif->hwaddr_len = NETIF_MAX_HWADDR_LEN; in eth_drv_init() 78 usb_netif->drv_config = eth_drv_config; in eth_drv_init() 81 usb_netif->ethtool_ops = NULL; in eth_drv_init() 84 (void)memcpy_s(usb_netif->hwaddr, NETIF_MAX_HWADDR_LEN, enaddr, NETIF_MAX_HWADDR_LEN); in eth_drv_init() [all …]
|
/third_party/NuttX/drivers/usbdev/gadget/ |
D | f_ether.c | 159 uint8_t eth_set_hwaddr(struct netif *usb_netif, uint8_t *addr, uint8_t len) in eth_set_hwaddr() argument 175 err = memcpy_s(usb_netif->hwaddr, NETIF_MAX_HWADDR_LEN, addr, len); in eth_set_hwaddr() 209 static void eth_tx(struct netif *usb_netif, struct pbuf *p) in eth_tx() argument 211 struct los_eth_driver *sc = (struct los_eth_driver *)usb_netif->state; in eth_tx() 227 struct netif *usb_netif = &sc->ac_if; in eth_rx() local 253 driverif_input(usb_netif, p); in eth_rx() 257 static void eth_drv_config(struct netif *usb_netif, uint32_t cflags, uint8_t set_bit) in eth_drv_config() argument 259 LWIP_UNUSED_ARG(usb_netif); in eth_drv_config() 270 struct netif *usb_netif = &sc->ac_if; in netdev_register() local 279 usb_netif->state = sc; in netdev_register() [all …]
|