Lines Matching defs:ctxt

251 #define ____emulate_2op(ctxt, _op, _x, _y, _suffix, _dsttype)	\  argument
265 #define __emulate_2op_nobyte(ctxt,_op,_wx,_wy,_lx,_ly,_qx,_qy) \ argument
282 #define __emulate_2op(ctxt,_op,_bx,_by,_wx,_wy,_lx,_ly,_qx,_qy) \ argument
297 #define emulate_2op_SrcB(ctxt, _op) \ argument
301 #define emulate_2op_SrcV(ctxt, _op) \ argument
305 #define emulate_2op_SrcV_nobyte(ctxt, _op) \ argument
309 #define __emulate_2op_cl(ctxt, _op, _suffix, _type) \ argument
329 #define emulate_2op_cl(ctxt, _op) \ argument
344 #define __emulate_1op(ctxt, _op, _suffix) \ argument
358 #define emulate_1op(ctxt, _op) \ argument
368 #define __emulate_1op_rax_rdx(ctxt, _op, _suffix, _ex) \ argument
392 #define emulate_1op_rax_rdx(ctxt, _op, _ex) \ argument
410 static int emulator_check_intercept(struct x86_emulate_ctxt *ctxt, in emulator_check_intercept()
430 static inline unsigned long ad_mask(struct x86_emulate_ctxt *ctxt) in ad_mask()
437 address_mask(struct x86_emulate_ctxt *ctxt, unsigned long reg) in address_mask()
446 register_address(struct x86_emulate_ctxt *ctxt, unsigned long reg) in register_address()
452 register_address_increment(struct x86_emulate_ctxt *ctxt, unsigned long *reg, int inc) in register_address_increment()
460 static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) in jmp_rel()
472 static void set_seg_override(struct x86_emulate_ctxt *ctxt, int seg) in set_seg_override()
478 static unsigned long seg_base(struct x86_emulate_ctxt *ctxt, int seg) in seg_base()
486 static unsigned seg_override(struct x86_emulate_ctxt *ctxt) in seg_override()
494 static int emulate_exception(struct x86_emulate_ctxt *ctxt, int vec, in emulate_exception()
503 static int emulate_db(struct x86_emulate_ctxt *ctxt) in emulate_db()
508 static int emulate_gp(struct x86_emulate_ctxt *ctxt, int err) in emulate_gp()
513 static int emulate_ss(struct x86_emulate_ctxt *ctxt, int err) in emulate_ss()
518 static int emulate_ud(struct x86_emulate_ctxt *ctxt) in emulate_ud()
523 static int emulate_ts(struct x86_emulate_ctxt *ctxt, int err) in emulate_ts()
528 static int emulate_de(struct x86_emulate_ctxt *ctxt) in emulate_de()
533 static int emulate_nm(struct x86_emulate_ctxt *ctxt) in emulate_nm()
538 static u16 get_segment_selector(struct x86_emulate_ctxt *ctxt, unsigned seg) in get_segment_selector()
547 static void set_segment_selector(struct x86_emulate_ctxt *ctxt, u16 selector, in set_segment_selector()
558 static int __linearize(struct x86_emulate_ctxt *ctxt, in __linearize()
631 static int linearize(struct x86_emulate_ctxt *ctxt, in linearize()
640 static int segmented_read_std(struct x86_emulate_ctxt *ctxt, in segmented_read_std()
661 static int do_insn_fetch_byte(struct x86_emulate_ctxt *ctxt, u8 *dest) in do_insn_fetch_byte()
688 static int do_insn_fetch(struct x86_emulate_ctxt *ctxt, in do_insn_fetch()
735 static int read_descriptor(struct x86_emulate_ctxt *ctxt, in read_descriptor()
805 static void read_sse_reg(struct x86_emulate_ctxt *ctxt, sse128_t *data, int reg) in read_sse_reg()
832 static void write_sse_reg(struct x86_emulate_ctxt *ctxt, sse128_t *data, in write_sse_reg()
860 static void decode_register_operand(struct x86_emulate_ctxt *ctxt, in decode_register_operand()
890 static int decode_modrm(struct x86_emulate_ctxt *ctxt, in decode_modrm()
1015 static int decode_abs(struct x86_emulate_ctxt *ctxt, in decode_abs()
1036 static void fetch_bit_operand(struct x86_emulate_ctxt *ctxt) in fetch_bit_operand()
1055 static int read_emulated(struct x86_emulate_ctxt *ctxt, in read_emulated()
1082 static int segmented_read(struct x86_emulate_ctxt *ctxt, in segmented_read()
1096 static int segmented_write(struct x86_emulate_ctxt *ctxt, in segmented_write()
1111 static int segmented_cmpxchg(struct x86_emulate_ctxt *ctxt, in segmented_cmpxchg()
1126 static int pio_in_emulated(struct x86_emulate_ctxt *ctxt, in pio_in_emulated()
1154 static void get_descriptor_table_ptr(struct x86_emulate_ctxt *ctxt, in get_descriptor_table_ptr()
1174 static int read_segment_descriptor(struct x86_emulate_ctxt *ctxt, in read_segment_descriptor()
1192 static int write_segment_descriptor(struct x86_emulate_ctxt *ctxt, in write_segment_descriptor()
1210 static int load_segment_descriptor(struct x86_emulate_ctxt *ctxt, in load_segment_descriptor()
1345 static int writeback(struct x86_emulate_ctxt *ctxt) in writeback()
1380 static int em_push(struct x86_emulate_ctxt *ctxt) in em_push()
1393 static int emulate_pop(struct x86_emulate_ctxt *ctxt, in emulate_pop()
1409 static int em_pop(struct x86_emulate_ctxt *ctxt) in em_pop()
1414 static int emulate_popf(struct x86_emulate_ctxt *ctxt, in emulate_popf()
1454 static int em_popf(struct x86_emulate_ctxt *ctxt) in em_popf()
1462 static int em_push_sreg(struct x86_emulate_ctxt *ctxt) in em_push_sreg()
1471 static int em_pop_sreg(struct x86_emulate_ctxt *ctxt) in em_pop_sreg()
1485 static int em_pusha(struct x86_emulate_ctxt *ctxt) in em_pusha()
1505 static int em_pushf(struct x86_emulate_ctxt *ctxt) in em_pushf()
1511 static int em_popa(struct x86_emulate_ctxt *ctxt) in em_popa()
1531 int emulate_int_real(struct x86_emulate_ctxt *ctxt, int irq) in emulate_int_real()
1580 static int emulate_int(struct x86_emulate_ctxt *ctxt, int irq) in emulate_int()
1595 static int emulate_iret_real(struct x86_emulate_ctxt *ctxt) in emulate_iret_real()
1647 static int em_iret(struct x86_emulate_ctxt *ctxt) in em_iret()
1662 static int em_jmp_far(struct x86_emulate_ctxt *ctxt) in em_jmp_far()
1678 static int em_grp2(struct x86_emulate_ctxt *ctxt) in em_grp2()
1707 static int em_not(struct x86_emulate_ctxt *ctxt) in em_not()
1713 static int em_neg(struct x86_emulate_ctxt *ctxt) in em_neg()
1719 static int em_mul_ex(struct x86_emulate_ctxt *ctxt) in em_mul_ex()
1727 static int em_imul_ex(struct x86_emulate_ctxt *ctxt) in em_imul_ex()
1735 static int em_div_ex(struct x86_emulate_ctxt *ctxt) in em_div_ex()
1745 static int em_idiv_ex(struct x86_emulate_ctxt *ctxt) in em_idiv_ex()
1755 static int em_grp45(struct x86_emulate_ctxt *ctxt) in em_grp45()
1787 static int em_cmpxchg8b(struct x86_emulate_ctxt *ctxt) in em_cmpxchg8b()
1805 static int em_ret(struct x86_emulate_ctxt *ctxt) in em_ret()
1813 static int em_ret_far(struct x86_emulate_ctxt *ctxt) in em_ret_far()
1830 static int em_cmpxchg(struct x86_emulate_ctxt *ctxt) in em_cmpxchg()
1848 static int em_lseg(struct x86_emulate_ctxt *ctxt) in em_lseg()
1865 setup_syscalls_segments(struct x86_emulate_ctxt *ctxt, in setup_syscalls_segments()
1894 static bool em_syscall_is_enabled(struct x86_emulate_ctxt *ctxt) in em_syscall_is_enabled()
1939 static int em_syscall(struct x86_emulate_ctxt *ctxt) in em_syscall()
1997 static int em_sysenter(struct x86_emulate_ctxt *ctxt) in em_sysenter()
2052 static int em_sysexit(struct x86_emulate_ctxt *ctxt) in em_sysexit()
2103 static bool emulator_bad_iopl(struct x86_emulate_ctxt *ctxt) in emulator_bad_iopl()
2114 static bool emulator_io_port_access_allowed(struct x86_emulate_ctxt *ctxt, in emulator_io_port_access_allowed()
2147 static bool emulator_io_permited(struct x86_emulate_ctxt *ctxt, in emulator_io_permited()
2162 static void save_state_to_tss16(struct x86_emulate_ctxt *ctxt, in save_state_to_tss16()
2183 static int load_state_from_tss16(struct x86_emulate_ctxt *ctxt, in load_state_from_tss16()
2232 static int task_switch_16(struct x86_emulate_ctxt *ctxt, in task_switch_16()
2276 static void save_state_to_tss32(struct x86_emulate_ctxt *ctxt, in save_state_to_tss32()
2300 static int load_state_from_tss32(struct x86_emulate_ctxt *ctxt, in load_state_from_tss32()
2359 static int task_switch_32(struct x86_emulate_ctxt *ctxt, in task_switch_32()
2403 static int emulator_do_task_switch(struct x86_emulate_ctxt *ctxt, in emulator_do_task_switch()
2483 int emulator_task_switch(struct x86_emulate_ctxt *ctxt, in emulator_task_switch()
2501 static void string_addr_inc(struct x86_emulate_ctxt *ctxt, unsigned seg, in string_addr_inc()
2511 static int em_das(struct x86_emulate_ctxt *ctxt) in em_das()
2549 static int em_call(struct x86_emulate_ctxt *ctxt) in em_call()
2558 static int em_call_far(struct x86_emulate_ctxt *ctxt) in em_call_far()
2583 static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt) in em_ret_near_imm()
2597 static int em_add(struct x86_emulate_ctxt *ctxt) in em_add()
2603 static int em_or(struct x86_emulate_ctxt *ctxt) in em_or()
2609 static int em_adc(struct x86_emulate_ctxt *ctxt) in em_adc()
2615 static int em_sbb(struct x86_emulate_ctxt *ctxt) in em_sbb()
2621 static int em_and(struct x86_emulate_ctxt *ctxt) in em_and()
2627 static int em_sub(struct x86_emulate_ctxt *ctxt) in em_sub()
2633 static int em_xor(struct x86_emulate_ctxt *ctxt) in em_xor()
2639 static int em_cmp(struct x86_emulate_ctxt *ctxt) in em_cmp()
2647 static int em_test(struct x86_emulate_ctxt *ctxt) in em_test()
2655 static int em_xchg(struct x86_emulate_ctxt *ctxt) in em_xchg()
2667 static int em_imul(struct x86_emulate_ctxt *ctxt) in em_imul()
2673 static int em_imul_3op(struct x86_emulate_ctxt *ctxt) in em_imul_3op()
2679 static int em_cwd(struct x86_emulate_ctxt *ctxt) in em_cwd()
2689 static int em_rdtsc(struct x86_emulate_ctxt *ctxt) in em_rdtsc()
2699 static int em_rdpmc(struct x86_emulate_ctxt *ctxt) in em_rdpmc()
2710 static int em_mov(struct x86_emulate_ctxt *ctxt) in em_mov()
2716 static int em_cr_write(struct x86_emulate_ctxt *ctxt) in em_cr_write()
2726 static int em_dr_write(struct x86_emulate_ctxt *ctxt) in em_dr_write()
2744 static int em_wrmsr(struct x86_emulate_ctxt *ctxt) in em_wrmsr()
2756 static int em_rdmsr(struct x86_emulate_ctxt *ctxt) in em_rdmsr()
2768 static int em_mov_rm_sreg(struct x86_emulate_ctxt *ctxt) in em_mov_rm_sreg()
2777 static int em_mov_sreg_rm(struct x86_emulate_ctxt *ctxt) in em_mov_sreg_rm()
2792 static int em_movdqu(struct x86_emulate_ctxt *ctxt) in em_movdqu()
2798 static int em_invlpg(struct x86_emulate_ctxt *ctxt) in em_invlpg()
2811 static int em_clts(struct x86_emulate_ctxt *ctxt) in em_clts()
2821 static int em_vmcall(struct x86_emulate_ctxt *ctxt) in em_vmcall()
2839 static int em_lgdt(struct x86_emulate_ctxt *ctxt) in em_lgdt()
2855 static int em_vmmcall(struct x86_emulate_ctxt *ctxt) in em_vmmcall()
2866 static int em_lidt(struct x86_emulate_ctxt *ctxt) in em_lidt()
2882 static int em_smsw(struct x86_emulate_ctxt *ctxt) in em_smsw()
2889 static int em_lmsw(struct x86_emulate_ctxt *ctxt) in em_lmsw()
2897 static int em_loop(struct x86_emulate_ctxt *ctxt) in em_loop()
2907 static int em_jcxz(struct x86_emulate_ctxt *ctxt) in em_jcxz()
2915 static int em_in(struct x86_emulate_ctxt *ctxt) in em_in()
2924 static int em_out(struct x86_emulate_ctxt *ctxt) in em_out()
2933 static int em_cli(struct x86_emulate_ctxt *ctxt) in em_cli()
2942 static int em_sti(struct x86_emulate_ctxt *ctxt) in em_sti()
2952 static int em_bt(struct x86_emulate_ctxt *ctxt) in em_bt()
2963 static int em_bts(struct x86_emulate_ctxt *ctxt) in em_bts()
2969 static int em_btr(struct x86_emulate_ctxt *ctxt) in em_btr()
2975 static int em_btc(struct x86_emulate_ctxt *ctxt) in em_btc()
2981 static int em_bsf(struct x86_emulate_ctxt *ctxt) in em_bsf()
2998 static int em_bsr(struct x86_emulate_ctxt *ctxt) in em_bsr()
3027 static int check_cr_read(struct x86_emulate_ctxt *ctxt) in check_cr_read()
3035 static int check_cr_write(struct x86_emulate_ctxt *ctxt) in check_cr_write()
3100 static int check_dr7_gd(struct x86_emulate_ctxt *ctxt) in check_dr7_gd()
3110 static int check_dr_read(struct x86_emulate_ctxt *ctxt) in check_dr_read()
3128 static int check_dr_write(struct x86_emulate_ctxt *ctxt) in check_dr_write()
3139 static int check_svme(struct x86_emulate_ctxt *ctxt) in check_svme()
3151 static int check_svme_pa(struct x86_emulate_ctxt *ctxt) in check_svme_pa()
3162 static int check_rdtsc(struct x86_emulate_ctxt *ctxt) in check_rdtsc()
3172 static int check_rdpmc(struct x86_emulate_ctxt *ctxt) in check_rdpmc()
3184 static int check_perm_in(struct x86_emulate_ctxt *ctxt) in check_perm_in()
3193 static int check_perm_out(struct x86_emulate_ctxt *ctxt) in check_perm_out()
3551 static unsigned imm_size(struct x86_emulate_ctxt *ctxt) in imm_size()
3561 static int decode_imm(struct x86_emulate_ctxt *ctxt, struct operand *op, in decode_imm()
3598 static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, in decode_operand()
3717 int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len) in x86_decode_insn()
3926 bool x86_page_table_writing_insn(struct x86_emulate_ctxt *ctxt) in x86_page_table_writing_insn()
3931 static bool string_insn_completed(struct x86_emulate_ctxt *ctxt) in string_insn_completed()
3951 int x86_emulate_insn(struct x86_emulate_ctxt *ctxt) in x86_emulate_insn()