/kernel/linux/linux-5.10/drivers/of/ |
D | of_reserved_mem.c | 66 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/ |
D | tegra210-emc-table.c | 12 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/ |
D | contiguous.c | 383 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 …]
|
D | coherent.c | 320 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/ |
D | ti_k3_dsp_remoteproc.c | 85 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 …]
|
D | ti_k3_r5_remoteproc.c | 134 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 …]
|
D | st_remoteproc.c | 124 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()
|
D | qcom_q6v5_wcss.c | 512 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()
|
D | stm32_rproc.c | 225 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/ |
D | dpaa_sys.c | 41 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()
|
D | bman_ccsr.c | 147 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()
|
D | qman_ccsr.c | 472 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/ |
D | hid-wiimote-core.c | 381 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/ |
D | of_reserved_mem.h | 22 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/ |
D | cmd-db.c | 313 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()
|
D | rmtfs_mem.c | 175 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/ |
D | xmit_linux.c | 46 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()
|
D | xmit_osdep.h | 47 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
|
D | usb_ops.h | 26 u32 cnt, u8 *rmem);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 2773 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/ |
D | file_load_64.c | 1066 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/ |
D | xmit_linux.c | 27 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/ |
D | core.c | 89 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/ |
D | xmit_osdep.h | 38 extern uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
|
/kernel/linux/linux-5.10/drivers/net/wireless/ |
D | ray_cs.h | 32 void __iomem *rmem; /* pointer to receive buffer window */ member
|