Home
last modified time | relevance | path

Searched refs:memory_size (Results 1 – 25 of 35) sorted by relevance

12

/netbsd-src/external/gpl2/texinfo/dist/intl/
H A Dprintf-parse.c90 size_t memory_size; \ in PRINTF_PARSE()
96 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
97 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
101 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
102 : malloc (memory_size)); \ in PRINTF_PARSE()
506 size_t memory_size; in PRINTF_PARSE() local
510 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
511 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
514 memory = realloc (d->dir, memory_size); in PRINTF_PARSE()
H A Dvasnprintf.c189 size_t memory_size; \ in VASNPRINTF()
195 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF()
196 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
199 memory = (CHAR_T *) malloc (memory_size); \ in VASNPRINTF()
201 memory = (CHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/intl/
H A Dprintf-parse.c86 size_t memory_size; \ in PRINTF_PARSE()
92 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
93 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
97 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
98 : malloc (memory_size)); \ in PRINTF_PARSE()
511 size_t memory_size; in PRINTF_PARSE() local
515 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
516 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
519 memory = realloc (d->dir, memory_size); in PRINTF_PARSE()
H A Dvasnprintf.c185 size_t memory_size; \ in VASNPRINTF()
191 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF()
192 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
195 memory = (CHAR_T *) malloc (memory_size); \ in VASNPRINTF()
197 memory = (CHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/netbsd-src/external/gpl2/gettext/dist/gettext-runtime/libasprintf/
H A Dprintf-parse.c86 size_t memory_size; \ in PRINTF_PARSE()
92 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
93 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
97 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
98 : malloc (memory_size)); \ in PRINTF_PARSE()
511 size_t memory_size; in PRINTF_PARSE() local
515 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
516 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
519 memory = realloc (d->dir, memory_size); in PRINTF_PARSE()
H A Dvasnprintf.c185 size_t memory_size; \ in VASNPRINTF()
191 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF()
192 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
195 memory = (CHAR_T *) malloc (memory_size); \ in VASNPRINTF()
197 memory = (CHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dprintf-parse.c90 size_t memory_size; \ in PRINTF_PARSE()
96 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
97 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
101 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
102 : malloc (memory_size)); \ in PRINTF_PARSE()
506 size_t memory_size; in PRINTF_PARSE() local
510 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
511 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
514 memory = realloc (d->dir, memory_size); in PRINTF_PARSE()
H A Dvasnprintf.c199 size_t memory_size; \ in VASNPRINTF()
205 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF()
206 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
209 memory = (CHAR_T *) malloc (memory_size); \ in VASNPRINTF()
211 memory = (CHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/argon2/
H A Dargon2-core.c77 size_t memory_size; in allocate_memory() local
82 memory_size = sizeof(block) * m_cost; in allocate_memory()
84 memory_size / m_cost != in allocate_memory()
96 if ((base = mmap(NULL, memory_size, PROT_READ | PROT_WRITE, in allocate_memory()
103 if ((errno = posix_memalign((void **) &base, 64, memory_size)) != 0) { in allocate_memory()
109 if (memory_size + 63 < memory_size) { in allocate_memory()
112 } else if ((base = malloc(memory_size + 63)) != NULL) { in allocate_memory()
123 (*region)->size = memory_size; in allocate_memory()
/netbsd-src/sys/arch/evbarm/fdt/
H A Dfdt_machdep.c198 const uint64_t memory_size = *(uint64_t *)arg; in fdt_add_boot_physmem() local
199 if (atop(memory_size) > bp->bp_pages) { in fdt_add_boot_physmem()
354 uint64_t memory_size = memory_end - memory_start; in initarm() local
357 PRIx64 ")\n", __func__, memory_start, memory_end, memory_size); in initarm()
375 cpu_kernel_vm_init(memory_start, memory_size); in initarm()
384 fdt_memory_foreach(fdt_add_boot_physmem, &memory_size); in initarm()
/netbsd-src/external/apache2/argon2/dist/phc-winner-argon2/src/
H A Dcore.c91 size_t memory_size = num*size; in allocate_memory() local
97 if (size != 0 && memory_size / size != num) { in allocate_memory()
103 (context->allocate_cbk)(memory, memory_size); in allocate_memory()
105 *memory = malloc(memory_size); in allocate_memory()
117 size_t memory_size = num*size; in free_memory() local
118 clear_internal_memory(memory, memory_size); in free_memory()
120 (context->free_cbk)(memory, memory_size); in free_memory()
/netbsd-src/sys/arch/arm/footbridge/
H A Dfootbridge.c213 int memory_size = bootconfig.dram[0].pages * PAGE_SIZE; in footbridge_attach() local
218 if (mask >= memory_size) in footbridge_attach()
234 footbridge_dma_ranges[0].dr_len = memory_size; in footbridge_attach()
/netbsd-src/sys/arch/arm/arm32/
H A Darm32_machdep.c894 cpu_kernel_vm_init(paddr_t memory_start, psize_t memory_size) in cpu_kernel_vm_init() argument
901 if (memory_size > KERNEL_VM_BASE - KERNEL_BASE) { in cpu_kernel_vm_init()
903 __func__, (unsigned long) (memory_size >> 20), in cpu_kernel_vm_init()
905 memory_size = KERNEL_VM_BASE - KERNEL_BASE; in cpu_kernel_vm_init()
913 __func__, memory_start, memory_start + memory_size); in cpu_kernel_vm_init()
915 arm32_bootmem_init(memory_start, memory_size, KERNEL_BASE_PHYS); in cpu_kernel_vm_init()
/netbsd-src/external/gpl3/gdb/dist/sim/ppc/
H A Demul_generic.c311 unsigned_word memory_size = in emul_add_tree_hardware() local
315 (unsigned long)memory_size); in emul_add_tree_hardware()
319 (unsigned long)memory_size - avail_start); in emul_add_tree_hardware()
/netbsd-src/external/gpl3/gcc/dist/libbacktrace/
H A Delf.c419 const unsigned char *memory, size_t memory_size, off_t offset, in elf_get_view() argument
431 if ((uint64_t) offset + size > (uint64_t) memory_size) in elf_get_view()
3986 const unsigned char *memory, size_t memory_size, in elf_add() argument
4071 if (!elf_get_view (state, descriptor, memory, memory_size, 0, sizeof ehdr, in elf_add()
4128 if (!elf_get_view (state, descriptor, memory, memory_size, shoff, in elf_add()
4167 if (!elf_get_view (state, descriptor, memory, memory_size, in elf_add()
4181 if (!elf_get_view (state, descriptor, memory, memory_size, shstr_off, in elf_add()
4250 if (!elf_get_view (state, descriptor, memory, memory_size, in elf_add()
4284 if (!elf_get_view (state, descriptor, memory, memory_size, in elf_add()
4306 if (!elf_get_view (state, descriptor, memory, memory_size, in elf_add()
[all …]
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgettextpo/
H A Dlinebreak.c1535 size_t memory_size = xsum3 (xtimes (n, sizeof (size_t)), m, m); in mbs_possible_linebreaks() local
1537 (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); in mbs_possible_linebreaks()
1632 size_t memory_size = in mbs_width_linebreaks() local
1636 (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); in mbs_width_linebreaks()
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dlinebreak.c1535 size_t memory_size = xsum3 (xtimes (n, sizeof (size_t)), m, m); in mbs_possible_linebreaks() local
1537 (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); in mbs_possible_linebreaks()
1632 size_t memory_size = in mbs_width_linebreaks() local
1636 (size_in_bounds_p (memory_size) ? malloc (memory_size) : NULL); in mbs_width_linebreaks()
/netbsd-src/external/mit/libuv/dist/src/unix/
H A Dhurd.c106 return hbi.memory_size; in uv_get_total_memory()
/netbsd-src/sys/arch/riscv/riscv/
H A Driscv_machdep.c768 uint64_t memory_size __unused = memory_end - memory_start; in init_riscv()
771 PRIx64 ")\n", __func__, memory_start, memory_end, memory_size); in init_riscv()
858 DPRINTF(memory_size); in init_riscv()
/netbsd-src/sys/external/bsd/drm2/dist/drm/vmwgfx/
H A Dvmwgfx_drv.c720 dev_priv->memory_size = in vmw_driver_load()
722 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load()
728 dev_priv->memory_size = 512*1024*1024; in vmw_driver_load()
788 (unsigned)dev_priv->memory_size / 1024); in vmw_driver_load()
H A Dvmwgfx_ioctl.c96 param->value = dev_priv->memory_size; in vmw_getparam_ioctl()
/netbsd-src/sys/dev/pci/
H A Darcmsrvar.h380 uint32_t memory_size; member
H A Dmlyreg.h607 u_int16_t memory_size; member
/netbsd-src/external/gpl3/gdb/dist/sim/h8300/
H A DChangeLog-2021200 * compile.c (memory_size): Move definition to top of file.
201 (h8_get_memory, h8_set_memory): Assert access is within memory_size.
208 (sim_read): Check addr is within memory_size.
667 * compile.c (sim_load): Update sd->memory_size.
1266 * compile.c (memory_size): New static global.
1268 (sim_write,sim_read): Use memory_size.
/netbsd-src/sys/arch/aarch64/aarch64/
H A Daarch64_machdep.c143 cpu_kernel_vm_init(uint64_t memory_start __unused, uint64_t memory_size __unused) in cpu_kernel_vm_init()

12