Lines Matching refs:bdf
110 static u32 get_bus_address(struct udevice *dev, pci_dev_t bdf, u32 offset) in get_bus_address() argument
114 return priv->cfg_base + (PCI_DEV(bdf) >> 1) * 0x100 + (offset & ~3); in get_bus_address()
117 static u32 setup_bus_address(struct udevice *dev, pci_dev_t bdf, u32 offset) in setup_bus_address() argument
122 reg = PCI_DEV(bdf) ? RCAR_AHBPCI_WIN1_DEVICE : RCAR_AHBPCI_WIN1_HOST; in setup_bus_address()
126 return get_bus_address(dev, bdf, offset); in setup_bus_address()
129 static int rcar_gen2_pci_read_config(struct udevice *dev, pci_dev_t bdf, in rcar_gen2_pci_read_config() argument
136 ret = rcar_gen2_pci_addr_valid(bdf, offset); in rcar_gen2_pci_read_config()
142 addr = get_bus_address(dev, bdf, offset); in rcar_gen2_pci_read_config()
149 static int rcar_gen2_pci_write_config(struct udevice *dev, pci_dev_t bdf, in rcar_gen2_pci_write_config() argument
156 ret = rcar_gen2_pci_addr_valid(bdf, offset); in rcar_gen2_pci_write_config()
160 addr = get_bus_address(dev, bdf, offset); in rcar_gen2_pci_write_config()