Searched refs:capacity (Results 26 - 50 of 371) sorted by relevance

1234567891011>>

/macosx-10.10.1/xnu-2782.1.97/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp100 vm_size_t capacity,
105 return (initWithPhysicalMask(inTask, options, capacity, alignment, physicalMask));
112 mach_vm_size_t capacity,
124 if (!capacity) return false;
127 _capacity = capacity;
163 capacity = round_page(capacity);
220 capacity = round_page(capacity);
223 capacity, highestMas
98 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment, task_t inTask) argument
109 initWithPhysicalMask( task_t inTask, IOOptionBits options, mach_vm_size_t capacity, mach_vm_address_t alignment, mach_vm_address_t physicalMask) argument
323 inTaskWithOptions( task_t inTask, IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
338 inTaskWithPhysicalMask( task_t inTask, IOOptionBits options, mach_vm_size_t capacity, mach_vm_address_t physicalMask) argument
355 initWithOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
364 withOptions( IOOptionBits options, vm_size_t capacity, vm_offset_t alignment) argument
[all...]
H A DIOInterleavedMemoryDescriptor.cpp36 IOByteCount capacity,
48 /* capacity */ capacity,
59 IOByteCount capacity,
68 assert(capacity);
83 _descriptors = IONew(IOMemoryDescriptor *, capacity);
84 _descriptorOffsets = IONew(IOByteCount, capacity);
85 _descriptorLengths = IONew(IOByteCount, capacity);
90 _descriptorCapacity = capacity;
35 withCapacity( IOByteCount capacity, IODirection direction ) argument
58 initWithCapacity( IOByteCount capacity, IODirection direction ) argument
/macosx-10.10.1/xnu-2782.1.97/libkern/c++/
H A DOSArray.cpp78 capacity = inCapacity;
126 OSArray *OSArray::withCapacity(unsigned int capacity) argument
130 if (me && !me->initWithCapacity(capacity)) {
140 unsigned int capacity)
144 if (me && !me->initWithObjects(objects, count, capacity)) {
153 unsigned int capacity)
157 if (me && !me->initWithArray(array, capacity)) {
173 kfree(array, sizeof(const OSMetaClassBase *) * capacity);
174 ACCUMSIZE( -(sizeof(const OSMetaClassBase *) * capacity) );
182 unsigned int OSArray::getCapacity() const { return capacity; }
138 withObjects(const OSObject *objects[], unsigned int count, unsigned int capacity) argument
152 withArray(const OSArray *array, unsigned int capacity) argument
[all...]
H A DOSSet.cpp66 unsigned int capacity = inCount; local
72 capacity = inCapacity;
75 if (!inObjects || !initWithCapacity(capacity))
80 if (members->getCount() < capacity)
105 OSSet *OSSet::withCapacity(unsigned int capacity) argument
109 if (me && !me->initWithCapacity(capacity)) {
119 unsigned int capacity)
123 if (me && !me->initWithObjects(objects, count, capacity)) {
132 unsigned int capacity)
136 if (me && !me->initWithArray(array, capacity)) {
117 withObjects(const OSObject *objects[], unsigned int count, unsigned int capacity) argument
131 withArray(const OSArray *array, unsigned int capacity) argument
144 withSet(const OSSet *set, unsigned int capacity) argument
[all...]
H A DOSOrderedSet.cpp80 capacity = inCapacity;
92 withCapacity(unsigned int capacity, argument
97 if (me && !me->initWithCapacity(capacity, ordering, orderingRef)) {
111 kfree(array, sizeof(_Element) * capacity);
112 ACCUMSIZE( -(sizeof(_Element) * capacity) );
119 unsigned int OSOrderedSet::getCapacity() const { return capacity; }
133 if (newCapacity <= capacity)
134 return capacity;
141 return capacity;
147 oldSize = sizeof(_Element) * capacity;
[all...]
/macosx-10.10.1/IONetworkingFamily-101/
H A DIOMbufQueue.h36 uint32_t capacity; member in struct:IOMbufQueue
47 void IOMbufQueueInit( IOMbufQueue * q, uint32_t capacity = 0 )
52 q->capacity = capacity;
58 if (q->count >= q->capacity)
168 return q->capacity;
172 void IOMbufQueueSetCapacity( IOMbufQueue * q, uint32_t capacity )
174 q->capacity = capacity;
H A DIOBasicOutputQueue.h127 @param capacity The initial capacity of the output queue.
133 UInt32 capacity = 0,
141 @param capacity The initial capacity of the output queue.
146 UInt32 capacity = 0);
153 @param capacity The initial capacity of the output queue.
159 UInt32 capacity,
169 @param capacity Th
[all...]
H A DIOOutputQueue.cpp198 UInt32 capacity,
227 _stats->capacity = capacity;
240 IOMbufQueueInit(&(_primaryQueues[i]), capacity);
241 IOMbufQueueInit(&(_shadowQueues[i]), capacity);
261 UInt32 capacity)
263 return IOBasicOutputQueue::withTarget(target, capacity, 1 /* priorities */);
268 UInt32 capacity,
273 if (queue && !queue->init(target, target->getOutputHandler(), capacity, priorities))
284 UInt32 capacity)
196 init(OSObject * target, IOOutputAction action, UInt32 capacity, UInt32 priorities) argument
260 withTarget(IONetworkController * target, UInt32 capacity) argument
267 withTarget(IONetworkController * target, UInt32 capacity, UInt32 priorities) argument
282 withTarget(OSObject * target, IOOutputAction action, UInt32 capacity) argument
290 withTarget(OSObject * target, IOOutputAction action, UInt32 capacity, UInt32 priorities) argument
661 setCapacity(UInt32 capacity) argument
797 init(OSObject * target, IOOutputAction action, IOWorkLoop * workloop, UInt32 capacity, UInt32 priorities) argument
837 withTarget(IONetworkController * target, IOWorkLoop * workloop, UInt32 capacity) argument
845 withTarget(IONetworkController * target, IOWorkLoop * workloop, UInt32 capacity, UInt32 priorities) argument
862 withTarget(OSObject * target, IOOutputAction action, IOWorkLoop * workloop, UInt32 capacity) argument
871 withTarget(OSObject * target, IOOutputAction action, IOWorkLoop * workloop, UInt32 capacity, UInt32 priorities) argument
[all...]
H A DIOPacketQueue.cpp64 bool IOPacketQueue::initWithCapacity(UInt32 capacity) argument
76 IOMbufQueueInit(_queue, capacity);
89 IOPacketQueue * IOPacketQueue::withCapacity(UInt32 capacity) argument
93 if (queue && !queue->initWithCapacity(capacity))
131 // Change the capacity of the queue.
133 bool IOPacketQueue::setCapacity(UInt32 capacity) argument
135 IOMbufQueueSetCapacity(_queue, capacity);
140 // Get the capacity of the queue.
H A DIOPacketQueue.h72 @abstract Describes the default capacity of the
74 @discussion The capacity is only observed by the enqueue() method.
76 capacity when other methods, such as prepend(), are used to add packets
87 @param capacity The initial capacity of the queue object. Can be
92 static IOPacketQueue * withCapacity(UInt32 capacity =
97 @discussion This method initializes an IOPacketQueue object with the given capacity.
98 @param capacity The initial capacity of the queue. Can be later changed
103 virtual bool initWithCapacity(UInt32 capacity
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/i18n/
H A Dcollationdatawriter.cpp54 RuleBasedCollator::cloneBinary(uint8_t *dest, int32_t capacity, UErrorCode &errorCode) const { argument
57 *tailoring, *settings, indexes, dest, capacity,
78 int32_t indexes[], uint8_t *dest, int32_t capacity,
83 indexes, dest, capacity, errorCode);
88 int32_t indexes[], uint8_t *dest, int32_t capacity,
93 indexes, dest, capacity, errorCode);
100 int32_t indexes[], uint8_t *dest, int32_t capacity,
103 if(capacity < 0 || (capacity > 0 && dest == NULL)) {
184 if(headerSize <= capacity) {
76 writeBase(const CollationData &data, const CollationSettings &settings, const void *rootElements, int32_t rootElementsLength, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument
87 writeTailoring(const CollationTailoring &t, const CollationSettings &settings, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument
97 write(UBool isBase, const UVersionInfo dataVersion, const CollationData &data, const CollationSettings &settings, const void *rootElements, int32_t rootElementsLength, int32_t indexes[], uint8_t *dest, int32_t capacity, UErrorCode &errorCode) argument
[all...]
H A Dnfrlist.h39 NFRuleList(uint32_t capacity = 10)
40 : fStuff(capacity ? (NFRule**)uprv_malloc(capacity * sizeof(NFRule*)) : NULL)
42 , fCapacity(capacity) {}
H A Dbocsu.cpp101 int32_t capacity; local
105 char *buffer=sink.GetAppendBuffer(1, length*2, scratch, (int32_t)sizeof(scratch), &capacity);
107 // We must have capacity>=SLOPE_MAX_BYTES in case u_writeDiff() writes that much,
110 if(capacity<16) {
112 capacity=(int32_t)sizeof(scratch);
115 uint8_t *lastSafe=p+capacity-SLOPE_MAX_BYTES;
/macosx-10.10.1/ICU-531.30/icuSources/common/
H A Duenum.c31 or reallocating it if at least 'capacity' bytes are not available. */
32 static void* _getBuffer(UEnumeration* en, int32_t capacity) { argument
35 if (((_UEnumBuffer*) en->baseContext)->len < capacity) {
36 capacity += PAD;
38 sizeof(int32_t) + capacity);
42 ((_UEnumBuffer*) en->baseContext)->len = capacity;
45 capacity += PAD;
46 en->baseContext = uprv_malloc(sizeof(int32_t) + capacity);
50 ((_UEnumBuffer*) en->baseContext)->len = capacity;
H A Dcmemory.h191 * must be no more than the capacity of the old array,
243 * Provides an internal array with fixed capacity. Can alias another array
258 MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(FALSE) {}
264 * Returns the array capacity (number of T items).
265 * @return array capacity
267 int32_t getCapacity() const { return capacity; }
277 T *getArrayLimit() const { return getAlias()+capacity; }
304 capacity=otherCapacity;
313 * @param newCapacity can be less than or greater than the current capacity;
324 * and capacity o
332 int32_t capacity; member in class:MaybeStackArray
510 int32_t capacity; member in class:MaybeStackHeaderAndArray
[all...]
H A Dbytestream.cpp29 CheckedArrayByteSink::CheckedArrayByteSink(char* outbuf, int32_t capacity) argument
30 : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
H A Dunistr_case.cpp113 int32_t capacity; local
115 capacity = US_STACKBUF_SIZE;
117 capacity = oldLength + 20;
120 if(!cloneArrayIfNeeded(capacity, capacity, FALSE, &bufferToDelete, TRUE)) {
H A Duvectr32.cpp29 capacity(0),
38 capacity(0),
62 capacity = initialCapacity;
203 if (capacity >= minimumCapacity) {
210 if (capacity > (INT32_MAX - 1) / 2) { // integer overflow check
214 int32_t newCap = capacity * 2;
233 capacity = newCap;
243 // Something is very wrong, don't realloc, leave capacity and maxCapacity unchanged
247 if (capacity <= maxCapacity || maxCapacity == 0) {
248 // Current capacity i
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/common/unicode/
H A Duidna.h218 * @param capacity Destination buffer capacity
230 UChar *dest, int32_t capacity,
245 * @param capacity Destination buffer capacity
257 UChar *dest, int32_t capacity,
274 * @param capacity Destination buffer capacity
286 UChar *dest, int32_t capacity,
301 * @param capacity Destinatio
[all...]
/macosx-10.10.1/WebKit-7600.1.25/mac/icu/unicode/
H A Duidna.h202 * @param capacity Destination buffer capacity
214 UChar *dest, int32_t capacity,
229 * @param capacity Destination buffer capacity
241 UChar *dest, int32_t capacity,
258 * @param capacity Destination buffer capacity
270 UChar *dest, int32_t capacity,
285 * @param capacity Destinatio
[all...]
/macosx-10.10.1/xnu-2782.1.97/iokit/IOKit/
H A DIOInterleavedMemoryDescriptor.h58 @param capacity The maximum number of IOMemoryDescriptors that may be subsequently added to this IOInterleavedMemoryDescriptor.
62 static IOInterleavedMemoryDescriptor * withCapacity( IOByteCount capacity,
68 @param capacity The maximum number of IOMemoryDescriptors that may be subsequently added to this IOInterleavedMemoryDescriptor.
72 virtual bool initWithCapacity( IOByteCount capacity,
77 @discussion Clears each IOMemoryDescriptor by completing (if needed) and releasing. The IOInterleavedMemoryDescriptor is then reset and may accept new descriptors up to the capacity specified when it was created.
H A DIORangeAllocator.h56 UInt32 capacity; member in class:IORangeAllocator
75 @discussion This method initializes an IORangeAllocator and optionally sets the free list to contain one fragment, from zero to an endOfRange parameter. The capacity in terms of free fragments and locking options are set for the instance.
78 @param capacity Sets the initial size of the free list in number of noncontiguous fragments. This value is also used for the capacityIncrement.
84 UInt32 capacity,
89 @discussion This method allocates and initializes an IORangeAllocator and optionally sets the free list to contain one fragment, from zero to an endOfRange parameter. The capacity in terms of free fragments and locking options are set for the instance.
92 @param capacity Sets the initial size of the free list in number of non-contiguous fragments. This value is also used for the capacityIncrement.
98 UInt32 capacity = 0,
114 @discussion This method returns the current capacity of the free fragment list.
115 @result Returns the current capacity of free fragment list.
122 @discussion This method sets the number of extra fragments the free list will expand to when full. It defaults to the initial capacity
[all...]
/macosx-10.10.1/ICU-531.30/icuSources/tools/toolutil/
H A Dtoolutil.cpp239 int32_t capacity, maxCapacity, size, idx; member in struct:UToolMemory
260 mem->capacity=initialCapacity;
290 utm_hasCapacity(UToolMemory *mem, int32_t capacity) { argument
291 if(mem->capacity<capacity) {
294 if(mem->maxCapacity<capacity) {
301 if(capacity>=2*mem->capacity) {
302 newCapacity=capacity;
303 } else if(mem->capacity<
[all...]
/macosx-10.10.1/pyobjc-45/pyobjc/pyobjc-framework-Cocoa-2.5.1/Lib/CoreFoundation/
H A D_static.py15 def CFArrayCreateMutable(allocator, capacity, callbacks):
38 def CFDictionaryCreateMutable(allocator, capacity, keyCallbacks, valueCallbacks):
60 def CFSetCreateMutable(allocator, capacity, callbacks):
/macosx-10.10.1/xnu-2782.1.97/libkern/libkern/c++/
H A DOSData.h82 unsigned int capacity; member in class:OSData
113 * @param capacity The initial capacity of the OSData object in bytes.
120 * <code>capacity</code> may be zero.
124 * for which a nonzero initial capacity is a hard limit).
126 static OSData * withCapacity(unsigned int capacity);
147 * for which a nonzero initial capacity is a hard limit).
204 * for which a nonzero initial capacity is a hard limit).
229 * for which a nonzero initial capacity is a hard limit).
243 * @param capacity Th
[all...]

Completed in 1135 milliseconds

1234567891011>>