Home
last modified time | relevance | path

Searched refs:usb_dev (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/common/
H A Dusb.c46 static struct usb_device usb_dev[USB_MAX_DEVICE]; variable
70 memset(&usb_dev[i], 0, sizeof(struct usb_device)); in usb_init()
71 usb_dev[i].devnum = -1; in usb_init()
157 for (i = 0; i < usb_dev[j].maxchild; i++) { in usb_detect_change()
160 if (usb_get_port_status(&usb_dev[j], i + 1, in usb_detect_change()
859 if (usb_dev[index].devnum == -1) in usb_get_dev_index()
862 return &usb_dev[index]; in usb_get_dev_index()
874 usb_dev[dev_index].devnum = dev_index + 1; in usb_alloc_new_device()
875 usb_dev[dev_index].maxchild = 0; in usb_alloc_new_device()
877 usb_dev[dev_index].children[i] = NULL; in usb_alloc_new_device()
[all …]
/openbmc/u-boot/test/dm/
H A Dblk.c66 struct udevice *usb_dev, *dev; in dm_test_blk_usb() local
72 ut_assertok(uclass_get_device(UCLASS_MASS_STORAGE, 0, &usb_dev)); in dm_test_blk_usb()
77 ut_asserteq_ptr(usb_dev, dev_get_parent(dev)); in dm_test_blk_usb()
/openbmc/u-boot/drivers/usb/host/
H A Dsl811-hcd.c44 static int sl811_rh_submit_urb(struct usb_device *usb_dev, unsigned long pipe,
529 static int sl811_rh_submit_urb(struct usb_device *usb_dev, unsigned long pipe, in sl811_rh_submit_urb() argument
709 usb_dev->status = status; in sl811_rh_submit_urb()
710 usb_dev->act_len = len; in sl811_rh_submit_urb()
H A Dohci.h67 struct usb_device *usb_dev; member
123 struct usb_device *usb_dev; member
H A Dohci-hcd.c213 static ed_t *ep_add_ed(ohci_dev_t *ohci_dev, struct usb_device *usb_dev,
219 static struct td *td_alloc(ohci_dev_t *ohci_dev, struct usb_device *usb_dev) in td_alloc() argument
227 if (ohci_dev->tds[i].usb_dev == NULL) in td_alloc()
230 td->usb_dev = usb_dev; in td_alloc()
240 ed->usb_dev = NULL; in ed_free()
260 td->usb_dev = NULL; in urb_free_priv()
843 static ed_t *ep_add_ed(ohci_dev_t *ohci_dev, struct usb_device *usb_dev, in ep_add_ed() argument
861 td = td_alloc(ohci_dev, usb_dev); in ep_add_ed()
874 | (usb_dev->speed == USB_SPEED_LOW) << 13 in ep_add_ed()
875 | usb_maxpacket(usb_dev, pipe) << 16); in ep_add_ed()
/openbmc/u-boot/drivers/usb/eth/
H A Dasix88179.c869 struct usb_device *usb_dev; in ax88179_eth_probe() local
877 usb_dev = priv->ueth.pusb_dev; in ax88179_eth_probe()
878 priv->maxpacketsize = usb_dev->epmaxpacketout[AX_ENDPOINT_OUT]; in ax88179_eth_probe()
/openbmc/u-boot/drivers/usb/gadget/
H A Dether.c2671 struct udevice *usb_dev; in usb_ether_init() local
2674 ret = uclass_first_device(UCLASS_USB_GADGET_GENERIC, &usb_dev); in usb_ether_init()
2675 if (!usb_dev || ret) { in usb_ether_init()
2680 ret = device_bind_driver(usb_dev, "usb_ether", "usb_ether", &dev); in usb_ether_init()