/macosx-10.5.8/xnu-1228.15.4/bsd/libkern/ |
H A D | strtol.c | 107 strtol(nptr, endptr, base) 110 register int base; 120 * If base is 0, allow 0x for hex and 0 for octal, else 121 * assume decimal; if base is already 16, allow 0x. 131 if ((base == 0 || base == 16) && 135 base = 16; 136 } else if ((base == 0 || base == 2) && 140 base [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/i386/ |
H A D | OSByteOrder.h | 44 const volatile void * base, 50 result = *(volatile uint16_t *)((uintptr_t)base + byteOffset); 57 const volatile void * base, 63 result = *(volatile uint32_t *)((uintptr_t)base + byteOffset); 70 const volatile void * base, 76 result = *(volatile uint64_t *)((uintptr_t)base + byteOffset); 85 volatile void * base, 90 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); 96 volatile void * base, 101 *(volatile uint32_t *)((uintptr_t)base 43 OSReadSwapInt16( const volatile void * base, uintptr_t byteOffset ) argument 56 OSReadSwapInt32( const volatile void * base, uintptr_t byteOffset ) argument 69 OSReadSwapInt64( const volatile void * base, uintptr_t byteOffset ) argument 84 OSWriteSwapInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) argument 95 OSWriteSwapInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) argument 106 OSWriteSwapInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/machine/ |
H A D | OSByteOrder.h | 78 const volatile void * base, 82 uint16_t data = *(volatile uint16_t *)((uintptr_t)base + byteOffset); 89 const volatile void * base, 93 uint32_t data = *(volatile uint32_t *)((uintptr_t)base + byteOffset); 100 const volatile void * base, 104 uint64_t data = *(volatile uint64_t *)((uintptr_t)base + byteOffset); 113 volatile void * base, 118 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = _OSSwapInt16(data); 124 volatile void * base, 129 *(volatile uint32_t *)((uintptr_t)base 77 OSReadSwapInt16( const volatile void * base, uintptr_t byteOffset ) argument 88 OSReadSwapInt32( const volatile void * base, uintptr_t byteOffset ) argument 99 OSReadSwapInt64( const volatile void * base, uintptr_t byteOffset ) argument 112 OSWriteSwapInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) argument 123 OSWriteSwapInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) argument 134 OSWriteSwapInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/ |
H A D | OSByteOrder.h | 92 const volatile void * base, 96 return *(volatile uint16_t *)((uintptr_t)base + byteOffset); 102 const volatile void * base, 106 return *(volatile uint32_t *)((uintptr_t)base + byteOffset); 112 const volatile void * base, 116 return *(volatile uint64_t *)((uintptr_t)base + byteOffset); 124 volatile void * base, 129 *(volatile uint16_t *)((uintptr_t)base + byteOffset) = data; 135 volatile void * base, 140 *(volatile uint32_t *)((uintptr_t)base 91 _OSReadInt16( const volatile void * base, uintptr_t byteOffset ) argument 101 _OSReadInt32( const volatile void * base, uintptr_t byteOffset ) argument 111 _OSReadInt64( const volatile void * base, uintptr_t byteOffset ) argument 123 _OSWriteInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) argument 134 _OSWriteInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) argument 145 _OSWriteInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IOStringFuncs.c | 116 strtol(const char *nptr, char **endptr, int base) argument 126 * If base is 0, allow 0x for hex and 0 for octal, else 127 * assume decimal; if base is already 16, allow 0x. 137 if ((base == 0 || base == 16) && 141 base = 16; 142 } else if ((base == 0 || base == 2) && 146 base = 2; 148 if (base 199 strtoul(const char *nptr, char **endptr, int base) argument 267 strtoq(const char *nptr, char **endptr, int base) argument 358 strtouq(const char *nptr, char **endptr, register int base) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/ppc/ |
H A D | OSByteOrder.h | 49 const volatile void * base, 54 volatile uint16_t *addr = (volatile uint16_t *)((uintptr_t)base + byteOffset); 58 : "r" (base), "bO" (byteOffset), "m" (*addr)); 65 const volatile void * base, 70 volatile uint32_t *addr = (volatile uint32_t *)((uintptr_t)base + byteOffset); 74 : "r" (base), "bO" (byteOffset), "m" (*addr)); 81 const volatile void * base, 85 volatile uint64_t *addr = (volatile uint64_t *)((uintptr_t)base + byteOffset); 94 : "r" (base), "bO" (byteOffset), "b" (byteOffset + 4), "m" (*addr)); 103 volatile void * base, 48 OSReadSwapInt16( const volatile void * base, uintptr_t byteOffset ) argument 64 OSReadSwapInt32( const volatile void * base, uintptr_t byteOffset ) argument 80 OSReadSwapInt64( const volatile void * base, uintptr_t byteOffset ) argument 102 OSWriteSwapInt16( volatile void * base, uintptr_t byteOffset, uint16_t data ) argument 117 OSWriteSwapInt32( volatile void * base, uintptr_t byteOffset, uint32_t data ) argument 132 OSWriteSwapInt64( volatile void * base, uintptr_t byteOffset, uint64_t data ) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libsa/ |
H A D | bsearch.c | 76 * the base up one item past p: e.g., when lim is 5 we change base 91 register const char *base = base0; local 97 p = base + (lim >> 1) * size; 102 base = (const char *)p + size;
|
H A D | sort.c | 108 child = base + child_i * size; \ 113 par = base + par_i * size; \ 139 child = base + child_i * size; \ 144 par = base + par_i * size; \ 150 child = base + child_i * size; \ 151 par = base + par_i * size; \ 174 char *base, *k, *p, *t; local 193 base = (char *)vbase - size; 204 COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2); 205 COPY(base [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ |
H A D | memdev.h | 11 void mdevinit(vm_offset_t base, unsigned int size);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/ |
H A D | kern_machdep.c | 240 off_t base; local 243 base = trunc_page_64(start); 246 while (base < end) { 247 if(kvtophys64((vm_map_offset_t)base) == (vm_map_offset_t)0) 249 base += page_size;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/ |
H A D | xpr.c | 180 struct xprbuf *base, 199 static struct xprbuf *base; variable in typeref:struct:xprbuf 212 base = _base; 215 if (base == 0) { 216 base = xprbase; 223 if (base == xprbase) { 228 last = base + nbufs; 234 if (--x < base) 240 db_printf("<%d:%x:%x> ", x - base, x->cpuinfo, x->timestamp); 245 if (base [all...] |
H A D | sched_average.c | 78 #define base(n) ((n) << SCHED_TICK_SHIFT) macro 79 #define frac(n) (((base(n) - 1) * LOAD_SCALE) / base(n)) 87 #undef base macro
|
H A D | mk_sp.c | 144 * Set scheduling policy and parameters, both base and limit, for 153 policy_base_t base, 171 policy_rr_base_t rr_base = (policy_rr_base_t) base; 192 policy_fifo_base_t fifo_base = (policy_fifo_base_t) base; 213 policy_timeshare_base_t ts_base = (policy_timeshare_base_t) base; 254 * Set scheduling policy and parameters, both base and limit, for 262 policy_base_t base, 288 * Set scheduling limits to base priority. 302 rr_base = (policy_rr_base_t) base; 319 fifo_base = (policy_fifo_base_t) base; 149 thread_set_policy( thread_t thread, processor_set_t pset, policy_t policy, policy_base_t base, mach_msg_type_number_t base_count, policy_limit_t limit, mach_msg_type_number_t limit_count) argument 259 thread_policy( thread_t thread, policy_t policy, policy_base_t base, mach_msg_type_number_t count, boolean_t set_limit) argument [all...] |
H A D | printf.c | 115 * printf("reg = %b", regval, "<base><arg>*") 117 * where <base> is the output base expressed as a control character: 195 int base, 204 *p-- = digs[u % base]; 205 u /= base; 236 int base; local 344 base = *p++; 345 nprinted += printnum(u, base, putc, arg); 374 base, put 193 printnum( unsigned long long int u, int base, void (*putc)(int, void *), void *arg) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/libkern/stdio/ |
H A D | scanf.c | 144 int base; /* base argument to conversion function */ local 157 base = 0; /* XXX just to keep gcc happy */ 218 base = 10; 223 base = 0; 229 base = 8; 235 base = 10; 243 base = 16; 265 base = 16; 445 * base [all...] |
/macosx-10.5.8/xnu-1228.15.4/pexpert/pexpert/ppc/ |
H A D | boot.h | 64 unsigned long base; /* physical base of DRAM bank */ member in struct:DRAMBank 80 DRAMBank PhysicalDRAM[kMaxDRAMBanks]; /* base and range pairs for the 26 DRAM banks */
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | i386_vm_init.c | 218 ppnum_t base, top; local 224 base = (ppnum_t) (mptr->PhysicalStart >> I386_PGSHIFT); 261 kprintf("EFI region: type = %u/%d, base = 0x%x, top = 0x%x\n", mptr->Type, pmap_type, base, top); 264 if (base >= maxpg) 291 if (base >= I386_LOWMEM_RESERVED) 292 pmptr->base = base; 294 pmptr->base = I386_LOWMEM_RESERVED; 301 else if ( (base < fa [all...] |
H A D | hibernate_i386.c | 54 ppnum_t base, num; local 75 base = (ppnum_t) (mptr->PhysicalStart >> I386_PGSHIFT); 92 if (!num_banks || (base != (1 + dram_ranges[num_banks - 1].last_page))) 97 dram_ranges[num_banks - 1].first_page = base; 99 dram_ranges[num_banks - 1].last_page = base + num - 1;
|
H A D | rtclock.c | 188 * Intialize the nanotime info from the base time. 191 _rtc_nanotime_init(rtc_nanotime_t *rntp, uint64_t base) argument 195 _rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); 199 rtc_nanotime_init(uint64_t base) argument 203 _rtc_nanotime_init(rntp, base); 250 rtc_clock_napped(uint64_t base, uint64_t tsc_base) argument 260 newnsecs = base + _tsc_to_nanoseconds(tsc - tsc_base); 263 * Only update the base values if time using the new base values 264 * is later than the time using the old base value 296 rtc_sleep_wakeup( uint64_t base) argument [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | mem.h | 48 void hash_table_init(vm_offset_t base, vm_offset_t size);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/ |
H A D | mem.c | 233 off_t base; local 236 base = trunc_page(start); 239 while (base < end) { 240 if(kvtophys((vm_offset_t)base) == 0ULL) 242 base += page_size;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/ |
H A D | ufsmount.h | 86 caddr_t base; /* base of file system in memory */ member in struct:mfs_args
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/ |
H A D | ipc_pset.c | 306 struct ipc_kmsg *base) 310 if (base) { 311 struct ipc_kmsg *kmsg = base; 314 while (kmsg && kmsg->ikm_next != base 305 ipc_list_count( struct ipc_kmsg *base) argument
|
/macosx-10.5.8/xnu-1228.15.4/pexpert/ppc/ |
H A D | pe_clock_speed_asm.s | 49 // data points to the base address of the via and two longs 55 // and the time base. Return the number of ticks for both so the 70 mftb r10 ; save starting value of the time base 85 mftb r5 ; save the raw time base value 113 sub r5, r5, r10 ; r5 is the number of time base ticks 114 stw r5, 8(r3) ; save time base ticks
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | mcache.c | 862 void *buf, *base, **pbuf; local 869 * offset from the 64-bit aligned base address only if the 884 /* Get the 64-bit aligned base address for this object */ 885 base = (void *)P2ROUNDUP((intptr_t)buf + sizeof (u_int64_t), 889 * Wind back a pointer size from the aligned base and 892 pbuf = (void **)((intptr_t)base - sizeof (void *)); 897 * the buffer starting from the 64-bit aligned base to 903 VERIFY(((intptr_t)base + rsize) <= 905 mcache_set_pattern(MCACHE_FREE_PATTERN, base, rsize); 913 VERIFY(((intptr_t)base 939 void *base; local 987 void *base, **pbuf; local 1455 mcache_audit_free_verify(mcache_audit_t *mca, void *base, size_t offset, size_t size) argument 1479 mcache_audit_free_verify_set(mcache_audit_t *mca, void *base, size_t offset, size_t size) argument [all...] |