Lines Matching refs:netdev
148 struct eth_device netdev; member
150 struct udevice *netdev; member
2016 struct eth_pdata *pdata = dev_get_platdata(l_priv->netdev); in eth_bind()
2206 dev->net = &l_priv->netdev; in eth_bind()
2208 dev->net = l_priv->netdev; in eth_bind()
2530 static int usb_eth_init(struct eth_device *netdev, bd_t *bd) in usb_eth_init() argument
2532 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_init()
2537 static int usb_eth_send(struct eth_device *netdev, void *packet, int length) in usb_eth_send() argument
2539 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_send()
2544 static int usb_eth_recv(struct eth_device *netdev) in usb_eth_recv() argument
2546 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_recv()
2571 void usb_eth_halt(struct eth_device *netdev) in usb_eth_halt() argument
2573 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_halt()
2580 struct eth_device *netdev = &l_priv->netdev; in usb_eth_initialize() local
2582 strlcpy(netdev->name, USB_NET_NAME, sizeof(netdev->name)); in usb_eth_initialize()
2584 netdev->init = usb_eth_init; in usb_eth_initialize()
2585 netdev->send = usb_eth_send; in usb_eth_initialize()
2586 netdev->recv = usb_eth_recv; in usb_eth_initialize()
2587 netdev->halt = usb_eth_halt; in usb_eth_initialize()
2588 netdev->priv = l_priv; in usb_eth_initialize()
2593 eth_register(netdev); in usb_eth_initialize()
2659 priv->netdev = dev; in usb_eth_probe()