• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/i386/

Lines Matching refs:bitfield

53 #define bitfield(x,h,l)	(((x) & bitmask(h,l)) >> l)
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_reg[ecx], 7, 0);
340 bitfield(cpuid_reg[ecx],15,12);
341 info_p->cpuid_cache_size = bitfield(cpuid_reg[ecx],31,16);
344 bitfield(cpuid_reg[eax], 7, 0);
346 bitfield(cpuid_reg[eax],15, 8);
352 info_p->cpuid_stepping = bitfield(cpuid_reg[eax], 3, 0);
353 info_p->cpuid_model = bitfield(cpuid_reg[eax], 7, 4);
354 info_p->cpuid_family = bitfield(cpuid_reg[eax], 11, 8);
355 info_p->cpuid_type = bitfield(cpuid_reg[eax], 13, 12);
356 info_p->cpuid_extmodel = bitfield(cpuid_reg[eax], 19, 16);
357 info_p->cpuid_extfamily = bitfield(cpuid_reg[eax], 27, 20);
358 info_p->cpuid_brand = bitfield(cpuid_reg[ebx], 7, 0);
369 bitfield(cpuid_reg[ebx], 23, 16);
396 info_p->core_count = bitfield(msr_core_thread_count, 31, 16);
397 info_p->thread_count = bitfield(msr_core_thread_count, 15, 0);
415 bitfield(cpuid_reg[eax], 0, 0);
417 bitfield(cpuid_reg[eax], 1, 1);
419 bitfield(cpuid_reg[ebx], 3, 0);
421 bitfield(cpuid_reg[ecx], 0, 0);
428 bitfield(cpuid_reg[eax], 7, 0);
430 bitfield(cpuid_reg[eax],15, 8);
432 bitfield(cpuid_reg[eax],23,16);
434 bitfield(cpuid_reg[eax],31,24);
438 bitfield(cpuid_reg[edx], 4, 0);
440 bitfield(cpuid_reg[edx],12, 5);