/linux-6.12.1/arch/powerpc/boot/ |
D | 4xx.c | 24 static unsigned long chip_11_errata(unsigned long memsize) in chip_11_errata() argument 34 memsize -= 4096; in chip_11_errata() 40 return memsize; in chip_11_errata() 47 unsigned long memsize, bank_config; in ibm4xx_sdram_fixup_memsize() local 49 memsize = 0; in ibm4xx_sdram_fixup_memsize() 53 memsize += SDRAM_CONFIG_BANK_SIZE(bank_config); in ibm4xx_sdram_fixup_memsize() 56 memsize = chip_11_errata(memsize); in ibm4xx_sdram_fixup_memsize() 57 dt_fixup_memory(0, memsize); in ibm4xx_sdram_fixup_memsize() 101 u64 banktop, memsize = 0; in ibm440spe_fixup_memsize() local 107 if (banktop > memsize) in ibm440spe_fixup_memsize() [all …]
|
D | treeboot-currituck.c | 43 unsigned long long memsize = 0; in ibm_currituck_detect_memsize() local 53 memsize += (0x800000ULL << reg); in ibm_currituck_detect_memsize() 56 return memsize; in ibm_currituck_detect_memsize()
|
D | treeboot-akebono.c | 54 unsigned long long memsize = 0; in ibm_akebono_detect_memsize() local 64 memsize += (0x800000ULL << reg); in ibm_akebono_detect_memsize() 67 return memsize; in ibm_akebono_detect_memsize()
|
D | main.c | 53 printf("Allocating 0x%lx bytes for kernel...\n\r", ei.memsize); in prep_kernel() 56 addr = platform_ops.vmlinux_alloc(ei.memsize); in prep_kernel() 68 if ((unsigned long)_end < ei.memsize) in prep_kernel() 98 return (struct addr_range){addr, ei.memsize}; in prep_kernel()
|
/linux-6.12.1/arch/mips/generic/ |
D | yamon-dt.c | 47 unsigned long memsize) in gen_fdt_mem_array() argument 53 for (mr = regions; mr->size && memsize; ++mr) { in gen_fdt_mem_array() 61 size = min_t(unsigned long, memsize, mr->size); in gen_fdt_mem_array() 62 memsize -= size; in gen_fdt_mem_array() 70 memsize -= min_t(unsigned long, memsize, mr->discard); in gen_fdt_mem_array() 78 unsigned long phys_memsize = 0, memsize; in yamon_dt_append_memory() local 106 memsize = phys_memsize; in yamon_dt_append_memory() 115 memsize = memparse(var + strlen(param_name), NULL); in yamon_dt_append_memory() 119 phys_memsize = max_t(unsigned long, phys_memsize, memsize); in yamon_dt_append_memory() 146 MAX_MEM_ARRAY_ENTRIES, memsize); in yamon_dt_append_memory()
|
/linux-6.12.1/arch/mips/loongson32/common/ |
D | prom.c | 16 unsigned long memsize; variable 24 memsize = fw_getenvl("memsize"); in prom_init() 25 if(!memsize) in prom_init() 26 memsize = DEFAULT_MEMSIZE; in prom_init() 41 memblock_add(0x0, (memsize << 20)); in plat_mem_setup()
|
/linux-6.12.1/lib/ |
D | xxhash.c | 281 if (state->memsize + len < 16) { /* fill in tmp buffer */ in xxh32_update() 282 memcpy((uint8_t *)(state->mem32) + state->memsize, input, len); in xxh32_update() 283 state->memsize += (uint32_t)len; in xxh32_update() 287 if (state->memsize) { /* some data left from previous update */ in xxh32_update() 290 memcpy((uint8_t *)(state->mem32) + state->memsize, input, in xxh32_update() 291 16 - state->memsize); in xxh32_update() 302 p += 16-state->memsize; in xxh32_update() 303 state->memsize = 0; in xxh32_update() 332 state->memsize = (uint32_t)(b_end-p); in xxh32_update() 343 state->memsize; in xxh32_digest() [all …]
|
/linux-6.12.1/arch/sh/mm/ |
D | consistent.c | 38 char *name, unsigned long memsize) in platform_resource_setup_memory() argument 50 memchunk_cmdline_override(name, &memsize); in platform_resource_setup_memory() 51 if (!memsize) in platform_resource_setup_memory() 54 buf = dma_alloc_coherent(&pdev->dev, memsize, &dma_handle, GFP_KERNEL); in platform_resource_setup_memory() 62 r->end = r->start + memsize - 1; in platform_resource_setup_memory()
|
/linux-6.12.1/arch/mips/loongson2ef/common/ |
D | mem.c | 16 u32 memsize, highmemsize; variable 20 memblock_add(0x0, (memsize << 20)); in prom_init_memory() 26 bit = fls(memsize + highmemsize); in prom_init_memory() 27 if (bit != ffs(memsize + highmemsize)) in prom_init_memory()
|
D | env.c | 30 memsize = fw_getenvl("memsize"); in prom_init_env() 33 if (memsize == 0) in prom_init_env() 34 memsize = 256; in prom_init_env() 36 pr_info("memsize=%u, highmemsize=%u\n", memsize, highmemsize); in prom_init_env()
|
/linux-6.12.1/arch/mips/rb532/ |
D | prom.c | 104 phys_addr_t memsize; in prom_init() local 116 memsize = (phys_addr_t)&ddr->ddrmask; in prom_init() 117 memsize = 0 - memsize; in prom_init() 123 memblock_add(ddrbase + 0x400, memsize - 0x600); in prom_init()
|
/linux-6.12.1/arch/mips/alchemy/common/ |
D | prom.c | 86 unsigned long memsize; in prom_init() local 95 if (!memsize_str || kstrtoul(memsize_str, 0, &memsize)) in prom_init() 96 memsize = SZ_64M; /* minimum memsize is 64MB RAM */ in prom_init() 98 memblock_add(0, memsize); in prom_init()
|
/linux-6.12.1/arch/sh/drivers/pci/ |
D | pcie-sh7786.c | 34 size_t memsize; variable 362 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 369 memstart = ALIGN_DOWN(memstart, memsize); in pcie_init() 370 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 376 if (memsize > SZ_512M) { in pcie_init() 378 pci_write_reg(chan, ((memsize - SZ_512M) - SZ_256) | 1, in pcie_init() 380 memsize = SZ_512M; in pcie_init() 394 pci_write_reg(chan, (memsize - SZ_256) | 1, SH4A_PCIELAMR0); in pcie_init() 490 __pa(memory_start) - memstart, memsize); in pcibios_bus_add_device()
|
D | pci-sh7780.c | 248 size_t memsize; in sh7780_pci_init() local 300 memsize = roundup_pow_of_two(memory_end - memory_start); in sh7780_pci_init() 306 if (memsize > SZ_512M) { in sh7780_pci_init() 308 __raw_writel((((memsize - SZ_512M) - SZ_1M) & 0x1ff00000) | 1, in sh7780_pci_init() 310 memsize = SZ_512M; in sh7780_pci_init() 324 __raw_writel(((memsize - SZ_1M) & 0x1ff00000) | 1, in sh7780_pci_init()
|
/linux-6.12.1/arch/mips/ath25/ |
D | ar2315.c | 258 u32 memsize, memcfg; in ar2315_plat_mem_setup() local 266 memsize = 1 + ATH25_REG_MS(memcfg, AR2315_MEM_CFG_DATA_WIDTH); in ar2315_plat_mem_setup() 267 memsize <<= 1 + ATH25_REG_MS(memcfg, AR2315_MEM_CFG_COL_WIDTH); in ar2315_plat_mem_setup() 268 memsize <<= 1 + ATH25_REG_MS(memcfg, AR2315_MEM_CFG_ROW_WIDTH); in ar2315_plat_mem_setup() 269 memsize <<= 3; in ar2315_plat_mem_setup() 270 memblock_add(0, memsize); in ar2315_plat_mem_setup()
|
D | ar5312.c | 354 u32 memsize, memcfg, bank0_ac, bank1_ac; in ar5312_plat_mem_setup() local 363 memsize = (bank0_ac ? (1 << (bank0_ac + 1)) : 0) + in ar5312_plat_mem_setup() 365 memsize <<= 20; in ar5312_plat_mem_setup() 366 memblock_add(0, memsize); in ar5312_plat_mem_setup()
|
/linux-6.12.1/arch/mips/mti-malta/ |
D | malta-dtshim.c | 134 unsigned long memsize; in append_memory() local 176 memsize = physical_memsize; in append_memory() 185 memsize = memparse(var + strlen(param_name), NULL); in append_memory() 189 physical_memsize = max_t(unsigned long, physical_memsize, memsize); in append_memory() 220 mem_entries = gen_fdt_mem_array(mem_array, memsize, mem_map); in append_memory()
|
/linux-6.12.1/arch/arm/boot/compressed/ |
D | atags_to_fdt.c | 137 int ret, memsize; in atags_to_fdt() local 177 memsize = get_cell_size(fdt); in atags_to_fdt() 179 if (memsize == 2) { in atags_to_fdt() 214 4 * memcount * memsize); in atags_to_fdt()
|
/linux-6.12.1/arch/mips/fw/sni/ |
D | sniprom.c | 102 int i, memsize; in sni_mem_init() local 114 memsize = *((unsigned char *) SNI_IDPROM_MEMSIZE) * 16; in sni_mem_init() 116 pr_debug("IDProm memsize: %u MByte\n", memsize); in sni_mem_init()
|
/linux-6.12.1/drivers/video/ |
D | vgastate.c | 99 for (i = 0; i < state->memsize; i++) in save_vga_text() 185 for (i = 0; i < state->memsize; i++) in restore_vga_text() 400 if (state->memsize && state->memsize < 4 * 8192) { in save_vga() 404 if (!state->memsize) in save_vga() 405 state->memsize = 8 * 8192; in save_vga() 410 fbbase = ioremap(state->membase, state->memsize); in save_vga() 433 saved->vga_font1 = vmalloc(state->memsize); in save_vga() 467 void __iomem *fbbase = ioremap(state->membase, state->memsize); in restore_vga()
|
/linux-6.12.1/drivers/s390/char/ |
D | tape.h | 303 tape_ccw_cc(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_cc() argument 307 ccw->count = memsize; in tape_ccw_cc() 315 tape_ccw_end(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_end() argument 319 ccw->count = memsize; in tape_ccw_end()
|
/linux-6.12.1/tools/testing/selftests/cgroup/ |
D | test_zswap.c | 266 size_t memsize = MB(4); in attempt_writeback() local 273 mem = (char *)malloc(memsize); in attempt_writeback() 285 for (int i = 0; i < memsize; i += pagesize) in attempt_writeback() 289 if (cg_write_numeric(cgroup, "memory.reclaim", memsize)) { in attempt_writeback() 297 for (int i = 0; i < memsize; i += pagesize) { in attempt_writeback() 313 ret = cg_write_numeric(cgroup, "memory.reclaim", memsize); in attempt_writeback()
|
/linux-6.12.1/drivers/infiniband/hw/cxgb4/ |
D | cq.c | 65 cq->memsize, cq->queue, in destroy_cq() 92 cq->sw_queue = kzalloc(cq->memsize, GFP_KERNEL); in create_cq() 98 cq->queue = dma_alloc_coherent(&rdev->lldi.pdev->dev, cq->memsize, in create_cq() 174 dma_free_coherent(&rdev->lldi.pdev->dev, cq->memsize, cq->queue, in create_cq() 1009 size_t memsize, hwentries; in c4iw_create_cq() local 1066 memsize = hwentries * ((ucontext && ucontext->is_32b_cqe) ? in c4iw_create_cq() 1073 memsize = roundup(memsize, PAGE_SIZE); in c4iw_create_cq() 1076 chp->cq.memsize = memsize; in c4iw_create_cq() 1109 uresp.memsize = chp->cq.memsize; in c4iw_create_cq() 1132 mm->len = chp->cq.memsize; in c4iw_create_cq() [all …]
|
/linux-6.12.1/include/linux/ |
D | xxhash.h | 154 uint32_t memsize; member 167 uint32_t memsize; member
|
/linux-6.12.1/samples/vfio-mdev/ |
D | mdpy.c | 106 u32 memsize; member 133 mdev_state->bar_mask = ~(mdev_state->memsize) + 1; in mdpy_create_config_space() 188 MDPY_MEMORY_BAR_OFFSET + mdev_state->memsize)) { in mdev_access() 248 mdev_state->memsize = fbsize; in mdpy_init_dev() 430 if (vma->vm_end - vma->vm_start > mdev_state->memsize) in mdpy_mmap() 456 region_info->size = mdev_state->memsize; in mdpy_get_region_info() 502 plane->size = mdev_state->memsize; in mdpy_query_gfx_plane()
|