Lines Matching defs:size_needed
148 vm_size_t size, size_needed;
166 size_needed = maxthings * sizeof (mach_port_t);
167 if (size_needed <= size)
175 assert(size_needed > 0);
176 size = size_needed;
220 size_needed = actual * sizeof (mach_port_t);
233 if (size_needed < size) {
236 newaddr = kalloc(size_needed);
263 bcopy((void *) addr, (void *) newaddr, size_needed);
285 vm_size_t size, size_needed;
308 size_needed = actual * sizeof (mach_port_t);
309 if (size_needed <= size)
318 assert(size_needed > 0);
319 size = size_needed;
340 size_needed = actual * sizeof (mach_port_t);
357 if (size_needed < size) {
360 newaddr = kalloc(size_needed);
368 bcopy(addr, newaddr, size_needed);