/openbmc/linux/drivers/of/ |
H A D | of_reserved_mem.c | 30 static struct reserved_mem reserved_mem[MAX_RESERVED_REGIONS]; variable 64 struct reserved_mem *rmem = &reserved_mem[reserved_mem_count]; in fdt_reserved_mem_save_node() 66 if (reserved_mem_count == ARRAY_SIZE(reserved_mem)) { in fdt_reserved_mem_save_node() 94 struct reserved_mem *rmem = &reserved_mem[i]; in __reserved_mem_alloc_in_range() 228 static int __init __reserved_mem_init_node(struct reserved_mem *rmem) in __reserved_mem_init_node() 253 const struct reserved_mem *ra = a, *rb = b; in __rmem_cmp() 286 sort(reserved_mem, reserved_mem_count, sizeof(reserved_mem[0]), in __rmem_check_for_overlap() 289 struct reserved_mem *this, *next; in __rmem_check_for_overlap() 291 this = &reserved_mem[i]; in __rmem_check_for_overlap() 292 next = &reserved_mem[i + 1]; in __rmem_check_for_overlap() [all …]
|
/openbmc/linux/include/linux/ |
H A D | of_reserved_mem.h | 11 struct reserved_mem { struct 22 int (*device_init)(struct reserved_mem *rmem, argument 24 void (*device_release)(struct reserved_mem *rmem, 28 typedef int (*reservedmem_of_init_fn)(struct reserved_mem *rmem); 42 struct reserved_mem *of_reserved_mem_lookup(struct device_node *np); 63 static inline struct reserved_mem *of_reserved_mem_lookup(struct device_node *np) in of_reserved_mem_lookup()
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra210-emc-table.c | 12 static int tegra210_emc_table_device_init(struct reserved_mem *rmem, in tegra210_emc_table_device_init() 59 static void tegra210_emc_table_device_release(struct reserved_mem *rmem, in tegra210_emc_table_device_release() 78 static int tegra210_emc_table_init(struct reserved_mem *rmem) in tegra210_emc_table_init()
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | kaslr_booke.c | 33 int reserved_mem; member 113 if (regions.reserved_mem < 0) in overlaps_reserved_region() 117 for (subnode = fdt_first_subnode(fdt, regions.reserved_mem); in overlaps_reserved_region() 319 regions.reserved_mem = fdt_path_offset(dt_ptr, "/reserved-memory"); in kaslr_choose_location() 320 if (regions.reserved_mem >= 0) in kaslr_choose_location() 321 get_cell_sizes(dt_ptr, regions.reserved_mem, in kaslr_choose_location()
|
/openbmc/linux/drivers/net/caif/ |
H A D | caif_virtio.c | 96 * @reserved_mem: Pointer to memory reserve allocated from genpool 123 unsigned long reserved_mem; member 190 if (cfv->reserved_mem == 0 && cfv->genpool) in cfv_release_used_buf() 191 cfv->reserved_mem = in cfv_release_used_buf() 196 if (cfv->reserved_mem) { in cfv_release_used_buf() 368 gen_pool_free(cfv->genpool, cfv->reserved_mem, in cfv_destroy_genpool() 423 cfv->reserved_mem = gen_pool_alloc(cfv->genpool, in cfv_create_genpool() 425 if (!cfv->reserved_mem) { in cfv_create_genpool() 553 if (cfv->reserved_mem && cfv->genpool) { in cfv_netdev_tx() 554 gen_pool_free(cfv->genpool, cfv->reserved_mem, in cfv_netdev_tx() [all …]
|
/openbmc/linux/drivers/gpu/drm/logicvc/ |
H A D | logicvc_drm.c | 296 struct reserved_mem *reserved_mem = NULL; in logicvc_drm_probe() local 316 reserved_mem = of_reserved_mem_lookup(reserved_mem_node); in logicvc_drm_probe() 378 if (reserved_mem) in logicvc_drm_probe() 379 logicvc->reserved_mem_base = reserved_mem->base; in logicvc_drm_probe()
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | google,cros-ec-codec.yaml | 52 reserved_mem: reserved-mem@52800000 { 73 memory-region = <&reserved_mem>;
|
/openbmc/linux/drivers/nvmem/ |
H A D | rmem.c | 15 struct reserved_mem *mem; 59 struct reserved_mem *mem; in rmem_probe()
|
/openbmc/linux/kernel/dma/ |
H A D | coherent.c | 333 static struct reserved_mem *dma_reserved_default_memory __initdata; 336 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() 351 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() 363 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup()
|
H A D | contiguous.c | 446 static int rmem_cma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_cma_device_init() 452 static void rmem_cma_device_release(struct reserved_mem *rmem, in rmem_cma_device_release() 463 static int __init rmem_cma_setup(struct reserved_mem *rmem) in rmem_cma_setup()
|
H A D | swiotlb.c | 1689 static int rmem_swiotlb_device_init(struct reserved_mem *rmem, in rmem_swiotlb_device_init() 1752 static void rmem_swiotlb_device_release(struct reserved_mem *rmem, in rmem_swiotlb_device_release() 1763 static int __init rmem_swiotlb_setup(struct reserved_mem *rmem) in rmem_swiotlb_setup()
|
/openbmc/linux/drivers/misc/ |
H A D | open-dice.c | 34 struct reserved_mem *rmem; 118 struct reserved_mem *rmem; in open_dice_probe()
|
/openbmc/linux/drivers/soc/fsl/qbman/ |
H A D | dpaa_sys.c | 41 struct reserved_mem *rmem; in qbman_init_private_mem()
|
H A D | bman_ccsr.c | 147 static int bman_fbpr(struct reserved_mem *rmem) in bman_fbpr()
|
H A D | qman_ccsr.c | 472 static int qman_fqd(struct reserved_mem *rmem) in qman_fqd() 482 static int qman_pfdr(struct reserved_mem *rmem) in qman_pfdr()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | rcar_rproc.c | 57 struct reserved_mem *rmem; in rcar_rproc_prepare()
|
H A D | st_remoteproc.c | 124 struct reserved_mem *rmem; in st_rproc_parse_fw()
|
H A D | qcom_q6v5_pas.c | 538 struct reserved_mem *rmem; in adsp_alloc_memory_region() 593 struct reserved_mem *rmem = NULL; in adsp_assign_memory_region()
|
H A D | qcom_wcnss.c | 509 struct reserved_mem *rmem = NULL; in wcnss_alloc_memory_region()
|
H A D | qcom_q6v5_adsp.c | 640 struct reserved_mem *rmem = NULL; in adsp_alloc_memory_region()
|
/openbmc/linux/Documentation/riscv/ |
H A D | boot.rst | 145 As the ``reserved_mem`` array is initialized with virtual addresses established
|
/openbmc/linux/drivers/media/platform/qcom/venus/ |
H A D | firmware.c | 86 struct reserved_mem *rmem; in venus_load_fw()
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | rmtfs_mem.c | 175 struct reserved_mem *rmem; in qcom_rmtfs_mem_probe()
|
H A D | cmd-db.c | 348 struct reserved_mem *rmem; in cmd_db_dev_probe()
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_wed_mcu.c | 224 struct reserved_mem *rmem; in mtk_wed_get_memory_region()
|