/Linux-v4.19/arch/mips/dec/prom/ |
D | memory.c | 64 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local 75 mem_size += (8 * bm->pagesize); in rex_setup_memory_region() 76 else if (!mem_size) in rex_setup_memory_region() 79 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region() 80 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region() 81 mem_size = 0; in rex_setup_memory_region() 84 if (mem_size) in rex_setup_memory_region() 85 add_memory_region(mem_start, mem_size, BOOT_MEM_RAM); in rex_setup_memory_region()
|
/Linux-v4.19/drivers/net/wireless/ti/wl1251/ |
D | io.c | 135 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument 141 mem_start, mem_size); in wl1251_set_partition() 147 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition() 150 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition() 152 mem_start, mem_size); in wl1251_set_partition() 158 ((mem_start + mem_size) > reg_start)) { in wl1251_set_partition() 163 mem_size = reg_start - mem_start; in wl1251_set_partition() 165 mem_start, mem_size); in wl1251_set_partition() 176 mem_start, mem_size); in wl1251_set_partition() 182 partition[0].size = mem_size; in wl1251_set_partition() [all …]
|
/Linux-v4.19/arch/powerpc/boot/ |
D | ep8248e.c | 19 static u64 mem_size; variable 27 dt_fixup_memory(0, mem_size); in platform_fixups() 44 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init() 47 mem_size *= 1024 * 1024; in platform_init() 48 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); in platform_init()
|
D | ep88xc.c | 19 static u64 mem_size; variable 25 dt_fixup_memory(0, mem_size); in platform_fixups() 42 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init() 45 mem_size *= 1024 * 1024; in platform_init() 46 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); in platform_init()
|
D | ep405.c | 25 static u64 mem_size; variable 32 dt_fixup_memory(0, mem_size); in platform_fixups() 62 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init() 65 mem_size *= 1024 * 1024; in platform_init() 66 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); in platform_init()
|
/Linux-v4.19/arch/mips/loongson64/loongson-3/ |
D | numa.c | 128 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local 137 mem_size = loongson_memmap->map[i].mem_size; in szmem() 143 node_psize = (mem_size << 20) >> PAGE_SHIFT; in szmem() 147 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 151 (u64)mem_size << 20, BOOT_MEM_RAM); in szmem() 157 node_psize = (mem_size << 20) >> PAGE_SHIFT; in szmem() 161 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 165 (u64)mem_size << 20, BOOT_MEM_RAM); in szmem() 171 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 173 (u64)mem_size << 20, BOOT_MEM_RESERVED); in szmem() [all …]
|
/Linux-v4.19/drivers/media/platform/qcom/venus/ |
D | firmware.c | 37 size_t mem_size; in venus_boot() local 55 mem_size = resource_size(&r); in venus_boot() 57 if (mem_size < VENUS_FW_MEM_SIZE) in venus_boot() 60 mem_va = memremap(r.start, mem_size, MEMREMAP_WC); in venus_boot() 63 &r.start, mem_size); in venus_boot() 79 mem_size, NULL); in venus_boot()
|
/Linux-v4.19/drivers/soc/qcom/ |
D | mdt_loader.c | 79 phys_addr_t mem_phys, size_t mem_size, in __qcom_mdt_load() argument 97 if (!fw || !mem_region || !mem_phys || !mem_size) in __qcom_mdt_load() 165 if (offset < 0 || offset + phdr->p_memsz > mem_size) { in __qcom_mdt_load() 213 phys_addr_t mem_phys, size_t mem_size, in qcom_mdt_load() argument 217 mem_size, reloc_base, true); in qcom_mdt_load() 237 size_t mem_size, phys_addr_t *reloc_base) in qcom_mdt_load_no_init() argument 240 mem_size, reloc_base, false); in qcom_mdt_load_no_init()
|
/Linux-v4.19/arch/mips/txx9/generic/ |
D | pci.c | 111 unsigned long mem_base, unsigned long mem_size, in txx9_alloc_pci_controller() argument 141 pcic->mem_resource[0].end = mem_base + mem_size - 1; in txx9_alloc_pci_controller() 146 if (!mem_size) { in txx9_alloc_pci_controller() 149 mem_size = 0x20000000; /* mem:512M(max) */ in txx9_alloc_pci_controller() 151 mem_size = 0x08000000; /* mem:128M(max) */ in txx9_alloc_pci_controller() 158 for (; mem_size >= min_size; mem_size /= 2) { in txx9_alloc_pci_controller() 161 mem_size, min, max, in txx9_alloc_pci_controller() 162 mem_size, NULL, NULL) == 0) in txx9_alloc_pci_controller() 165 if (mem_size < min_size) in txx9_alloc_pci_controller()
|
/Linux-v4.19/arch/xtensa/mm/ |
D | init.c | 224 unsigned long start_at, mem_size; in parse_memmap_one() local 230 mem_size = memparse(p, &p); in parse_memmap_one() 237 memblock_add(start_at, mem_size); in parse_memmap_one() 242 memblock_reserve(start_at, mem_size); in parse_memmap_one() 246 memblock_reserve(mem_size, -mem_size); in parse_memmap_one()
|
/Linux-v4.19/arch/alpha/boot/tools/ |
D | objstrip.c | 55 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local 178 mem_size = elf_phdr->p_memsz; in main() 185 mem_size -= delta; in main() 219 mem_size = fil_size + aout->ah.bsize; in main() 260 mem_size = ((mem_size + pad - 1) / pad) * pad; in main() 263 tocopy = mem_size - fil_size; in main()
|
/Linux-v4.19/arch/x86/kernel/ |
D | e820.c | 861 u64 mem_size; in parse_memopt() local 877 mem_size = memparse(p, &p); in parse_memopt() 880 if (mem_size == 0) in parse_memopt() 883 e820__range_remove(mem_size, ULLONG_MAX - mem_size, E820_TYPE_RAM, 1); in parse_memopt() 892 u64 start_at, mem_size; in parse_memmap_one() local 912 mem_size = memparse(p, &p); in parse_memmap_one() 919 e820__range_add(start_at, mem_size, E820_TYPE_RAM); in parse_memmap_one() 922 e820__range_add(start_at, mem_size, E820_TYPE_ACPI); in parse_memmap_one() 925 e820__range_add(start_at, mem_size, E820_TYPE_RESERVED); in parse_memmap_one() 928 e820__range_add(start_at, mem_size, E820_TYPE_PRAM); in parse_memmap_one() [all …]
|
/Linux-v4.19/fs/squashfs/ |
D | zstd_wrapper.c | 34 size_t mem_size; member 46 wksp->mem_size = ZSTD_DStreamWorkspaceBound(wksp->window_size); in zstd_init() 47 wksp->mem = vmalloc(wksp->mem_size); in zstd_init() 82 stream = ZSTD_initDStream(wksp->window_size, wksp->mem, wksp->mem_size); in zstd_uncompress()
|
/Linux-v4.19/drivers/soc/ti/ |
D | knav_qmss_acc.c | 454 info->mem_size, DMA_BIDIRECTIONAL); in knav_acc_free_range() 455 free_pages_exact(acc->list_cpu[0], info->mem_size); in knav_acc_free_range() 487 int list_size, mem_size; in knav_init_acc_range() local 553 mem_size = PAGE_ALIGN(list_size * 2); in knav_init_acc_range() 554 info->mem_size = mem_size; in knav_init_acc_range() 565 list_mem = alloc_pages_exact(mem_size, GFP_KERNEL | GFP_DMA); in knav_init_acc_range() 569 list_dma = dma_map_single(kdev->dev, list_mem, mem_size, in knav_init_acc_range() 572 free_pages_exact(list_mem, mem_size); in knav_init_acc_range() 576 memset(list_mem, 0, mem_size); in knav_init_acc_range() 577 dma_sync_single_for_device(kdev->dev, list_dma, mem_size, in knav_init_acc_range()
|
/Linux-v4.19/drivers/net/can/cc770/ |
D | cc770_platform.c | 172 resource_size_t mem_size; in cc770_platform_probe() local 181 mem_size = resource_size(mem); in cc770_platform_probe() 182 if (!request_mem_region(mem->start, mem_size, pdev->name)) in cc770_platform_probe() 185 base = ioremap(mem->start, mem_size); in cc770_platform_probe() 236 release_mem_region(mem->start, mem_size); in cc770_platform_probe()
|
/Linux-v4.19/drivers/misc/ |
D | aspeed-lpc-ctrl.c | 36 resource_size_t mem_size; member 53 if (vma->vm_pgoff + vsize > lpc_ctrl->mem_base + lpc_ctrl->mem_size) in aspeed_lpc_ctrl_mmap() 93 map.size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 133 size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 230 lpc_ctrl->mem_size = resource_size(&resm); in aspeed_lpc_ctrl_probe()
|
/Linux-v4.19/arch/c6x/kernel/ |
D | setup.c | 217 static u32 mem_size __initdata; 225 mem_size = memparse(p, &p); in early_mem() 227 if (mem_size == 0) in early_mem() 310 if (mem_size && (PAGE_OFFSET + PAGE_ALIGN(mem_size)) < memory_end) in setup_arch() 311 memory_end = PAGE_OFFSET + PAGE_ALIGN(mem_size); in setup_arch()
|
/Linux-v4.19/drivers/firmware/efi/ |
D | fake_mem.c | 100 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local 107 mem_size = memparse(p, &p); in setup_fake_mem() 122 fake_mems[nr_fake_mem].range.end = start + mem_size - 1; in setup_fake_mem()
|
/Linux-v4.19/drivers/pcmcia/ |
D | electra_cf.c | 52 unsigned long mem_size; member 216 cf->mem_size = PAGE_ALIGN(resource_size(&mem)); in electra_cf_probe() 217 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 280 if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) { in electra_cf_probe() 316 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_probe() 349 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_remove()
|
/Linux-v4.19/drivers/remoteproc/ |
D | qcom_adsp_pil.c | 70 size_t mem_size; member 83 adsp->mem_region, adsp->mem_phys, adsp->mem_size, in adsp_load() 176 if (offset < 0 || offset + len > adsp->mem_size) in adsp_da_to_va() 245 adsp->mem_size = resource_size(&r); in adsp_alloc_memory_region() 246 adsp->mem_region = devm_ioremap_wc(adsp->dev, adsp->mem_phys, adsp->mem_size); in adsp_alloc_memory_region() 249 &r.start, adsp->mem_size); in adsp_alloc_memory_region()
|
/Linux-v4.19/include/linux/soc/qcom/ |
D | mdt_loader.h | 17 phys_addr_t mem_phys, size_t mem_size, 22 phys_addr_t mem_phys, size_t mem_size,
|
/Linux-v4.19/arch/riscv/kernel/ |
D | setup.c | 170 phys_addr_t mem_size = 0; in setup_bootmem() local 183 mem_size = min(reg->size, (phys_addr_t)-PAGE_OFFSET); in setup_bootmem() 186 BUG_ON(mem_size == 0); in setup_bootmem() 188 set_max_mapnr(PFN_DOWN(mem_size)); in setup_bootmem()
|
/Linux-v4.19/arch/mips/loongson64/common/ |
D | mem.c | 74 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory() 79 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory() 84 (u64)loongson_memmap->map[i].mem_size << 20, in prom_init_memory()
|
/Linux-v4.19/drivers/tty/serial/cpm_uart/ |
D | cpm_uart.h | 78 u32 mem_size; member 115 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr() 131 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
|
/Linux-v4.19/arch/mips/pci/ |
D | pci-bcm63xx.c | 213 unsigned int mem_size; in bcm63xx_register_pci() local 278 mem_size = bcm63xx_get_memory_size(); in bcm63xx_register_pci() 283 if (mem_size > (16 * 1024 * 1024)) in bcm63xx_register_pci() 289 bcm_mpi_writel(~(mem_size - 1), MPI_SP0_RANGE_REG); in bcm63xx_register_pci()
|