Home
last modified time | relevance | path

Searched refs:bar0 (Results 1 – 25 of 66) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/neterion/
H A Ds2io.c1009 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_verify_pci_mode() local
1043 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_print_pci_mode() local
1113 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_tti() local
1189 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_nic() local
1852 struct XENA_dev_config __iomem *bar0 = nic->bar0; in en_dis_err_alarms() local
2078 struct XENA_dev_config __iomem *bar0 = sp->bar0; in verify_pcc_quiescent() local
2120 struct XENA_dev_config __iomem *bar0 = sp->bar0; in verify_xena_quiescence() local
2186 struct XENA_dev_config __iomem *bar0 = sp->bar0; in fix_mac_address() local
3090 struct XENA_dev_config __iomem *bar0 = sp->bar0; in s2io_mdio_write() local
3136 struct XENA_dev_config __iomem *bar0 = sp->bar0; in s2io_mdio_read() local
[all …]
/openbmc/qemu/tests/qtest/
H A Dac97-test.c54 QPCIBar bar0; in ac97_playback_upsample() local
57 bar0 = qpci_iomap(dev, 0, NULL); in ac97_playback_upsample()
59 qpci_io_writew(dev, bar0, 0x2c, 0x1); in ac97_playback_upsample()
70 QPCIBar bar0; in ac97_record_downsample() local
73 bar0 = qpci_iomap(dev, 0, NULL); in ac97_record_downsample()
75 qpci_io_writew(dev, bar0, 0x32, 0x1); in ac97_record_downsample()
/openbmc/u-boot/arch/x86/cpu/broadwell/
H A Dpch.c462 static void serialio_d21_ltr(u32 bar0) in serialio_d21_ltr() argument
468 clrbits_le32(bar0 + SIO_REG_PPR_RST, SIO_REG_PPR_RST_ASSERT); in serialio_d21_ltr()
471 setbits_le32(bar0 + SIO_REG_PPR_RST, SIO_REG_PPR_RST_ASSERT); in serialio_d21_ltr()
474 writel(0, bar0 + SIO_REG_AUTO_LTR); in serialio_d21_ltr()
478 static void serialio_i2c_voltage_sel(u32 bar0, uint voltage) in serialio_i2c_voltage_sel() argument
528 u32 bar0, bar1; in pch_serialio_init() local
534 bar0 = dm_pci_read_bar32(dev, 0); in pch_serialio_init()
535 if (!bar0) in pch_serialio_init()
544 serialio_d21_ltr(bar0); in pch_serialio_init()
545 serialio_i2c_voltage_sel(bar0, 1); /* Select 1.8V always */ in pch_serialio_init()
[all …]
H A Dadsp.c37 u32 bar0, bar1; in broadwell_adsp_probe() local
41 bar0 = dm_pci_read_bar32(dev, 0); in broadwell_adsp_probe()
42 if (!bar0) in broadwell_adsp_probe()
54 writel(ADSP_SHIM_LTRC_VALUE, bar0 + tmp32); in broadwell_adsp_probe()
/openbmc/linux/drivers/platform/x86/
H A Dp2sb.c67 struct resource *bar0 = &pdev->resource[0]; in p2sb_read_bar0() local
77 mem->start = bar0->start; in p2sb_read_bar0()
78 mem->end = bar0->end; in p2sb_read_bar0()
79 mem->flags = bar0->flags; in p2sb_read_bar0()
80 mem->desc = bar0->desc; in p2sb_read_bar0()
/openbmc/linux/Documentation/misc-devices/
H A Dspear-pcie-gadget.rst46 bar0_size: returns size of bar0 in hex.
47 bar0_address returns address of bar0 mapped area in hex.
48 bar0_rw_offset returns offset of bar0 for which bar0_data will return value.
65 bar0_size write size of bar0 in hex. default bar0 size is 1000 (hex)
67 bar0_address write address of bar0 mapped area in hex. (default mapping of
68 bar0 is SYSRAM1(E0800000). Always program bar size before bar
71 bar0_rw_offset write offset of bar0 for which bar0_data will write value.
102 check for programmed bar0 size::
/openbmc/u-boot/drivers/sound/
H A Dbroadwell_i2s.c239 u32 bar0, offset; in broadwell_i2s_probe() local
242 bar0 = dm_pci_read_bar32(adsp, 0); in broadwell_i2s_probe()
243 if (!bar0) { in broadwell_i2s_probe()
252 uc_priv->base_address = bar0 + offset; in broadwell_i2s_probe()
279 log_debug("bar0=%x, uc_priv->base_address=%x, offset=%x\n", bar0, in broadwell_i2s_probe()
281 priv->regs = (struct broadwell_i2s_regs *)(bar0 + offset); in broadwell_i2s_probe()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-thunder.c18 void __iomem *bar0; member
50 nexus->bar0 = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in thunder_mdiobus_pci_probe()
51 if (!nexus->bar0) { in thunder_mdiobus_pci_probe()
87 bus->register_base = nexus->bar0 + in thunder_mdiobus_pci_probe()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dshadowramin.c27 u32 bar0; member
49 nvkm_wr32(device, 0x001700, priv->bar0); in pramin_fini()
111 priv->bar0 = nvkm_rd32(device, 0x001700); in pramin_init()
/openbmc/linux/arch/x86/kernel/
H A Dearly_printk.c222 u32 classcode, bar0; in early_pci_serial_init() local
264 bar0 = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); in early_pci_serial_init()
279 if ((bar0 & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_IO) { in early_pci_serial_init()
283 early_serial_base = bar0 & PCI_BASE_ADDRESS_IO_MASK; in early_pci_serial_init()
292 (unsigned long)early_ioremap(bar0 & PCI_BASE_ADDRESS_MEM_MASK, 0x10); in early_pci_serial_init()
/openbmc/linux/drivers/scsi/snic/
H A Dsnic_main.c260 if (snic->bar0.vaddr) in snic_iounmap()
261 iounmap(snic->bar0.vaddr); in snic_iounmap()
437 snic->bar0.vaddr = pci_iomap(pdev, 0, 0); in snic_probe()
438 if (!snic->bar0.vaddr) { in snic_probe()
446 snic->bar0.bus_addr = pci_resource_start(pdev, 0); in snic_probe()
447 snic->bar0.len = pci_resource_len(pdev, 0); in snic_probe()
448 SNIC_BUG_ON(snic->bar0.bus_addr == 0); in snic_probe()
451 snic->vdev = svnic_dev_alloc_discover(NULL, snic, pdev, &snic->bar0, 1); in snic_probe()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dath9k_pci_owl_loader.c47 u32 bar0; in ath9k_pci_fixup() local
74 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &bar0); in ath9k_pci_fixup()
105 pci_write_config_dword(pdev, PCI_BASE_ADDRESS_0, bar0); in ath9k_pci_fixup()
/openbmc/qemu/hw/acpi/
H A Derst.c240 pcibus_t bar0 = pci_get_bar_addr(PCI_DEVICE(erst_dev), 0); in build_erst() local
245 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
251 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
257 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
263 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
269 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
275 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
281 .table_data = table_instruction_data, .bar = bar0, .flags = 0, in build_erst()
287 trace_acpi_erst_pci_bar_0(bar0); in build_erst()
/openbmc/linux/Documentation/ABI/testing/
H A Dconfigfs-spear-pcie-gadget29 bar0_address used to write and read bar0 mapped area in hex.
30 bar0_rw_offset used to write and read offset of bar0 where bar0_data
/openbmc/linux/drivers/infiniband/hw/usnic/
H A Dusnic_vnic.c97 struct vnic_dev_bar *bar0; in usnic_vnic_dump() local
101 bar0 = usnic_vnic_get_bar(vnic, 0); in usnic_vnic_dump()
105 &bar0->bus_addr, in usnic_vnic_dump()
106 bar0->vaddr, bar0->len); in usnic_vnic_dump()
/openbmc/linux/drivers/cxl/core/
H A Dregs.c480 u32 bar0, bar1; in __rcrb_to_component() local
504 bar0 = readl(addr + PCI_BASE_ADDRESS_0); in __rcrb_to_component()
521 if (bar0 & (PCI_BASE_ADDRESS_MEM_TYPE_1M | PCI_BASE_ADDRESS_SPACE_IO)) in __rcrb_to_component()
524 component_reg_phys = bar0 & PCI_BASE_ADDRESS_MEM_MASK; in __rcrb_to_component()
525 if (bar0 & PCI_BASE_ADDRESS_MEM_TYPE_64) in __rcrb_to_component()
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-driver.h257 void __iomem *bar0, *bar1; member
299 iowrite32(val, cobalt->bar0 + reg); in cobalt_write_bar0()
304 return ioread32(cobalt->bar0 + reg); in cobalt_read_bar0()
H A Dcobalt-driver.c281 if (cobalt->bar0) { in cobalt_pci_iounmap()
282 pci_iounmap(pci_dev, cobalt->bar0); in cobalt_pci_iounmap()
283 cobalt->bar0 = NULL; in cobalt_pci_iounmap()
352 cobalt->bar0 = pci_iomap(pci_dev, 0, 0); in cobalt_setup_pci()
358 if (!cobalt->bar0 || !cobalt->bar1) { in cobalt_setup_pci()
/openbmc/linux/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic.h1202 #define NX_RD_DUMP_REG(addr, bar0, data) do { \ argument
1203 writel((addr & 0xFFFF0000), (void __iomem *) (bar0 + \
1205 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG1)); \
1206 *data = readl((void __iomem *) (bar0 + NX_FW_DUMP_REG2 + \
1210 #define NX_WR_DUMP_REG(addr, bar0, data) do { \ argument
1211 writel((addr & 0xFFFF0000), (void __iomem *) (bar0 + \
1213 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG1)); \
1214 writel(data, (void __iomem *) (bar0 + NX_FW_DUMP_REG2 + LSW(addr)));\
1215 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG2 + LSW(addr))); \
/openbmc/linux/arch/mips/pci/
H A Dpci-rt2880.c237 u32 bar0; in pcibios_plat_dev_init() local
244 &bar0); in pcibios_plat_dev_init()
/openbmc/u-boot/drivers/pci/
H A Dpcie_dw_mvebu.c444 u32 bar0; in pcie_dw_set_host_bars() local
456 bar0 = CONFIG_SYS_SDRAM_BASE & ~0xf; in pcie_dw_set_host_bars()
457 bar0 |= PCI_BASE_ADDRESS_MEM_TYPE_32; in pcie_dw_set_host_bars()
/openbmc/linux/drivers/bluetooth/
H A Dhci_bcm4377.c559 void __iomem *bar0; member
614 iowrite32(db, bcm4377->bar0 + BCM4377_BAR0_DOORBELL); in bcm4377_ring_doorbell()
939 bcm4377->bar0 + BCM4377_BAR0_SLEEP_CONTROL); in bcm4377_enqueue()
1850 bcm4377->bar0 + BCM4377_BAR0_HOST_WINDOW_SIZE); in bcm4377_boot()
1855 iowrite32(0, bcm4377->bar0 + BCM4377_BAR0_FW_DOORBELL); in bcm4377_boot()
1891 iowrite32(1, bcm4377->bar0 + BCM4377_BAR0_RTI_CONTROL); in bcm4377_setup_rti()
1921 iowrite32(2, bcm4377->bar0 + BCM4377_BAR0_RTI_CONTROL); in bcm4377_setup_rti()
2319 bcm4377->bar0 = pcim_iomap(pdev, 0, 0); in bcm4377_probe()
2320 if (!bcm4377->bar0) in bcm4377_probe()
2406 bcm4377->bar0 + BCM4377_BAR0_SLEEP_CONTROL); in bcm4377_suspend()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_main.c527 if (fnic->bar0.vaddr) in fnic_iounmap()
528 iounmap(fnic->bar0.vaddr); in fnic_iounmap()
658 fnic->bar0.vaddr = pci_iomap(pdev, 0, 0); in fnic_probe()
659 fnic->bar0.bus_addr = pci_resource_start(pdev, 0); in fnic_probe()
660 fnic->bar0.len = pci_resource_len(pdev, 0); in fnic_probe()
662 if (!fnic->bar0.vaddr) { in fnic_probe()
670 fnic->vdev = vnic_dev_register(NULL, fnic, pdev, &fnic->bar0); in fnic_probe()
/openbmc/linux/drivers/tty/serial/
H A Drp2.c195 void __iomem *bar0; member
597 writel(4, card->bar0 + RP2_FPGA_CTL0); in rp2_init_card()
598 writel(0, card->bar0 + RP2_FPGA_CTL1); in rp2_init_card()
604 writel(RP2_IRQ_MASK_EN_m, card->bar0 + RP2_IRQ_MASK); in rp2_init_card()
720 card->bar0 = bars[0]; in rp2_probe()
/openbmc/qemu/qapi/
H A Dcommon.json80 # @bar0: PCI BAR0 is used for the feature
95 'data': [ 'off', 'auto', 'bar0', 'bar1', 'bar2', 'bar3', 'bar4', 'bar5' ] }

123