/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_lsdma.c | 49 uint64_t mem_size) in amdgpu_lsdma_copy_mem() argument 53 if (mem_size == 0) in amdgpu_lsdma_copy_mem() 56 while (mem_size > 0) { in amdgpu_lsdma_copy_mem() 57 uint64_t current_copy_size = min(mem_size, AMDGPU_LSDMA_MAX_SIZE); in amdgpu_lsdma_copy_mem() 64 mem_size -= current_copy_size; in amdgpu_lsdma_copy_mem() 73 uint64_t mem_size) in amdgpu_lsdma_fill_mem() argument 77 if (mem_size == 0) in amdgpu_lsdma_fill_mem() 80 while (mem_size > 0) { in amdgpu_lsdma_fill_mem() 81 uint64_t current_fill_size = min(mem_size, AMDGPU_LSDMA_MAX_SIZE); in amdgpu_lsdma_fill_mem() 87 mem_size -= current_fill_size; in amdgpu_lsdma_fill_mem()
|
D | amdgpu_lsdma.h | 40 uint64_t dst_addr, uint64_t mem_size); 42 uint32_t data, uint64_t mem_size);
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/net/wireless/ti/wl1251/ |
D | io.c | 121 u32 mem_start, u32 mem_size, in wl1251_set_partition() argument 133 mem_start, mem_size); in wl1251_set_partition() 139 if ((mem_size + reg_size) > HW_ACCESS_MEMORY_MAX_RANGE) { in wl1251_set_partition() 142 mem_size = HW_ACCESS_MEMORY_MAX_RANGE - reg_size; in wl1251_set_partition() 144 mem_start, mem_size); in wl1251_set_partition() 150 ((mem_start + mem_size) > reg_start)) { in wl1251_set_partition() 155 mem_size = reg_start - mem_start; in wl1251_set_partition() 157 mem_start, mem_size); in wl1251_set_partition() 168 mem_start, mem_size); in wl1251_set_partition() 174 partition->mem.size = mem_size; in wl1251_set_partition() [all …]
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | mem.c | 16 u64 mem_start, mem_end, mem_size; in memblock_init() local 23 mem_size = md->num_pages << EFI_PAGE_SHIFT; in memblock_init() 24 mem_end = mem_start + mem_size; in memblock_init() 33 memblock_add(mem_start, mem_size); in memblock_init() 40 memblock_add(mem_start, mem_size); in memblock_init() 47 memblock_reserve(mem_start, mem_size); in memblock_init()
|
/linux-6.1.9/drivers/media/platform/qcom/venus/ |
D | firmware.c | 80 phys_addr_t *mem_phys, size_t *mem_size) in venus_load_fw() argument 91 *mem_size = 0; in venus_load_fw() 115 *mem_size = resource_size(&r); in venus_load_fw() 117 if (*mem_size < fw_size || fw_size > VENUS_FW_MEM_SIZE) { in venus_load_fw() 122 mem_va = memremap(r.start, *mem_size, MEMREMAP_WC); in venus_load_fw() 131 mem_va, *mem_phys, *mem_size, NULL); in venus_load_fw() 134 mem_va, *mem_phys, *mem_size, NULL); in venus_load_fw() 145 size_t mem_size) in venus_boot_no_tz() argument 156 core->fw.mapped_mem_size = mem_size; in venus_boot_no_tz() 158 ret = iommu_map(iommu, VENUS_FW_START_ADDR, mem_phys, mem_size, in venus_boot_no_tz() [all …]
|
/linux-6.1.9/arch/powerpc/boot/ |
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()
|
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()
|
/linux-6.1.9/drivers/soc/aspeed/ |
D | aspeed-lpc-ctrl.c | 36 resource_size_t mem_size; member 55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap() 97 if (!lpc_ctrl->mem_size) { in aspeed_lpc_ctrl_ioctl() 102 map.size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 146 if (!lpc_ctrl->mem_size) { in aspeed_lpc_ctrl_ioctl() 151 size = lpc_ctrl->mem_size; in aspeed_lpc_ctrl_ioctl() 268 lpc_ctrl->mem_size = resource_size(&resm); in aspeed_lpc_ctrl_probe() 271 if (!is_power_of_2(lpc_ctrl->mem_size)) { in aspeed_lpc_ctrl_probe() 273 (unsigned int)lpc_ctrl->mem_size); in aspeed_lpc_ctrl_probe() 277 if (!IS_ALIGNED(lpc_ctrl->mem_base, lpc_ctrl->mem_size)) { in aspeed_lpc_ctrl_probe() [all …]
|
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()
|
/linux-6.1.9/arch/mips/loongson64/ |
D | init.c | 53 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local 66 mem_size = loongson_memmap->map[i].mem_size; in szmem() 73 node_psize = (mem_size << 20) >> PAGE_SHIFT; in szmem() 77 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 86 (u32)node_id, mem_type, mem_start, mem_size); in szmem() 87 memblock_reserve(((node_id << 44) + mem_start), mem_size << 20); in szmem()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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-6.1.9/arch/xtensa/mm/ |
D | init.c | 173 unsigned long start_at, mem_size; in parse_memmap_one() local 179 mem_size = memparse(p, &p); in parse_memmap_one() 186 memblock_add(start_at, mem_size); in parse_memmap_one() 191 memblock_reserve(start_at, mem_size); in parse_memmap_one() 195 memblock_reserve(mem_size, -mem_size); in parse_memmap_one()
|
/linux-6.1.9/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-6.1.9/include/linux/soc/qcom/ |
D | mdt_loader.h | 23 phys_addr_t mem_phys, size_t mem_size, 28 phys_addr_t mem_phys, size_t mem_size, 50 size_t mem_size, phys_addr_t *reloc_base) in qcom_mdt_load() argument 59 size_t mem_size, in qcom_mdt_load_no_init() argument
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/net/ipa/ |
D | ipa_mem.c | 285 u32 limit = ipa->mem_size; in ipa_mem_size_valid() 315 u32 mem_size; in ipa_mem_config() local 328 mem_size = 8 * ipa_reg_decode(reg, MEM_SIZE, val); in ipa_mem_config() 331 if (ipa->mem_offset + mem_size < ipa->mem_size) { in ipa_mem_config() 333 mem_size); in ipa_mem_config() 334 ipa->mem_size = mem_size; in ipa_mem_config() 335 } else if (ipa->mem_offset + mem_size > ipa->mem_size) { in ipa_mem_config() 337 mem_size); in ipa_mem_config() 649 ipa->mem_size = resource_size(res); in ipa_mem_init()
|
/linux-6.1.9/fs/squashfs/ |
D | zstd_wrapper.c | 25 size_t mem_size; member 37 wksp->mem_size = zstd_dstream_workspace_bound(wksp->window_size); in zstd_init() 38 wksp->mem = vmalloc(wksp->mem_size); in zstd_init() 74 stream = zstd_init_dstream(wksp->window_size, wksp->mem, wksp->mem_size); in zstd_uncompress()
|
/linux-6.1.9/drivers/soc/qcom/ |
D | mdt_loader.c | 263 phys_addr_t mem_phys, size_t mem_size, in __qcom_mdt_load() argument 277 if (!fw || !mem_region || !mem_phys || !mem_size) in __qcom_mdt_load() 317 if (offset < 0 || offset + phdr->p_memsz > mem_size) { in __qcom_mdt_load() 376 phys_addr_t mem_phys, size_t mem_size, in qcom_mdt_load() argument 386 mem_size, reloc_base, true); in qcom_mdt_load() 406 size_t mem_size, phys_addr_t *reloc_base) in qcom_mdt_load_no_init() argument 409 mem_size, reloc_base, false); in qcom_mdt_load_no_init()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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()
|
/linux-6.1.9/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() 257 if (!request_mem_region(cf->mem_phys, cf->mem_size, driver_name)) { in electra_cf_probe() 293 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_probe() 325 release_mem_region(cf->mem_phys, cf->mem_size); in electra_cf_remove()
|
/linux-6.1.9/drivers/tty/serial/cpm_uart/ |
D | cpm_uart.h | 82 u32 mem_size; member 118 if (likely(val >= mem && val < mem + pinfo->mem_size)) { in cpu2cpm_addr() 134 if (likely(val >= dma && val < dma + pinfo->mem_size)) { in cpm2cpu_addr()
|