Lines Matching refs:pci

3266 static void cx88_card_list(struct cx88_core *core, struct pci_dev *pci)  in cx88_card_list()  argument
3270 if (0 == pci->subsystem_vendor && in cx88_card_list()
3271 0 == pci->subsystem_device) { in cx88_card_list()
3605 static int cx88_pci_quirks(const char *name, struct pci_dev *pci) in cx88_pci_quirks() argument
3646 pci_read_config_byte(pci, CX88X_DEVCTRL, &value); in cx88_pci_quirks()
3648 pci_write_config_byte(pci, CX88X_DEVCTRL, value); in cx88_pci_quirks()
3653 pci_write_config_byte(pci, PCI_LATENCY_TIMER, latency); in cx88_pci_quirks()
3658 int cx88_get_resources(const struct cx88_core *core, struct pci_dev *pci) in cx88_get_resources() argument
3660 if (request_mem_region(pci_resource_start(pci,0), in cx88_get_resources()
3661 pci_resource_len(pci,0), in cx88_get_resources()
3666 core->name, PCI_FUNC(pci->devfn), in cx88_get_resources()
3667 (unsigned long long)pci_resource_start(pci, 0), in cx88_get_resources()
3668 pci->subsystem_vendor, pci->subsystem_device); in cx88_get_resources()
3674 struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr) in cx88_core_create() argument
3684 core->pci_bus = pci->bus->number; in cx88_core_create()
3685 core->pci_slot = PCI_SLOT(pci->devfn); in cx88_core_create()
3718 if (0 != cx88_get_resources(core, pci)) { in cx88_core_create()
3727 cx88_pci_quirks(core->name, pci); in cx88_core_create()
3728 core->lmmio = ioremap(pci_resource_start(pci, 0), in cx88_core_create()
3729 pci_resource_len(pci, 0)); in cx88_core_create()
3733 release_mem_region(pci_resource_start(pci, 0), in cx88_core_create()
3734 pci_resource_len(pci, 0)); in cx88_core_create()
3747 if (pci->subsystem_vendor == cx88_subids[i].subvendor && in cx88_core_create()
3748 pci->subsystem_device == cx88_subids[i].subdevice) in cx88_core_create()
3752 cx88_card_list(core, pci); in cx88_core_create()
3761 pci->subsystem_vendor, pci->subsystem_device, core->board.name, in cx88_core_create()
3777 cx88_i2c_init(core, pci); in cx88_core_create()
3816 cx88_ir_init(core, pci); in cx88_core_create()