Home
last modified time | relevance | path

Searched refs:barnum (Results 1 – 5 of 5) sorted by relevance

/third_party/uboot/u-boot-2020.01/drivers/misc/
Dswap_case.c141 int barnum; in sandbox_swap_case_read_config() local
144 barnum = pci_offset_to_barnum(offset); in sandbox_swap_case_read_config()
145 bar = &plat->bar[barnum]; in sandbox_swap_case_read_config()
147 *valuep = sandbox_pci_read_bar(*bar, barinfo[barnum].type, in sandbox_swap_case_read_config()
148 barinfo[barnum].size); in sandbox_swap_case_read_config()
209 int barnum; in sandbox_swap_case_write_config() local
212 barnum = pci_offset_to_barnum(offset); in sandbox_swap_case_write_config()
213 bar = &plat->bar[barnum]; in sandbox_swap_case_write_config()
215 debug("w bar %d=%lx\n", barnum, value); in sandbox_swap_case_write_config()
218 *bar |= barinfo[barnum].type; in sandbox_swap_case_write_config()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/pci/
Dpci_common.c125 void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum, in pci_write_bar32() argument
130 bar = PCI_BASE_ADDRESS_0 + barnum * 4; in pci_write_bar32()
134 u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum) in pci_read_bar32() argument
139 bar = PCI_BASE_ADDRESS_0 + barnum * 4; in pci_read_bar32()
Dpci-uclass.c1202 u32 dm_pci_read_bar32(struct udevice *dev, int barnum) in dm_pci_read_bar32() argument
1207 bar = PCI_BASE_ADDRESS_0 + barnum * 4; in dm_pci_read_bar32()
1215 void dm_pci_write_bar32(struct udevice *dev, int barnum, u32 addr) in dm_pci_write_bar32() argument
1219 bar = PCI_BASE_ADDRESS_0 + barnum * 4; in dm_pci_write_bar32()
/third_party/uboot/u-boot-2020.01/lib/
Dfdtdec.c228 int barnum; in fdtdec_get_pci_bar32() local
231 barnum = addr->phys_hi & 0xff; in fdtdec_get_pci_bar32()
232 if (barnum < PCI_BASE_ADDRESS_0 || barnum > PCI_CARDBUS_CIS) in fdtdec_get_pci_bar32()
235 barnum = (barnum - PCI_BASE_ADDRESS_0) / 4; in fdtdec_get_pci_bar32()
236 *bar = dm_pci_read_bar32(dev, barnum); in fdtdec_get_pci_bar32()
/third_party/uboot/u-boot-2020.01/include/
Dpci.h815 void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum,
826 u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum);
1296 void dm_pci_write_bar32(struct udevice *dev, int barnum, u32 addr);
1305 u32 dm_pci_read_bar32(struct udevice *dev, int barnum);