Lines Matching refs:capacity

282                                vm_size_t    capacity,
287 return (initWithPhysicalMask(inTask, options, capacity, alignment, physicalMask));
294 mach_vm_size_t capacity,
307 if (!capacity)
311 _capacity = capacity;
347 capacity = round_page(capacity);
442 capacity = round_page(capacity);
445 capacity, highestMask, alignment, contig);
448 && ((capacity + alignment) <= (page_size - kIOPageAllocChunkBytes)))
452 _buffer = (void *) iopa_alloc(capacity, alignment);
456 _buffer = IOMallocAligned(capacity, alignment);
460 _buffer = IOMalloc(capacity);
466 if (needZero) bzero(_buffer, capacity);
471 vm_size_t size = round_page(capacity);
478 if( (KERN_SUCCESS == kr) && (size != round_page(capacity))) {
499 volatile UInt8 * endAddr = (UInt8 *)_buffer + capacity;
552 vm_size_t capacity,
557 if (me && !me->initWithPhysicalMask(inTask, options, capacity, alignment, 0)) {
567 mach_vm_size_t capacity,
572 if (me && !me->initWithPhysicalMask(inTask, options, capacity, 1, physicalMask))
583 vm_size_t capacity,
586 return (initWithPhysicalMask(kernel_task, options, capacity, alignment, (mach_vm_address_t)0));
592 vm_size_t capacity,
597 if (me && !me->initWithPhysicalMask(kernel_task, options, capacity, alignment, 0)) {
609 * hold capacity bytes. The descriptor's length is initially set to the capacity.
627 * The descriptor's length and capacity are set to the input buffer's size.
653 * The descriptor's length and capacity are set to the input buffer's size.
752 * Get the buffer capacity
764 * the capacity. The length can be adjusted via setLength for a shorter
767 * that the specified length must not exceed the capacity of the buffer.
797 * will not copy past the end of the memory descriptor's current capacity.