Searched refs:devfn (Results 251 - 275 of 492) sorted by relevance

<<11121314151617181920

/linux-master/drivers/xen/
H A Dplatform-pci.c61 ((uint64_t)(pdev->devfn & 0xff) << 8) |
/linux-master/drivers/crypto/ccp/
H A Dsp-pci.c249 if (PCI_SLOT(pdev_new->devfn) < PCI_SLOT(pdev_cur->devfn))
252 if (PCI_FUNC(pdev_new->devfn) < PCI_FUNC(pdev_cur->devfn))
/linux-master/drivers/pci/controller/dwc/
H A Dpcie-kirin.c424 dev_err(dev, "failed to parse devfn: %d\n", ret);
521 static int kirin_pcie_rd_own_conf(struct pci_bus *bus, unsigned int devfn, argument
526 if (PCI_SLOT(devfn))
533 static int kirin_pcie_wr_own_conf(struct pci_bus *bus, unsigned int devfn, argument
538 if (PCI_SLOT(devfn))
/linux-master/drivers/vfio/pci/pds/
H A Dvfio_dev.c140 pci_id = PCI_DEVID(pdev->bus->number, pdev->devfn);
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dsiena_sriov.c429 copy[1].from_rid = efx->pci_dev->devfn;
446 copy[pos].from_rid = efx->pci_dev->devfn;
884 copy[0].to_rid = efx->pci_dev->devfn;
972 copy_req[k].from_rid = efx->pci_dev->devfn;
1245 unsigned index, devfn, sriov, buftbl_base; local
1258 devfn = pci_dev->devfn + offset;
1266 vf->pci_rid = devfn;
1270 PCI_SLOT(devfn), PCI_FUNC(devfn));
[all...]
/linux-master/arch/x86/events/intel/
H A Duncore.c1090 if (pdev->devfn == UNCORE_DISCOVERY_PCI_DEVFN(box_ctl) &&
1113 unsigned int devfn; local
1122 devfn = PCI_DEVFN(UNCORE_PCI_DEV_DEV(data),
1124 if (devfn == pdev->devfn) {
1158 pmu->func_id = pdev->devfn;
1160 WARN_ON_ONCE(pmu->func_id != pdev->devfn);
1318 unsigned int devfn; local
1330 devfn = PCI_DEVFN(UNCORE_PCI_DEV_DEV(ids->driver_data),
1332 if (devfn !
[all...]
/linux-master/drivers/scsi/aic7xxx/
H A Daic79xx_osm_pci.c122 unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
198 if ((ahd->features & AHD_MULTI_FUNC) && PCI_FUNC(pdev->devfn) != 0)
H A Daic7xxx_osm_pci.c161 unsigned int master_devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0);
240 if ((ahc->features & AHC_MULTI_FUNC) && PCI_FUNC(pdev->devfn) != 0)
/linux-master/drivers/ata/
H A Dpata_serverworks.c304 if (!(PCI_FUNC(pdev->devfn) & 1)) {
341 if (!(PCI_FUNC(pdev->devfn) & 1))
H A Dpata_hpt37x.c658 (PCI_FUNC(pdev->devfn) & 1)) {
661 pdev_fn0 = pci_get_slot(pdev->bus, pdev->devfn - 1);
879 if (!(PCI_FUNC(dev->devfn) & 1))
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_ctl_drv.c366 dev_info.dev = PCI_SLOT(accel_to_pci_dev(accel_dev)->devfn);
367 dev_info.fun = PCI_FUNC(accel_to_pci_dev(accel_dev)->devfn);
/linux-master/arch/x86/pci/
H A Dirq.c222 e->bus, e->devfn / 8, e->devfn % 8, e->slot);
1354 if (info->devfn == dev->devfn)
1357 PCI_SLOT(info->devfn) == PCI_SLOT(dev->devfn))
1739 PCI_SLOT(dev->devfn), pin - 1);
1752 PCI_SLOT(bridge->devfn),
/linux-master/drivers/i2c/busses/
H A Di2c-amd756.c327 if (PCI_FUNC(pdev->devfn) != 1)
333 if (PCI_FUNC(pdev->devfn) != 3)
/linux-master/drivers/pci/hotplug/
H A Dacpiphp_glue.c423 if (PCI_FUNC(dev->devfn) == func->function) {
497 if (PCI_SLOT(dev->devfn) == slot->device)
508 if (PCI_SLOT(dev->devfn) != slot->device)
566 if (PCI_SLOT(dev->devfn) == slot->device)
581 if (PCI_SLOT(dev->devfn) == slot->device && dev->ignore_hotplug)
718 if (PCI_SLOT(dev->devfn) == slot->device)
/linux-master/arch/um/drivers/
H A Dvirt-pci.c438 static void __iomem *um_pci_map_bus(struct pci_bus *bus, unsigned int devfn, argument
448 if (devfn % 8)
451 if (devfn / 8 >= ARRAY_SIZE(um_pci_devices))
454 dev = &um_pci_devices[devfn / 8];
807 struct um_pci_device_reg *reg = &um_pci_devices[pdev->devfn / 8];
950 struct um_pci_device_reg *reg = &um_pci_devices[pdev->devfn / 8];
/linux-master/drivers/pci/
H A Dpci.c307 if (dev->devfn != PCI_DEVFN(slot, func)) {
340 dev->devfn == PCI_DEVFN(slot, func));
427 static u8 __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, argument
433 pci_bus_read_config_byte(bus, devfn, pos, &pos);
439 pci_bus_read_config_word(bus, devfn, pos, &ent);
451 static u8 __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, argument
456 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl);
461 return __pci_find_next_cap(dev->bus, dev->devfn,
467 unsigned int devfn, u8 hdr_type)
471 pci_bus_read_config_word(bus, devfn, PCI_STATU
466 __pci_bus_find_cap_start(struct pci_bus *bus, unsigned int devfn, u8 hdr_type) argument
530 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument
[all...]
/linux-master/drivers/edac/
H A Di5400_edac.c747 if (PCI_FUNC(pdev->devfn) == 1)
771 if (PCI_FUNC(pdev->devfn) == 2)
1264 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
1267 if (PCI_FUNC(pdev->devfn) != 0)
H A Di5000_edac.c807 if (PCI_FUNC(pdev->devfn) == 1)
833 if (PCI_FUNC(pdev->devfn) == 2)
1364 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
1367 if (PCI_FUNC(pdev->devfn) != 0)
/linux-master/drivers/pci/controller/
H A Dpcie-xilinx-nwl.c214 static bool nwl_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) argument
222 } else if (devfn > 0)
233 * @devfn: Device/function
239 static void __iomem *nwl_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, argument
244 if (!nwl_pcie_valid_device(bus, devfn))
247 return pcie->ecam_base + PCIE_ECAM_OFFSET(bus->number, devfn, where);
H A Dpci-tegra.c418 static unsigned int tegra_pcie_conf_offset(u8 bus, unsigned int devfn, argument
421 return ((where & 0xf00) << 16) | (bus << 16) | (PCI_SLOT(devfn) << 11) |
422 (PCI_FUNC(devfn) << 8) | (where & 0xff);
426 unsigned int devfn,
433 unsigned int slot = PCI_SLOT(devfn);
446 offset = tegra_pcie_conf_offset(bus->number, devfn, where);
459 static int tegra_pcie_config_read(struct pci_bus *bus, unsigned int devfn, argument
463 return pci_generic_config_read32(bus, devfn, where, size,
466 return pci_generic_config_read(bus, devfn, where, size, value);
469 static int tegra_pcie_config_write(struct pci_bus *bus, unsigned int devfn, argument
425 tegra_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, int where) argument
[all...]
/linux-master/drivers/iommu/intel/
H A Dsvm.c362 sdev->sid = PCI_DEVID(info->bus, info->devfn);
488 sid = PCI_DEVID(info->bus, info->devfn);
737 u8 bus = info->bus, devfn = info->devfn; local
745 sid = PCI_DEVID(bus, devfn);
/linux-master/drivers/xen/xen-pciback/
H A Dxenbus.c205 unsigned int devfn, unsigned int devid)
220 PCI_SLOT(devfn), PCI_FUNC(devfn));
203 xen_pcibk_publish_pci_dev(struct xen_pcibk_device *pdev, unsigned int domain, unsigned int bus, unsigned int devfn, unsigned int devid) argument
/linux-master/arch/sparc/kernel/
H A Dprom_irqtrans.c122 unsigned int bus, devfn; local
128 devfn = (phys_hi >> 8) & 0xff;
130 config_space |= SABRE_CONFIG_ENCODE(bus, devfn, 0x00);
H A Dof_device_64.c485 unsigned int bus, devfn, slot, ret; local
495 devfn = (regs->phys_hi >> 8) & 0xff;
496 slot = (devfn >> 3) & 0x1f;
/linux-master/arch/powerpc/kernel/
H A Dpci-common.c1576 null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
1583 null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
1615 int devfn, int offset, type value) \
1618 devfn, offset, value); \
1628 int early_find_capability(struct pci_controller *hose, int bus, int devfn,
1631 return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap);

Completed in 336 milliseconds

<<11121314151617181920