/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | soc.c | 34 void __iomem *mem_base; in mt7622_wmac_probe() local 41 mem_base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in mt7622_wmac_probe() 42 if (IS_ERR(mem_base)) in mt7622_wmac_probe() 43 return PTR_ERR(mem_base); in mt7622_wmac_probe() 45 return mt7615_mmio_probe(&pdev->dev, mem_base, irq, mt7615e_reg_map); in mt7622_wmac_probe()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
A D | soc.c | 13 void __iomem *mem_base; in mt76_wmac_probe() local 22 mem_base = devm_platform_ioremap_resource(pdev, 0); in mt76_wmac_probe() 23 if (IS_ERR(mem_base)) in mt76_wmac_probe() 24 return PTR_ERR(mem_base); in mt76_wmac_probe() 32 mt76_mmio_init(mdev, mem_base); in mt76_wmac_probe()
|
/linux/drivers/net/ethernet/8390/ |
A D | hydra.c | 221 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input() local 222 unsigned long xfer_start = mem_base + ring_offset - (NESM_START_PG<<8); in hydra_block_input() 227 if (xfer_start+count > mem_base + (NESM_STOP_PG<<8)) { in hydra_block_input() 228 int semi_count = (mem_base + (NESM_STOP_PG<<8)) - xfer_start; in hydra_block_input() 232 z_memcpy_fromio(skb->data+semi_count, mem_base, count); in hydra_block_input() 242 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output() local 247 z_memcpy_toio(mem_base+((start_page - NESM_START_PG)<<8), buf, count); in hydra_block_output()
|
/linux/drivers/mfd/ |
A D | mfd-core.c | 155 struct resource *mem_base, in mfd_add_device() argument 242 if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { in mfd_add_device() 243 res[r].parent = mem_base; in mfd_add_device() 244 res[r].start = mem_base->start + in mfd_add_device() 246 res[r].end = mem_base->start + in mfd_add_device() 327 struct resource *mem_base, in mfd_add_devices() argument 334 ret = mfd_add_device(parent, id, cells + i, mem_base, in mfd_add_devices() 415 struct resource *mem_base, in devm_mfd_add_devices() argument 425 ret = mfd_add_devices(dev, id, cells, n_devs, mem_base, in devm_mfd_add_devices()
|
/linux/drivers/mtd/nand/raw/ |
A D | denali_pci.c | 32 resource_size_t csr_base, mem_base; in denali_pci_probe() local 49 mem_base = pci_resource_start(dev, 0); in denali_pci_probe() 56 mem_base = pci_resource_start(dev, 1); in denali_pci_probe() 59 mem_base = csr_base + csr_len; in denali_pci_probe() 83 denali->host = ioremap(mem_base, mem_len); in denali_pci_probe()
|
/linux/drivers/nvmem/ |
A D | lpc18xx_eeprom.c | 47 void __iomem *mem_base; member 113 writel(*(u32 *)val, eeprom->mem_base + offset); in lpc18xx_eeprom_gather_write() 141 *(u32 *)val = readl(eeprom->mem_base + offset); in lpc18xx_eeprom_read() 181 eeprom->mem_base = devm_ioremap_resource(dev, res); in lpc18xx_eeprom_probe() 182 if (IS_ERR(eeprom->mem_base)) in lpc18xx_eeprom_probe() 183 return PTR_ERR(eeprom->mem_base); in lpc18xx_eeprom_probe()
|
/linux/drivers/pcmcia/ |
A D | electra_cf.c | 38 void __iomem *mem_base; member 203 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 204 if (!cf->mem_base) in electra_cf_probe() 217 cf->iomem.start = (unsigned long)cf->mem_base; in electra_cf_probe() 218 cf->iomem.end = (unsigned long)cf->mem_base + (mem.end - mem.start); in electra_cf_probe() 303 iounmap(cf->mem_base); in electra_cf_probe() 323 iounmap(cf->mem_base); in electra_cf_remove()
|
/linux/drivers/char/tpm/ |
A D | tpm_infineon.c | 38 void __iomem *mem_base; /* MMIO ioremap'd addr */ member 57 writeb(data, tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_out() 65 return readb(tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_in() 73 writeb(data, tpm_dev.mem_base + tpm_dev.index_off + offset); in tpm_config_out() 81 return readb(tpm_dev.mem_base + tpm_dev.index_off + offset); in tpm_config_in() 449 tpm_dev.mem_base = ioremap(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe() 450 if (tpm_dev.mem_base == NULL) { in tpm_inf_pnp_probe() 566 iounmap(tpm_dev.mem_base); in tpm_inf_pnp_probe() 585 iounmap(tpm_dev.mem_base); in tpm_inf_pnp_remove()
|
/linux/drivers/ptp/ |
A D | ptp_pch.c | 118 u32 mem_base; member 522 if (chip->mem_base != 0) { in pch_remove() 523 release_mem_region(chip->mem_base, chip->mem_size); in pch_remove() 524 chip->mem_base = 0; in pch_remove() 549 chip->mem_base = pci_resource_start(pdev, IO_MEM_BAR); in pch_probe() 550 if (!chip->mem_base) { in pch_probe() 560 if (!request_mem_region(chip->mem_base, chip->mem_size, "1588_regs")) { in pch_probe() 568 chip->regs = ioremap(chip->mem_base, chip->mem_size); in pch_probe() 625 release_mem_region(chip->mem_base, chip->mem_size); in pch_probe() 628 chip->mem_base = 0; in pch_probe()
|
/linux/arch/arm/mach-orion5x/ |
A D | tsx09-common.c | 112 void __init qnap_tsx09_find_mac_addr(u32 mem_base, u32 size) in qnap_tsx09_find_mac_addr() argument 116 for (addr = mem_base; addr < (mem_base + size); addr += 1024) { in qnap_tsx09_find_mac_addr()
|
/linux/drivers/scsi/csiostor/ |
A D | csio_hw_t5.c | 257 u32 edc_size, mc_size, win_pf, mem_reg, mem_aperture, mem_base; in csio_t5_memory_rw() local 296 mem_base = PCIEOFST_G(mem_reg) << 10; in csio_t5_memory_rw() 305 mem_base, memoffset); in csio_t5_memory_rw() 324 *buf++ = csio_rd_reg32(hw, mem_base + offset); in csio_t5_memory_rw() 326 csio_wr_reg32(hw, *buf++, mem_base + offset); in csio_t5_memory_rw()
|
/linux/drivers/soc/aspeed/ |
A D | aspeed-lpc-ctrl.c | 35 phys_addr_t mem_base; member 62 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap() 150 addr = lpc_ctrl->mem_base; in aspeed_lpc_ctrl_ioctl() 269 lpc_ctrl->mem_base = resm.start; in aspeed_lpc_ctrl_probe() 277 if (!IS_ALIGNED(lpc_ctrl->mem_base, lpc_ctrl->mem_size)) { in aspeed_lpc_ctrl_probe()
|
A D | aspeed-p2a-ctrl.c | 68 phys_addr_t mem_base; member 107 if (ctrl->mem_base == 0 && ctrl->mem_size == 0) in aspeed_p2a_mmap() 120 (ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_p2a_mmap() 217 map.addr = ctrl->mem_base; in aspeed_p2a_ioctl() 359 misc_ctrl->mem_base = resm.start; in aspeed_p2a_ctrl_probe()
|
/linux/kernel/dma/ |
A D | coherent.c | 43 void *mem_base; in dma_init_coherent_memory() local 48 mem_base = memremap(phys_addr, size, MEMREMAP_WC); in dma_init_coherent_memory() 49 if (!mem_base) in dma_init_coherent_memory() 59 dma_mem->virt_base = mem_base; in dma_init_coherent_memory() 71 memunmap(mem_base); in dma_init_coherent_memory()
|
/linux/arch/powerpc/boot/ |
A D | cuboot-pq2.c | 123 *io = NULL, *mem_base = NULL; in fixup_pci() local 179 mem_base = mem; in fixup_pci() 181 mem_base = mmio; in fixup_pci() 185 out_be32(&pci_regs[1][0], mem_base->phys_addr | 1); in fixup_pci()
|
/linux/sound/pci/hda/ |
A D | patch_ca0132.c | 1148 void __iomem *mem_base; member 3672 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3674 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3675 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3691 readl(spec->mem_base + 0x860); in ca0113_mmio_command_set() 3692 readl(spec->mem_base + 0x854); in ca0113_mmio_command_set() 3693 readl(spec->mem_base + 0x840); in ca0113_mmio_command_set() 3697 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3698 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3711 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set_type2() [all …]
|
/linux/arch/mips/ralink/ |
A D | of.c | 86 memblock_add(soc_info.mem_base, soc_info.mem_size * SZ_1M); in plat_mem_setup() 88 detect_memory_region(soc_info.mem_base, in plat_mem_setup()
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_profile.c | 77 u64 mem_base, mem_avail; in mthca_make_profile() local 123 mem_base = 0; in mthca_make_profile() 126 mem_base = dev->ddr_start; in mthca_make_profile() 144 profile[i].start = mem_base + total_size; in mthca_make_profile()
|
/linux/arch/mips/txx9/generic/ |
A D | pci.c | 111 unsigned long mem_base, unsigned long mem_size, in txx9_alloc_pci_controller() argument 139 if (mem_base) { in txx9_alloc_pci_controller() 140 pcic->mem_resource[0].start = mem_base; in txx9_alloc_pci_controller() 141 pcic->mem_resource[0].end = mem_base + mem_size - 1; in txx9_alloc_pci_controller()
|
/linux/include/linux/mfd/ |
A D | core.h | 146 struct resource *mem_base, 161 struct resource *mem_base,
|
/linux/drivers/media/platform/s5p-mfc/ |
A D | s5p_mfc_opr.c | 55 b->dma = dev->mem_base + offset; in s5p_mfc_alloc_priv_buf() 102 unsigned int start = (b->dma - dev->mem_base) >> PAGE_SHIFT; in s5p_mfc_release_priv_buf()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | mmio.c | 128 int mt7915_mmio_init(struct mt76_dev *mdev, void __iomem *mem_base, int irq) in mt7915_mmio_init() argument 134 mt76_mmio_init(&dev->mt76, mem_base); in mt7915_mmio_init()
|
/linux/drivers/pci/controller/ |
A D | pci-ftpci100.c | 130 static int faraday_res_to_memcfg(resource_size_t mem_base, in faraday_res_to_memcfg() argument 178 if (mem_base & ~(FARADAY_PCI_MEMBASE_MASK)) in faraday_res_to_memcfg() 181 outval |= (mem_base & FARADAY_PCI_MEMBASE_MASK); in faraday_res_to_memcfg() 183 &mem_base, &mem_size, outval); in faraday_res_to_memcfg()
|
/linux/sound/pci/ctxfi/ |
A D | cthw20k1.c | 1796 void __iomem *mem_base; in uaa_to_xfi() local 1809 if (!mem_base) in uaa_to_xfi() 1814 data[i] = readl(mem_base + UAA_CORE_CHANGE); in uaa_to_xfi() 1833 iounmap(mem_base); in uaa_to_xfi() 1867 writel(CTLX, (mem_base + UAA_CORE_CHANGE)); in uaa_to_xfi() 1868 writel(CTL_, (mem_base + UAA_CORE_CHANGE)); in uaa_to_xfi() 1869 writel(CTLF, (mem_base + UAA_CORE_CHANGE)); in uaa_to_xfi() 1870 writel(CTLi, (mem_base + UAA_CORE_CHANGE)); in uaa_to_xfi() 1872 iounmap(mem_base); in uaa_to_xfi() 1971 iounmap(hw->mem_base); in hw_card_shutdown() [all …]
|
/linux/arch/mips/pci/ |
A D | ops-tx3927.c | 139 unsigned long mem_base = in tx3927_pcic_setup() local 165 tx3927_pcicptr->ilbmma = mem_base; in tx3927_pcic_setup()
|