Home
last modified time | relevance | path

Searched refs:mem_base (Results 1 – 25 of 72) sorted by relevance

123

/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7615/
Dsoc.c34 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-v6.1/drivers/net/wireless/mediatek/mt76/mt7603/
Dsoc.c13 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-v6.1/drivers/mtd/nand/raw/
Ddenali_pci.c32 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 = devm_ioremap(denali->dev, mem_base, mem_len); in denali_pci_probe()
/Linux-v6.1/drivers/net/ethernet/8390/
Dhydra.c223 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_input() local
224 unsigned long xfer_start = mem_base + ring_offset - (NESM_START_PG<<8); in hydra_block_input()
229 if (xfer_start+count > mem_base + (NESM_STOP_PG<<8)) { in hydra_block_input()
230 int semi_count = (mem_base + (NESM_STOP_PG<<8)) - xfer_start; in hydra_block_input()
234 z_memcpy_fromio(skb->data+semi_count, mem_base, count); in hydra_block_input()
244 unsigned long mem_base = nic_base - HYDRA_NIC_BASE; in hydra_block_output() local
249 z_memcpy_toio(mem_base+((start_page - NESM_START_PG)<<8), buf, count); in hydra_block_output()
/Linux-v6.1/drivers/nvmem/
Dlpc18xx_eeprom.c47 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-v6.1/drivers/mfd/
Dmfd-core.c172 struct resource *mem_base, in mfd_add_device() argument
259 if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { in mfd_add_device()
260 res[r].parent = mem_base; in mfd_add_device()
261 res[r].start = mem_base->start + in mfd_add_device()
263 res[r].end = mem_base->start + in mfd_add_device()
344 struct resource *mem_base, in mfd_add_devices() argument
351 ret = mfd_add_device(parent, id, cells + i, mem_base, in mfd_add_devices()
439 struct resource *mem_base, in devm_mfd_add_devices() argument
449 ret = mfd_add_devices(dev, id, cells, n_devs, mem_base, in devm_mfd_add_devices()
/Linux-v6.1/drivers/pcmcia/
Delectra_cf.c38 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-v6.1/drivers/char/tpm/
Dtpm_infineon.c38 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-v6.1/arch/arm/mach-orion5x/
Dtsx09-common.c112 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()
Dtsx09-common.h13 extern void __init qnap_tsx09_find_mac_addr(u32 mem_base, u32 size);
/Linux-v6.1/drivers/scsi/csiostor/
Dcsio_hw_t5.c257 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-v6.1/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c35 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()
Daspeed-p2a-ctrl.c68 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-v6.1/kernel/dma/
Dcoherent.c43 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-v6.1/arch/powerpc/boot/
Dcuboot-pq2.c123 *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-v6.1/arch/mips/ralink/
Dof.c72 memblock_add(soc_info.mem_base, soc_info.mem_size * SZ_1M); in plat_mem_setup()
74 detect_memory_region(soc_info.mem_base, in plat_mem_setup()
Dcommon.h16 unsigned long mem_base; member
/Linux-v6.1/sound/pci/hda/
Dpatch_ca0132.c1148 void __iomem *mem_base; member
3652 writew(gpio_data, spec->mem_base + 0x320); in ca0113_mmio_gpio_set()
3669 writel(0x0000007e, spec->mem_base + 0x210); in ca0113_mmio_command_set()
3670 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set()
3671 writel(0x0000005a, spec->mem_base + 0x210); in ca0113_mmio_command_set()
3672 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set()
3673 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set()
3675 writel(0x00800005, spec->mem_base + 0x20c); in ca0113_mmio_command_set()
3676 writel(group, spec->mem_base + 0x804); in ca0113_mmio_command_set()
3678 writel(0x00800005, spec->mem_base + 0x20c); in ca0113_mmio_command_set()
[all …]
/Linux-v6.1/arch/mips/txx9/generic/
Dpci.c111 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-v6.1/drivers/infiniband/hw/mthca/
Dmthca_profile.c75 u64 mem_base, mem_avail; in mthca_make_profile() local
121 mem_base = 0; in mthca_make_profile()
124 mem_base = dev->ddr_start; in mthca_make_profile()
142 profile[i].start = mem_base + total_size; in mthca_make_profile()
/Linux-v6.1/include/linux/mfd/
Dcore.h146 struct resource *mem_base,
161 struct resource *mem_base,
/Linux-v6.1/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_opr.c55 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-v6.1/drivers/pci/controller/
Dpci-ftpci100.c123 static int faraday_res_to_memcfg(resource_size_t mem_base, in faraday_res_to_memcfg() argument
171 if (mem_base & ~(FARADAY_PCI_MEMBASE_MASK)) in faraday_res_to_memcfg()
174 outval |= (mem_base & FARADAY_PCI_MEMBASE_MASK); in faraday_res_to_memcfg()
176 &mem_base, &mem_size, outval); in faraday_res_to_memcfg()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gds.h38 uint32_t mem_base; member
/Linux-v6.1/include/linux/mtd/
Dspear_smi.h44 unsigned long mem_base; member

123