Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 48) sorted by relevance

12

/xnu-11215/bsd/netinet/
H A Din_stat.c64 uint64_t shift = in in_stat_set_activity_bitmap() local
71 (shift << IN_STAT_ACTIVITY_TIME_SEC_SHIFT); in in_stat_set_activity_bitmap()
72 if (shift > IN_STAT_ACTIVITY_BITMAP_FIELD_SIZE) { in in_stat_set_activity_bitmap()
75 shift -= IN_STAT_ACTIVITY_BITMAP_FIELD_SIZE; in in_stat_set_activity_bitmap()
76 if (shift == IN_STAT_ACTIVITY_BITMAP_FIELD_SIZE) { in in_stat_set_activity_bitmap()
79 activity->bitmap[0] >>= shift; in in_stat_set_activity_bitmap()
89 tmp = (((uint64_t)1) << (shift - 1)); in in_stat_set_activity_bitmap()
91 activity->bitmap[0] >>= shift; in in_stat_set_activity_bitmap()
96 shift)); in in_stat_set_activity_bitmap()
98 activity->bitmap[1] >>= shift; in in_stat_set_activity_bitmap()
/xnu-11215/libsyscall/wrappers/
H A Dkern_debug.c73 int shift = 0; in debug_syscall_reject_config() local
77 for (int i = 0; i < len; i++, shift += SYSCALL_REJECTION_SELECTOR_BITS) { in debug_syscall_reject_config()
78 int const second_shift = shift - 64; in debug_syscall_reject_config()
80 if (shift < 8 * sizeof(packed_selector_t)) { in debug_syscall_reject_config()
81 packed_selectors[0] |= ((uint64_t)(selectors[i]) & SYSCALL_REJECTION_SELECTOR_MASK) << shift; in debug_syscall_reject_config()
/xnu-11215/osfmk/i386/
H A Drtclock.c137 commpage_set_nanotime(rntp->tsc_base, rntp->ns_base, rntp->scale, rntp->shift); in rtc_nanotime_set_commpage()
150 _pal_rtc_nanotime_store(tsc, base, rntp->scale, rntp->shift, rntp); in _rtc_nanotime_init()
220 _pal_rtc_nanotime_store(tsc_base, base, rntp->scale, rntp->shift, rntp); in rtc_clock_napped()
327 uint32_t shift = 0; in rtc_set_timescale() local
332 shift++; in rtc_set_timescale()
338 rntp->shift = shift; in rtc_set_timescale()
360 if (rntp->shift != 0) { in rtc_export_speed()
361 printf("Slow TSC, rtc_nanotime.shift == %d\n", rntp->shift); in rtc_export_speed()
H A Dpal_native.h75 uint32_t shift; /* shift is nonzero only on "slow" machines, */ member
H A Dpal_routines.h171 uint32_t shift,
/xnu-11215/bsd/sys/
H A Dquota.h218 #define dqhash1(id, shift, mask) \ argument
219 ((((id) * 2654435761U) >> (shift)) & (mask))
238 int shift; in dqhashshift() local
240 for (shift = 32; size > 1; size >>= 1, --shift) { in dqhashshift()
243 return shift; in dqhashshift()
H A Dtimex.h180 int shift; /* interval duration (s) (shift) (ro) */ member
/xnu-11215/tests/sched/sched_test_harness/shadow_headers/
H A Dsched_prim.c283 uint32_t shift; in sched_timeshare_timebase_init() local
312 for (shift = 0; abstime > BASEPRI_DEFAULT; ++shift) { in sched_timeshare_timebase_init()
315 sched_fixed_shift = shift; in sched_timeshare_timebase_init()
/xnu-11215/osfmk/i386/vmx/
H A Dvmx_cpu.h72 #define VMX_CAP(msr, shift, mask) (rdmsr64(msr) & ((mask) << (shift))) argument
H A Dvmx_cpu.c409 #define CHK(msr, shift, mask) if (!VMX_CAP(msr, shift, mask)) return FALSE; in vmx_hv_support() argument
/xnu-11215/tools/lldbmacros/kmemory/
H A Dkmem.py35 self.shift = params.xGetScalarByName('vmpp_shift')
53 addr = (packed << self.shift) + self.base
56 shift = self.shift
58 addr >>= 64 - bits - shift
H A Dbtlog.py143 def shift(self): member in BTLibrary
152 return 1 << self.shift
/xnu-11215/osfmk/arm64/sptm/pmap/
H A Dpmap_pt_geometry.h63 const uint64_t shift; member
231 return pt_attr->pta_level_info[level].shift; in pt_attr_ln_shift()
337 return pt_attr->pta_level_info[pt_attr->pta_max_level].shift; in pt_attr_leaf_shift()
379 return pt_attr->pta_level_info[pt_attr->pta_max_level - 1].shift; in pt_attr_twig_shift()
/xnu-11215/osfmk/arm/pmap/
H A Dpmap_pt_geometry.h63 const uint64_t shift; member
240 return pt_attr->pta_level_info[level].shift; in pt_attr_ln_shift()
329 return pt_attr->pta_level_info[pt_attr->pta_max_level].shift; in pt_attr_leaf_shift()
371 return pt_attr->pta_level_info[pt_attr->pta_max_level - 1].shift; in pt_attr_twig_shift()
/xnu-11215/osfmk/kdp/
H A Dsk_core.c188 const uint64_t shift; member
197 .shift = ARM_16K_TT_L0_SHIFT,
206 .shift = ARM_16K_TT_L1_SHIFT,
215 .shift = ARM_16K_TT_L2_SHIFT,
224 .shift = ARM_16K_TT_L3_SHIFT,
307 ttep = &ttp[idx >> page_config[cur_level].shift]; in sc_cL4_kvtov()
/xnu-11215/osfmk/kern/
H A Dsched_average.c294 uint32_t shift = sched_fixed_shift - sched_load_shifts[bucket_load]; in compute_averages() local
296 if (shift > SCHED_PRI_SHIFT_MAX) { in compute_averages()
299 sched_pri_shifts[i] = shift; in compute_averages()
H A Dsmr.c2303 uint16_t shift; in smr_hash_init() local
2306 shift = (uint16_t)flsll(size - 1); in smr_hash_init()
2307 size = 1UL << shift; in smr_hash_init()
2312 array = smr_hash_array_encode(smr_hash_alloc_array(size), 64 - shift); in smr_hash_init()
2632 __smr_shash_size_for_shift(uint8_t shift) in __smr_shash_size_for_shift() argument
2634 return (~0u >> shift) + 1; in __smr_shash_size_for_shift()
3122 uint8_t shift; in smr_shash_init() local
3154 shift = (uint8_t)__builtin_clz((uint32_t)(size - 1)); in smr_shash_init()
3155 size = (~0u >> shift) + 1; in smr_shash_init()
3162 .curshift = shift, in smr_shash_init()
[all …]
/xnu-11215/tools/lldbmacros/core/
H A Diterators.py672 shift = self.hash_value.xGetScalarByPath('.smrsh_state.curshift')
673 return (0xffffffff >> shift) + 1;
715 shift = hash_value.xGetScalarByPath('.smrsh_state.curshift')
716 hashes.append((curidx, array.Dereference(), shift))
719 shift = hash_value.xGetScalarByPath('.smrsh_state.newshift')
720 hashes.append((newidx, array.Dereference(), shift))
/xnu-11215/bsd/sys/_types/
H A D_user32_timex.h45 __int32_t shift; variable
H A D_user64_timex.h45 __int32_t shift; variable
/xnu-11215/osfmk/arm64/
H A Dtlb.h364 #define rtlbi_addr(x, shift) (((x) >> (shift)) & RTLBI_ADDR_MASK) argument
/xnu-11215/osfmk/vm/
H A Dvm_map_xnu.h1023 int shift = map ? map->hdr.page_shift : PAGE_SHIFT; in VM_MAP_PAGE_SHIFT() local
1030 __builtin_assume(shift >= 12 && shift <= 14); in VM_MAP_PAGE_SHIFT()
1031 return shift; in VM_MAP_PAGE_SHIFT()
/xnu-11215/osfmk/i386/commpage/
H A Dcommpage.c720 uint32_t shift ) in commpage_set_nanotime() argument
737 if ((shift != 0) && ((_cpu_capabilities & kSlow) == 0)) { in commpage_set_nanotime()
758 p32->nt_shift = shift; in commpage_set_nanotime()
759 p64->nt_shift = shift; in commpage_set_nanotime()
H A Dcommpage.h139 …void commpage_set_nanotime(uint64_t tsc_base, uint64_t ns_base, uint32_t scale, uint32_t shift);
/xnu-11215/san/memory/
H A Dubsan.c324 ubsan_json_type(ub, "lhs", &v->lhs, v->shift->lhs_t); in format_shift()
325 ubsan_json_type(ub, "rhs", &v->rhs, v->shift->rhs_t); in format_shift()
627 ubsan_violation_t v = { UBSAN_SHIFT, lhs, rhs, .shift = desc, &desc->loc }; in __ubsan_handle_shift_out_of_bounds()
634 ubsan_violation_t v = { UBSAN_SHIFT, lhs, rhs, .shift = desc, &desc->loc }; in __ubsan_handle_shift_out_of_bounds_abort()

12