Lines Matching refs:pd
442 if (sti->pd) { in sti_init_glob_cfg()
455 newhpa = pci_resource_start (sti->pd, (offs - PCI_BASE_ADDRESS_0) / 4); in sti_init_glob_cfg()
818 struct pci_dev *pd) in sti_try_rom_generic() argument
858 sti->pd = pd; in sti_try_rom_generic()
906 if (sti->pd) { in sti_try_rom_generic()
908 rom_base = pci_resource_start(sti->pd, PCI_ROM_RESOURCE); in sti_try_rom_generic()
909 pci_write_config_dword(sti->pd, PCI_ROM_ADDRESS, rom_base & ~PCI_ROM_ADDRESS_ENABLE); in sti_try_rom_generic()
965 static int sticore_pci_init(struct pci_dev *pd, const struct pci_device_id *ent) in sticore_pci_init() argument
973 err = pci_enable_device(pd); in sticore_pci_init()
975 dev_err(&pd->dev, "Cannot enable PCI device\n"); in sticore_pci_init()
979 fb_base = pci_resource_start(pd, 0); in sticore_pci_init()
980 fb_len = pci_resource_len(pd, 0); in sticore_pci_init()
981 rom_base = pci_resource_start(pd, PCI_ROM_RESOURCE); in sticore_pci_init()
982 rom_len = pci_resource_len(pd, PCI_ROM_RESOURCE); in sticore_pci_init()
984 pci_write_config_dword(pd, PCI_ROM_ADDRESS, rom_base | PCI_ROM_ADDRESS_ENABLE); in sticore_pci_init()
994 sti = sti_try_rom_generic(rom_base, fb_base, pd); in sticore_pci_init()
997 print_pci_hwpath(pd, pa_path); in sticore_pci_init()
1003 pci_name(pd)); in sticore_pci_init()
1012 static void sticore_pci_remove(struct pci_dev *pd) in sticore_pci_remove() argument