/kernel/linux/linux-5.10/arch/mips/dec/prom/ |
D | memory.c | 62 unsigned long mem_start = 0, mem_size = 0; in rex_setup_memory_region() local 73 mem_size += (8 * bm->pagesize); in rex_setup_memory_region() 74 else if (!mem_size) in rex_setup_memory_region() 77 memblock_add(mem_start, mem_size); in rex_setup_memory_region() 78 mem_start += mem_size + (8 * bm->pagesize); in rex_setup_memory_region() 79 mem_size = 0; in rex_setup_memory_region() 82 if (mem_size) in rex_setup_memory_region() 83 memblock_add(mem_start, mem_size); in rex_setup_memory_region()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
D | io.c | 121 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument 127 mem_start, mem_size); in wl1251_set_partition() 133 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition() 136 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition() 138 mem_start, mem_size); in wl1251_set_partition() 144 ((mem_start + mem_size) > reg_start)) { in wl1251_set_partition() 149 mem_size = reg_start - mem_start; in wl1251_set_partition() 151 mem_start, mem_size); in wl1251_set_partition() 162 mem_start, mem_size); in wl1251_set_partition() 168 partition[0].size = mem_size; in wl1251_set_partition() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | ep88xc.c | 16 static u64 mem_size; variable 22 dt_fixup_memory(0, mem_size); in platform_fixups() 39 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init() 42 mem_size *= 1024 * 1024; in platform_init() 43 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); in platform_init()
|
D | ep8248e.c | 16 static u64 mem_size; variable 24 dt_fixup_memory(0, mem_size); in platform_fixups() 41 if (!planetcore_get_decimal(table, PLANETCORE_KEY_MB_RAM, &mem_size)) in platform_init() 44 mem_size *= 1024 * 1024; in platform_init() 45 simple_alloc_init(_end, mem_size - (unsigned long)_end, 32, 64); in platform_init()
|
/kernel/linux/linux-5.10/drivers/media/platform/qcom/venus/ |
D | firmware.c | 65 phys_addr_t *mem_phys, size_t *mem_size) in venus_load_fw() argument 76 *mem_size = 0; in venus_load_fw() 100 *mem_size = resource_size(&r); in venus_load_fw() 102 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw() 107 mem_va = memremap(r.start, *mem_size, MEMREMAP_WC); in venus_load_fw() 116 mem_va, *mem_phys, *mem_size, NULL); in venus_load_fw() 119 mem_va, *mem_phys, *mem_size, NULL); in venus_load_fw() 130 size_t mem_size) in venus_boot_no_tz() argument 141 core->fw.mapped_mem_size = mem_size; in venus_boot_no_tz() 143 ret = iommu_map(iommu, VENUS_FW_START_ADDR, mem_phys, mem_size, in venus_boot_no_tz() [all …]
|
/kernel/linux/linux-5.10/arch/mips/loongson64/ |
D | numa.c | 105 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local 114 mem_size = loongson_memmap->map[i].mem_size; in szmem() 120 node_psize = (mem_size << 20) >> PAGE_SHIFT; in szmem() 124 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 132 node_psize = (mem_size << 20) >> PAGE_SHIFT; in szmem() 136 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 144 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 146 mem_size << 20); in szmem()
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
D | ipa_mem.c | 121 else if (mem->offset + mem->size > ipa->mem_size) in ipa_mem_valid() 123 mem_id, ipa->mem_size); in ipa_mem_valid() 150 u32 mem_size; in ipa_mem_config() local 160 mem_size = 8 * u32_get_bits(val, SHARED_MEM_SIZE_FMASK); in ipa_mem_config() 163 if (ipa->mem_offset + mem_size > ipa->mem_size) { in ipa_mem_config() 165 mem_size); in ipa_mem_config() 166 } else if (ipa->mem_offset + mem_size < ipa->mem_size) { in ipa_mem_config() 168 mem_size); in ipa_mem_config() 169 ipa->mem_size = mem_size; in ipa_mem_config() 488 ipa->mem_size = resource_size(res); in ipa_mem_init()
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | init.c | 174 unsigned long start_at, mem_size; in parse_memmap_one() local 180 mem_size = memparse(p, &p); in parse_memmap_one() 187 memblock_add(start_at, mem_size); in parse_memmap_one() 192 memblock_reserve(start_at, mem_size); in parse_memmap_one() 196 memblock_reserve(mem_size, -mem_size); in parse_memmap_one()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
D | k3-cppi-desc-pool.c | 22 size_t mem_size; member 37 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_destroy() 59 pool->mem_size = pool->num_desc * pool->desc_size; in k3_cppi_desc_pool_create_name() 76 pool->cpumem = dma_alloc_coherent(pool->dev, pool->mem_size, in k3_cppi_desc_pool_create_name() 83 (phys_addr_t)pool->dma_addr, pool->mem_size, in k3_cppi_desc_pool_create_name() 93 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_create_name()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/soc/aspeed/ |
D | aspeed-lpc-ctrl.c | 32 resource_size_t mem_size; member 49 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap() 91 if (!lpc_ctrl->mem_size) { in aspeed_lpc_ctrl_ioctl() 96 map.size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 140 if (!lpc_ctrl->mem_size) { in aspeed_lpc_ctrl_ioctl() 145 size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 242 lpc_ctrl->mem_size = resource_size(&resm); in aspeed_lpc_ctrl_probe()
|
D | aspeed-p2a-ctrl.c | 69 resource_size_t mem_size; member 107 if (ctrl->mem_base == 0 && ctrl->mem_size == 0) in aspeed_p2a_mmap() 113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap() 218 map.length = ctrl->mem_size; in aspeed_p2a_ioctl() 358 misc_ctrl->mem_size = resource_size(&resm); in aspeed_p2a_ctrl_probe()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | e820.c | 886 u64 mem_size; in parse_memopt() local 902 mem_size = memparse(p, &p); in parse_memopt() 905 if (mem_size == 0) in parse_memopt() 908 e820__range_remove(mem_size, ULLONG_MAX - mem_size, E820_TYPE_RAM, 1); in parse_memopt() 911 max_mem_size = mem_size; in parse_memopt() 921 u64 start_at, mem_size; in parse_memmap_one() local 933 mem_size = memparse(p, &p); in parse_memmap_one() 940 e820__range_add(start_at, mem_size, E820_TYPE_RAM); in parse_memmap_one() 943 e820__range_add(start_at, mem_size, E820_TYPE_ACPI); in parse_memmap_one() 946 e820__range_add(start_at, mem_size, E820_TYPE_RESERVED); in parse_memmap_one() [all …]
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | mdt_loader.c | 131 phys_addr_t mem_phys, size_t mem_size, in __qcom_mdt_load() argument 151 if (!fw || !mem_region || !mem_phys || !mem_size) in __qcom_mdt_load() 227 if (offset < 0 || offset + phdr->p_memsz > mem_size) { in __qcom_mdt_load() 304 phys_addr_t mem_phys, size_t mem_size, in qcom_mdt_load() argument 308 mem_size, reloc_base, true); in qcom_mdt_load() 328 size_t mem_size, phys_addr_t *reloc_base) in qcom_mdt_load_no_init() argument 331 mem_size, reloc_base, false); in qcom_mdt_load_no_init()
|
/kernel/linux/linux-5.10/fs/squashfs/ |
D | zstd_wrapper.c | 25 size_t mem_size; member 37 wksp->mem_size = ZSTD_DStreamWorkspaceBound(wksp->window_size); in zstd_init() 38 wksp->mem = vmalloc(wksp->mem_size); in zstd_init() 74 stream = ZSTD_initDStream(wksp->window_size, wksp->mem, wksp->mem_size); in zstd_uncompress()
|
/kernel/linux/linux-5.10/arch/c6x/kernel/ |
D | setup.c | 208 static u32 mem_size __initdata; 216 mem_size = memparse(p, &p); in early_mem() 218 if (mem_size == 0) in early_mem() 301 if (mem_size && (PAGE_OFFSET + PAGE_ALIGN(mem_size)) < memory_end) in setup_arch() 302 memory_end = PAGE_OFFSET + PAGE_ALIGN(mem_size); in setup_arch()
|
/kernel/linux/linux-5.10/drivers/soc/ti/ |
D | knav_qmss_acc.c | 446 info->mem_size, DMA_BIDIRECTIONAL); in knav_acc_free_range() 447 free_pages_exact(acc->list_cpu[0], info->mem_size); in knav_acc_free_range() 479 int list_size, mem_size; in knav_init_acc_range() local 545 mem_size = PAGE_ALIGN(list_size * 2); in knav_init_acc_range() 546 info->mem_size = mem_size; in knav_init_acc_range() 557 list_mem = alloc_pages_exact(mem_size, GFP_KERNEL | GFP_DMA); in knav_init_acc_range() 561 list_dma = dma_map_single(kdev->dev, list_mem, mem_size, in knav_init_acc_range() 564 free_pages_exact(list_mem, mem_size); in knav_init_acc_range() 568 memset(list_mem, 0, mem_size); in knav_init_acc_range() 569 dma_sync_single_for_device(kdev->dev, list_dma, mem_size, in knav_init_acc_range()
|
/kernel/linux/linux-5.10/drivers/net/can/cc770/ |
D | cc770_platform.c | 164 resource_size_t mem_size; in cc770_platform_probe() local 173 mem_size = resource_size(mem); in cc770_platform_probe() 174 if (!request_mem_region(mem->start, mem_size, pdev->name)) in cc770_platform_probe() 177 base = ioremap(mem->start, mem_size); in cc770_platform_probe() 228 release_mem_region(mem->start, mem_size); in cc770_platform_probe()
|
/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | fake_mem.c | 83 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local 90 mem_size = memparse(p, &p); in setup_fake_mem() 105 efi_fake_mems[nr_fake_mem].range.end = start + mem_size - 1; in setup_fake_mem()
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | electra_cf.c | 39 unsigned long mem_size; member 202 cf->mem_size = PAGE_ALIGN(resource_size(&mem)); in electra_cf_probe() 203 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 255 if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) { in electra_cf_probe() 291 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_probe() 323 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_remove()
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/drivers/tty/serial/cpm_uart/ |
D | cpm_uart.h | 80 u32 mem_size; member 117 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr() 133 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
D | qcom_q6v5_adsp.c | 94 size_t mem_size; member 173 adsp->mem_size, &adsp->mem_reloc); in adsp_load() 177 qcom_pil_info_store(adsp->info_name, adsp->mem_phys, adsp->mem_size); in adsp_load() 290 if (offset < 0 || offset + len > adsp->mem_size) in adsp_da_to_va() 414 adsp->mem_size = resource_size(&r); in adsp_alloc_memory_region() 416 adsp->mem_phys, adsp->mem_size); in adsp_alloc_memory_region() 419 &r.start, adsp->mem_size); in adsp_alloc_memory_region()
|
/kernel/linux/linux-5.10/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()
|