Lines Matching refs:pdev
349 struct pci_dev *pdev = in test_find_hcd() local
352 ltp_usb.pdev = pdev; in test_find_hcd()
356 pdev = pci_find_class(PCI_CLASS_SERIAL_USB << 8, NULL); in test_find_hcd()
357 if (pdev) { in test_find_hcd()
359 printk("tusb: Slot number: %d\n", pdev->devfn); in test_find_hcd()
361 memcpy(ltp_usb.pdev, pdev, sizeof(struct pci_dev)); in test_find_hcd()
363 if (pdev->driver->id_table) in test_find_hcd()
388 struct pci_dev *pdev = ltp_usb.pdev; in test_hcd_probe() local
391 if (!pdev) { in test_hcd_probe()
396 id = (struct pci_device_id *)pdev->driver->id_table; in test_hcd_probe()
404 hcd = pci_get_drvdata(pdev); in test_hcd_probe()
410 release_region(pci_resource_start(pdev, hcd->region), in test_hcd_probe()
411 pci_resource_len(pdev, hcd->region)); in test_hcd_probe()
414 rc = usb_hcd_pci_probe(pdev, id); in test_hcd_probe()
434 struct pci_dev *pdev = NULL; in test_hcd_remove() local
439 if (!ltp_usb.pdev) { in test_hcd_remove()
443 pdev = ltp_usb.pdev; in test_hcd_remove()
444 hcd = pci_get_drvdata(pdev); in test_hcd_remove()
465 struct pci_dev *pdev = NULL; in test_hcd_suspend() local
468 if (!(pdev = ltp_usb.pdev)) { in test_hcd_suspend()
474 rc = usb_hcd_pci_suspend(pdev, (u32) 2); in test_hcd_suspend()
492 struct pci_dev *pdev = NULL; in test_hcd_resume() local
495 if (!(pdev = ltp_usb.pdev)) { in test_hcd_resume()
501 rc = usb_hcd_pci_resume(pdev); in test_hcd_resume()