/drivers/net/ethernet/neterion/ |
D | s2io.c | 1018 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_verify_pci_mode() local 1022 val64 = readq(&bar0->pci_mode); in s2io_verify_pci_mode() 1052 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_print_pci_mode() local 1058 val64 = readq(&bar0->pci_mode); in s2io_print_pci_mode() 1120 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_tti() local 1144 writeq(val64, &bar0->tti_data1_mem); in init_tti() 1169 writeq(val64, &bar0->tti_data2_mem); in init_tti() 1174 writeq(val64, &bar0->tti_command_mem); in init_tti() 1176 if (wait_for_cmd_complete(&bar0->tti_command_mem, in init_tti() 1196 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_nic() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | shadowramin.c | 27 u32 bar0; member 49 nvkm_wr32(device, 0x001700, priv->bar0); in pramin_fini() 105 priv->bar0 = nvkm_rd32(device, 0x001700); in pramin_init()
|
/drivers/scsi/snic/ |
D | snic_main.c | 268 if (snic->bar0.vaddr) in snic_iounmap() 269 iounmap(snic->bar0.vaddr); in snic_iounmap() 470 snic->bar0.vaddr = pci_iomap(pdev, 0, 0); in snic_probe() 471 if (!snic->bar0.vaddr) { in snic_probe() 479 snic->bar0.bus_addr = pci_resource_start(pdev, 0); in snic_probe() 480 snic->bar0.len = pci_resource_len(pdev, 0); in snic_probe() 481 SNIC_BUG_ON(snic->bar0.bus_addr == 0); in snic_probe() 484 snic->vdev = svnic_dev_alloc_discover(NULL, snic, pdev, &snic->bar0, 1); in snic_probe()
|
D | snic.h | 280 struct vnic_dev_bar bar0; member
|
/drivers/infiniband/hw/usnic/ |
D | usnic_vnic.c | 98 struct vnic_dev_bar *bar0; in usnic_vnic_dump() local 102 bar0 = usnic_vnic_get_bar(vnic, 0); in usnic_vnic_dump() 106 &bar0->bus_addr, in usnic_vnic_dump() 107 bar0->vaddr, bar0->len); in usnic_vnic_dump()
|
/drivers/media/pci/cobalt/ |
D | cobalt-driver.h | 267 void __iomem *bar0, *bar1; member 311 iowrite32(val, cobalt->bar0 + reg); in cobalt_write_bar0() 316 return ioread32(cobalt->bar0 + reg); in cobalt_read_bar0()
|
D | cobalt-driver.c | 297 if (cobalt->bar0) { in cobalt_pci_iounmap() 298 pci_iounmap(pci_dev, cobalt->bar0); in cobalt_pci_iounmap() 299 cobalt->bar0 = NULL; in cobalt_pci_iounmap() 370 cobalt->bar0 = pci_iomap(pci_dev, 0, 0); in cobalt_setup_pci() 376 if (!cobalt->bar0 || !cobalt->bar1) { in cobalt_setup_pci()
|
D | cobalt-omnitek.c | 54 #define BASE (cobalt->bar0)
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic.h | 1221 #define NX_RD_DUMP_REG(addr, bar0, data) do { \ argument 1222 writel((addr & 0xFFFF0000), (void __iomem *) (bar0 + \ 1224 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG1)); \ 1225 *data = readl((void __iomem *) (bar0 + NX_FW_DUMP_REG2 + \ 1229 #define NX_WR_DUMP_REG(addr, bar0, data) do { \ argument 1230 writel((addr & 0xFFFF0000), (void __iomem *) (bar0 + \ 1232 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG1)); \ 1233 writel(data, (void __iomem *) (bar0 + NX_FW_DUMP_REG2 + LSW(addr)));\ 1234 readl((void __iomem *) (bar0 + NX_FW_DUMP_REG2 + LSW(addr))); \
|
/drivers/ide/ |
D | sgiioc4.c | 537 unsigned long bar0, cmd_phys_base, ctl; in sgiioc4_ide_setup_pci_device() local 543 bar0 = pci_resource_start(dev, 0); in sgiioc4_ide_setup_pci_device() 547 DRV_NAME, bar0); in sgiioc4_ide_setup_pci_device() 554 cmd_phys_base = bar0 + IOC4_CMD_OFFSET; in sgiioc4_ide_setup_pci_device()
|
/drivers/scsi/aacraid/ |
D | src.c | 536 iounmap(dev->regs.src.bar0); in aac_src_ioremap() 537 dev->base = dev->regs.src.bar0 = NULL; in aac_src_ioremap() 545 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_src_ioremap() 564 iounmap(dev->regs.src.bar0); in aac_srcv_ioremap() 565 dev->base = dev->regs.src.bar0 = NULL; in aac_srcv_ioremap() 568 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_srcv_ioremap()
|
D | aacraid.h | 842 #define src_readb(AEP, CSR) readb(&((AEP)->regs.src.bar0->CSR)) 843 #define src_readl(AEP, CSR) readl(&((AEP)->regs.src.bar0->CSR)) 845 &((AEP)->regs.src.bar0->CSR)) 847 &((AEP)->regs.src.bar0->CSR)) 850 &((AEP)->regs.src.bar0->CSR)) 1194 struct src_registers __iomem *bar0; member
|
/drivers/scsi/fnic/ |
D | fnic_main.c | 520 if (fnic->bar0.vaddr) in fnic_iounmap() 521 iounmap(fnic->bar0.vaddr); in fnic_iounmap() 637 fnic->bar0.vaddr = pci_iomap(pdev, 0, 0); in fnic_probe() 638 fnic->bar0.bus_addr = pci_resource_start(pdev, 0); in fnic_probe() 639 fnic->bar0.len = pci_resource_len(pdev, 0); in fnic_probe() 641 if (!fnic->bar0.vaddr) { in fnic_probe() 649 fnic->vdev = vnic_dev_register(NULL, fnic, pdev, &fnic->bar0); in fnic_probe()
|
D | fnic.h | 218 struct vnic_dev_bar bar0; member
|
/drivers/tty/serial/ |
D | rp2.c | 198 void __iomem *bar0; member 622 writel(4, card->bar0 + RP2_FPGA_CTL0); in rp2_init_card() 623 writel(0, card->bar0 + RP2_FPGA_CTL1); in rp2_init_card() 629 writel(RP2_IRQ_MASK_EN_m, card->bar0 + RP2_IRQ_MASK); in rp2_init_card() 745 card->bar0 = bars[0]; in rp2_probe()
|
/drivers/net/ethernet/neterion/vxge/ |
D | vxge-config.c | 570 __vxge_hw_device_toc_get(void __iomem *bar0) in __vxge_hw_device_toc_get() argument 577 (struct vxge_hw_legacy_reg __iomem *)bar0; in __vxge_hw_device_toc_get() 584 toc = bar0 + val64; in __vxge_hw_device_toc_get() 602 hldev->legacy_reg = hldev->bar0; in __vxge_hw_device_reg_addr_get() 604 hldev->toc_reg = __vxge_hw_device_toc_get(hldev->bar0); in __vxge_hw_device_reg_addr_get() 611 hldev->common_reg = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get() 614 hldev->mrpcim_reg = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get() 618 hldev->srpcim_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get() 623 hldev->vpmgmt_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get() 628 hldev->vpath_reg[i] = hldev->bar0 + val64; in __vxge_hw_device_reg_addr_get() [all …]
|
D | vxge-config.h | 737 void __iomem *bar0; member 841 void __iomem *bar0; member 1850 void __iomem *bar0,
|
D | vxge-main.h | 389 void __iomem *bar0; member
|
D | vxge-main.c | 4439 attr.bar0 = pci_ioremap_bar(pdev, 0); in vxge_probe() 4440 if (!attr.bar0) { in vxge_probe() 4448 attr.bar0, in vxge_probe() 4451 status = vxge_hw_device_hw_info_get(attr.bar0, in vxge_probe() 4609 vdev->bar0 = attr.bar0; in vxge_probe() 4755 iounmap(attr.bar0); in vxge_probe() 4796 iounmap(vdev->bar0); in vxge_remove()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_hw.c | 290 static void qlcnic_read_window_reg(u32 addr, void __iomem *bar0, u32 *data) in qlcnic_read_window_reg() argument 296 val = bar0 + QLCNIC_FW_DUMP_REG1; in qlcnic_read_window_reg() 299 val = bar0 + QLCNIC_FW_DUMP_REG2 + LSW(addr); in qlcnic_read_window_reg() 303 static void qlcnic_write_window_reg(u32 addr, void __iomem *bar0, u32 data) in qlcnic_write_window_reg() argument 309 val = bar0 + QLCNIC_FW_DUMP_REG1; in qlcnic_write_window_reg() 312 val = bar0 + QLCNIC_FW_DUMP_REG2 + LSW(addr); in qlcnic_write_window_reg()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | bcmsdh.c | 386 uint bar0 = *addr & ~SBSDIO_SB_OFT_ADDR_MASK; in brcmf_sdiod_addrprep() local 389 if (bar0 != sdiodev->sbwad) { in brcmf_sdiod_addrprep() 390 err = brcmf_sdiod_set_sbaddr_window(sdiodev, bar0); in brcmf_sdiod_addrprep() 394 sdiodev->sbwad = bar0; in brcmf_sdiod_addrprep()
|
/drivers/staging/rdma/ipath/ |
D | ipath_driver.c | 162 u32 *bar0, u32 *bar1) in read_bars() argument 166 ret = pci_read_config_dword(dev, PCI_BASE_ADDRESS_0, bar0); in read_bars() 176 ipath_dbg("Read bar0 %x bar1 %x\n", *bar0, *bar1); in read_bars() 400 u32 bar0 = 0, bar1 = 0; in ipath_init_one() local 444 read_bars(dd, pdev, &bar0, &bar1); in ipath_init_one() 446 if (!bar1 && !(bar0 & ~0xf)) { in ipath_init_one()
|
/drivers/net/ethernet/brocade/bna/ |
D | bnad.h | 318 void __iomem *bar0; /* BAR0 address */ member
|
D | bnad.c | 3499 bnad->bar0 = ioremap_nocache(bnad->mmio_start, bnad->mmio_len); in bnad_init() 3500 if (!bnad->bar0) { in bnad_init() 3504 dev_info(&pdev->dev, "bar0 mapped to %p, len %llu\n", bnad->bar0, in bnad_init() 3529 iounmap(bnad->bar0); in bnad_init() 3550 if (bnad->bar0) in bnad_uninit() 3551 iounmap(bnad->bar0); in bnad_uninit() 3692 pcidev_info.pci_bar_kva = bnad->bar0; in bnad_pci_probe()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 1314 int_status = readl(bp->bar0 + BNXT_CAG_REG_LEGACY_INT_STATUS); in bnxt_inta() 2625 __iowrite32_copy(bp->bar0, data, msg_len / 4); in _hwrm_send_message() 2633 writel(1, bp->bar0 + 0x100); in _hwrm_send_message() 4576 bp->bar0 + BNXT_GRCPF_REG_WINDOW_BASE_OUT + 12); in bnxt_preset_reg_win() 5211 bp->bar0 = pci_ioremap_bar(pdev, 0); in bnxt_init_board() 5212 if (!bp->bar0) { in bnxt_init_board() 5264 if (bp->bar0) { in bnxt_init_board() 5265 pci_iounmap(pdev, bp->bar0); in bnxt_init_board() 5266 bp->bar0 = NULL; in bnxt_init_board() 5599 pci_iounmap(pdev, bp->bar0); in bnxt_remove_one() [all …]
|