Lines Matching defs:dev
382 "qh/%p dev%d %cs ep%d %08x %08x(%08x%c %s nak%d)",
2050 if (unlikely(!usb_gettoggle(qh->dev, epnum, is_out))) {
2052 usb_settoggle(qh->dev, epnum, is_out, 1);
2116 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) {
2117 struct usb_device *tt = urb->dev->tt->hub;
2119 dev_dbg(&tt->dev,
2121 urb->dev->ttport, urb->dev->devnum,
2124 if (urb->dev->tt->hub !=
2172 urb->dev->devpath,
2181 "dev%d ep%d%s qtd token %08x --> status %d\n",
2219 __func__, urb->dev->devpath, urb,
2594 maxpacket = usb_maxpacket(urb->dev, urb->pipe, !is_input);
2713 struct usb_tt *tt = urb->dev->tt;
2727 ep = usb_pipe_endpoint(urb->dev, urb->pipe);
2752 if (urb->dev->speed == USB_SPEED_HIGH) {
2771 qh->gap_uf = 1 + usb_calc_bus_time(urb->dev->speed,
2785 usb_calc_bus_time(urb->dev->speed,
2796 qh->dev = urb->dev;
2799 switch (urb->dev->speed) {
2820 info2 |= (urb->dev->ttport-1) << 23;
2822 info2 |= urb->dev->ttport << 23;
2857 fotg210_dbg(fotg210, "bogus dev %p speed %d\n", urb->dev,
2858 urb->dev->speed);
2872 usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), !is_input, 1);
3030 __func__, urb->dev->devpath, urb,
3394 struct usb_device *dev, unsigned frame, u32 uf_mask)
3400 * (different dev or endpoint) until the next uframe.
3418 if (same_tt(dev, here.qh->dev)) {
3481 dev_dbg(&qh->dev->dev,
3576 dev_dbg(&qh->dev->dev,
3734 if (tt_no_collision(fotg210, qh->period, qh->dev, frame, mask)) {
3915 struct fotg210_iso_stream *stream, struct usb_device *dev,
3931 ep = usb_pipe_endpoint(dev, pipe);
3942 stream->buf0 = cpu_to_hc32(fotg210, (epnum << 8) | dev->devnum);
3949 if (dev->speed == USB_SPEED_FULL) {
3951 stream->usecs = NS_TO_US(usb_calc_bus_time(dev->speed,
3962 stream->udev = dev;
3978 ep = urb->dev->ep_in[epnum];
3980 ep = urb->dev->ep_out[epnum];
3990 iso_stream_init(fotg210, stream, urb->dev, urb->pipe,
3994 /* if dev->ep[epnum] is a QH, hw is set */
3996 fotg210_dbg(fotg210, "dev %s ep%d%s, not iso??\n",
3997 urb->dev->devpath, epnum,
4363 urb->dev->devpath, stream->bEndpointAddress & 0x0f,
4432 struct usb_device *dev;
4482 dev = urb->dev;
4495 dev->devpath, stream->bEndpointAddress & 0x0f,
4539 __func__, urb->dev->devpath, urb,
4682 static ssize_t uframe_periodic_max_show(struct device *dev,
4688 fotg210 = hcd_to_fotg210(bus_to_hcd(dev_get_drvdata(dev)));
4694 static ssize_t uframe_periodic_max_store(struct device *dev,
4704 fotg210 = hcd_to_fotg210(bus_to_hcd(dev_get_drvdata(dev)));
5022 * NOTE: the dma mask is visible through dev->dma_mask, so
5250 * urb + dev is in hcd.self.controller.urb_list
5457 usb_settoggle(qh->dev, epnum, is_out, 0);
5561 struct device *dev = &pdev->dev;
5571 pdev->dev.power.power_state = PMSG_ON;
5575 dev_err(dev, "Found HC with no IRQ. Check %s setup!\n",
5576 dev_name(dev));
5582 hcd = usb_create_hcd(&fotg210_fotg210_hc_driver, dev,
5583 dev_name(dev));
5585 dev_err(dev, "failed to create hcd\n");
5593 hcd->regs = devm_ioremap_resource(&pdev->dev, res);
5607 fotg210->pclk = clk_get(dev, "PCLK");
5611 dev_err(dev, "failed to enable PCLK\n");
5631 dev_err(dev, "failed to add hcd with err %d\n", retval);
5647 dev_err(dev, "init %s fail, %d\n", dev_name(dev), retval);
5653 * @dev: USB Host Controller being removed