Lines Matching refs:netdev
151 struct eth_device netdev; member
153 struct udevice *netdev; member
2019 struct eth_pdata *pdata = dev_get_platdata(l_priv->netdev); in eth_bind()
2209 dev->net = &l_priv->netdev; in eth_bind()
2211 dev->net = l_priv->netdev; in eth_bind()
2555 static int usb_eth_init(struct eth_device *netdev, bd_t *bd) in usb_eth_init() argument
2557 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_init()
2562 static int usb_eth_send(struct eth_device *netdev, void *packet, int length) in usb_eth_send() argument
2564 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_send()
2569 static int usb_eth_recv(struct eth_device *netdev) in usb_eth_recv() argument
2571 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_recv()
2596 void usb_eth_halt(struct eth_device *netdev) in usb_eth_halt() argument
2598 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_halt()
2605 struct eth_device *netdev = &l_priv->netdev; in usb_eth_initialize() local
2607 strlcpy(netdev->name, USB_NET_NAME, sizeof(netdev->name)); in usb_eth_initialize()
2609 netdev->init = usb_eth_init; in usb_eth_initialize()
2610 netdev->send = usb_eth_send; in usb_eth_initialize()
2611 netdev->recv = usb_eth_recv; in usb_eth_initialize()
2612 netdev->halt = usb_eth_halt; in usb_eth_initialize()
2613 netdev->priv = l_priv; in usb_eth_initialize()
2618 eth_register(netdev); in usb_eth_initialize()
2684 priv->netdev = dev; in usb_eth_probe()