Lines Matching refs:netdev
143 struct eth_device netdev; member
145 struct udevice *netdev; member
2011 struct eth_pdata *pdata = dev_get_platdata(l_priv->netdev); in eth_bind()
2201 dev->net = &l_priv->netdev; in eth_bind()
2203 dev->net = l_priv->netdev; in eth_bind()
2525 static int usb_eth_init(struct eth_device *netdev, bd_t *bd) in usb_eth_init() argument
2527 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_init()
2532 static int usb_eth_send(struct eth_device *netdev, void *packet, int length) in usb_eth_send() argument
2534 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_send()
2539 static int usb_eth_recv(struct eth_device *netdev) in usb_eth_recv() argument
2541 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_recv()
2566 void usb_eth_halt(struct eth_device *netdev) in usb_eth_halt() argument
2568 struct ether_priv *priv = (struct ether_priv *)netdev->priv; in usb_eth_halt()
2575 struct eth_device *netdev = &l_priv->netdev; in usb_eth_initialize() local
2577 strlcpy(netdev->name, USB_NET_NAME, sizeof(netdev->name)); in usb_eth_initialize()
2579 netdev->init = usb_eth_init; in usb_eth_initialize()
2580 netdev->send = usb_eth_send; in usb_eth_initialize()
2581 netdev->recv = usb_eth_recv; in usb_eth_initialize()
2582 netdev->halt = usb_eth_halt; in usb_eth_initialize()
2583 netdev->priv = l_priv; in usb_eth_initialize()
2585 eth_register(netdev); in usb_eth_initialize()
2651 priv->netdev = dev; in usb_eth_probe()