Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/of/
Dof_reserved_mem.c66 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node() local
73 rmem->fdt_node = node; in fdt_reserved_mem_save_node()
74 rmem->name = uname; in fdt_reserved_mem_save_node()
75 rmem->base = base; in fdt_reserved_mem_save_node()
76 rmem->size = size; in fdt_reserved_mem_save_node()
196 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node() argument
206 if (!of_flat_dt_is_compatible(rmem->fdt_node, compat)) in __reserved_mem_init_node()
209 ret = initfn(rmem); in __reserved_mem_init_node()
212 rmem->name, compat); in __reserved_mem_init_node()
280 struct reserved_mem *rmem = &reserved_mem[i]; in fdt_init_reserved_mem() local
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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
404 unsigned long node = rmem->fdt_node; in rmem_cma_setup()
411 rmem->name); in rmem_cma_setup()
419 if ((rmem->base & mask) || (rmem->size & mask)) { in rmem_cma_setup()
424 err = cma_init_reserved_mem(rmem->base, rmem->size, 0, rmem->name, &cma); in rmem_cma_setup()
430 dma_contiguous_early_fixup(rmem->base, rmem->size); in rmem_cma_setup()
435 rmem->ops = &rmem_cma_ops; in rmem_cma_setup()
[all …]
Dcoherent.c320 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() argument
322 struct dma_coherent_mem *mem = rmem->priv; in rmem_dma_device_init()
326 ret = dma_init_coherent_memory(rmem->base, rmem->base, in rmem_dma_device_init()
327 rmem->size, &mem); in rmem_dma_device_init()
330 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_dma_device_init()
335 rmem->priv = mem; in rmem_dma_device_init()
340 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() argument
352 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup() argument
354 unsigned long node = rmem->fdt_node; in rmem_dma_setup()
368 dma_reserved_default_memory = rmem; in rmem_dma_setup()
[all …]
/kernel/linux/linux-5.10/drivers/remoteproc/
Dti_k3_dsp_remoteproc.c85 struct k3_dsp_mem *rmem; member
395 dev_addr = kproc->rmem[i].dev_addr; in k3_dsp_rproc_da_to_va()
396 size = kproc->rmem[i].size; in k3_dsp_rproc_da_to_va()
400 va = kproc->rmem[i].cpu_addr + offset; in k3_dsp_rproc_da_to_va()
472 struct reserved_mem *rmem; in k3_dsp_reserved_mem_init() local
498 kproc->rmem = kcalloc(num_rmems, sizeof(*kproc->rmem), GFP_KERNEL); in k3_dsp_reserved_mem_init()
499 if (!kproc->rmem) { in k3_dsp_reserved_mem_init()
512 rmem = of_reserved_mem_lookup(rmem_np); in k3_dsp_reserved_mem_init()
513 if (!rmem) { in k3_dsp_reserved_mem_init()
520 kproc->rmem[i].bus_addr = rmem->base; in k3_dsp_reserved_mem_init()
[all …]
Dti_k3_r5_remoteproc.c134 struct k3_r5_mem *rmem; member
608 dev_addr = kproc->rmem[i].dev_addr; in k3_r5_rproc_da_to_va()
609 size = kproc->rmem[i].size; in k3_r5_rproc_da_to_va()
613 va = kproc->rmem[i].cpu_addr + offset; in k3_r5_rproc_da_to_va()
760 struct reserved_mem *rmem; in k3_r5_reserved_mem_init() local
786 kproc->rmem = kcalloc(num_rmems, sizeof(*kproc->rmem), GFP_KERNEL); in k3_r5_reserved_mem_init()
787 if (!kproc->rmem) { in k3_r5_reserved_mem_init()
800 rmem = of_reserved_mem_lookup(rmem_np); in k3_r5_reserved_mem_init()
801 if (!rmem) { in k3_r5_reserved_mem_init()
808 kproc->rmem[i].bus_addr = rmem->base; 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()
Dqcom_q6v5_wcss.c512 struct reserved_mem *rmem = NULL; in q6v5_alloc_memory_region() local
518 rmem = of_reserved_mem_lookup(node); in q6v5_alloc_memory_region()
521 if (!rmem) { in q6v5_alloc_memory_region()
526 wcss->mem_phys = rmem->base; in q6v5_alloc_memory_region()
527 wcss->mem_reloc = rmem->base; in q6v5_alloc_memory_region()
528 wcss->mem_size = rmem->size; in q6v5_alloc_memory_region()
532 &rmem->base, &rmem->size); in q6v5_alloc_memory_region()
Dstm32_rproc.c225 struct reserved_mem *rmem; in stm32_rproc_parse_memory_regions() local
232 rmem = of_reserved_mem_lookup(it.node); in stm32_rproc_parse_memory_regions()
233 if (!rmem) { in stm32_rproc_parse_memory_regions()
238 if (stm32_rproc_pa_to_da(rproc, rmem->base, &da) < 0) { in stm32_rproc_parse_memory_regions()
240 &rmem->base); in stm32_rproc_parse_memory_regions()
248 (dma_addr_t)rmem->base, in stm32_rproc_parse_memory_regions()
249 rmem->size, da, in stm32_rproc_parse_memory_regions()
256 rmem->size); in stm32_rproc_parse_memory_regions()
260 rmem->size, in stm32_rproc_parse_memory_regions()
261 rmem->base, in stm32_rproc_parse_memory_regions()
/kernel/linux/linux-5.10/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()
Dqman_ccsr.c472 static int qman_fqd(struct reserved_mem *rmem) in qman_fqd() argument
474 fqd_a = rmem->base; in qman_fqd()
475 fqd_sz = rmem->size; in qman_fqd()
482 static int qman_pfdr(struct reserved_mem *rmem) in qman_pfdr() argument
484 pfdr_a = rmem->base; in qman_pfdr()
485 pfdr_sz = rmem->size; in qman_pfdr()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dcmd-db.c313 struct reserved_mem *rmem; in cmd_db_dev_probe() local
316 rmem = of_reserved_mem_lookup(pdev->dev.of_node); in cmd_db_dev_probe()
317 if (!rmem) { in cmd_db_dev_probe()
322 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()
/kernel/linux/linux-5.10/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()
Dxmit_osdep.h47 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
Dusb_ops.h26 u32 cnt, u8 *rmem);
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c2773 static void bnxt_free_ring(struct bnxt *bp, struct bnxt_ring_mem_info *rmem) in bnxt_free_ring() argument
2778 for (i = 0; i < rmem->nr_pages; i++) { in bnxt_free_ring()
2779 if (!rmem->pg_arr[i]) in bnxt_free_ring()
2782 dma_free_coherent(&pdev->dev, rmem->page_size, in bnxt_free_ring()
2783 rmem->pg_arr[i], rmem->dma_arr[i]); in bnxt_free_ring()
2785 rmem->pg_arr[i] = NULL; in bnxt_free_ring()
2787 if (rmem->pg_tbl) { in bnxt_free_ring()
2788 size_t pg_tbl_size = rmem->nr_pages * 8; in bnxt_free_ring()
2790 if (rmem->flags & BNXT_RMEM_USE_FULL_PAGE_FLAG) in bnxt_free_ring()
2791 pg_tbl_size = rmem->page_size; in bnxt_free_ring()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kexec/
Dfile_load_64.c1066 struct crash_mem *umem = NULL, *rmem = NULL; in setup_new_fdt_ppc64() local
1116 ret = get_reserved_memory_ranges(&rmem); in setup_new_fdt_ppc64()
1120 nr_ranges = rmem ? rmem->nr_ranges : 0; in setup_new_fdt_ppc64()
1124 base = rmem->ranges[i].start; in setup_new_fdt_ppc64()
1125 size = rmem->ranges[i].end - base + 1; in setup_new_fdt_ppc64()
1135 kfree(rmem); in setup_new_fdt_ppc64()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Dxmit_linux.c27 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) in _rtw_pktfile_read() argument
34 if (rmem) in _rtw_pktfile_read()
35 skb_copy_bits(pfile->pkt, pfile->buf_len - pfile->pkt_len, rmem, len); in _rtw_pktfile_read()
/kernel/linux/linux-5.10/drivers/tee/optee/
Dcore.c89 p->u.memref.size = mp->u.rmem.size; in optee_from_msg_param()
91 mp->u.rmem.shm_ref; in optee_from_msg_param()
98 p->u.memref.shm_offs = mp->u.rmem.offs; in optee_from_msg_param()
144 mp->u.rmem.shm_ref = (unsigned long)p->u.memref.shm; in to_msg_param_reg_mem()
145 mp->u.rmem.size = p->u.memref.size; in to_msg_param_reg_mem()
146 mp->u.rmem.offs = p->u.memref.shm_offs; in to_msg_param_reg_mem()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Dxmit_osdep.h38 extern uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
/kernel/linux/linux-5.10/drivers/net/wireless/
Dray_cs.h32 void __iomem *rmem; /* pointer to receive buffer window */ member

12