Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/neterion/
Ds2io.c1015 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_verify_pci_mode() local
1019 val64 = readq(&bar0->pci_mode); in s2io_verify_pci_mode()
1049 struct XENA_dev_config __iomem *bar0 = nic->bar0; in s2io_print_pci_mode() local
1055 val64 = readq(&bar0->pci_mode); in s2io_print_pci_mode()
1117 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_tti() local
1141 writeq(val64, &bar0->tti_data1_mem); in init_tti()
1166 writeq(val64, &bar0->tti_data2_mem); in init_tti()
1171 writeq(val64, &bar0->tti_command_mem); in init_tti()
1173 if (wait_for_cmd_complete(&bar0->tti_command_mem, in init_tti()
1193 struct XENA_dev_config __iomem *bar0 = nic->bar0; in init_nic() local
[all …]
/drivers/net/phy/
Dmdio-thunder.c21 void __iomem *bar0; member
53 nexus->bar0 = pcim_iomap(pdev, 0, pci_resource_len(pdev, 0)); in thunder_mdiobus_pci_probe()
54 if (!nexus->bar0) { in thunder_mdiobus_pci_probe()
90 bus->register_base = (u64)nexus->bar0 + in thunder_mdiobus_pci_probe()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadowramin.c27 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/
Dsnic_main.c275 if (snic->bar0.vaddr) in snic_iounmap()
276 iounmap(snic->bar0.vaddr); in snic_iounmap()
477 snic->bar0.vaddr = pci_iomap(pdev, 0, 0); in snic_probe()
478 if (!snic->bar0.vaddr) { in snic_probe()
486 snic->bar0.bus_addr = pci_resource_start(pdev, 0); in snic_probe()
487 snic->bar0.len = pci_resource_len(pdev, 0); in snic_probe()
488 SNIC_BUG_ON(snic->bar0.bus_addr == 0); in snic_probe()
491 snic->vdev = svnic_dev_alloc_discover(NULL, snic, pdev, &snic->bar0, 1); in snic_probe()
Dsnic.h283 struct vnic_dev_bar bar0; member
/drivers/infiniband/hw/usnic/
Dusnic_vnic.c98 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/
Dcobalt-driver.h266 void __iomem *bar0, *bar1; member
308 iowrite32(val, cobalt->bar0 + reg); in cobalt_write_bar0()
313 return ioread32(cobalt->bar0 + reg); in cobalt_read_bar0()
Dcobalt-driver.c300 if (cobalt->bar0) { in cobalt_pci_iounmap()
301 pci_iounmap(pci_dev, cobalt->bar0); in cobalt_pci_iounmap()
302 cobalt->bar0 = NULL; in cobalt_pci_iounmap()
371 cobalt->bar0 = pci_iomap(pci_dev, 0, 0); in cobalt_setup_pci()
377 if (!cobalt->bar0 || !cobalt->bar1) { in cobalt_setup_pci()
Dcobalt-omnitek.c54 #define BASE (cobalt->bar0)
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic.h1221 #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/
Dsgiioc4.c537 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/fnic/
Dfnic_main.c531 if (fnic->bar0.vaddr) in fnic_iounmap()
532 iounmap(fnic->bar0.vaddr); in fnic_iounmap()
648 fnic->bar0.vaddr = pci_iomap(pdev, 0, 0); in fnic_probe()
649 fnic->bar0.bus_addr = pci_resource_start(pdev, 0); in fnic_probe()
650 fnic->bar0.len = pci_resource_len(pdev, 0); in fnic_probe()
652 if (!fnic->bar0.vaddr) { in fnic_probe()
660 fnic->vdev = vnic_dev_register(NULL, fnic, pdev, &fnic->bar0); in fnic_probe()
Dfnic.h218 struct vnic_dev_bar bar0; member
/drivers/tty/serial/
Drp2.c198 void __iomem *bar0; member
623 writel(4, card->bar0 + RP2_FPGA_CTL0); in rp2_init_card()
624 writel(0, card->bar0 + RP2_FPGA_CTL1); in rp2_init_card()
630 writel(RP2_IRQ_MASK_EN_m, card->bar0 + RP2_IRQ_MASK); in rp2_init_card()
764 card->bar0 = bars[0]; in rp2_probe()
/drivers/scsi/aacraid/
Dsrc.c624 iounmap(dev->regs.src.bar0); in aac_src_ioremap()
625 dev->base = dev->regs.src.bar0 = NULL; in aac_src_ioremap()
633 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_src_ioremap()
652 iounmap(dev->regs.src.bar0); in aac_srcv_ioremap()
653 dev->base = dev->regs.src.bar0 = NULL; in aac_srcv_ioremap()
662 dev->base = dev->regs.src.bar0 = ioremap(dev->base_start, size); in aac_srcv_ioremap()
Daacraid.h1216 #define src_readb(AEP, CSR) readb(&((AEP)->regs.src.bar0->CSR))
1217 #define src_readl(AEP, CSR) readl(&((AEP)->regs.src.bar0->CSR))
1219 &((AEP)->regs.src.bar0->CSR))
1221 &((AEP)->regs.src.bar0->CSR))
1224 &((AEP)->regs.src.bar0->CSR))
1631 struct src_registers __iomem *bar0; member
/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c570 __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 …]
Dvxge-config.h737 void __iomem *bar0; member
841 void __iomem *bar0; member
1850 void __iomem *bar0,
Dvxge-main.h389 void __iomem *bar0; member
Dvxge-main.c4437 attr.bar0 = pci_ioremap_bar(pdev, 0); in vxge_probe()
4438 if (!attr.bar0) { in vxge_probe()
4446 attr.bar0, in vxge_probe()
4449 status = vxge_hw_device_hw_info_get(attr.bar0, in vxge_probe()
4607 vdev->bar0 = attr.bar0; in vxge_probe()
4753 iounmap(attr.bar0); in vxge_probe()
4794 iounmap(vdev->bar0); in vxge_remove()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c290 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/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c385 uint bar0 = *addr & ~SBSDIO_SB_OFT_ADDR_MASK; in brcmf_sdiod_addrprep() local
388 if (bar0 != sdiodev->sbwad) { in brcmf_sdiod_addrprep()
389 err = brcmf_sdiod_set_sbaddr_window(sdiodev, bar0); in brcmf_sdiod_addrprep()
393 sdiodev->sbwad = bar0; in brcmf_sdiod_addrprep()
/drivers/net/ethernet/brocade/bna/
Dbnad.h317 void __iomem *bar0; /* BAR0 address */ member
Dbnad.c3490 bnad->bar0 = ioremap_nocache(bnad->mmio_start, bnad->mmio_len); in bnad_init()
3491 if (!bnad->bar0) { in bnad_init()
3495 dev_info(&pdev->dev, "bar0 mapped to %p, len %llu\n", bnad->bar0, in bnad_init()
3520 iounmap(bnad->bar0); in bnad_init()
3541 if (bnad->bar0) in bnad_uninit()
3542 iounmap(bnad->bar0); in bnad_uninit()
3681 pcidev_info.pci_bar_kva = bnad->bar0; in bnad_pci_probe()
/drivers/net/ethernet/intel/ixgb/
Dixgb_hw.h686 u32 bar0; /* Base Address registers */ member

12