Lines Matching refs:pdev
212 static void velocity_init_info(struct pci_device *pdev,
216 struct pci_device *pdev);
622 // pci_set_power_state(vptr->pdev, PCI_D3hot);
750 * @pdev: PCI device
758 static void velocity_init_info(struct pci_device *pdev,
764 vptr->pdev = pdev;
783 * @pdev: PCI device it matches
807 unsigned long pci_resource_flags(struct pci_device *pdev, unsigned int bar)
812 pci_read_config_dword(pdev, bar, &l);
813 pci_write_config_dword(pdev, bar, ~0);
814 pci_read_config_dword(pdev, bar, &sz);
815 pci_write_config_dword(pdev, bar, l);
852 struct pci_device *pdev)
854 if (pci_read_config_byte(pdev, PCI_REVISION_ID, &vptr->rev_id) < 0) {
859 adjust_pci_device(pdev);
861 vptr->ioaddr = pci_bar_start(pdev, PCI_BASE_ADDRESS_0);
862 vptr->memaddr = pci_bar_start(pdev, PCI_BASE_ADDRESS_1);
866 (pci_resource_flags(pdev, PCI_BASE_ADDRESS_0) & IORESOURCE_IO))
874 if ((pci_resource_flags(pdev, PCI_BASE_ADDRESS_1) & IORESOURCE_IO)) {
879 if (pci_bar_size(pdev, PCI_BASE_ADDRESS_1) < 256) {
883 vptr->pdev = pdev;
1282 //FIXME: pci_set_power_state(vptr->pdev, PCI_D0);