Home
last modified time | relevance | path

Searched refs:ueth (Results 1 – 12 of 12) sorted by relevance

/external/u-boot/drivers/usb/eth/
Dusb_ether.c19 int usb_ether_register(struct udevice *dev, struct ueth_data *ueth, int rxsize) in usb_ether_register() argument
32 ueth->ifnum = ifnum; in usb_ether_register()
33 ueth->subclass = iface_desc->bInterfaceSubClass; in usb_ether_register()
34 ueth->protocol = iface_desc->bInterfaceProtocol; in usb_ether_register()
47 ueth->ep_in = ep_addr & in usb_ether_register()
51 ueth->ep_out = ep_addr & in usb_ether_register()
60 ueth->ep_int = iface->ep_desc[i].bEndpointAddress & in usb_ether_register()
62 ueth->irqinterval = iface->ep_desc[i].bInterval; in usb_ether_register()
65 debug("Endpoints In %d Out %d Int %d\n", ueth->ep_in, ueth->ep_out, in usb_ether_register()
66 ueth->ep_int); in usb_ether_register()
[all …]
Dmcs7830.c88 struct ueth_data ueth; member
508 static int mcs7830_send_common(struct ueth_data *ueth, void *packet, in mcs7830_send_common() argument
511 struct usb_device *udev = ueth->pusb_dev; in mcs7830_send_common()
519 usb_sndbulkpipe(udev, ueth->ep_out), in mcs7830_send_common()
527 static int mcs7830_recv_common(struct ueth_data *ueth, uint8_t *buf) in mcs7830_recv_common() argument
536 rc = usb_bulk_msg(ueth->pusb_dev, in mcs7830_recv_common()
537 usb_rcvbulkpipe(ueth->pusb_dev, ueth->ep_in), in mcs7830_recv_common()
620 struct ueth_data *ueth = eth->priv; in mcs7830_recv() local
623 len = mcs7830_recv_common(ueth, buf); in mcs7830_recv()
656 struct ueth_data *ueth = eth->priv; in mcs7830_write_mac() local
[all …]
Dasix88179.c207 struct ueth_data ueth; member
753 return asix_init_common(&priv->ueth, priv); in ax88179_eth_start()
759 struct ueth_data *ueth = &priv->ueth; in ax88179_eth_stop() local
763 usb_ether_advance_rxbuf(ueth, -1); in ax88179_eth_stop()
773 return asix_send_common(&priv->ueth, priv, packet, length); in ax88179_eth_send()
779 struct ueth_data *ueth = &priv->ueth; in ax88179_eth_recv() local
790 len = usb_ether_get_rx_bytes(ueth, &ptr); in ax88179_eth_recv()
796 ret = usb_ether_receive(ueth, priv->rx_urb_size); in ax88179_eth_recv()
800 len = usb_ether_get_rx_bytes(ueth, &ptr); in ax88179_eth_recv()
805 usb_ether_advance_rxbuf(ueth, -1); in ax88179_eth_recv()
[all …]
Dlan75xx.c167 struct ueth_data *ueth = &priv->ueth; in lan75xx_eth_start() local
210 ret = lan75xx_phy_gig_workaround(udev, ueth); in lan75xx_eth_start()
215 ret = lan7x_eth_phylib_connect(dev, &priv->ueth); in lan75xx_eth_start()
237 return lan75xx_update_flowcontrol(udev, ueth); in lan75xx_eth_start()
261 struct ueth_data *ueth = &priv->ueth; in lan75xx_eth_probe() local
266 if (lan75xx_basic_reset(udev, ueth, priv)) in lan75xx_eth_probe()
281 ret = usb_ether_register(dev, ueth, RX_URB_SIZE); in lan75xx_eth_probe()
Dlan7x.c384 struct ueth_data *ueth = &priv->ueth; in lan7x_eth_send() local
408 err = usb_bulk_msg(ueth->pusb_dev, in lan7x_eth_send()
409 usb_sndbulkpipe(ueth->pusb_dev, ueth->ep_out), in lan7x_eth_send()
424 struct ueth_data *ueth = &priv->ueth; in lan7x_eth_recv() local
430 len = usb_ether_get_rx_bytes(ueth, &ptr); in lan7x_eth_recv()
435 ret = usb_ether_receive(ueth, RX_URB_SIZE); in lan7x_eth_recv()
439 len = usb_ether_get_rx_bytes(ueth, &ptr); in lan7x_eth_recv()
474 usb_ether_advance_rxbuf(ueth, -1); in lan7x_eth_recv()
483 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in lan7x_free_pkt()
Dasix.c102 struct ueth_data ueth; member
746 return asix_init_common(&priv->ueth, pdata->enetaddr); in asix_eth_start()
758 return asix_send_common(&priv->ueth, packet, length); in asix_eth_send()
764 struct ueth_data *ueth = &priv->ueth; in asix_eth_recv() local
769 len = usb_ether_get_rx_bytes(ueth, &ptr); in asix_eth_recv()
774 ret = usb_ether_receive(ueth, AX_RX_URB_SIZE); in asix_eth_recv()
778 len = usb_ether_get_rx_bytes(ueth, &ptr); in asix_eth_recv()
808 usb_ether_advance_rxbuf(ueth, -1); in asix_eth_recv()
818 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in asix_free_pkt()
831 return asix_write_hwaddr_common(&priv->ueth, pdata->enetaddr); in asix_write_hwaddr()
[all …]
Dsmsc95xx.c151 struct ueth_data ueth; member
942 return smsc95xx_init_common(udev, &priv->ueth, priv, pdata->enetaddr); in smsc95xx_eth_start()
954 return smsc95xx_send_common(&priv->ueth, packet, length); in smsc95xx_eth_send()
960 struct ueth_data *ueth = &priv->ueth; in smsc95xx_eth_recv() local
965 len = usb_ether_get_rx_bytes(ueth, &ptr); in smsc95xx_eth_recv()
970 ret = usb_ether_receive(ueth, RX_URB_SIZE); in smsc95xx_eth_recv()
974 len = usb_ether_get_rx_bytes(ueth, &ptr); in smsc95xx_eth_recv()
1003 usb_ether_advance_rxbuf(ueth, -1); in smsc95xx_eth_recv()
1012 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in smsc95xx_free_pkt()
1042 struct ueth_data *ueth = &priv->ueth; in smsc95xx_eth_probe() local
[all …]
Dlan78xx.c382 ret = lan7x_eth_phylib_connect(dev, &priv->ueth); in lan78xx_eth_start()
404 return lan78xx_update_flowcontrol(udev, &priv->ueth); in lan78xx_eth_start()
425 struct ueth_data *ueth = &priv->ueth; in lan78xx_eth_probe() local
430 if (lan78xx_basic_reset(udev, ueth, priv)) in lan78xx_eth_probe()
442 ret = usb_ether_register(dev, ueth, RX_URB_SIZE); in lan78xx_eth_probe()
Dr8152.c1221 static int r8152_send_common(struct ueth_data *ueth, void *packet, int length) in r8152_send_common() argument
1223 struct usb_device *udev = ueth->pusb_dev; in r8152_send_common()
1240 err = usb_bulk_msg(udev, usb_sndbulkpipe(udev, ueth->ep_out), in r8152_send_common()
1501 return r8152_send_common(&tp->ueth, packet, length); in r8152_eth_send()
1507 struct ueth_data *ueth = &tp->ueth; in r8152_eth_recv() local
1513 len = usb_ether_get_rx_bytes(ueth, &ptr); in r8152_eth_recv()
1518 ret = usb_ether_receive(ueth, RTL8152_AGG_BUF_SZ); in r8152_eth_recv()
1522 len = usb_ether_get_rx_bytes(ueth, &ptr); in r8152_eth_recv()
1539 usb_ether_advance_rxbuf(ueth, -1); in r8152_eth_recv()
1549 usb_ether_advance_rxbuf(&tp->ueth, packet_len); in r8152_free_pkt()
[all …]
Dlan7x.h111 struct ueth_data ueth; member
Dr8152.h598 struct ueth_data ueth; member
/external/u-boot/include/
Dusb_ether.h58 int usb_ether_register(struct udevice *dev, struct ueth_data *ueth, int rxsize);
66 int usb_ether_deregister(struct ueth_data *ueth);
78 int usb_ether_receive(struct ueth_data *ueth, int rxsize);
92 int usb_ether_get_rx_bytes(struct ueth_data *ueth, uint8_t **ptrp);
104 void usb_ether_advance_rxbuf(struct ueth_data *ueth, int num_bytes);