/Linux-v6.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-v6.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-v6.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-v6.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-v6.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-v6.1/arch/s390/mm/ |
D | kasan_init.c | 256 unsigned long memsize; in kasan_early_init() local 268 memsize = get_mem_detect_end(); in kasan_early_init() 269 if (!memsize) in kasan_early_init() 283 memsize = min(memsize, ident_map_size); in kasan_early_init() 298 shadow_alloc_size = memsize >> KASAN_SHADOW_SCALE_SHIFT; in kasan_early_init() 306 if (pgalloc_low + shadow_alloc_size > memsize) in kasan_early_init() 310 segment_pos = round_down(memsize, _SEGMENT_SIZE); in kasan_early_init() 314 pgalloc_pos = memsize; in kasan_early_init() 353 kasan_early_pgtable_populate(__sha(0), __sha(memsize), POPULATE_MAP); in kasan_early_init() 370 kasan_early_pgtable_populate(0, memsize, POPULATE_ONE2ONE); in kasan_early_init() [all …]
|
/Linux-v6.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-v6.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-v6.1/arch/mips/alchemy/common/ |
D | prom.c | 85 unsigned long memsize; in prom_init() local 94 if (!memsize_str || kstrtoul(memsize_str, 0, &memsize)) in prom_init() 95 memsize = SZ_64M; /* minimum memsize is 64MB RAM */ in prom_init() 97 memblock_add(0, memsize); in prom_init()
|
/Linux-v6.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-v6.1/arch/sh/drivers/pci/ |
D | pcie-sh7786.c | 35 size_t memsize; variable 363 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 370 memstart = ALIGN_DOWN(memstart, memsize); in pcie_init() 371 memsize = roundup_pow_of_two(memend - memstart); in pcie_init() 377 if (memsize > SZ_512M) { in pcie_init() 379 pci_write_reg(chan, ((memsize - SZ_512M) - SZ_256) | 1, in pcie_init() 381 memsize = SZ_512M; in pcie_init() 395 pci_write_reg(chan, (memsize - SZ_256) | 1, SH4A_PCIELAMR0); in pcie_init() 491 __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-v6.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-v6.1/arch/arm/boot/compressed/ |
D | atags_to_fdt.c | 136 int ret, memsize; in atags_to_fdt() local 176 memsize = get_cell_size(fdt); in atags_to_fdt() 178 if (memsize == 2) { in atags_to_fdt() 213 4 * memcount * memsize); in atags_to_fdt()
|
/Linux-v6.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-v6.1/arch/mips/ar7/ |
D | memory.c | 20 static int __init memsize(void) in memsize() function 49 pages = memsize() >> PAGE_SHIFT; in prom_meminit()
|
/Linux-v6.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-v6.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() 313 tape_ccw_end(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_end() argument 317 ccw->count = memsize; in tape_ccw_end()
|
/Linux-v6.1/include/linux/ |
D | xxhash.h | 154 uint32_t memsize; member 167 uint32_t memsize; member
|
/Linux-v6.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() 1008 size_t memsize, hwentries; in c4iw_create_cq() local 1065 memsize = hwentries * ((ucontext && ucontext->is_32b_cqe) ? in c4iw_create_cq() 1072 memsize = roundup(memsize, PAGE_SIZE); in c4iw_create_cq() 1075 chp->cq.memsize = memsize; in c4iw_create_cq() 1108 uresp.memsize = chp->cq.memsize; in c4iw_create_cq() 1129 mm->len = chp->cq.memsize; in c4iw_create_cq() [all …]
|