/darwin-on-arm/xnu/bsd/sys/ |
H A D | quota.h | 217 #define dqhash1(id, shift, mask) \ 218 ((((id) * 2654435761U) >> (shift)) & (mask)) 229 * Compute the hash shift value. 237 int shift; local 239 for (shift = 32; size > 1; size >>= 1, --shift) 241 return (shift); 262 int qf_shift; /* primary hash shift */
|
/darwin-on-arm/xnu/libkern/gen/ |
H A D | OSAtomicOperations.c | 105 int shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment); local 110 mask <<= shift; local 113 oldValue = (oldValue & ~mask) | (oldValue8 << shift); 114 newValue = (oldValue & ~mask) | (newValue8 << shift); 223 UInt32 shift = (UInt32) *(((UInt8 *) &shiftValues) + alignment); local 228 mask <<= shift; local 231 oldValue = (oldValue & ~mask) | (oldValue16 << shift); 232 newValue = (oldValue & ~mask) | (newValue16 << shift);
|
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | rtclock.c | 157 * with this ratio expressed as a 32-bit scale and shift 161 * The tuple {tsc_base, ns_base, scale, shift} is exported in the commpage 170 commpage_set_nanotime(rntp->tsc_base, rntp->ns_base, rntp->scale, rntp->shift); 183 _pal_rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); 246 _pal_rtc_nanotime_store(tsc_base, base, rntp->scale, rntp->shift, rntp); 355 uint32_t shift = 0; local 360 shift++; 364 if ( shift != 0 ) 365 printf("Slow TSC, rtc_nanotime.shift == %d\n", shift); [all...] |
H A D | pal_native.h | 75 uint32_t shift; /* shift is nonzero only on "slow" machines, */ member in struct:pal_rtc_nanotime
|
H A D | pal_routines.h | 177 uint32_t shift,
|
H A D | pmCPU.h | 91 uint32_t shift; /* tsc -> nanosec shift/div */ member in struct:pm_rtc_nanotime
|
H A D | pmCPU.c | 805 rtc_nanotime->shift = pal_rtc_nanotime_info.shift;
|
H A D | genassym.c | 566 offsetof(pal_rtc_nanotime_t *, shift));
|
/darwin-on-arm/xnu/osfmk/i386/commpage/ |
H A D | commpage.h | 155 extern void commpage_set_nanotime(uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t shift);
|
H A D | commpage.c | 497 uint32_t shift ) 511 if ((shift != 0) && ((_cpu_capabilities & kSlow)==0) ) 530 p32->nt_shift = shift; 531 p64->nt_shift = shift;
|
/darwin-on-arm/xnu/osfmk/arm/armv/ |
H A D | cpufunc-v7.s | 149 lsl r2, ip, r2 @ and shift into position 191 lsl r2, ip, r2 @ and shift into position 211 lsl r2, ip, r2 @ and shift into position 231 lsl r2, ip, r2 @ and shift into position 252 lsl r2, ip, r2 @ and shift into position 295 lsl r3, r3, r1 @ shift into position 301 lsl r2, r2, r0 @ shift sets by log2(linesize) 346 lsl r2, r2, ip @ shift to set position 353 lsl ip, ip, r2 @ shift by that into way position 409 lsl r2, r2, ip @ shift t [all...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IOLib.cpp | 855 register int shift; local 858 for (shift = 1; shift < intsize; shift++) { 860 return (IOAlignment)(intsize - shift);
|
/darwin-on-arm/xnu/osfmk/console/ |
H A D | panic_dialog.c | 820 int shift = 4; local 824 runlen |= ((dataPtr[i++] & 0x7F) << shift); 825 shift+=7;
|
/darwin-on-arm/xnu/osfmk/console/panic_ui/ |
H A D | genimage.c | 1054 int shift = 4; local 1059 runlen |= ((dataPtr[i++] & 0x7F) << shift); 1060 shift+=7;
|
/darwin-on-arm/xnu/osfmk/default_pager/ |
H A D | dp_backing_store.c | 107 * 0 means no shift to pages, so == 1 page/cluster. 1 would mean 245 static inline void ps_vnode_trim_more(struct ps_vnode_trim_data *data, struct vs_map *map, unsigned int shift, dp_size_t length); 495 * Set up default page shift, but only if not already 531 * Keep cluster size in bit shift because it's quicker 1162 ("device=0x%x,offset=0x%x,count=0x%x,record_size=0x%x,shift=%d,total_size=0x%x\n", 1411 unsigned int shift, 1434 ASSERT(ps->ps_clshift >= shift); 1526 (ps->ps_clshift >= shift)) { 1601 * Must pass cluster shift to find the most appropriate segment. 4332 ("device=0x%x,offset=0x%x,count=0x%x,record_size=0x%x,shift 1410 ps_select_segment( unsigned int shift, int *psindex) argument 4442 ps_vnode_trim_more(struct ps_vnode_trim_data *data, struct vs_map *map, unsigned int shift, dp_size_t length) argument [all...] |
/darwin-on-arm/xnu/bsd/dev/i386/ |
H A D | fasttrap_isa.c | 222 int shift = function_entry ? 1 : 0; local 248 stack = regs64->isf.rsp + sizeof(uint64_t) * (argno - 6 + shift); 255 value = dtrace_fuword32((user_addr_t)(unsigned long)&stack[argno + shift]);
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_subr.c | 3426 int shift; local 3429 * Work out how far we have to shift the block count down to make it fit. 3430 * Note that it's possible to have to shift so far that the resulting 3437 for (shift = 0; shift < 32; shift++) { 3438 if ((sp->f_blocks >> shift) <= INT_MAX) 3440 if ((((long long)sp->f_bsize) << (shift + 1)) > INT_MAX) 3444 sfs.f_blocks = (user32_long_t)__SHIFT_OR_CLIP(sp->f_blocks, shift); 3445 sfs.f_bfree = (user32_long_t)__SHIFT_OR_CLIP(sp->f_bfree, shift); [all...] |
H A D | vfs_syscalls.c | 9346 int shift; local 9349 * Work out how far we have to shift the block count down to make it fit. 9350 * Note that it's possible to have to shift so far that the resulting 9357 for (shift = 0; shift < 32; shift++) { 9358 if ((sfsp->f_blocks >> shift) <= INT_MAX) 9360 if ((sfsp->f_bsize << (shift + 1)) > INT_MAX) 9364 sfs.f_blocks = (user32_long_t)__SHIFT_OR_CLIP(sfsp->f_blocks, shift); 9365 sfs.f_bfree = (user32_long_t)__SHIFT_OR_CLIP(sfsp->f_bfree, shift); [all...] |
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | sched_prim.c | 625 uint32_t shift; local 655 for (shift = 0; abstime > BASEPRI_DEFAULT; ++shift) 657 sched_fixed_shift = shift;
|
/darwin-on-arm/xnu/bsd/net/pktsched/ |
H A D | pktsched_qfq.c | 1586 qfq_round_down(u_int64_t ts, u_int32_t shift) argument 1588 return (ts & ~((1ULL << shift) - 1));
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace.c | 1210 * Shift the 128-bit value in a by b. If b is positive, shift left. 1211 * If b is negative, shift right. 6081 int shift = (sizeof (uintptr_t) * NBBY) - 4, i = 0; 6119 while (shift >= 0) { 6120 mask = (uintptr_t)0xf << shift; 6122 if (val >= ((uintptr_t)1 << shift)) 6123 c[i++] = "0123456789abcdef"[(val & mask) >> shift]; 6124 shift -= 4;
|