/u-boot/drivers/pci/ |
A D | pci_sandbox.c | 25 static int sandbox_pci_write_config(struct udevice *bus, pci_dev_t devfn, in sandbox_pci_write_config() argument 33 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_write_config() 54 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_read_config() 59 devfn = SANDBOX_PCI_DEVFN(PCI_DEV(devfn), in sandbox_pci_read_config() 60 PCI_FUNC(devfn)); in sandbox_pci_read_config() 61 vendor = priv->vendev[devfn].vendor; in sandbox_pci_read_config() 62 device = priv->vendev[devfn].device; in sandbox_pci_read_config() 84 u8 pdev, pfn, devfn; in sandbox_pci_probe() local 104 devfn = SANDBOX_PCI_DEVFN(pdev, pfn); in sandbox_pci_probe() 105 priv->vendev[devfn].vendor = fdt32_to_cpu(cell[2]); in sandbox_pci_probe() [all …]
|
A D | pci_msc01.c | 37 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in msc01_config_access() local 45 (devfn << MSC01_PCI_CFGADDR_FNUM_SHF) | in msc01_config_access()
|
A D | pci_mvebu.c | 80 int devfn; member 370 static int mvebu_get_tgt_attr(ofnode node, int devfn, in mvebu_get_tgt_attr() argument 414 if (slot == PCI_DEV(devfn) && type == rtype) { in mvebu_get_tgt_attr() 442 pcie->devfn = pci_get_devfn(dev); in mvebu_pcie_of_to_plat() 443 if (pcie->devfn < 0) { in mvebu_pcie_of_to_plat() 448 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn, in mvebu_pcie_of_to_plat() 456 ret = mvebu_get_tgt_attr(dev_ofnode(dev->parent), pcie->devfn, in mvebu_pcie_of_to_plat()
|
A D | pci_gt64120.c | 51 unsigned int devfn = PCI_DEV(bdf) << 3 | PCI_FUNC(bdf); in gt_config_access() local 70 addr |= devfn << GT_PCI0_CFGADDR_FUNCTNUM_SHF; in gt_config_access()
|
A D | pcie_mediatek.c | 194 static int mtk_pcie_hw_rd_cfg(struct mtk_pcie_port *port, u32 bus, pci_dev_t devfn, in mtk_pcie_hw_rd_cfg() argument 202 writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_DEV(devfn), bus), in mtk_pcie_hw_rd_cfg() 225 static int mtk_pcie_hw_wr_cfg(struct mtk_pcie_port *port, u32 bus, pci_dev_t devfn, in mtk_pcie_hw_wr_cfg() argument 232 writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_DEV(devfn), bus), in mtk_pcie_hw_wr_cfg() 275 PCI_DEV(pplat->devfn) == port->slot) in mtk_pcie_find_port()
|
A D | pci-aardvark.c | 130 #define PCIE_CONF_ADDR(bus, devfn, where) \ argument 131 (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \ 132 PCIE_CONF_FUNC(PCI_FUNC(devfn)) | PCIE_CONF_REG(where))
|
A D | pcie_intel_fpga.c | 45 #define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn)) argument
|
A D | pcie_iproc.c | 536 unsigned int devfn, int where, in iproc_pci_raw_config_read32() argument 542 ret = iproc_pcie_map_ep_cfg_reg(pcie->dev, devfn, where & ~0x3, &addr); in iproc_pci_raw_config_read32() 557 unsigned int devfn, int where, in iproc_pci_raw_config_write32() argument 564 ret = iproc_pcie_map_ep_cfg_reg(pcie->dev, devfn, where & ~0x3, &addr); in iproc_pci_raw_config_write32()
|
A D | pci-uclass.c | 70 return PCI_ADD_BUS(dev_seq(bus), pplat->devfn); in dm_pci_get_bdf() 144 if (pplat && pplat->devfn == find_devfn) { in pci_bus_find_devfn() 866 pplat->devfn = PCI_MASK_BUS(bdf); in pci_bind_bus_devices() 1104 pplat->devfn = pci_get_devfn(dev); in pci_uclass_child_post_bind() 1767 pplat->devfn = PCI_MASK_BUS(bdf); in pci_sriov_init()
|
/u-boot/arch/x86/lib/ |
A D | bios_interrupts.c | 107 unsigned short devid, vendorid, devfn; in int1a_handler() local 165 devfn = M.x86.R_EBX & 0xff; in int1a_handler() 168 bdf = PCI_BDF(bus, devfn >> 3, devfn & 7); in int1a_handler() 204 bus, devfn, reg, M.x86.R_ECX); in int1a_handler()
|
A D | pirq_routing.c | 69 irq->bus, irq->devfn >> 3, irq->devfn & 7); in pirq_route_irqs() 105 pci_assign_irqs(irq->bus, irq->devfn >> 3, irq_slot); in pirq_route_irqs()
|
/u-boot/drivers/net/ |
A D | fsl_enetc.c | 29 static void enetc_set_ierb_primary_mac(struct udevice *dev, int devfn, in enetc_set_ierb_primary_mac() argument 46 if (ierb_fn_to_pf[devfn] < 0) in enetc_set_ierb_primary_mac() 49 out_le32(IERB_PFMAC(ierb_fn_to_pf[devfn], 0, 0), upper); in enetc_set_ierb_primary_mac() 50 out_le32(IERB_PFMAC(ierb_fn_to_pf[devfn], 0, 1), (u32)lower); in enetc_set_ierb_primary_mac() 63 int devfn; in fdt_fixup_enetc_mac() local 73 devfn = PCI_FUNC(ppdata->devfn); in fdt_fixup_enetc_mac() 75 enetc_set_ierb_primary_mac(dev, devfn, pdata->enetaddr); in fdt_fixup_enetc_mac() 78 PCI_DEV(ppdata->devfn), PCI_FUNC(ppdata->devfn)); in fdt_fixup_enetc_mac() 371 int devfn = PCI_FUNC(ppdata->devfn); in enetc_ls1028a_write_hwaddr() local 376 if (devfn >= ARRAY_SIZE(devfn_to_pf)) in enetc_ls1028a_write_hwaddr() [all …]
|
/u-boot/board/armltd/vexpress/ |
A D | vexpress_common.c | 156 int v2m_cfg_write(u32 devfn, u32 data) in v2m_cfg_write() argument 161 devfn |= SYS_CFG_START | SYS_CFG_WRITE; in v2m_cfg_write() 167 writel(devfn, V2M_SYS_CFGCTRL); in v2m_cfg_write()
|
/u-boot/drivers/pci_endpoint/ |
A D | pcie-cadence.h | 120 #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN(devfn) \ argument 121 (((devfn) << 12) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_DEVFN_MASK) 143 #define CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN(devfn) \ argument 144 (((devfn) << 24) & CDNS_PCIE_AT_OB_REGION_DESC0_DEVFN_MASK)
|
/u-boot/board/gateworks/gw_ventana/ |
A D | gw_ventana.c | 539 pci_dev_t devfn; member 562 pdev->devfn = dev; in board_pci_fixup_dev() 574 pdev->devfn = 0; in board_pci_fixup_dev() 578 if (pci_devs[i].busno == PCI_BUS(pdev->devfn)) { in board_pci_fixup_dev() 890 (PCI_BUS(x->devfn)<<16)| \ 891 (PCI_DEV(x->devfn)<<11)| \ 892 (PCI_FUNC(x->devfn)<<8) \ 900 sprintf(node, "pcie@%d,%d,%d", PCI_BUS(dev->devfn), in fdt_add_pci_node() 901 PCI_DEV(dev->devfn), PCI_FUNC(dev->devfn)); in fdt_add_pci_node() 991 b += PCI_DEV(d->devfn); in fdt_fixup_gw16082()
|
/u-boot/arch/x86/include/asm/ |
A D | pirq_routing.h | 29 u8 devfn; /* Device and function number */ member
|
/u-boot/board/armltd/integrator/ |
A D | pci.c | 96 unsigned int devfn = PCI_FUNC(bdf); in v3_open_config_window() local 105 if (devfn > 255) in v3_open_config_window() 152 address = (busnr << 16) | (devfn << 8); in v3_open_config_window()
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
A D | pcie.c | 60 u8 devfn = PCI_DEV(dev) << 3 | PCI_FUNC(dev); in mpc83xx_pcie_remap_cfg() local 61 u32 dev_base = bus << 24 | devfn << 16; in mpc83xx_pcie_remap_cfg() 70 if (devfn & 0xf8) in mpc83xx_pcie_remap_cfg()
|
/u-boot/cmd/ |
A D | pci.c | 347 PCI_DEV(pplat->devfn), PCI_FUNC(pplat->devfn)); in pciinfo() 352 PCI_DEV(pplat->devfn), PCI_FUNC(pplat->devfn)); in pciinfo()
|
/u-boot/arch/x86/cpu/ |
A D | irq.c | 131 if (slot->bus == bus && slot->devfn == (device << 3)) in check_dup_entry() 143 slot->devfn = (device << 3) | 0; in fill_irq_info()
|
/u-boot/include/ |
A D | pci.h | 579 #define PCI_ADD_BUS(bus, devfn) (((bus) << 16) | (devfn)) argument 918 int devfn; member
|
/u-boot/drivers/spi/ |
A D | ich.c | 680 spi_bdf = pplat->devfn; in ich_get_mmap_bus()
|