Searched defs:devfn (Results 1 - 25 of 43) sorted by relevance

12

/drivers/acpi/
H A Dreboot.c11 unsigned int devfn; local
40 devfn = PCI_DEVFN((rr->address >> 32) & 0xffff,
44 pci_bus_write_config_byte(bus0, devfn,
/drivers/iommu/
H A Dintr_remapping.h7 unsigned int devfn; /* PCI devfn number */ member in struct:ioapic_scope
14 unsigned int devfn; member in struct:hpet_scope
/drivers/of/
H A Dof_pci.c8 unsigned int devfn)
15 return ((be32_to_cpup(&reg[0]) >> 8) & 0xff) == devfn;
19 unsigned int devfn)
24 if (__of_pci_pci_compare(node, devfn))
33 if (__of_pci_pci_compare(node2, devfn)) {
7 __of_pci_pci_compare(struct device_node *node, unsigned int devfn) argument
18 of_pci_find_child_device(struct device_node *parent, unsigned int devfn) argument
/drivers/xen/xen-pciback/
H A Dpassthrough.c22 unsigned int devfn)
33 && devfn == dev_entry->dev->devfn) {
50 unsigned int domain, bus, devfn; local
65 devfn = dev->devfn;
66 err = publish_cb(pdev, domain, bus, devfn, devid);
171 unsigned int *devfn)
175 *devfn = pcidev->devfn;
19 __xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn) argument
168 __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) argument
[all...]
H A Dvpci.c30 unsigned int devfn)
39 if (PCI_SLOT(devfn) < PCI_SLOT_MAX) {
43 &vpci_dev->dev_list[PCI_SLOT(devfn)],
45 if (PCI_FUNC(entry->dev->devfn) == PCI_FUNC(devfn)) {
59 && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn))
102 PCI_FUNC(dev->devfn));
105 func = PCI_FUNC(dev->devfn);
119 func = PCI_FUNC(dev->devfn);
27 __xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn) argument
213 __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) argument
[all...]
H A Dpciback.h86 unsigned int devfn, unsigned int devid);
100 unsigned int *devfn);
107 unsigned int devfn);
133 unsigned int bus, unsigned int devfn)
136 return xen_pcibk_backend->get(pdev, domain, bus, devfn);
141 * Add for domain0 PCIE-AER handling. Get guest domain/bus/devfn in xen_pcibk
150 unsigned int *devfn)
154 devfn);
132 xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn) argument
146 xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) argument
H A Dxenbus.c197 unsigned int devfn, unsigned int devid)
212 PCI_SLOT(devfn), PCI_FUNC(devfn));
195 xen_pcibk_publish_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn, unsigned int devid) argument
/drivers/misc/cb710/
H A Dcore.c35 unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); local
46 pdev0 = pci_get_slot(pdev->bus, devfn);
/drivers/pci/hotplug/
H A Dcpci_hotplug.h46 unsigned int devfn; member in struct:slot
H A Dibmphp_pci.c107 unsigned int devfn = PCI_DEVFN(device, function); local
115 pci_bus_read_config_word (ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id);
129 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type);
130 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class);
201 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number);
273 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_number);
365 unsigned int devfn; local
369 devfn = PCI_DEVFN(func->device, func->function);
387 pci_bus_write_config_dword (ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF);
388 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, addres
594 unsigned int devfn; local
1082 unsigned int devfn; local
1235 unsigned int devfn; local
1347 unsigned int devfn; local
1453 unsigned int devfn; local
[all...]
H A Dcpqphp_core.c187 tdevice = cpqhp_routing_table->slots[loop].devfn;
349 tdevice = cpqhp_routing_table->slots[loop].devfn >> 3;
448 u8 devfn; local
454 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
457 device = devfn >> 3;
458 function = devfn & 0x7;
475 u8 devfn; local
481 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
484 device = devfn >> 3;
485 function = devfn
507 u8 devfn; local
[all...]
H A Dcpqphp_pci.c136 static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) argument
140 if (pci_bus_read_config_dword (bus, devfn, PCI_VENDOR_ID, &vendID) == -1)
144 return pci_bus_read_config_dword (bus, devfn, offset, value);
172 fakedev->devfn = dev_num << 3;
247 tdevice = cpqhp_routing_table->slots[loop].devfn;
258 dbg("bus_num %d devfn %d\n", *bus_num, *dev_num);
559 unsigned int devfn; local
565 devfn = PCI_DEVFN(func->device, func->function);
568 pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type);
571 pci_bus_read_config_byte (pci_bus, devfn, PCI_SECONDARY_BU
704 unsigned int devfn; local
957 unsigned int devfn; local
1036 unsigned int devfn; local
[all...]
H A Dibmphp_res.c1938 unsigned int devfn; local
1950 devfn = PCI_DEVFN(device, function);
1951 pci_bus_read_config_word (ibmphp_pci_bus, devfn, PCI_VENDOR_ID, &vendor_id);
1955 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_HEADER_TYPE, &hdr_type);
1974 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_SECONDARY_BUS, &sec_busno);
1982 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_IO_BASE, &start_io_address);
1983 pci_bus_read_config_byte (ibmphp_pci_bus, devfn, PCI_IO_LIMIT, &end_io_address);
1984 pci_bus_read_config_word (ibmphp_pci_bus, devfn, PCI_IO_BASE_UPPER16, &upper_io_start);
1985 pci_bus_read_config_word (ibmphp_pci_bus, devfn, PCI_IO_LIMIT_UPPER16, &upper_io_end);
2033 pci_bus_read_config_word (ibmphp_pci_bus, devfn, PCI_MEMORY_BAS
[all...]
/drivers/pci/pcie/
H A Dpme.c105 * @devfn: Device/function number to check.
111 static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn) argument
116 if (devfn)
141 u8 busnr = req_id >> 8, devfn = req_id & 0xff; local
147 if (port->devfn == devfn && port->bus->number == busnr) {
176 found = pcie_pme_from_pci_bridge(bus, devfn);
184 if (dev->devfn == devfn) {
203 } else if (devfn) {
[all...]
/drivers/pci/
H A Dsearch.c120 * @devfn: encodes number of PCI slot in which the desired PCI
131 struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn) argument
141 if (dev->devfn == devfn)
156 * @devfn: encodes number of PCI slot in which the desired PCI device
168 unsigned int devfn)
174 (dev->bus->number == bus && dev->devfn == devfn))
167 pci_get_domain_bus_and_slot(int domain, unsigned int bus, unsigned int devfn) argument
H A Dpci-label.c65 int devfn; local
68 devfn = pdev->devfn;
75 donboard->devfn == devfn) {
/drivers/ssb/
H A Ddriver_gige.c111 unsigned int devfn, int reg,
117 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0))
142 unsigned int devfn, int reg,
148 if ((PCI_SLOT(devfn) > 0) || (PCI_FUNC(devfn) > 0))
110 ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
141 ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
H A Ddriver_pcicore.c204 static int ssb_pcicore_read_config(struct pci_bus *bus, unsigned int devfn, argument
211 err = ssb_extpci_read_config(extpci_core, bus->number, PCI_SLOT(devfn),
212 PCI_FUNC(devfn), reg, val, size);
218 static int ssb_pcicore_write_config(struct pci_bus *bus, unsigned int devfn, argument
225 err = ssb_extpci_write_config(extpci_core, bus->number, PCI_SLOT(devfn),
226 PCI_FUNC(devfn), reg, &val, size);
285 if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) != 0)
/drivers/bcma/
H A Ddriver_pci_host.c231 unsigned int devfn,
243 err = bcma_extpci_read_config(pc, PCI_SLOT(devfn),
244 PCI_FUNC(devfn), reg, val, size);
251 unsigned int devfn,
263 err = bcma_extpci_write_config(pc, PCI_SLOT(devfn),
264 PCI_FUNC(devfn), reg, &val, size);
512 if (PCI_SLOT(dev->devfn) != 0)
539 if (PCI_SLOT(dev->devfn) == 0)
230 bcma_core_pci_hostmode_read_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 *val) argument
250 bcma_core_pci_hostmode_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) argument
/drivers/edac/
H A Damd8131_edac.h92 int devfn; member in struct:amd8131_dev_info
106 * Function Zero, they could be discrimated by their pci_dev->devfn.
/drivers/pci/pcie/aer/
H A Daer_inject.c51 unsigned int devfn; member in struct:aer_error
78 unsigned int bus, unsigned int devfn,
84 err->devfn = devfn;
90 unsigned int devfn)
97 devfn == err->devfn)
109 return __find_aer_error((u16)domain, dev->bus->number, dev->devfn);
184 static int pci_read_aer(struct pci_bus *bus, unsigned int devfn, int where, argument
199 err = __find_aer_error((u16)domain, bus->number, devfn);
77 aer_error_init(struct aer_error *err, u16 domain, unsigned int bus, unsigned int devfn, int pos_cap_err) argument
89 __find_aer_error(u16 domain, unsigned int bus, unsigned int devfn) argument
215 pci_write_aer(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
327 unsigned int devfn = PCI_DEVFN(einj->dev, einj->fn); local
[all...]
H A Daerdrv_core.c136 if (e_info->id == ((dev->bus->number << 8) | dev->devfn))
589 u8 devfn; member in struct:aer_recover_entry
604 void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, argument
610 .devfn = devfn,
620 domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn));
632 entry.devfn);
636 PCI_SLOT(entry.devfn), PCI_FUNC(entry.devfn));
[all...]
/drivers/staging/rts_pstor/
H A Drtsx.c328 u8 devfn = (dev << 3) | func; local
330 pdev = pci_get_bus_and_slot(bus, devfn);
/drivers/firmware/
H A Ddmi_scan.c282 int devfn, const char *name)
294 onboard_dev->devfn = devfn;
281 dmi_save_dev_onboard(int instance, int segment, int bus, int devfn, const char *name) argument
/drivers/infiniband/hw/nes/
H A Dnes.c167 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), 0);
194 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)),
546 nesdev->index_reg = 0x50 + (PCI_FUNC(pcidev->devfn)*8) + mmio_regs;
579 nesdev->nesadapter->pd_config_base[PCI_FUNC(nesdev->pcidev->devfn)]; */
583 switch (PCI_FUNC(nesdev->pcidev->devfn) %
599 nesdev->mac_index = PCI_FUNC(nesdev->pcidev->devfn) %
625 PCI_FUNC(nesdev->pcidev->devfn));
629 nesdev->int_req = (0x101 << PCI_FUNC(nesdev->pcidev->devfn)) |
630 (1 << (PCI_FUNC(nesdev->pcidev->devfn)+16));
631 if (PCI_FUNC(nesdev->pcidev->devfn) <
823 unsigned int devfn = 0xffffffff; local
[all...]

Completed in 391 milliseconds

12