Searched refs:devfn (Results 151 - 175 of 492) sorted by relevance

1234567891011>>

/linux-master/drivers/hwmon/
H A Dfam15h_power.c80 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
97 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
332 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3),
363 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5),
371 PCI_DEVFN(PCI_SLOT(pdev->devfn), 5),
396 pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5),
/linux-master/drivers/pci/controller/cadence/
H A Dpcie-cadence.h157 #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN(devfn) \
158 (((devfn) << 12) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN_MASK)
180 #define CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN(devfn) \
181 (((devfn) << 24) & CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN_MASK)
525 void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn,
533 static inline void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn, argument
/linux-master/drivers/pci/controller/
H A Dpcie-mediatek-gen3.c33 #define PCIE_CFG_DEVFN(devfn) ((devfn) & GENMASK(7, 0))
38 #define PCIE_CFG_HEADER(bus, devfn) \
39 (PCIE_CFG_BUS(bus) | PCIE_CFG_DEVFN(devfn))
190 * @devfn: device/function number
196 static void mtk_pcie_config_tlp_header(struct pci_bus *bus, unsigned int devfn, argument
206 PCIE_CFG_HEADER(bus->number, devfn);
211 static void __iomem *mtk_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, argument
219 static int mtk_pcie_config_read(struct pci_bus *bus, unsigned int devfn, argument
222 mtk_pcie_config_tlp_header(bus, devfn, wher
227 mtk_pcie_config_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) argument
[all...]
H A Dpci-xgene.c116 static void xgene_pcie_set_rtdid_reg(struct pci_bus *bus, uint devfn) argument
123 d = PCI_SLOT(devfn);
124 f = PCI_FUNC(devfn);
151 static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, argument
154 if ((pci_is_root_bus(bus) && devfn != 0) ||
158 xgene_pcie_set_rtdid_reg(bus, devfn);
162 static int xgene_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, argument
168 ret = pci_generic_config_read32(bus, devfn, where & ~0x3, 4, val);
/linux-master/drivers/iommu/intel/
H A Dpasid.c220 sid = info->bus << 8 | info->devfn;
679 static void device_pasid_table_teardown(struct device *dev, u8 bus, u8 devfn) argument
686 context = iommu_context_addr(iommu, bus, devfn, false);
711 iommu->flush.flush_context(iommu, 0, PCI_DEVID(bus, devfn),
731 device_pasid_table_teardown(dev, info->bus, info->devfn);
783 static int device_pasid_table_setup(struct device *dev, u8 bus, u8 devfn) argument
790 context = iommu_context_addr(iommu, bus, devfn, true);
796 if (context_present(context) && !context_copied(iommu, bus, devfn)) {
801 if (context_copied(iommu, bus, devfn)) {
815 PCI_DEVID(bus, devfn),
[all...]
/linux-master/arch/mips/pci/
H A Dfixup-fuloong2e.c23 switch (PCI_FUNC(dev->devfn)) {
63 sb_slot = PCI_SLOT(pdev->devfn);
H A Dpci-ar724x.c113 static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, argument
124 if (devfn)
160 static int ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, argument
172 if (devfn)
/linux-master/drivers/media/pci/mantis/
H A Dmantis_pci.c48 PCI_SLOT(mantis->pdev->devfn),
49 PCI_FUNC(mantis->pdev->devfn));
/linux-master/drivers/ata/
H A Data_generic.c186 (!(PCI_FUNC(dev->devfn) & 1)))
191 (!(PCI_FUNC(dev->devfn) & 1)))
/linux-master/drivers/scsi/snic/
H A Dsnic_main.c361 pdev->bus->number, PCI_SLOT(pdev->devfn),
362 PCI_FUNC(pdev->devfn));
383 PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));
732 pdev->bus->number, PCI_SLOT(pdev->devfn),
733 PCI_FUNC(pdev->devfn));
751 pdev->bus->number, PCI_SLOT(pdev->devfn),
752 PCI_FUNC(pdev->devfn));
/linux-master/arch/riscv/kernel/
H A Dacpi.c313 int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, argument
319 int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, argument
/linux-master/arch/powerpc/platforms/pseries/
H A Deeh_pseries.c79 edev->pe_config_addr = (pdn->busno << 16) | (pdn->devfn << 8);
103 int config_addr = rtas_config_addr(pdn->busno, pdn->devfn, 0);
464 pdn = pci_get_pdn_by_devfn(pdev->bus, pdev->devfn);
705 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0);
724 int cur_vfs = 0, rc = 0, vf_index, bus, devfn, vf_pe_num; local
748 devfn = pci_iov_virtfn_devfn(edev->pdev,
751 pdn->devfn != devfn)
/linux-master/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);
536 if (PCI_SLOT(dev->devfn) != 0)
563 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
/linux-master/drivers/hwtracing/ptt/
H A Dhisi_ptt.h84 #define HISI_PCIE_CORE_PORT_ID(devfn) ((PCI_SLOT(devfn) & 0x7) << 1)
/linux-master/arch/alpha/kernel/
H A Dcore_lca.c202 lca_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument
209 if (mk_conf_addr(bus, devfn, where, &pci_addr))
220 lca_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, argument
226 if (mk_conf_addr(bus, devfn, where, &pci_addr))
/linux-master/arch/powerpc/sysdev/
H A Dtsi108_pci.c133 tsi108_direct_read_config(struct pci_bus *bus, unsigned int devfn, int offset, argument
141 if (ppc_md.pci_exclude_device(hose, bus->number, devfn))
145 devfn,
166 printk("%d:0x%x:0x%x ", bus->number, devfn, offset);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmlx5_irq.h23 int mlx5_set_msix_vec_count(struct mlx5_core_dev *dev, int devfn,
/linux-master/drivers/pci/hotplug/
H A Dcpci_hotplug.h32 unsigned int devfn; member in struct:slot
/linux-master/drivers/pci/
H A Dof_property.c58 FIELD_PREP(OF_PCI_ADDR_FIELD_DEV, PCI_SLOT(pdev->devfn)) |
59 FIELD_PREP(OF_PCI_ADDR_FIELD_FUNC, PCI_FUNC(pdev->devfn));
208 laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8));
250 (child->devfn << 8);
H A Decam.c167 void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn, argument
189 devfn_offset = (devfn & PCIE_ECAM_DEVFN_MASK) << devfn_shift;
195 return base + PCIE_ECAM_OFFSET(busn, devfn, where);
/linux-master/arch/powerpc/include/asm/
H A Dpci.h99 struct pci_bus *bus, int devfn);
/linux-master/drivers/pci/pcie/
H A Daer.c740 u8 devfn = info->id & 0xff; local
745 pci_domain_nr(dev->bus), bus, PCI_SLOT(devfn),
746 PCI_FUNC(devfn));
932 u8 devfn = e_info->id & 0xff; local
935 pci_domain_nr(parent->bus), bus, PCI_SLOT(devfn),
936 PCI_FUNC(devfn));
975 if (dev->devfn != PCI_DEVFN(0, 0))
1127 u8 devfn; member in struct:aer_recover_entry
1143 entry.devfn);
1147 PCI_SLOT(entry.devfn), PCI_FUN
1178 aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, int severity, struct aer_capability_regs *aer_regs) argument
[all...]
/linux-master/drivers/acpi/apei/
H A Deinj-cxl.c66 *sbdf = (seg << 24) | (bus << 16) | dport_dev->devfn;
/linux-master/arch/x86/include/asm/
H A Dpci_x86.h75 u8 bus, devfn; /* Bus, device and function */ member in struct:irq_info
119 int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn,
121 int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn,
/linux-master/arch/powerpc/kernel/
H A Dpci_64.c290 int pci_device_from_OF_node(struct device_node *np, u8 *bus, u8 *devfn) argument
295 *devfn = PCI_DN(np)->devfn;

Completed in 264 milliseconds

1234567891011>>