Lines Matching refs:array
72 array = (_Element *) kalloc(size);
73 if (!array)
82 bzero(array, size);
107 if (array) {
108 kfree(array, sizeof(_Element) * capacity);
144 bcopy(array, newArray, oldSize);
146 kfree(array, oldSize);
147 array = newArray;
161 array[i].obj->taggedRelease(OSTypeID(OSCollection));
185 array[i] = array[i-1];
187 array[index].obj = anObject;
188 // array[index].pri = pri;
216 (i < count) && (ORDER(array[i].obj, anObject) >= 0);
230 array[i-1] = array[i];
231 else if (array[i].obj == anObject) {
234 array[i].obj->taggedRelease(OSTypeID(OSCollection));
252 (i < count) && (array[i].obj != anObject);
265 // *pri = array[index].pri;
267 return( const_cast<OSObject *>((const OSObject *) array[index].obj) );
273 return( const_cast<OSObject *>((const OSObject *) array[0].obj) );
281 return( const_cast<OSObject *>((const OSObject *) array[count-1].obj) );
307 if ( !array[i].obj->isEqualTo(anOrderedSet->getObject(i)) )
345 *ret = const_cast<OSObject *>((const OSObject *) array[index].obj);
360 OSCollection *coll = OSDynamicCast(OSCollection, array[i].obj);
399 OSObject *obj = EXT_CAST(array[i].obj);