Lines Matching defs:dev

221 #define DBGP_EPADDR(dev, ep)	(((dev)<<8)|(ep))
353 struct usb_device *dev; /* access to TT */
1263 if (unlikely(!usb_gettoggle(qh->dev, epnum, is_out))) {
1265 usb_settoggle(qh->dev, epnum, is_out, 1);
1329 urb->dev->devpath,
1340 oxu_vdbg(oxu, "dev%d ep%d%s qtd token %08x --> status %d\n",
1381 __func__, urb->dev->devpath, urb,
1687 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input));
1798 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input);
1814 if (urb->dev->speed == USB_SPEED_HIGH) {
1829 struct usb_tt *tt = urb->dev->tt;
1833 qh->gap_uf = 1 + usb_calc_bus_time(urb->dev->speed,
1847 usb_calc_bus_time(urb->dev->speed,
1854 qh->dev = urb->dev;
1857 switch (urb->dev->speed) {
1873 info2 |= urb->dev->ttport << 23;
1896 oxu_dbg(oxu, "bogus dev %p speed %d\n", urb->dev, urb->dev->speed);
1908 usb_settoggle(urb->dev, usb_pipeendpoint(urb->pipe), !is_input, 1);
2049 __func__, urb->dev->devpath, urb,
2355 dev_dbg(&qh->dev->dev,
2441 dev_dbg(&qh->dev->dev,
3136 * NOTE: the dma mask is visible through dev->dma_mask, so
3224 * urb + dev is in hcd.self.controller.urb_list
3254 if (urb->dev->speed == USB_SPEED_HIGH)
3796 if (device_may_wakeup(&hcd->self.root_hub->dev))
3899 if (device_may_wakeup(&hcd->self.root_hub->dev))
3920 if (!device_may_wakeup(&hcd->self.root_hub->dev))
4112 dev_info(&pdev->dev, "device ID %x\n", id);
4116 dev_info(&pdev->dev, "found device %x %s (%04x:%04x)\n",
4130 struct device *dev = &pdev->dev;
4141 hcd = usb_create_hcd(&oxu_hc_driver, dev,
4178 dev_err(&pdev->dev, "no devices found!\n");
4185 dev_err(&pdev->dev, "cannot create OTG controller!\n");
4194 dev_err(&pdev->dev, "cannot create SPH controller!\n");
4229 dev_err(&pdev->dev,
4230 "no IRQ! Check %s setup!\n", dev_name(&pdev->dev));
4234 dev_dbg(&pdev->dev, "IRQ resource %d\n", irq);
4237 base = devm_ioremap_resource(&pdev->dev, res);
4247 dev_err(&pdev->dev, "error setting irq type\n");
4255 info = devm_kzalloc(&pdev->dev, sizeof(struct oxu_info), GFP_KERNEL);
4264 dev_dbg(&pdev->dev, "cannot init USB devices\n");
4268 dev_info(&pdev->dev, "devices enabled and running\n");
4274 dev_err(&pdev->dev, "init %s fail, %d\n", dev_name(&pdev->dev), ret);
4301 static int oxu_drv_suspend(struct device *dev)
4303 struct platform_device *pdev = to_platform_device(dev);
4304 struct usb_hcd *hcd = dev_get_drvdata(dev);
4309 static int oxu_drv_resume(struct device *dev)
4311 struct platform_device *pdev = to_platform_device(dev);
4312 struct usb_hcd *hcd = dev_get_drvdata(dev);