Home
last modified time | relevance | path

Searched refs:rmem (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.1.9/drivers/of/
Dof_reserved_mem.c63 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node() local
70 rmem->fdt_node = node; in fdt_reserved_mem_save_node()
71 rmem->name = uname; in fdt_reserved_mem_save_node()
72 rmem->base = base; in fdt_reserved_mem_save_node()
73 rmem->size = size; in fdt_reserved_mem_save_node()
176 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node() argument
186 if (!of_flat_dt_is_compatible(rmem->fdt_node, compat)) in __reserved_mem_init_node()
189 ret = initfn(rmem); in __reserved_mem_init_node()
192 rmem->name, compat); in __reserved_mem_init_node()
260 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem() local
[all …]
/linux-6.1.9/drivers/memory/tegra/
Dtegra210-emc-table.c12 static int tegra210_emc_table_device_init(struct reserved_mem *rmem, in tegra210_emc_table_device_init() argument
19 timings = memremap(rmem->base, rmem->size, MEMREMAP_WB); in tegra210_emc_table_device_init()
36 dev_warn(dev, "excess EMC table '%s'\n", rmem->name); in tegra210_emc_table_device_init()
56 rmem->priv = timings; in tegra210_emc_table_device_init()
61 static void tegra210_emc_table_device_release(struct reserved_mem *rmem, in tegra210_emc_table_device_release() argument
64 struct tegra210_emc_timing *timings = rmem->priv; in tegra210_emc_table_device_release()
70 rmem->name); in tegra210_emc_table_device_release()
80 static int tegra210_emc_table_init(struct reserved_mem *rmem) in tegra210_emc_table_init() argument
82 pr_debug("Tegra210 EMC table at %pa, size %lu bytes\n", &rmem->base, in tegra210_emc_table_init()
83 (unsigned long)rmem->size); in tegra210_emc_table_init()
[all …]
/linux-6.1.9/drivers/misc/
Dopen-dice.c34 struct reserved_mem *rmem; member
48 kaddr = devm_memremap(drvdata->misc.this_device, drvdata->rmem->base, in open_dice_wipe()
49 drvdata->rmem->size, MEMREMAP_WC); in open_dice_wipe()
55 memset(kaddr, 0, drvdata->rmem->size); in open_dice_wipe()
67 unsigned long val = to_open_dice_drvdata(filp)->rmem->size; in open_dice_read()
106 return vm_iomap_memory(vma, drvdata->rmem->base, drvdata->rmem->size); in open_dice_mmap()
120 struct reserved_mem *rmem; in open_dice_probe() local
124 rmem = of_reserved_mem_lookup(dev->of_node); in open_dice_probe()
125 if (!rmem) { in open_dice_probe()
130 if (!rmem->size || (rmem->size > ULONG_MAX)) { in open_dice_probe()
[all …]
/linux-6.1.9/kernel/dma/
Dcontiguous.c383 static int rmem_cma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_cma_device_init() argument
385 dev->cma_area = rmem->priv; in rmem_cma_device_init()
389 static void rmem_cma_device_release(struct reserved_mem *rmem, in rmem_cma_device_release() argument
400 static int __init rmem_cma_setup(struct reserved_mem *rmem) in rmem_cma_setup() argument
402 unsigned long node = rmem->fdt_node; in rmem_cma_setup()
409 rmem->name); in rmem_cma_setup()
417 if (!IS_ALIGNED(rmem->base | rmem->size, CMA_MIN_ALIGNMENT_BYTES)) { in rmem_cma_setup()
422 err = cma_init_reserved_mem(rmem->base, rmem->size, 0, rmem->name, &cma); in rmem_cma_setup()
428 dma_contiguous_early_fixup(rmem->base, rmem->size); in rmem_cma_setup()
433 rmem->ops = &rmem_cma_ops; in rmem_cma_setup()
[all …]
Dcoherent.c334 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() argument
336 if (!rmem->priv) { in rmem_dma_device_init()
339 mem = dma_init_coherent_memory(rmem->base, rmem->base, in rmem_dma_device_init()
340 rmem->size, true); in rmem_dma_device_init()
343 rmem->priv = mem; in rmem_dma_device_init()
345 dma_assign_coherent_memory(dev, rmem->priv); in rmem_dma_device_init()
349 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() argument
361 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup() argument
363 unsigned long node = rmem->fdt_node; in rmem_dma_setup()
379 dma_reserved_default_memory = rmem; in rmem_dma_setup()
[all …]
Dswiotlb.c981 static int rmem_swiotlb_device_init(struct reserved_mem *rmem, in rmem_swiotlb_device_init() argument
984 struct io_tlb_mem *mem = rmem->priv; in rmem_swiotlb_device_init()
985 unsigned long nslabs = rmem->size >> IO_TLB_SHIFT; in rmem_swiotlb_device_init()
1014 set_memory_decrypted((unsigned long)phys_to_virt(rmem->base), in rmem_swiotlb_device_init()
1015 rmem->size >> PAGE_SHIFT); in rmem_swiotlb_device_init()
1016 swiotlb_init_io_tlb_mem(mem, rmem->base, nslabs, SWIOTLB_FORCE, in rmem_swiotlb_device_init()
1020 rmem->priv = mem; in rmem_swiotlb_device_init()
1022 swiotlb_create_debugfs_files(mem, rmem->name); in rmem_swiotlb_device_init()
1030 static void rmem_swiotlb_device_release(struct reserved_mem *rmem, in rmem_swiotlb_device_release() argument
1041 static int __init rmem_swiotlb_setup(struct reserved_mem *rmem) in rmem_swiotlb_setup() argument
[all …]
/linux-6.1.9/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c85 struct k3_dsp_mem *rmem; member
419 if (!kproc->rmem[0].cpu_addr) { in k3_dsp_get_loaded_rsc_table()
432 return (struct resource_table *)kproc->rmem[0].cpu_addr; in k3_dsp_get_loaded_rsc_table()
481 dev_addr = kproc->rmem[i].dev_addr; in k3_dsp_rproc_da_to_va()
482 size = kproc->rmem[i].size; in k3_dsp_rproc_da_to_va()
486 va = kproc->rmem[i].cpu_addr + offset; in k3_dsp_rproc_da_to_va()
558 struct reserved_mem *rmem; in k3_dsp_reserved_mem_init() local
584 kproc->rmem = kcalloc(num_rmems, sizeof(*kproc->rmem), GFP_KERNEL); in k3_dsp_reserved_mem_init()
585 if (!kproc->rmem) { in k3_dsp_reserved_mem_init()
598 rmem = of_reserved_mem_lookup(rmem_np); in k3_dsp_reserved_mem_init()
[all …]
Drcar_rproc.c56 struct reserved_mem *rmem; in rcar_rproc_prepare() local
63 rmem = of_reserved_mem_lookup(it.node); in rcar_rproc_prepare()
64 if (!rmem) { in rcar_rproc_prepare()
70 if (rmem->base > U32_MAX) in rcar_rproc_prepare()
74 da = rmem->base; in rcar_rproc_prepare()
76 rmem->base, in rcar_rproc_prepare()
77 rmem->size, da, in rcar_rproc_prepare()
Dti_k3_r5_remoteproc.c162 struct k3_r5_mem *rmem; member
698 if (!kproc->rmem[0].cpu_addr) { in k3_r5_get_loaded_rsc_table()
711 return (struct resource_table *)kproc->rmem[0].cpu_addr; in k3_r5_get_loaded_rsc_table()
770 dev_addr = kproc->rmem[i].dev_addr; in k3_r5_rproc_da_to_va()
771 size = kproc->rmem[i].size; in k3_r5_rproc_da_to_va()
775 va = kproc->rmem[i].cpu_addr + offset; in k3_r5_rproc_da_to_va()
957 struct reserved_mem *rmem; in k3_r5_reserved_mem_init() local
983 kproc->rmem = kcalloc(num_rmems, sizeof(*kproc->rmem), GFP_KERNEL); in k3_r5_reserved_mem_init()
984 if (!kproc->rmem) { in k3_r5_reserved_mem_init()
997 rmem = of_reserved_mem_lookup(rmem_np); in k3_r5_reserved_mem_init()
[all …]
Dst_remoteproc.c124 struct reserved_mem *rmem; in st_rproc_parse_fw() local
130 rmem = of_reserved_mem_lookup(it.node); in st_rproc_parse_fw()
131 if (!rmem) { in st_rproc_parse_fw()
140 (dma_addr_t)rmem->base, in st_rproc_parse_fw()
141 rmem->size, rmem->base, in st_rproc_parse_fw()
148 rmem->size, in st_rproc_parse_fw()
149 rmem->base, in st_rproc_parse_fw()
Dimx_dsp_rproc.c586 struct reserved_mem *rmem; in imx_dsp_rproc_add_carveout() local
628 rmem = of_reserved_mem_lookup(it.node); in imx_dsp_rproc_add_carveout()
629 if (!rmem) { in imx_dsp_rproc_add_carveout()
634 if (imx_dsp_rproc_sys_to_da(priv, rmem->base, rmem->size, &da)) in imx_dsp_rproc_add_carveout()
637 cpu_addr = devm_ioremap_wc(dev, rmem->base, rmem->size); in imx_dsp_rproc_add_carveout()
639 dev_err(dev, "failed to map memory %p\n", &rmem->base); in imx_dsp_rproc_add_carveout()
644 mem = rproc_mem_entry_init(dev, (void __force *)cpu_addr, (dma_addr_t)rmem->base, in imx_dsp_rproc_add_carveout()
645 rmem->size, da, NULL, NULL, it.node->name); in imx_dsp_rproc_add_carveout()
648 rproc_coredump_add_segment(rproc, da, rmem->size); in imx_dsp_rproc_add_carveout()
Dstm32_rproc.c217 struct reserved_mem *rmem; in stm32_rproc_prepare() local
224 rmem = of_reserved_mem_lookup(it.node); in stm32_rproc_prepare()
225 if (!rmem) { in stm32_rproc_prepare()
230 if (stm32_rproc_pa_to_da(rproc, rmem->base, &da) < 0) { in stm32_rproc_prepare()
232 &rmem->base); in stm32_rproc_prepare()
240 (dma_addr_t)rmem->base, in stm32_rproc_prepare()
241 rmem->size, da, in stm32_rproc_prepare()
248 rmem->size); in stm32_rproc_prepare()
252 rmem->size, in stm32_rproc_prepare()
253 rmem->base, in stm32_rproc_prepare()
Dimx_rproc.c445 struct reserved_mem *rmem; in imx_rproc_prepare() local
461 rmem = of_reserved_mem_lookup(it.node); in imx_rproc_prepare()
462 if (!rmem) { in imx_rproc_prepare()
468 da = rmem->base; in imx_rproc_prepare()
471 mem = rproc_mem_entry_init(priv->dev, NULL, (dma_addr_t)rmem->base, rmem->size, da, in imx_rproc_prepare()
476 rproc_coredump_add_segment(rproc, da, rmem->size); in imx_rproc_prepare()
/linux-6.1.9/drivers/soc/fsl/qbman/
Ddpaa_sys.c41 struct reserved_mem *rmem; in qbman_init_private_mem() local
52 rmem = of_reserved_mem_lookup(mem_node); in qbman_init_private_mem()
53 if (!rmem) { in qbman_init_private_mem()
57 *addr = rmem->base; in qbman_init_private_mem()
58 *size = rmem->size; in qbman_init_private_mem()
Dbman_ccsr.c147 static int bman_fbpr(struct reserved_mem *rmem) in bman_fbpr() argument
149 fbpr_a = rmem->base; in bman_fbpr()
150 fbpr_sz = rmem->size; in bman_fbpr()
/linux-6.1.9/drivers/hid/
Dhid-wiimote-core.c381 ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem, in wiimote_cmd_read() argument
389 wdata->state.cmd_read_buf = rmem; in wiimote_cmd_read()
432 static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_ext() argument
437 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6); in wiimote_cmd_read_ext()
441 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem); in wiimote_cmd_read_ext()
443 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff && in wiimote_cmd_read_ext()
444 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff) in wiimote_cmd_read_ext()
447 if (rmem[4] == 0x00 && rmem[5] == 0x00) in wiimote_cmd_read_ext()
449 if (rmem[4] == 0x01 && rmem[5] == 0x01) in wiimote_cmd_read_ext()
451 if (rmem[4] == 0x04 && rmem[5] == 0x02) in wiimote_cmd_read_ext()
[all …]
/linux-6.1.9/include/linux/
Dof_reserved_mem.h22 int (*device_init)(struct reserved_mem *rmem,
24 void (*device_release)(struct reserved_mem *rmem,
28 typedef int (*reservedmem_of_init_fn)(struct reserved_mem *rmem);
/linux-6.1.9/Documentation/devicetree/bindings/nvmem/
Drmem.yaml4 $id: http://devicetree.org/schemas/nvmem/rmem.yaml#
20 - const: nvmem-rmem
44 compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
/linux-6.1.9/drivers/nvmem/
Drmem.c12 struct rmem { struct
23 struct rmem *priv = context; in rmem_read() argument
57 struct rmem *priv; in rmem_probe()
DMakefile48 obj-$(CONFIG_NVMEM_RMEM) += nvmem-rmem.o
49 nvmem-rmem-y := rmem.o
/linux-6.1.9/drivers/soc/qcom/
Dcmd-db.c318 struct reserved_mem *rmem; in cmd_db_dev_probe() local
321 rmem = of_reserved_mem_lookup(pdev->dev.of_node); in cmd_db_dev_probe()
322 if (!rmem) { in cmd_db_dev_probe()
327 cmd_db_header = memremap(rmem->base, rmem->size, MEMREMAP_WB); in cmd_db_dev_probe()
Drmtfs_mem.c175 struct reserved_mem *rmem; in qcom_rmtfs_mem_probe() local
181 rmem = of_reserved_mem_lookup(node); in qcom_rmtfs_mem_probe()
182 if (!rmem) { in qcom_rmtfs_mem_probe()
198 rmtfs_mem->addr = rmem->base; in qcom_rmtfs_mem_probe()
200 rmtfs_mem->size = rmem->size; in qcom_rmtfs_mem_probe()
/linux-6.1.9/drivers/staging/rtl8712/
Dxmit_linux.c46 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _r8712_pktfile_read() argument
52 if (rmem) in _r8712_pktfile_read()
54 rmem, len); in _r8712_pktfile_read()
/linux-6.1.9/arch/arm/boot/dts/
Dbcm2711-rpi.dtsi56 &rmem {
63 compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
/linux-6.1.9/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c25 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _rtw_pktfile_read() argument
32 if (rmem) in _rtw_pktfile_read()
33 skb_copy_bits(pfile->pkt, pfile->buf_len - pfile->pkt_len, rmem, len); in _rtw_pktfile_read()

12