Searched refs:reg (Results 1 - 25 of 30) sorted by relevance

12

/xnu-2422.115.4/osfmk/i386/
H A Dcpuid.c251 uint32_t reg[4]; local
305 reg[eax] = 4; /* cpuid request 4 */
306 reg[ecx] = index; /* index starting at 0 */
307 cpuid(reg);
308 DBG("cpuid(4) index=%d eax=0x%x\n", index, reg[eax]);
309 cache_type = bitfield32(reg[eax], 4, 0);
312 cache_level = bitfield32(reg[eax], 7, 5);
313 cache_sharing = bitfield32(reg[eax], 25, 14) + 1;
315 = bitfield32(reg[eax], 31, 26) + 1;
316 cache_linesize = bitfield32(reg[eb
479 uint32_t reg[4]; local
1078 uint32_t reg[4]; local
[all...]
H A Dasm.h211 * Gotoff2 allows you to reference local labels with an index reg.
212 * Gotoff3 allows you to reference local labels with an index reg & size.
229 #define Gcmp(lab,reg) cmpl $lab,reg
230 #define Gmemload(lab,reg) movl lab,reg
231 #define Gmemstore(reg,lab,tmp) movl reg,lab
244 #define Gcmp(lab,reg) cmpl reg,la
[all...]
H A Dlapic.h169 #define LAPIC_MMIO_OFFSET(reg) (reg << 4)
170 #define LAPIC_MSR_OFFSET(reg) (reg)
172 #define LAPIC_MMIO(reg) ((volatile uint32_t *) \
173 (LAPIC_MMIO_VBASE + LAPIC_MMIO_OFFSET(reg)))
174 #define LAPIC_MSR(reg) (LAPIC_MSR_BASE + LAPIC_MSR_OFFSET(reg))
186 #define LAPIC_WRITE(reg,val) lapic_ops->write(reg, va
[all...]
H A Dstartup64.c227 #define SNAP_REG(reg) \
228 uint64_t reg; \
229 __asm__ volatile("mov %%" #reg ", %0" : "=m" (reg))
231 #define KPRINT_REG(reg) \
232 kprintf("%3s: %p\n", #reg, (void *) reg)
H A Dlapic_native.c159 legacy_read(lapic_register_t reg) argument
161 return *LAPIC_MMIO(reg);
165 legacy_write(lapic_register_t reg, uint32_t value) argument
167 *LAPIC_MMIO(reg) = value;
208 x2apic_read(lapic_register_t reg) argument
213 rdmsr(LAPIC_MSR(reg), lo, hi);
218 x2apic_write(lapic_register_t reg, uint32_t value) argument
220 wrmsr(LAPIC_MSR(reg), value, 0);
H A Drtclock_asm.h59 * Add 64-bit delta in register reg to timer pointed to by register treg.
61 #define TIMER_UPDATE(treg,reg,offset) \
62 addq reg,(offset)+TIMER_ALL(treg) /* add timer */
H A Di386_lock.s1103 #define LMTX_CALLEXT2(func_name, reg) \
1110 mov reg, LMTX_ARG1 ; \
/xnu-2422.115.4/EXTERNAL_HEADERS/architecture/i386/
H A Dasm_help.h303 #define REG_TO_EXTERN(reg, var) \
305 movl reg, (%edx) ; \
308 #define EXTERN_TO_REG(var, reg) \
312 movl L ## var ##$non_lazy_ptr-1b(%edx),reg ; \
321 #define REG_TO_EXTERN(reg, var) movl reg, var
322 #define EXTERN_TO_REG(var, reg) movl $ ## var, reg
/xnu-2422.115.4/tools/lldbmacros/
H A Dapic.py202 for reg in lapic_dump_table:
203 reg_val = DoLapicRead32(reg[0], xnudefines.lcpu_self)
204 if reg[2] == None:
205 print "LAPIC[{:#05x}] {:21s}: {:#010x}".format(reg[0], reg[1], reg_val)
207 print "LAPIC[{:#05x}] {:21s}: {:#010x} {:s}".format(reg[0], reg[1],
208 reg_val, reg[2](reg_val))
H A Dmisc.py47 reg = cd.cpu_desc_index.cdi_ktss.ist1 - sizeof('x86_saved_state_t')
48 print lldb_run_command('p/x *(x86_saved_state_t *) ' + hex(reg))
/xnu-2422.115.4/bsd/dev/i386/
H A Ddis_tables.c153 LSEG, /* for 3-bit seg reg encoding */
519 *bit pattern: 0000 1111 1100 1reg
1444 #define REX_R 0x04 /* high order bit extension of ModRM reg field */
1446 #define REX_B 0x01 /* extends ModRM r_m, SIB base, or opcode reg */
1467 #define MM_OPND 2 /* "value" used to indicate a mmx reg */
1468 #define XMM_OPND 3 /* "value" used to indicate a xmm reg */
1469 #define SEG_OPND 4 /* "value" used to indicate a segment reg */
1470 #define CONTROL_OPND 5 /* "value" used to indicate a control reg */
1471 #define DEBUG_OPND 6 /* "value" used to indicate a debug reg */
1472 #define TEST_OPND 7 /* "value" used to indicate a test reg */
1529 dtrace_get_modrm(dis86_t *x, uint_t *mode, uint_t *reg, uint_t *r_m) argument
1544 dtrace_rex_adjust(uint_t rex_prefix, uint_t mode, uint_t *reg, uint_t *r_m) argument
1951 uint_t reg; /* reg value from ModRM byte */ local
[all...]
H A Ddtrace_isa.c57 * the reg.d translator file). The dtrace_getreg() is smart enough to handle
181 dtrace_getreg(struct regs *savearea, uint_t reg) argument
187 if (reg <= SS) {
188 reg = regmap[reg];
190 reg -= (SS + 1);
193 switch (reg) {
251 if (reg > x86_SAVED_STATE32_COUNT - 1) {
255 return (uint64_t)((unsigned int *)(&(regs->ss_32.gs)))[reg];
H A Dfasttrap_isa.c84 #define FASTTRAP_MODRM(mod, reg, rm) (((mod) << 6) | ((reg) << 3) | (rm))
408 uint_t reg = FASTTRAP_MODRM_REG(instr[start + 1]); local
411 if (reg == 2 || reg == 4) {
414 if (reg == 2)
607 uint_t reg = FASTTRAP_MODRM_REG(instr[rmindex]); local
616 * the reg field may determine the op code
622 if (reg != 0) {
636 FASTTRAP_MODRM(2, reg, r
2006 uint64_t* reg; local
2235 fasttrap_getreg(x86_saved_state_t *regs, uint_t reg) argument
[all...]
/xnu-2422.115.4/bsd/net/
H A Dif_utun_crypto_dtls.h61 utun_ctl_register_dtls (utun_crypto_kpi_reg_t *reg);
H A Dif_stf.c264 struct ifnet_attach_proto_param reg; local
270 bzero(&reg, sizeof(reg));
271 reg.input = stf_media_input;
272 reg.pre_output = stf_pre_output;
274 stat = ifnet_attach_protocol(ifp, protocol_family, &reg);
H A Dif_utun_crypto_dtls.c311 utun_ctl_register_dtls (utun_crypto_kpi_reg_t *reg) argument
314 if (!reg) return EINVAL;
316 //printf("%s: type %d\n", __FUNCTION__, reg->crypto_kpi_type);
317 if (reg->crypto_kpi_type != UTUN_CRYPTO_TYPE_DTLS) {
321 if (!reg->crypto_kpi_connect) {
325 if (!reg->crypto_kpi_send) {
332 dtls_kpi_flags = reg->crypto_kpi_flags;
333 dtls_kpi_connect = reg->crypto_kpi_connect;
334 dtls_kpi_send = reg->crypto_kpi_send;
H A Dif_gif.c234 struct ifnet_attach_proto_param reg; local
237 bzero(&reg, sizeof (reg));
238 reg.input = gif_input;
240 stat = ifnet_attach_protocol(ifp, protocol_family, &reg);
H A Dif_utun_crypto.h436 utun_crypto_kpi_reg_t reg; member in struct:utun_crypto_kpi_reg_list
447 utun_crypto_kpi_register(utun_crypto_kpi_reg_t *reg);
H A Dif_vlan.c2094 struct ifnet_attach_proto_param reg; local
2096 bzero(&reg, sizeof(reg));
2097 reg.input = vlan_input;
2098 reg.event = vlan_event;
2099 reg.detached = vlan_detached;
2100 error = ifnet_attach_protocol(ifp, PF_VLAN, &reg);
H A Dif_bond.c3095 struct ifnet_attach_proto_param reg; local
3097 bzero(&reg, sizeof(reg));
3098 reg.input = bond_input;
3099 reg.event = bond_event;
3100 reg.detached = bond_detached;
3102 error = ifnet_attach_protocol(ifp, PF_BOND, &reg);
/xnu-2422.115.4/tools/lldbmacros/core/
H A Dstandard.py64 if self.FILTER and not self.reg.search(s): return
111 self.reg = re.compile(a.strip(),re.MULTILINE|re.DOTALL)
/xnu-2422.115.4/pexpert/pexpert/
H A Dpexpert.h167 unsigned char reg,
/xnu-2422.115.4/bsd/kern/
H A Dmach_process.c69 #include <machine/reg.h>
H A Ddecmpfs.c174 decmpfs_registration *reg = decompressors[type]; local
175 char *regChar = (char*)reg;
179 switch (reg->decmpfs_registration) {
/xnu-2422.115.4/iokit/Kernel/
H A DIODeviceTreeSupport.cpp385 } else if(noLocation && (!strncmp(name, "reg", sizeof("reg")))) {
508 data = OSDynamicCast( OSData, regEntry->getProperty( "reg" ));
1126 UInt32 *reg; local
1142 reg = (UInt32 *) addressProperty->getBytesNoCopy();
1150 if( IODTResolveAddressCell( parentEntry, reg, &phys, &len )) {
1160 reg += cells;
1184 prop = (OSData *) regEntry->getProperty( "reg" );

Completed in 93 milliseconds

12