Home
last modified time | relevance | path

Searched refs:regs (Results 1 – 25 of 55) sorted by relevance

123

/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
DSDL_riscossprite.c49 _kernel_swi_regs regs; in WIMP_CreateBuffer() local
83 regs.r[0] = 256+9; in WIMP_CreateBuffer()
84 regs.r[1] = (unsigned int)buffer; in WIMP_CreateBuffer()
85 _kernel_swi(OS_SpriteOp, &regs, &regs); in WIMP_CreateBuffer()
87 regs.r[0] = 256+15; in WIMP_CreateBuffer()
88 regs.r[1] = (unsigned int)buffer; in WIMP_CreateBuffer()
89 regs.r[2] = (unsigned int)&sprite_name; in WIMP_CreateBuffer()
90 regs.r[3] = 0; /* Palette flag: 0 = no palette */ in WIMP_CreateBuffer()
91 regs.r[4] = width; in WIMP_CreateBuffer()
92 regs.r[5] = height; in WIMP_CreateBuffer()
[all …]
DSDL_wimppoll.c95 _kernel_swi_regs regs; in WIMP_Poll() local
107 _kernel_swi(OS_ReadMonotonicTime, &regs, &regs); in WIMP_Poll()
108 waitTime += regs.r[0]; in WIMP_Poll()
120 regs.r[0] = pollMask; /* Poll Mask */ in WIMP_Poll()
122 if (waitTime < 0) regs.r[0] |= 1; in WIMP_Poll()
123 regs.r[1] = (int)message; in WIMP_Poll()
124 _kernel_swi(Wimp_Poll, &regs, &regs); in WIMP_Poll()
127 regs.r[0] = pollMask; in WIMP_Poll()
128 regs.r[1] = (int)message; in WIMP_Poll()
129 regs.r[2] = waitTime; in WIMP_Poll()
[all …]
DSDL_riscostask.c92 _kernel_swi_regs regs; in RISCOS_InitTask() local
102 regs.r[0] = (unsigned int)360; /* Minimum version 3.6 */ in RISCOS_InitTask()
103 regs.r[1] = (unsigned int)0x4b534154; in RISCOS_InitTask()
104 regs.r[2] = (unsigned int)task_name; in RISCOS_InitTask()
105 regs.r[3] = (unsigned int)messages; in RISCOS_InitTask()
107 if (_kernel_swi(Wimp_Initialise, &regs, &regs) == 0) in RISCOS_InitTask()
109 wimp_version = regs.r[0]; in RISCOS_InitTask()
110 task_handle = regs.r[1]; in RISCOS_InitTask()
129 _kernel_swi_regs regs; in RISCOS_ExitTask() local
142 regs.r[0] = task_handle; in RISCOS_ExitTask()
[all …]
DSDL_riscosFullScreenVideo.c99 _kernel_swi_regs regs; in FULLSCREEN_SetVideoMode() local
149 regs.r[0] = -1; /* -1 for current screen mode */ in FULLSCREEN_SetVideoMode()
152 regs.r[1] = 6; // Screen Width in bytes in FULLSCREEN_SetVideoMode()
153 _kernel_swi(OS_ReadModeVariable, &regs, &regs); in FULLSCREEN_SetVideoMode()
155 current->pitch = regs.r[2]; in FULLSCREEN_SetVideoMode()
159 regs.r[0] = 2; /* Screen area */ in FULLSCREEN_SetVideoMode()
160 _kernel_swi(OS_ReadDynamicArea, &regs, &regs); in FULLSCREEN_SetVideoMode()
163 regs.r[0] = 2; /* Screen area */ in FULLSCREEN_SetVideoMode()
164 regs.r[1] = (current->pitch * height * 2) - regs.r[1]; in FULLSCREEN_SetVideoMode()
165 if (_kernel_swi(OS_ChangeDynamicArea, &regs, &regs) != NULL) in FULLSCREEN_SetVideoMode()
[all …]
DSDL_wimpvideo.c201 _kernel_swi_regs regs; in WIMP_ReadModeInfo() local
212 regs.r[0] = (int)vars; in WIMP_ReadModeInfo()
213 regs.r[1] = (int)vals; in WIMP_ReadModeInfo()
214 _kernel_swi(OS_ReadVduVariables, &regs, &regs); in WIMP_ReadModeInfo()
249 _kernel_swi_regs regs; in WIMP_SetupWindow() local
293 regs.r[1] = (unsigned int)(window_block); in WIMP_SetupWindow()
296 if (_kernel_swi(Wimp_CreateWindow, &regs, &regs) == NULL) in WIMP_SetupWindow()
298 this->hidden->window_handle = window_data[0] = regs.r[0]; in WIMP_SetupWindow()
301 regs.r[1] = (unsigned int)window_data; in WIMP_SetupWindow()
302 if (_kernel_swi(Wimp_OpenWindow, &regs, &regs) == NULL) in WIMP_SetupWindow()
[all …]
DSDL_riscosmouse.c192 _kernel_swi_regs regs; in FULLSCREEN_WarpWMCursor() local
199 regs.r[0] = (int)eig_block; in FULLSCREEN_WarpWMCursor()
200 regs.r[1] = (int)eig_block; in FULLSCREEN_WarpWMCursor()
201 _kernel_swi(OS_ReadVduVariables, &regs, &regs); in FULLSCREEN_WarpWMCursor()
227 _kernel_swi_regs regs; in WIMP_WarpWMCursor() local
233 regs.r[1] = (unsigned int)window_state; in WIMP_WarpWMCursor()
234 _kernel_swi(Wimp_GetWindowState, &regs, &regs); in WIMP_WarpWMCursor()
245 regs.r[0] = 21; in WIMP_WarpWMCursor()
246 regs.r[1] = (int)block; in WIMP_WarpWMCursor()
247 _kernel_swi(OS_Word, &regs, &regs); in WIMP_WarpWMCursor()
[all …]
DSDL_riscosevents.c258 _kernel_swi_regs regs; in RISCOS_PollMouseHelper() local
261 if (_kernel_swi(OS_Mouse, &regs, &regs) == NULL) in RISCOS_PollMouseHelper()
263 Sint16 new_x = regs.r[0]; /* Initialy get as OS units */ in RISCOS_PollMouseHelper()
264 Sint16 new_y = regs.r[1]; in RISCOS_PollMouseHelper()
267 if (starting && regs.r[2] != 0) in RISCOS_PollMouseHelper()
272 if (new_x != last_x || new_y != last_y || last_buttons != regs.r[2]) in RISCOS_PollMouseHelper()
288 regs.r[1] = (unsigned int)window_state; in RISCOS_PollMouseHelper()
289 _kernel_swi(Wimp_GetWindowState, &regs, &regs); in RISCOS_PollMouseHelper()
329 regs.r[0] = 21; /* OSWORD pointer stuff code */ in RISCOS_PollMouseHelper()
330 regs.r[1] = (int)block; in RISCOS_PollMouseHelper()
[all …]
DSDL_riscosvideo.c164 _kernel_swi_regs regs; in RISCOS_VideoInit() local
177 regs.r[0] = (int)vars; in RISCOS_VideoInit()
178 regs.r[1] = (int)vals; in RISCOS_VideoInit()
180 _kernel_swi(OS_ReadVduVariables, &regs, &regs); in RISCOS_VideoInit()
/external/qemu/distrib/sdl-1.2.12/src/video/
Dmmx.h301 #define mmx_r2r(op, regs, regd) \ argument
304 __asm__ __volatile__ ("movq %%" #regs ", %0" \
307 printf(#op "_r2r(" #regs "=0x%08x%08x, ", \
314 __asm__ __volatile__ (#op " %" #regs ", %" #regd); \
361 #define mmx_r2r(op, regs, regd) \ argument
362 __asm__ __volatile__ (#op " %" #regs ", %" #regd)
380 #define movq_r2r(regs, regd) mmx_r2r(movq, regs, regd) argument
395 #define movd_r2r(regs, regd) mmx_r2r(movd, regs, regd) argument
406 #define paddd_r2r(regs, regd) mmx_r2r(paddd, regs, regd) argument
410 #define paddw_r2r(regs, regd) mmx_r2r(paddw, regs, regd) argument
[all …]
/external/qemu/distrib/sdl-1.2.12/src/joystick/riscos/
DSDL_sysjoystick.c57 _kernel_swi_regs regs; in SDL_SYS_JoystickInit() local
60 regs.r[0] = 0; in SDL_SYS_JoystickInit()
61 if (_kernel_swi(JOYSTICK_READ, &regs, &regs) == NULL) in SDL_SYS_JoystickInit()
90 _kernel_swi_regs regs; in SDL_SYS_JoystickOpen() local
95 regs.r[0] = joystick->index; in SDL_SYS_JoystickOpen()
116 _kernel_swi_regs regs; in SDL_SYS_JoystickUpdate() local
117 regs.r[0] = joystick->index; in SDL_SYS_JoystickUpdate()
119 if (_kernel_swi(JOYSTICK_READ, &regs, &regs) == NULL) in SDL_SYS_JoystickUpdate()
121 int newstate = regs.r[0]; in SDL_SYS_JoystickUpdate()
127 int y = regs.r[0] & 0xFF; in SDL_SYS_JoystickUpdate()
[all …]
/external/qemu/
Darm-semi.c139 env->regs[0] = ret; in arm_semi_cb()
142 switch (env->regs[0]) { in arm_semi_cb()
145 env->regs[0] = arm_semi_syscall_len - ret; in arm_semi_cb()
148 env->regs[0] = 0; in arm_semi_cb()
151 env->regs[0] = ret; in arm_semi_cb()
162 cpu_memory_rw_debug(env, env->regs[13]-64+32, (uint8_t *)&size, 4, 0); in arm_semi_flen_cb()
163 env->regs[0] = be32_to_cpu(size); in arm_semi_flen_cb()
192 nr = env->regs[0]; in do_arm_semihosting()
193 args = env->regs[1]; in do_arm_semihosting()
210 return env->regs[0]; in do_arm_semihosting()
[all …]
/external/strace/
Dsyscall.c761 static struct pt_regs regs; variable
766 static struct regs regs; variable
786 struct reg regs; variable
1009 if (ptrace(PTRACE_GETREGS, pid, NULL, (void *)&regs) == -1)
1015 if (regs.ARM_ip == 0) {
1019 if (regs.ARM_cpsr & 0x20) {
1023 scno = regs.ARM_r7;
1029 scno = ptrace(PTRACE_PEEKTEXT, pid, (void *)(regs.ARM_pc - 4), NULL);
1044 scno = regs.ARM_r7;
1123 if (ptrace(PTRACE_GETREGS,pid,(char *)&regs,0) < 0)
[all …]
Dutil.c1017 struct regs regs;
1018 if (ptrace(PTRACE_GETREGS,tcp->pid,(char *)&regs,0) < 0)
1020 pc = regs.r_pc;
1042 struct regs regs;
1044 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *) &regs, 0) < 0) {
1048 return regs.r_pc;
1057 struct reg regs;
1058 pread(tcp->pfd_reg, &regs, sizeof(regs), 0);
1059 return regs.r_eip;
1135 struct regs regs;
[all …]
/external/qemu/hw/
Ddma.c59 struct dma_regs regs[4]; member
91 d->regs[ichan].page = data; in write_page()
104 d->regs[ichan].pageh = data; in write_pageh()
117 return d->regs[ichan].page; in read_page()
130 return d->regs[ichan].pageh; in read_pageh()
137 r = d->regs + ichan; in init_chan()
160 r = d->regs + ichan; in read_chan()
182 r = d->regs + ichan; in write_chan()
241 d->regs[ichan].mode = data; in write_cont()
304 return dma_controllers[nchan > 3].regs[nchan & 3].mode; in DMA_get_channel_mode()
[all …]
/external/qemu/target-arm/
Dhelper.c188 env->regs[15] = 0; in cpu_reset()
199 stfq_le_p(buf, env->vfp.regs[reg]); in vfp_gdb_get_reg()
206 stfq_le_p(buf, env->vfp.regs[(reg - 32) * 2]); in vfp_gdb_get_reg()
207 stfq_le_p(buf + 8, env->vfp.regs[(reg - 32) * 2 + 1]); in vfp_gdb_get_reg()
225 env->vfp.regs[reg] = ldfq_le_p(buf); in vfp_gdb_set_reg()
231 env->vfp.regs[(reg - 32) * 2] = ldfq_le_p(buf); in vfp_gdb_set_reg()
232 env->vfp.regs[(reg - 32) * 2 + 1] = ldfq_le_p(buf + 8); in vfp_gdb_set_reg()
622 memcpy (env->fiq_regs, env->regs + 8, 5 * sizeof(uint32_t)); in switch_mode()
623 memcpy (env->regs + 8, env->usr_regs, 5 * sizeof(uint32_t)); in switch_mode()
625 memcpy (env->usr_regs, env->regs + 8, 5 * sizeof(uint32_t)); in switch_mode()
[all …]
Dmachine.c10 qemu_put_be32(f, env->regs[i]); in cpu_save()
55 u.d = env->vfp.regs[i]; in cpu_save()
70 u.d = env->vfp.regs[i]; in cpu_save()
79 qemu_put_be64(f, env->iwmmxt.regs[i]); in cpu_save()
105 env->regs[i] = qemu_get_be32(f); in cpu_load()
152 env->vfp.regs[i] = u.d; in cpu_load()
167 env->vfp.regs[i] = u.d; in cpu_load()
174 env->iwmmxt.regs[i] = qemu_get_be64(f); in cpu_load()
Dcpu.h75 uint32_t regs[16]; member
172 float64 regs[32]; member
192 uint64_t regs[16]; member
424 env->regs[13] = newsp; in cpu_clone_regs()
425 env->regs[0] = 0; in cpu_clone_regs()
434 env->regs[15] = tb->pc; in cpu_pc_from_tb()
440 *pc = env->regs[15]; in cpu_get_tb_cpu_state()
/external/clearsilver/util/regex/
Dregex.c3222 re_set_registers (bufp, regs, num_regs, starts, ends) in re_set_registers() argument
3224 struct re_registers *regs;
3231 regs->num_regs = num_regs;
3232 regs->start = starts;
3233 regs->end = ends;
3238 regs->num_regs = 0;
3239 regs->start = regs->end = (regoff_t *) 0;
3249 re_search (bufp, string, size, startpos, range, regs) in re_search() argument
3253 struct re_registers *regs;
3256 regs, size);
[all …]
Dregex.h430 int length, int start, int range, struct re_registers *regs));
438 int start, int range, struct re_registers *regs, int stop));
445 int length, int start, struct re_registers *regs));
452 int start, struct re_registers *regs, int stop));
468 _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
/external/webkit/JavaScriptCore/runtime/
DCollector.cpp771 …e_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegisters& regs) in getPlatformThreadRegisters() argument
776 unsigned user_count = sizeof(regs)/sizeof(int); in getPlatformThreadRegisters()
794 …kern_return_t result = thread_get_state(platformThread, flavor, (thread_state_t)&regs, &user_count… in getPlatformThreadRegisters()
804 regs.ContextFlags = CONTEXT_INTEGER | CONTEXT_CONTROL | CONTEXT_SEGMENTS; in getPlatformThreadRegisters()
805 GetThreadContext(platformThread.handle, &regs); in getPlatformThreadRegisters()
812 static inline void* otherThreadStackPointer(const PlatformThreadRegisters& regs) in otherThreadStackPointer() argument
819 return reinterpret_cast<void*>(regs.__esp); in otherThreadStackPointer()
821 return reinterpret_cast<void*>(regs.__rsp); in otherThreadStackPointer()
823 return reinterpret_cast<void*>(regs.__r1); in otherThreadStackPointer()
825 return reinterpret_cast<void*>(regs.__sp); in otherThreadStackPointer()
[all …]
/external/openssl/crypto/perlasm/
Dx86unix.pl104 $reg1="$regs{$reg1}" if defined($regs{$reg1});
105 $reg2="$regs{$reg2}" if defined($regs{$reg2});
264 if ((defined($special{$name})) && defined($regs{$p1}) && ($p2 == 1))
330 $p=$regs{$p} if (defined($regs{$p}));
/external/webkit/V8Binding/v8/src/ia32/
Dmacro-assembler-ia32.h62 void SaveRegistersToMemory(RegList regs);
63 void RestoreRegistersFromMemory(RegList regs);
64 void PushRegistersFromMemory(RegList regs);
65 void PopRegistersToMemory(RegList regs);
68 RegList regs);
Dmacro-assembler-ia32.cc217 void MacroAssembler::SaveRegistersToMemory(RegList regs) { in SaveRegistersToMemory() argument
218 ASSERT((regs & ~kJSCallerSaved) == 0); in SaveRegistersToMemory()
222 if ((regs & (1 << r)) != 0) { in SaveRegistersToMemory()
232 void MacroAssembler::RestoreRegistersFromMemory(RegList regs) { in RestoreRegistersFromMemory() argument
233 ASSERT((regs & ~kJSCallerSaved) == 0); in RestoreRegistersFromMemory()
237 if ((regs & (1 << r)) != 0) { in RestoreRegistersFromMemory()
247 void MacroAssembler::PushRegistersFromMemory(RegList regs) { in PushRegistersFromMemory() argument
248 ASSERT((regs & ~kJSCallerSaved) == 0); in PushRegistersFromMemory()
252 if ((regs & (1 << r)) != 0) { in PushRegistersFromMemory()
261 void MacroAssembler::PopRegistersToMemory(RegList regs) { in PopRegistersToMemory() argument
[all …]
/external/qemu/tcg/ppc/
Dtcg-target.c231 tcg_regset_set_reg(ct->u.regs, 3 + ct_str[0] - 'A'); in target_parse_constraint()
235 tcg_regset_set32(ct->u.regs, 0, 0xffffffff); in target_parse_constraint()
240 tcg_regset_set32(ct->u.regs, 0, 0xffffffff); in target_parse_constraint()
241 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R3); in target_parse_constraint()
242 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R4); in target_parse_constraint()
246 tcg_regset_set32(ct->u.regs, 0, 0xffffffff); in target_parse_constraint()
247 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R3); in target_parse_constraint()
248 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R4); in target_parse_constraint()
249 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R5); in target_parse_constraint()
251 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R6); in target_parse_constraint()
[all …]
/external/qemu/tcg/arm/
Dtcg-target.c111 tcg_regset_set32(ct->u.regs, 0, (1 << TCG_TARGET_NB_REGS) - 1); in target_parse_constraint()
118 tcg_regset_set32(ct->u.regs, 0, (1 << TCG_TARGET_NB_REGS) - 1); in target_parse_constraint()
119 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R0); in target_parse_constraint()
120 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R1); in target_parse_constraint()
126 tcg_regset_set32(ct->u.regs, 0, (1 << TCG_TARGET_NB_REGS) - 1); in target_parse_constraint()
128 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R1); in target_parse_constraint()
134 tcg_regset_set32(ct->u.regs, 0, (1 << TCG_TARGET_NB_REGS) - 1); in target_parse_constraint()
137 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R0); in target_parse_constraint()
138 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R1); in target_parse_constraint()
140 tcg_regset_reset_reg(ct->u.regs, TCG_REG_R2); in target_parse_constraint()
[all …]

123