Searched refs:bitfield (Results 1 - 4 of 4) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | cpuid.c | 53 #define bitfield(x,h,l) (((x) & bitmask(h,l)) >> l) macro 123 cache_type = bitfield(reg[eax], 4, 0); 126 cache_level = bitfield(reg[eax], 7, 5); 127 cache_sharing = bitfield(reg[eax], 25, 14) + 1; 129 = bitfield(reg[eax], 31, 26) + 1; 130 cache_linesize = bitfield(reg[ebx], 11, 0) + 1; 131 cache_partitions = bitfield(reg[ebx], 21, 12) + 1; 132 cache_associativity = bitfield(reg[ebx], 31, 22) + 1; 133 cache_sets = bitfield(reg[ecx], 31, 0) + 1; 338 info_p->cpuid_cache_linesize = bitfield(cpuid_re [all...] |
H A D | tsc.c | 85 #define bitfield(x,h,l) (((x) & bitmask(h,l)) >> l) macro 160 flex_ratio_min = (uint32_t)bitfield(msr_platform_info, 47, 40); 161 flex_ratio_max = (uint32_t)bitfield(msr_platform_info, 15, 8); 166 flex_ratio = (uint32_t)bitfield(msr_flex_ratio, 15, 8); 189 tscGranularity = (uint32_t)bitfield(prfsts, 44, 40);
|
H A D | cpu_threads.c | 49 #define bitfield(x,h,l) (((x) & bitmask(h,l)) >> l) macro 148 if (bitfield(cache_info[eax], 4, 0) == 0) 154 this_level = bitfield(cache_info[eax], 7, 5); 166 nCPUsSharing = bitfield(cache_info[eax], 25, 14) + 1; 307 if (bitfield(cache_info[eax], 4, 0) == 0) 315 cur->type = bitfield(cache_info[eax], 4, 0); 316 cur->level = bitfield(cache_info[eax], 7, 5); 317 cur->maxcpus = (bitfield(cache_info[eax], 25, 14) + 1); 318 cur->line_size = bitfield(cache_info[ebx], 11, 0) + 1; 319 cur->partitions = bitfield(cache_inf [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/vmx/ |
H A D | vmx_cpu.c | 142 #define bitfield(x,f) ((x >> f##_BIT) & f##_MASK) macro 146 specs->vmcs_mem_type = bitfield(msr_image, VMX_VCR_VMCS_MEM_TYPE) != 0; 147 specs->vmcs_size = bitfield(msr_image, VMX_VCR_VMCS_SIZE); 171 specs->act_halt = bitfield(msr_image, VMX_VCR_ACT_HLT) != 0; 172 specs->act_shutdown = bitfield(msr_image, VMX_VCR_ACT_SHUTDOWN) != 0; 173 specs->act_SIPI = bitfield(msr_image, VMX_VCR_ACT_SIPI) != 0; 174 specs->act_CSTATE = bitfield(msr_image, VMX_VCR_ACT_CSTATE) != 0; 175 specs->cr3_targs = bitfield(msr_image, VMX_VCR_CR3_TARGS); 176 specs->max_msrs = 512 * (1 + bitfield(msr_image, VMX_VCR_MAX_MSRS)); 177 specs->mseg_id = bitfield(msr_imag [all...] |
Completed in 18 milliseconds