/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | bsd_stubs.c | 108 * if index is -1, return a free slot if avaliable 109 * else see whether the index is free 114 bdevsw_isfree(int index) argument 117 if (index == -1) { 119 for(index=0; index < nblkdev; index++, devsw++) { 126 /* NB: Not used below unless index is in range */ 127 devsw = &bdevsw[index]; 130 if ((index < 145 bdevsw_add(int index, struct bdevsw * bsw) argument 174 bdevsw_remove(int index, struct bdevsw * bsw) argument 195 cdevsw_isfree(int index) argument 233 cdevsw_add(int index, struct cdevsw * csw) argument 265 cdevsw_remove(int index, struct cdevsw * csw) argument 287 cdevsw_add_with_bdev(int index, struct cdevsw * csw, int bdev) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IORangeAllocator.cpp | 136 // allocate element at index 137 bool IORangeAllocator::allocElement( UInt32 index ) 153 index * sizeof( IORangeAllocatorElement)); 154 bcopy( elements + index, 155 newElements + index + 1, 156 (numElements - index) * sizeof( IORangeAllocatorElement)); 166 bcopy( elements + index, 167 elements + index + 1, 168 (numElements - index) * sizeof( IORangeAllocatorElement)); 175 // destroy element at index 190 UInt32 index; local 246 UInt32 index; local 295 UInt32 index; local 336 UInt32 index; local 367 UInt32 index; local [all...] |
H A D | IOMultiMemoryDescriptor.cpp | 143 for ( unsigned index = 0; index < _descriptorsCount; index++ ) 144 _descriptors[index]->release(); 177 for ( unsigned index = 0; index < withCount; index++ ) 179 descriptors[index]->retain(); 180 _length += descriptors[index]->getLength(); 181 if ( _tag == 0 ) _tag = descriptors[index] 220 unsigned index; local 379 unsigned index; local 415 unsigned index; local [all...] |
H A D | IOInterleavedMemoryDescriptor.cpp | 155 UInt32 index; local 157 for ( index = 0; index < _descriptorCount; index++ ) 160 _descriptors[index]->complete(_direction); 162 _descriptors[index]->release(); 163 _descriptors[index] = 0; 165 _descriptorOffsets[index] = 0; 166 _descriptorLengths[index] = 0; 217 for ( unsigned index 245 unsigned index; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/ |
H A D | sel.h | 50 index :13; member in struct:sel
|
H A D | table_inline.h | 49 return (&gdt[sel.index]); 57 return (&idt[sel.index]); 66 return (&tbl[sel.index]);
|
/macosx-10.5.8/xnu-1228.15.4/EXTERNAL_HEADERS/architecture/i386/ |
H A D | sel.h | 53 index :13; member in struct:sel
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/mach/ |
H A D | memory_object_types.h | 389 ppnum_t phys_addr; /* physical page index number */ 592 #define UPL_PAGE_PRESENT(upl, index) \ 593 ((upl)[(index)].phys_addr != 0) 595 #define UPL_PHYS_PAGE(upl, index) \ 596 ((upl)[(index)].phys_addr) 598 #define UPL_SPECULATIVE_PAGE(upl, index) \ 599 (((upl)[(index)].phys_addr != 0) ? ((upl)[(index)].speculative) : FALSE) 601 #define UPL_DIRTY_PAGE(upl, index) \ 602 (((upl)[(index)] [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/BTree/ |
H A D | BTreeNodeOps.c | 63 <CS2> 7/21/97 msd Make GetRecordByIndex check its record index input; it now 126 // SearchNode - Return index for record that matches key. 132 // GetRecordOffset - Return the offset for record "index". 133 // GetRecordAddress - Return address of record "index". 134 // GetOffsetAddress - Return address of offset for record "index". 147 u_int16_t index ); 151 u_int16_t index ); 155 u_int16_t index, 160 u_int16_t index ); 165 #define GetRecordOffset(btreePtr,node,index) (*(shor 490 InsertRecord(BTreeControlBlockPtr btreePtr, NodeDescPtr node, u_int16_t index, RecordPtr recPtr, u_int16_t recSize ) argument 560 InsertKeyRecord(BTreeControlBlockPtr btreePtr, NodeDescPtr node, u_int16_t index, KeyPtr keyPtr, u_int16_t keyLength, RecordPtr recPtr, u_int16_t recSize ) argument 725 int32_t index; local 776 GetRecordByIndex(BTreeControlBlockPtr btreePtr, NodeDescPtr node, u_int16_t index, KeyPtr *keyPtr, u_int8_t * *dataPtr, u_int16_t *dataSize ) argument 1015 InsertOffset(BTreeControlBlockPtr btreePtr, NodeDescPtr node, u_int16_t index, u_int16_t delta ) argument [all...] |
H A D | BTree.c | 80 <HFS7> 2/19/97 djb Enable variable sized index keys for HFS+ volumes. Added node 83 variable sized index keys). 468 u_int16_t index; local 513 foundRecord = SearchNode (btreePtr, node.buffer, &searchIterator->key, &index); 515 //�� if !foundRecord, we could still skip tree search if ( 0 < index < numRecords ) 538 err = SearchTree ( btreePtr, &searchIterator->key, treePathTable, &nodeNum, &node, &index); 557 GetRecordByIndex (btreePtr, node.buffer, index, &keyPtr, &recordPtr, &len); 581 resultIterator->hint.index = index; 614 resultIterator->hint.index 665 u_int16_t index; local 981 u_int16_t index; local 1272 u_int16_t index; local 1435 u_int16_t index; local 1583 u_int16_t index; local 1694 u_int16_t index; local [all...] |
H A D | BTreeMiscOps.c | 326 u_int16_t leftIndex, index, rightIndex; local 332 // assume index points to u_int16_t 371 foundIt = SearchNode (btreePtr, middle->buffer, &iterator->key, &index); 379 if (index == 0) 414 index = leftIndex; 427 PanicIf (index != 0, "\pFindIteratorPosition: index != 0"); //�� just checking... 435 index = leftIndex; 440 else if (index >= ((NodeDescPtr) middle->buffer)->numRecords) 468 index 586 u_int16_t index; local [all...] |
H A D | BTreeTreeOps.c | 66 sized index keys. 68 variable sized index keys. 135 u_int16_t index, 150 u_int16_t index, 158 u_int16_t index, 190 Result: noErr - key found, index is record index 191 fsBTRecordNotFoundErr - key not found, index is insert index 207 u_int16_t index; local 351 InsertTree( BTreeControlBlockPtr btreePtr, TreePathTable treePathTable, KeyPtr keyPtr, u_int8_t * recPtr, u_int16_t recSize, BlockDescriptor *targetNode, u_int16_t index, u_int16_t level, Boolean replacingKey, u_int32_t *insertNode ) argument 382 InsertLevel(BTreeControlBlockPtr btreePtr, TreePathTable treePathTable, InsertKey *primaryKey, InsertKey *secondaryKey, BlockDescriptor *targetNode, u_int16_t index, u_int16_t level, u_int32_t *insertNode ) argument 557 InsertNode(BTreeControlBlockPtr btreePtr, InsertKey *key, BlockDescriptor *rightNode, u_int32_t node, u_int16_t index, u_int32_t *newNode, u_int16_t *newIndex, BlockDescriptor *leftNode, Boolean *updateParent, Boolean *insertParent, Boolean *rootSplit ) argument 697 DeleteTree(BTreeControlBlockPtr btreePtr, TreePathTable treePathTable, BlockDescriptor *targetNode, u_int16_t index, u_int16_t level ) argument 974 u_int16_t index, moveIndex; local 1117 SplitLeft(BTreeControlBlockPtr btreePtr, BlockDescriptor *leftNode, BlockDescriptor *rightNode, u_int32_t rightNodeNum, u_int16_t index, KeyPtr keyPtr, u_int8_t * recPtr, u_int16_t recSize, u_int16_t *insertIndex, u_int32_t *insertNodeNum, u_int16_t *recsRotated ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/ |
H A D | tr.c | 175 unsigned long index, 184 unsigned long index, 196 unsigned long index, 208 if (index == -1) { 209 index = trace_index - (TRACE_WINDOW-4); 211 } else if (index == 0) { 212 index = trace_index - (TRACE_WINDOW-4); 216 if (index + range > TRACE_MAX) 217 range = TRACE_MAX - index; 219 last_trace = &trace_buffer[index 195 show_tr( unsigned long index, unsigned long range, unsigned long show_extra) argument 328 parse_tr( unsigned long index, unsigned long range) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/ |
H A D | ipc_table.c | 103 unsigned int index; local 110 for (index = 0, size = 1; 111 (index < num) && (size < PAGE_SIZE); 114 its[index].its_size = size / elemsize; 115 index++; 121 for (incrsize = PAGE_SIZE; index < num;) { 125 (period < 15) && (index < num); 128 its[index].its_size = size / elemsize; 129 index++;
|
H A D | ipc_space.c | 143 mach_port_index_t index; local 164 for (index = 0; index < new_size; index++) { 165 ipc_entry_t entry = &table[index]; 168 entry->ie_next = index+1; 241 mach_port_index_t index; local 263 for (index = 0; index < size; index 320 mach_port_index_t index; local [all...] |
H A D | ipc_entry.c | 105 * index as "name". 115 mach_port_index_t index; local 127 index = MACH_PORT_INDEX(name); 129 (MACH_PORT_INDEX(lower) == index)) || 130 ((upper != 0) && (MACH_PORT_INDEX(upper) == index))); 147 mach_port_index_t index; local 153 index = MACH_PORT_INDEX(name); 160 entry = &space->is_table[index]; 166 if (index < space->is_table_size) { 167 entry = &space->is_table[index]; 319 mach_port_index_t index = MACH_PORT_INDEX(name); local 515 mach_port_index_t index; local 802 mach_port_index_t index; local [all...] |
H A D | ipc_hash.c | 108 mach_port_index_t index, 155 mach_port_index_t index; local 157 index = MACH_PORT_INDEX(name); 158 if ((index < space->is_table_size) && 159 (entry == &space->is_table[index])) 160 ipc_hash_local_insert(space, obj, index, entry); 183 mach_port_index_t index; local 185 index = MACH_PORT_INDEX(name); 186 if ((index < space->is_table_size) && 187 (entry == &space->is_table[index])) 418 mach_port_index_t hindex, index; local 460 ipc_hash_local_insert( ipc_space_t space, ipc_object_t obj, mach_port_index_t index, __assert_only ipc_entry_t entry) argument 504 ipc_hash_local_delete( ipc_space_t space, ipc_object_t obj, mach_port_index_t index, __assert_only ipc_entry_t entry) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/c++/ |
H A D | OSArray.cpp | 231 bool OSArray::setObject(unsigned int index, const OSMetaClassBase *anObject) argument 236 if ((index > count) || !anObject) 244 if (index != count) { 245 for (i = count; i > index; i--) 248 array[index] = anObject; 279 replaceObject(unsigned int index, const OSMetaClassBase *anObject) argument 283 if ((index >= count) || !anObject) 287 oldObject = array[index]; 288 array[index] = anObject; 294 void OSArray::removeObject(unsigned int index) argument 383 unsigned int index = (*iteratorP)++; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/console/ |
H A D | video_console.c | 464 unsigned long index = (yy * gc_buffer_columns) + xx; local 465 unsigned char attribute = gc_buffer_attributes[index]; 466 unsigned char character = gc_buffer_characters[index]; 467 unsigned char colorcode = gc_buffer_colorcodes[index]; 506 unsigned long index = (yy * gc_buffer_columns) + xx; local 508 gc_buffer_attributes[index] = attrs; 509 gc_buffer_characters[index] = ch; 510 gc_buffer_colorcodes[index] = gc_color_code; 995 unsigned long index, jump; local 1001 index 1104 unsigned long index, jump; local 1209 unsigned long index = (yy * gc_buffer_columns) + xx; local 1889 unsigned int data = 0, index = 0, alpha, back; local 1964 unsigned int data = 0, index = 0, alpha, back; local 2082 unsigned int index; local 2465 long index; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | vmachmon.h | 328 * a guest with an index of 1 to use address space 1, 2 to use 2, etc. However, 454 extern void vmm_execute_vm(thread_t act, vmm_thread_index_t index); 455 extern kern_return_t vmm_tear_down_context(thread_t act, vmm_thread_index_t index); 456 extern kern_return_t vmm_get_float_state(thread_t act, vmm_thread_index_t index); 457 extern kern_return_t vmm_get_vector_state(thread_t act, vmm_thread_index_t index); 458 extern kern_return_t vmm_set_timer(thread_t act, vmm_thread_index_t index, unsigned int timerhi, unsigned int timerlo); 459 extern kern_return_t vmm_get_timer(thread_t act, vmm_thread_index_t index); 469 extern addr64_t vmm_get_page_mapping(thread_t act, vmm_thread_index_t index, 471 extern kern_return_t vmm_unmap_page(thread_t act, vmm_thread_index_t index, addr64_t va); 472 extern void vmm_unmap_all_pages(thread_t act, vmm_thread_index_t index); [all...] |
H A D | vmachmon.c | 65 ** This function verifies and return a vmm context entry index 69 ** index - index into vmm control table (this is a "one based" value) 77 vmm_thread_index_t index) 82 index = index & vmmTInum; /* Clean up the index */ 85 if ((index - 1) >= kVmmMaxContexts) return NULL; /* Index not in range */ 88 CEntry = &CTable->vmmc[index - 1]; /* Point to the entry */ 103 ** index 75 vmm_get_entry( thread_t act, vmm_thread_index_t index) argument 110 vmm_get_adsp(thread_t act, vmm_thread_index_t index) argument 224 vmm_activate_gsa( thread_t act, vmm_thread_index_t index) argument 277 vmm_deactivate_gsa( thread_t act, vmm_thread_index_t index) argument 306 vmm_flush_context( thread_t act, vmm_thread_index_t index) argument 450 vmm_get_XA( thread_t act, vmm_thread_index_t index) argument 684 vmm_tear_down_context( thread_t act, vmm_thread_index_t index) argument 808 vmm_activate_XA( thread_t act, vmm_thread_index_t index, unsigned int xaflags) argument 843 vmm_deactivate_XA( thread_t act, vmm_thread_index_t index, unsigned int xaflags) argument 971 vmm_map_page( thread_t act, vmm_adsp_id_t index, addr64_t cva, addr64_t ava, vm_prot_t prot) argument 1108 vmm_map_execute( thread_t act, vmm_thread_index_t index, addr64_t cva, addr64_t ava, vm_prot_t prot) argument 1163 vmm_map_list( thread_t act, vmm_adsp_id_t index, unsigned int cnt, unsigned int flavor) argument 1234 vmm_get_page_mapping( thread_t act, vmm_adsp_id_t index, addr64_t gva) argument 1285 vmm_unmap_page( thread_t act, vmm_adsp_id_t index, addr64_t va) argument 1324 vmm_unmap_list( thread_t act, vmm_adsp_id_t index, unsigned int cnt, unsigned int flavor) argument 1402 vmm_unmap_all_pages( thread_t act, vmm_adsp_id_t index) argument 1444 vmm_get_page_dirty_flag( thread_t act, vmm_adsp_id_t index, addr64_t va, unsigned int reset) argument 1499 vmm_protect_page( thread_t act, vmm_adsp_id_t index, addr64_t va, vm_prot_t prot) argument 1558 vmm_protect_execute( thread_t act, vmm_thread_index_t index, addr64_t va, vm_prot_t prot) argument 1607 vmm_get_float_state( thread_t act, vmm_thread_index_t index) argument 1652 vmm_get_vector_state( thread_t act, vmm_thread_index_t index) argument 1724 vmm_set_timer( thread_t act, vmm_thread_index_t index, unsigned int timerhi, unsigned int timerlo) argument 1762 vmm_get_timer( thread_t act, vmm_thread_index_t index) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ |
H A D | kdp_serial.c | 40 unsigned int index; local 42 for (index = 0; index < len; index++) {
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | bridge.h | 137 * The same values are used as index in the statistics arrays, 185 int index ; local 195 for (index = bdg_ports, p = bdg_addresses ; index ; index--, p++ ) 201 index= HASH_FN( eh->ether_dhost ); 202 dst = bdg_table[index].name; 203 if ( dst && BDG_MATCH( bdg_table[index].etheraddr, eh->ether_dhost) )
|
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/c++/ |
H A D | OSArray.h | 42 An instance of an OSArray is a mutable collection which maintains a list of references to OSMetaClassBase derived objects. Objects are referenced by index, where the index is an integer with a value of 0 to N-1 where N is the number of objects contained within the array. 183 @abstract A member function which inserts an object into the array at a particular index. 184 @param index The index into the array to insert the object. 188 virtual bool setObject(unsigned int index, const OSMetaClassBase *anObject); 200 @abstract A member function which will replace an object in an array at a given index. The original object will be released and the new object will be retained. 201 @param index The index into the array at which the new object will be placed. 204 virtual void replaceObject(unsigned int index, cons [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/ |
H A D | prngpriv.h | 77 UINT index; /* current byte to output */ member in struct:__anon52 119 #define GENCHECK(p) if(p->outstate.index>20) {return PRNG_ERR_OUT_OF_BOUNDS;} /* index is unsigned */
|