/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/falcon/ |
D | base.c | 29 nvkm_falcon_dma(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) in nvkm_falcon_dma() argument 41 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, bool sec) in nvkm_falcon_dma_wr() argument 43 const struct nvkm_falcon_func_dma *dma = nvkm_falcon_dma(falcon, &mem_type, &mem_base); in nvkm_falcon_dma_wr() 59 type, mem_base, len, dma_base, dma_addr - dma_base, dma_start); in nvkm_falcon_dma_wr() 67 dst = mem_base; in nvkm_falcon_dma_wr() 74 for (i = 0; i < dmalen; i += 4, mem_base += 4) { in nvkm_falcon_dma_wr() 78 printk(KERN_INFO "%s %08x <-", type, mem_base); in nvkm_falcon_dma_wr() 105 nvkm_falcon_pio(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) in nvkm_falcon_pio() argument 111 if (!falcon->func->emem_addr || *mem_base < falcon->func->emem_addr) in nvkm_falcon_pio() 114 *mem_base -= falcon->func->emem_addr; in nvkm_falcon_pio() [all …]
|
D | ga102.c | 34 ga102_flcn_dma_xfer(struct nvkm_falcon *falcon, u32 mem_base, u32 dma_base, u32 cmd) in ga102_flcn_dma_xfer() argument 36 nvkm_falcon_wr32(falcon, 0x114, mem_base); in ga102_flcn_dma_xfer()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/ |
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-6.6.21/drivers/net/wireless/mediatek/mt76/mt7603/ |
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-6.6.21/drivers/mtd/nand/raw/ |
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 = devm_ioremap(denali->dev, mem_base, mem_len); in denali_pci_probe()
|
/linux-6.6.21/drivers/net/ethernet/8390/ |
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-6.6.21/drivers/mfd/ |
D | mfd-core.c | 142 struct resource *mem_base, in mfd_add_device() argument 236 if ((cell->resources[r].flags & IORESOURCE_MEM) && mem_base) { in mfd_add_device() 237 res[r].parent = mem_base; in mfd_add_device() 238 res[r].start = mem_base->start + in mfd_add_device() 240 res[r].end = mem_base->start + in mfd_add_device() 321 struct resource *mem_base, in mfd_add_devices() argument 328 ret = mfd_add_device(parent, id, cells + i, mem_base, in mfd_add_devices() 416 struct resource *mem_base, in devm_mfd_add_devices() argument 426 ret = mfd_add_devices(dev, id, cells, n_devs, mem_base, in devm_mfd_add_devices()
|
/linux-6.6.21/drivers/nvmem/ |
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-6.6.21/drivers/pcmcia/ |
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-6.6.21/drivers/char/tpm/ |
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-6.6.21/arch/arm/mach-orion5x/ |
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()
|
D | tsx09-common.h | 13 extern void __init qnap_tsx09_find_mac_addr(u32 mem_base, u32 size);
|
/linux-6.6.21/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | falcon.h | 28 void (*wr_init)(struct nvkm_falcon *, u8 port, bool sec, u32 mem_base); 30 void (*rd_init)(struct nvkm_falcon *, u8 port, u32 mem_base); 37 void (*xfer)(struct nvkm_falcon *, u32 mem_base, u32 dma_base, u32 cmd); 46 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, u16 tag, bool sec); 47 int nvkm_falcon_pio_rd(struct nvkm_falcon *, u8 port, enum nvkm_falcon_mem type, u32 mem_base, 50 enum nvkm_falcon_mem mem_type, u32 mem_base, int len, bool sec);
|
/linux-6.6.21/drivers/scsi/csiostor/ |
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-6.6.21/drivers/soc/aspeed/ |
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()
|
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-6.6.21/kernel/dma/ |
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-6.6.21/arch/powerpc/boot/ |
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-6.6.21/arch/mips/ralink/ |
D | of.c | 106 memblock_add(soc_info.mem_base, soc_info.mem_size * SZ_1M); in plat_mem_setup() 108 detect_memory_region(soc_info.mem_base, in plat_mem_setup()
|
/linux-6.6.21/sound/pci/hda/ |
D | patch_ca0132.c | 1148 void __iomem *mem_base; member 3653 writew(gpio_data, spec->mem_base + 0x320); in ca0113_mmio_gpio_set() 3670 writel(0x0000007e, spec->mem_base + 0x210); in ca0113_mmio_command_set() 3671 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3672 writel(0x0000005a, spec->mem_base + 0x210); in ca0113_mmio_command_set() 3673 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3674 readl(spec->mem_base + 0x210); in ca0113_mmio_command_set() 3676 writel(0x00800005, spec->mem_base + 0x20c); in ca0113_mmio_command_set() 3677 writel(group, spec->mem_base + 0x804); in ca0113_mmio_command_set() 3679 writel(0x00800005, spec->mem_base + 0x20c); in ca0113_mmio_command_set() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/mthca/ |
D | mthca_profile.c | 75 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-6.6.21/include/linux/mfd/ |
D | core.h | 134 struct resource *mem_base, 149 struct resource *mem_base,
|
/linux-6.6.21/arch/mips/txx9/generic/ |
D | pci.c | 112 unsigned long mem_base, unsigned long mem_size, in txx9_alloc_pci_controller() argument 140 if (mem_base) { in txx9_alloc_pci_controller() 141 pcic->mem_resource[0].start = mem_base; in txx9_alloc_pci_controller() 142 pcic->mem_resource[0].end = mem_base + mem_size - 1; in txx9_alloc_pci_controller()
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | mmio.c | 195 void __iomem *mem_base, in mt7996_mmio_init() argument 202 mt76_mmio_init(&dev->mt76, mem_base); in mt7996_mmio_init() 324 void __iomem *mem_base, u32 device_id) in mt7996_mmio_probe() argument 355 ret = mt7996_mmio_init(mdev, mem_base, device_id); in mt7996_mmio_probe()
|
/linux-6.6.21/drivers/media/platform/samsung/s5p-mfc/ |
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()
|