/linux-master/arch/arm64/kvm/hyp/nvhe/ |
H A D | sysreg-sr.c | 21 void __sysreg_save_state_nvhe(struct kvm_cpu_context *ctxt) argument 23 __sysreg_save_el1_state(ctxt); 24 __sysreg_save_common_state(ctxt); 25 __sysreg_save_user_state(ctxt); 26 __sysreg_save_el2_return_state(ctxt); 29 void __sysreg_restore_state_nvhe(struct kvm_cpu_context *ctxt) argument 31 __sysreg_restore_el1_state(ctxt); 32 __sysreg_restore_common_state(ctxt); 33 __sysreg_restore_user_state(ctxt); 34 __sysreg_restore_el2_return_state(ctxt); [all...] |
/linux-master/arch/arm64/kvm/hyp/include/hyp/ |
H A D | sysreg-sr.h | 19 static inline void __sysreg_save_common_state(struct kvm_cpu_context *ctxt) argument 21 ctxt_sys_reg(ctxt, MDSCR_EL1) = read_sysreg(mdscr_el1); 24 static inline void __sysreg_save_user_state(struct kvm_cpu_context *ctxt) argument 26 ctxt_sys_reg(ctxt, TPIDR_EL0) = read_sysreg(tpidr_el0); 27 ctxt_sys_reg(ctxt, TPIDRRO_EL0) = read_sysreg(tpidrro_el0); 30 static inline struct kvm_vcpu *ctxt_to_vcpu(struct kvm_cpu_context *ctxt) argument 32 struct kvm_vcpu *vcpu = ctxt->__hyp_running_vcpu; 35 vcpu = container_of(ctxt, struct kvm_vcpu, arch.ctxt); 40 static inline bool ctxt_has_mte(struct kvm_cpu_context *ctxt) argument 47 ctxt_has_s1pie(struct kvm_cpu_context *ctxt) argument 58 __sysreg_save_el1_state(struct kvm_cpu_context *ctxt) argument 93 __sysreg_save_el2_return_state(struct kvm_cpu_context *ctxt) argument 107 __sysreg_restore_common_state(struct kvm_cpu_context *ctxt) argument 112 __sysreg_restore_user_state(struct kvm_cpu_context *ctxt) argument 118 __sysreg_restore_el1_state(struct kvm_cpu_context *ctxt) argument 188 to_hw_pstate(const struct kvm_cpu_context *ctxt) argument 204 __sysreg_restore_el2_return_state(struct kvm_cpu_context *ctxt) argument [all...] |
/linux-master/arch/arm64/kvm/hyp/include/nvhe/ |
H A D | trap_handler.h | 14 #define cpu_reg(ctxt, r) (ctxt)->regs.regs[r] 15 #define DECLARE_REG(type, name, ctxt, reg) \ 16 type name = (type)cpu_reg(ctxt, (reg))
|
/linux-master/arch/x86/kvm/ |
H A D | emulate.c | 198 int (*execute)(struct x86_emulate_ctxt *ctxt); 207 int (*check_perm)(struct x86_emulate_ctxt *ctxt); 246 static void writeback_registers(struct x86_emulate_ctxt *ctxt) argument 248 unsigned long dirty = ctxt->regs_dirty; 252 ctxt->ops->write_gpr(ctxt, reg, ctxt->_regs[reg]); 255 static void invalidate_registers(struct x86_emulate_ctxt *ctxt) argument 257 ctxt->regs_dirty = 0; 258 ctxt 466 emulator_check_intercept(struct x86_emulate_ctxt *ctxt, enum x86_intercept intercept, enum x86_intercept_stage stage) argument 511 ad_mask(struct x86_emulate_ctxt *ctxt) argument 516 stack_mask(struct x86_emulate_ctxt *ctxt) argument 527 stack_size(struct x86_emulate_ctxt *ctxt) argument 534 address_mask(struct x86_emulate_ctxt *ctxt, unsigned long reg) argument 543 register_address(struct x86_emulate_ctxt *ctxt, int reg) argument 554 register_address_increment(struct x86_emulate_ctxt *ctxt, int reg, int inc) argument 561 rsp_increment(struct x86_emulate_ctxt *ctxt, int inc) argument 573 seg_base(struct x86_emulate_ctxt *ctxt, int seg) argument 581 emulate_exception(struct x86_emulate_ctxt *ctxt, int vec, u32 error, bool valid) argument 593 emulate_db(struct x86_emulate_ctxt *ctxt) argument 598 emulate_gp(struct x86_emulate_ctxt *ctxt, int err) argument 603 emulate_ss(struct x86_emulate_ctxt *ctxt, int err) argument 608 emulate_ud(struct x86_emulate_ctxt *ctxt) argument 613 emulate_ts(struct x86_emulate_ctxt *ctxt, int err) argument 618 emulate_de(struct x86_emulate_ctxt *ctxt) argument 623 emulate_nm(struct x86_emulate_ctxt *ctxt) argument 628 get_segment_selector(struct x86_emulate_ctxt *ctxt, unsigned seg) argument 637 set_segment_selector(struct x86_emulate_ctxt *ctxt, u16 selector, unsigned seg) argument 648 ctxt_virt_addr_bits(struct x86_emulate_ctxt *ctxt) argument 653 emul_is_noncanonical_address(u64 la, struct x86_emulate_ctxt *ctxt) argument 668 insn_alignment(struct x86_emulate_ctxt *ctxt, unsigned size) argument 687 __linearize(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, unsigned *max_size, unsigned size, enum x86emul_mode mode, ulong *linear, unsigned int flags) argument 754 linearize(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, unsigned size, bool write, ulong *linear) argument 764 assign_eip(struct x86_emulate_ctxt *ctxt, ulong dst) argument 781 emulator_recalc_and_set_mode(struct x86_emulate_ctxt *ctxt) argument 827 assign_eip_near(struct x86_emulate_ctxt *ctxt, ulong dst) argument 832 assign_eip_far(struct x86_emulate_ctxt *ctxt, ulong dst) argument 842 jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) argument 847 linear_read_system(struct x86_emulate_ctxt *ctxt, ulong linear, void *data, unsigned size) argument 853 linear_write_system(struct x86_emulate_ctxt *ctxt, ulong linear, void *data, unsigned int size) argument 860 segmented_read_std(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, void *data, unsigned size) argument 874 segmented_write_std(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, void *data, unsigned int size) argument 892 __do_insn_fetch_bytes(struct x86_emulate_ctxt *ctxt, int op_size) argument 936 do_insn_fetch_bytes(struct x86_emulate_ctxt *ctxt, unsigned size) argument 975 decode_register(struct x86_emulate_ctxt *ctxt, u8 modrm_reg, int byteop) argument 988 read_descriptor(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, u16 *size, unsigned long *address, int op_bytes) argument 1049 em_bsf_c(struct x86_emulate_ctxt *ctxt) argument 1057 em_bsr_c(struct x86_emulate_ctxt *ctxt) argument 1094 em_fninit(struct x86_emulate_ctxt *ctxt) argument 1105 em_fnstcw(struct x86_emulate_ctxt *ctxt) argument 1121 em_fnstsw(struct x86_emulate_ctxt *ctxt) argument 1137 decode_register_operand(struct x86_emulate_ctxt *ctxt, struct operand *op) argument 1170 adjust_modrm_seg(struct x86_emulate_ctxt *ctxt, int base_reg) argument 1176 decode_modrm(struct x86_emulate_ctxt *ctxt, struct operand *op) argument 1313 decode_abs(struct x86_emulate_ctxt *ctxt, struct operand *op) argument 1334 fetch_bit_operand(struct x86_emulate_ctxt *ctxt) argument 1356 read_emulated(struct x86_emulate_ctxt *ctxt, unsigned long addr, void *dest, unsigned size) argument 1381 segmented_read(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, void *data, unsigned size) argument 1395 segmented_write(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, const void *data, unsigned size) argument 1410 segmented_cmpxchg(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, const void *orig_data, const void *data, unsigned size) argument 1425 pio_in_emulated(struct x86_emulate_ctxt *ctxt, unsigned int size, unsigned short port, void *dest) argument 1460 read_interrupt_descriptor(struct x86_emulate_ctxt *ctxt, u16 index, struct desc_struct *desc) argument 1475 get_descriptor_table_ptr(struct x86_emulate_ctxt *ctxt, u16 selector, struct desc_ptr *dt) argument 1496 get_descriptor_ptr(struct x86_emulate_ctxt *ctxt, u16 selector, ulong *desc_addr_p) argument 1525 read_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, struct desc_struct *desc, ulong *desc_addr_p) argument 1539 write_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, struct desc_struct *desc) argument 1552 __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg, u8 cpl, enum x86_transfer_type transfer, struct desc_struct *desc) argument 1757 load_segment_descriptor(struct x86_emulate_ctxt *ctxt, u16 selector, int seg) argument 1785 writeback(struct x86_emulate_ctxt *ctxt, struct operand *op) argument 1823 emulate_push(struct x86_emulate_ctxt *ctxt, const void *data, int len) argument 1834 em_push(struct x86_emulate_ctxt *ctxt) argument 1841 emulate_pop(struct x86_emulate_ctxt *ctxt, void *dest, int len) argument 1857 em_pop(struct x86_emulate_ctxt *ctxt) argument 1862 emulate_popf(struct x86_emulate_ctxt *ctxt, void *dest, int len) argument 1905 em_popf(struct x86_emulate_ctxt *ctxt) argument 1913 em_enter(struct x86_emulate_ctxt *ctxt) argument 1935 em_leave(struct x86_emulate_ctxt *ctxt) argument 1942 em_push_sreg(struct x86_emulate_ctxt *ctxt) argument 1955 em_pop_sreg(struct x86_emulate_ctxt *ctxt) argument 1974 em_pusha(struct x86_emulate_ctxt *ctxt) argument 1994 em_pushf(struct x86_emulate_ctxt *ctxt) argument 2000 em_popa(struct x86_emulate_ctxt *ctxt) argument 2021 __emulate_int_real(struct x86_emulate_ctxt *ctxt, int irq) argument 2070 emulate_int_real(struct x86_emulate_ctxt *ctxt, int irq) argument 2081 emulate_int(struct x86_emulate_ctxt *ctxt, int irq) argument 2096 emulate_iret_real(struct x86_emulate_ctxt *ctxt) argument 2152 em_iret(struct x86_emulate_ctxt *ctxt) argument 2167 em_jmp_far(struct x86_emulate_ctxt *ctxt) argument 2190 em_jmp_abs(struct x86_emulate_ctxt *ctxt) argument 2195 em_call_near_abs(struct x86_emulate_ctxt *ctxt) argument 2209 em_cmpxchg8b(struct x86_emulate_ctxt *ctxt) argument 2230 em_ret(struct x86_emulate_ctxt *ctxt) argument 2242 em_ret_far(struct x86_emulate_ctxt *ctxt) argument 2269 em_ret_far_imm(struct x86_emulate_ctxt *ctxt) argument 2280 em_cmpxchg(struct x86_emulate_ctxt *ctxt) argument 2304 em_lseg(struct x86_emulate_ctxt *ctxt) argument 2320 em_rsm(struct x86_emulate_ctxt *ctxt) argument 2357 vendor_intel(struct x86_emulate_ctxt *ctxt) argument 2366 em_syscall_is_enabled(struct x86_emulate_ctxt *ctxt) argument 2401 em_syscall(struct x86_emulate_ctxt *ctxt) argument 2460 em_sysenter(struct x86_emulate_ctxt *ctxt) argument 2513 em_sysexit(struct x86_emulate_ctxt *ctxt) argument 2573 emulator_bad_iopl(struct x86_emulate_ctxt *ctxt) argument 2587 emulator_io_port_access_allowed(struct x86_emulate_ctxt *ctxt, u16 port, u16 len) argument 2628 emulator_io_permitted(struct x86_emulate_ctxt *ctxt, u16 port, u16 len) argument 2643 string_registers_quirk(struct x86_emulate_ctxt *ctxt) argument 2667 save_state_to_tss16(struct x86_emulate_ctxt *ctxt, struct tss_segment_16 *tss) argument 2688 load_state_from_tss16(struct x86_emulate_ctxt *ctxt, struct tss_segment_16 *tss) argument 2745 task_switch_16(struct x86_emulate_ctxt *ctxt, u16 old_tss_sel, ulong old_tss_base, struct desc_struct *new_desc) argument 2779 save_state_to_tss32(struct x86_emulate_ctxt *ctxt, struct tss_segment_32 *tss) argument 2802 load_state_from_tss32(struct x86_emulate_ctxt *ctxt, struct tss_segment_32 *tss) argument 2883 task_switch_32(struct x86_emulate_ctxt *ctxt, u16 old_tss_sel, ulong old_tss_base, struct desc_struct *new_desc) argument 2921 emulator_do_task_switch(struct x86_emulate_ctxt *ctxt, u16 tss_selector, int idt_index, int reason, bool has_error_code, u32 error_code) argument 3022 emulator_task_switch(struct x86_emulate_ctxt *ctxt, u16 tss_selector, int idt_index, int reason, bool has_error_code, u32 error_code) argument 3043 string_addr_inc(struct x86_emulate_ctxt *ctxt, int reg, struct operand *op) argument 3052 em_das(struct x86_emulate_ctxt *ctxt) argument 3090 em_aam(struct x86_emulate_ctxt *ctxt) argument 3112 em_aad(struct x86_emulate_ctxt *ctxt) argument 3130 em_call(struct x86_emulate_ctxt *ctxt) argument 3142 em_call_far(struct x86_emulate_ctxt *ctxt) argument 3186 em_ret_near_imm(struct x86_emulate_ctxt *ctxt) argument 3201 em_xchg(struct x86_emulate_ctxt *ctxt) argument 3213 em_imul_3op(struct x86_emulate_ctxt *ctxt) argument 3219 em_cwd(struct x86_emulate_ctxt *ctxt) argument 3229 em_rdpid(struct x86_emulate_ctxt *ctxt) argument 3241 em_rdtsc(struct x86_emulate_ctxt *ctxt) argument 3251 em_rdpmc(struct x86_emulate_ctxt *ctxt) argument 3262 em_mov(struct x86_emulate_ctxt *ctxt) argument 3268 em_movbe(struct x86_emulate_ctxt *ctxt) argument 3301 em_cr_write(struct x86_emulate_ctxt *ctxt) argument 3325 em_dr_write(struct x86_emulate_ctxt *ctxt) argument 3343 em_wrmsr(struct x86_emulate_ctxt *ctxt) argument 3359 em_rdmsr(struct x86_emulate_ctxt *ctxt) argument 3377 em_store_sreg(struct x86_emulate_ctxt *ctxt, int segment) argument 3390 em_mov_rm_sreg(struct x86_emulate_ctxt *ctxt) argument 3398 em_mov_sreg_rm(struct x86_emulate_ctxt *ctxt) argument 3413 em_sldt(struct x86_emulate_ctxt *ctxt) argument 3418 em_lldt(struct x86_emulate_ctxt *ctxt) argument 3427 em_str(struct x86_emulate_ctxt *ctxt) argument 3432 em_ltr(struct x86_emulate_ctxt *ctxt) argument 3441 em_invlpg(struct x86_emulate_ctxt *ctxt) argument 3456 em_clts(struct x86_emulate_ctxt *ctxt) argument 3466 em_hypercall(struct x86_emulate_ctxt *ctxt) argument 3480 emulate_store_desc_ptr(struct x86_emulate_ctxt *ctxt, void (*get)(struct x86_emulate_ctxt *ctxt, struct desc_ptr *ptr)) argument 3503 em_sgdt(struct x86_emulate_ctxt *ctxt) argument 3508 em_sidt(struct x86_emulate_ctxt *ctxt) argument 3513 em_lgdt_lidt(struct x86_emulate_ctxt *ctxt, bool lgdt) argument 3537 em_lgdt(struct x86_emulate_ctxt *ctxt) argument 3542 em_lidt(struct x86_emulate_ctxt *ctxt) argument 3547 em_smsw(struct x86_emulate_ctxt *ctxt) argument 3559 em_lmsw(struct x86_emulate_ctxt *ctxt) argument 3567 em_loop(struct x86_emulate_ctxt *ctxt) argument 3579 em_jcxz(struct x86_emulate_ctxt *ctxt) argument 3589 em_in(struct x86_emulate_ctxt *ctxt) argument 3598 em_out(struct x86_emulate_ctxt *ctxt) argument 3607 em_cli(struct x86_emulate_ctxt *ctxt) argument 3616 em_sti(struct x86_emulate_ctxt *ctxt) argument 3626 em_cpuid(struct x86_emulate_ctxt *ctxt) argument 3647 em_sahf(struct x86_emulate_ctxt *ctxt) argument 3660 em_lahf(struct x86_emulate_ctxt *ctxt) argument 3667 em_bswap(struct x86_emulate_ctxt *ctxt) argument 3682 em_clflush(struct x86_emulate_ctxt *ctxt) argument 3688 em_clflushopt(struct x86_emulate_ctxt *ctxt) argument 3694 em_movsxd(struct x86_emulate_ctxt *ctxt) argument 3700 check_fxsr(struct x86_emulate_ctxt *ctxt) argument 3727 fxstate_size(struct x86_emulate_ctxt *ctxt) argument 3755 em_fxsave(struct x86_emulate_ctxt *ctxt) argument 3797 em_fxrstor(struct x86_emulate_ctxt *ctxt) argument 3834 em_xsetbv(struct x86_emulate_ctxt *ctxt) argument 3863 check_cr_access(struct x86_emulate_ctxt *ctxt) argument 3871 check_dr_read(struct x86_emulate_ctxt *ctxt) argument 3896 check_dr_write(struct x86_emulate_ctxt *ctxt) argument 3907 check_svme(struct x86_emulate_ctxt *ctxt) argument 3919 check_svme_pa(struct x86_emulate_ctxt *ctxt) argument 3930 check_rdtsc(struct x86_emulate_ctxt *ctxt) argument 3940 check_rdpmc(struct x86_emulate_ctxt *ctxt) argument 3964 check_perm_in(struct x86_emulate_ctxt *ctxt) argument 3973 check_perm_out(struct x86_emulate_ctxt *ctxt) argument 4540 imm_size(struct x86_emulate_ctxt *ctxt) argument 4550 decode_imm(struct x86_emulate_ctxt *ctxt, struct operand *op, unsigned size, bool sign_extension) argument 4590 decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, unsigned d) argument 4756 x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len, int emulation_type) argument 5055 x86_page_table_writing_insn(struct x86_emulate_ctxt *ctxt) argument 5060 string_insn_completed(struct x86_emulate_ctxt *ctxt) argument 5080 flush_pending_x87_faults(struct x86_emulate_ctxt *ctxt) argument 5100 fastop(struct x86_emulate_ctxt *ctxt, fastop_t fop) argument 5118 init_decode_cache(struct x86_emulate_ctxt *ctxt) argument 5133 x86_emulate_insn(struct x86_emulate_ctxt *ctxt) argument 5485 emulator_invalidate_register_cache(struct x86_emulate_ctxt *ctxt) argument 5490 emulator_writeback_register_cache(struct x86_emulate_ctxt *ctxt) argument 5495 emulator_can_use_gpa(struct x86_emulate_ctxt *ctxt) argument [all...] |
H A D | kvm_emulate.h | 98 void (*vm_bugged)(struct x86_emulate_ctxt *ctxt); 104 ulong (*read_gpr)(struct x86_emulate_ctxt *ctxt, unsigned reg); 111 void (*write_gpr)(struct x86_emulate_ctxt *ctxt, unsigned reg, ulong val); 120 int (*read_std)(struct x86_emulate_ctxt *ctxt, 133 int (*write_std)(struct x86_emulate_ctxt *ctxt, 143 int (*fetch)(struct x86_emulate_ctxt *ctxt, 153 int (*read_emulated)(struct x86_emulate_ctxt *ctxt, 164 int (*write_emulated)(struct x86_emulate_ctxt *ctxt, 177 int (*cmpxchg_emulated)(struct x86_emulate_ctxt *ctxt, 183 void (*invlpg)(struct x86_emulate_ctxt *ctxt, ulon 519 reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr) argument 531 reg_write(struct x86_emulate_ctxt *ctxt, unsigned nr) argument 544 reg_rmw(struct x86_emulate_ctxt *ctxt, unsigned nr) argument [all...] |
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_recvfrom.c | 87 * from rqstp::rq_pages into ctxt::pages. The consumed elements of 122 struct svc_rdma_recv_ctxt *ctxt; local 126 ctxt = kzalloc_node(sizeof(*ctxt), GFP_KERNEL, node); 127 if (!ctxt) 137 svc_rdma_recv_cid_init(rdma, &ctxt->rc_cid); 138 pcl_init(&ctxt->rc_call_pcl); 139 pcl_init(&ctxt->rc_read_pcl); 140 pcl_init(&ctxt->rc_write_pcl); 141 pcl_init(&ctxt 163 svc_rdma_recv_ctxt_destroy(struct svcxprt_rdma *rdma, struct svc_rdma_recv_ctxt *ctxt) argument 179 struct svc_rdma_recv_ctxt *ctxt; local 196 struct svc_rdma_recv_ctxt *ctxt; local 214 svc_rdma_recv_ctxt_put(struct svcxprt_rdma *rdma, struct svc_rdma_recv_ctxt *ctxt) argument 243 struct svc_rdma_recv_ctxt *ctxt = vctxt; local 255 struct svc_rdma_recv_ctxt *ctxt; local 311 struct svc_rdma_recv_ctxt *ctxt; local 332 struct svc_rdma_recv_ctxt *ctxt; local 385 struct svc_rdma_recv_ctxt *ctxt; local 397 svc_rdma_build_arg_xdr(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 598 svc_rdma_get_inv_rkey(struct svcxprt_rdma *rdma, struct svc_rdma_recv_ctxt *ctxt) argument 778 svc_rdma_read_complete_one(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 815 svc_rdma_read_complete_multiple(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 834 svc_rdma_read_complete_pzrc(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 848 svc_rdma_read_complete(struct svc_rqst *rqstp, struct svc_rdma_recv_ctxt *ctxt) argument 921 struct svc_rdma_recv_ctxt *ctxt; local [all...] |
H A D | svc_rdma_sendto.c | 80 * ctxt, the Send WR is posted, and sendto returns. 120 struct svc_rdma_send_ctxt *ctxt; local 125 ctxt = kzalloc_node(struct_size(ctxt, sc_sges, rdma->sc_max_send_sges), 127 if (!ctxt) 137 svc_rdma_send_cid_init(rdma, &ctxt->sc_cid); 139 ctxt->sc_rdma = rdma; 140 ctxt->sc_send_wr.next = NULL; 141 ctxt->sc_send_wr.wr_cqe = &ctxt 169 struct svc_rdma_send_ctxt *ctxt; local 192 struct svc_rdma_send_ctxt *ctxt; local 224 svc_rdma_send_ctxt_release(struct svcxprt_rdma *rdma, struct svc_rdma_send_ctxt *ctxt) argument 253 struct svc_rdma_send_ctxt *ctxt; local 266 svc_rdma_send_ctxt_put(struct svcxprt_rdma *rdma, struct svc_rdma_send_ctxt *ctxt) argument 299 struct svc_rdma_send_ctxt *ctxt = local 338 svc_rdma_post_send(struct svcxprt_rdma *rdma, struct svc_rdma_send_ctxt *ctxt) argument 567 struct svc_rdma_send_ctxt *ctxt = args->md_ctxt; local 853 svc_rdma_save_io_pages(struct svc_rqst *rqstp, struct svc_rdma_send_ctxt *ctxt) argument [all...] |
H A D | svc_rdma_rw.c | 59 struct svc_rdma_rw_ctxt *ctxt; local 66 ctxt = llist_entry(node, struct svc_rdma_rw_ctxt, rw_node); 68 ctxt = kmalloc_node(struct_size(ctxt, rw_first_sgl, first_sgl_nents), 70 if (!ctxt) 73 INIT_LIST_HEAD(&ctxt->rw_list); 74 ctxt->rw_first_sgl_nents = first_sgl_nents; 77 ctxt->rw_sg_table.sgl = ctxt->rw_first_sgl; 78 if (sg_alloc_table_chained(&ctxt 91 __svc_rdma_put_rw_ctxt(struct svc_rdma_rw_ctxt *ctxt, struct llist_head *list) argument 98 svc_rdma_put_rw_ctxt(struct svcxprt_rdma *rdma, struct svc_rdma_rw_ctxt *ctxt) argument 111 struct svc_rdma_rw_ctxt *ctxt; local 131 svc_rdma_rw_ctx_init(struct svcxprt_rdma *rdma, struct svc_rdma_rw_ctxt *ctxt, u64 offset, u32 handle, enum dma_data_direction direction) argument 177 struct svc_rdma_rw_ctxt *ctxt; local 238 svc_rdma_reply_chunk_release(struct svcxprt_rdma *rdma, struct svc_rdma_send_ctxt *ctxt) argument 323 struct svc_rdma_recv_ctxt *ctxt; local 379 struct svc_rdma_rw_ctxt *ctxt; local 419 svc_rdma_vec_to_sg(struct svc_rdma_write_info *info, unsigned int len, struct svc_rdma_rw_ctxt *ctxt) argument 433 svc_rdma_pagelist_to_sg(struct svc_rdma_write_info *info, unsigned int remaining, struct svc_rdma_rw_ctxt *ctxt) argument 468 svc_rdma_build_writes(struct svc_rdma_write_info *info, void (*constructor)(struct svc_rdma_write_info *info, unsigned int len, struct svc_rdma_rw_ctxt *ctxt), unsigned int remaining) argument 477 struct svc_rdma_rw_ctxt *ctxt; local 738 struct svc_rdma_rw_ctxt *ctxt; local [all...] |
/linux-master/arch/arm64/kvm/hyp/vhe/ |
H A D | sysreg-sr.c | 28 void sysreg_save_host_state_vhe(struct kvm_cpu_context *ctxt) argument 30 __sysreg_save_common_state(ctxt); 34 void sysreg_save_guest_state_vhe(struct kvm_cpu_context *ctxt) argument 36 __sysreg_save_common_state(ctxt); 37 __sysreg_save_el2_return_state(ctxt); 41 void sysreg_restore_host_state_vhe(struct kvm_cpu_context *ctxt) argument 43 __sysreg_restore_common_state(ctxt); 47 void sysreg_restore_guest_state_vhe(struct kvm_cpu_context *ctxt) argument 49 __sysreg_restore_common_state(ctxt); 50 __sysreg_restore_el2_return_state(ctxt); [all...] |
/linux-master/kernel/printk/ |
H A D | nbcon.c | 182 * @ctxt: Pointer to an acquire context that contains 186 * @ctxt->seq is updated to the new value of @con::nbcon_seq (expanded to 191 static void nbcon_seq_try_update(struct nbcon_context *ctxt, u64 new_seq) argument 193 unsigned long nbcon_seq = __u64seq_to_ulseq(ctxt->seq); 194 struct console *con = ctxt->console; 198 ctxt->seq = new_seq; 200 ctxt->seq = nbcon_seq_read(con); 206 * @ctxt: The context of the caller 226 static int nbcon_context_try_acquire_direct(struct nbcon_context *ctxt, argument 230 struct console *con = ctxt 306 nbcon_context_try_acquire_requested(struct nbcon_context *ctxt, struct nbcon_state *cur) argument 389 nbcon_context_try_acquire_handover(struct nbcon_context *ctxt, struct nbcon_state *cur) argument 495 nbcon_context_try_acquire_hostile(struct nbcon_context *ctxt, struct nbcon_state *cur) argument 542 nbcon_context_try_acquire(struct nbcon_context *ctxt) argument 604 nbcon_context_release(struct nbcon_context *ctxt) argument 657 nbcon_context_can_proceed(struct nbcon_context *ctxt, struct nbcon_state *cur) argument 727 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); local 759 __nbcon_context_update_unsafe(struct nbcon_context *ctxt, bool unsafe) argument 801 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); local 821 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); local 846 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); local [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_vsi_vlan_lib.c | 93 struct ice_vsi_ctx *ctxt; local 96 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); 97 if (!ctxt) 104 ctxt->info.inner_vlan_flags = ICE_AQ_VSI_INNER_VLAN_TX_MODE_ALL; 107 ctxt->info.inner_vlan_flags |= (vsi->info.inner_vlan_flags & 110 ctxt->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_VLAN_VALID); 112 err = ice_update_vsi(hw, vsi->idx, ctxt, NULL); 119 vsi->info.inner_vlan_flags = ctxt->info.inner_vlan_flags; 121 kfree(ctxt); 133 struct ice_vsi_ctx *ctxt; local 238 struct ice_vsi_ctx *ctxt; local 291 struct ice_vsi_ctx *ctxt; local 323 struct ice_vsi_ctx *ctxt; local 467 struct ice_vsi_ctx *ctxt; local 525 struct ice_vsi_ctx *ctxt; local 576 struct ice_vsi_ctx *ctxt; local 632 struct ice_vsi_ctx *ctxt; local 689 struct ice_vsi_ctx *ctxt; local 766 struct ice_vsi_ctx *ctxt; local [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | phy-ctxt.c | 69 static void iwl_mvm_phy_ctxt_cmd_hdr(struct iwl_mvm_phy_ctxt *ctxt, argument 73 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(ctxt->id, 74 ctxt->color)); 79 struct iwl_mvm_phy_ctxt *ctxt, 97 if (active_cnt == 1 && iwl_mvm_rx_diversity_allowed(mvm, ctxt)) { 117 struct iwl_mvm_phy_ctxt *ctxt, 128 iwl_mvm_phy_ctxt_set_rxchain(mvm, ctxt, &tail->rxchain_info, 138 struct iwl_mvm_phy_ctxt *ctxt, 151 iwl_mvm_phy_ctxt_set_rxchain(mvm, ctxt, &cmd->rxchain_info, 155 int iwl_mvm_phy_send_rlc(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, argument 78 iwl_mvm_phy_ctxt_set_rxchain(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, __le32 *rxchain_info, u8 chains_static, u8 chains_dynamic) argument 116 iwl_mvm_phy_ctxt_cmd_data_v1(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, struct iwl_phy_context_cmd_v1 *cmd, const struct cfg80211_chan_def *chandef, u8 chains_static, u8 chains_dynamic) argument 137 iwl_mvm_phy_ctxt_cmd_data(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, struct iwl_phy_context_cmd *cmd, const struct cfg80211_chan_def *chandef, u8 chains_static, u8 chains_dynamic) argument 198 iwl_mvm_phy_ctxt_apply(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic, u32 action) argument 268 iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic) argument 299 iwl_mvm_phy_ctxt_ref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) argument 315 iwl_mvm_phy_ctxt_changed(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, const struct cfg80211_chan_def *chandef, const struct cfg80211_chan_def *ap, u8 chains_static, u8 chains_dynamic) argument 360 iwl_mvm_phy_ctxt_unref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) argument [all...] |
/linux-master/arch/x86/power/ |
H A D | cpu.c | 39 static void msr_save_context(struct saved_context *ctxt) argument 41 struct saved_msr *msr = ctxt->saved_msrs.array; 42 struct saved_msr *end = msr + ctxt->saved_msrs.num; 51 static void msr_restore_context(struct saved_context *ctxt) argument 53 struct saved_msr *msr = ctxt->saved_msrs.array; 54 struct saved_msr *end = msr + ctxt->saved_msrs.num; 67 * @ctxt: Structure to store the registers contents in. 79 static void __save_processor_state(struct saved_context *ctxt) argument 89 store_idt(&ctxt->idt); 97 ctxt 195 __restore_processor_state(struct saved_context *ctxt) argument [all...] |
/linux-master/fs/bcachefs/ |
H A D | move.c | 114 struct moving_context *ctxt = io->write.ctxt; local 121 mutex_lock(&ctxt->lock); 123 wake_up(&ctxt->wait); 124 mutex_unlock(&ctxt->lock); 132 struct moving_context *ctxt = io->write.ctxt; local 135 ctxt->write_error = true; 137 atomic_sub(io->write_sectors, &io->write.ctxt->write_sectors); 138 atomic_dec(&io->write.ctxt 166 bch2_moving_ctxt_next_pending_write(struct moving_context *ctxt) argument 177 struct moving_context *ctxt = io->write.ctxt; local 187 bch2_moving_ctxt_do_pending_writes(struct moving_context *ctxt) argument 198 bch2_move_ctxt_wait_for_io(struct moving_context *ctxt) argument 207 bch2_moving_ctxt_flush_all(struct moving_context *ctxt) argument 214 bch2_moving_ctxt_exit(struct moving_context *ctxt) argument 233 bch2_moving_ctxt_init(struct moving_context *ctxt, struct bch_fs *c, struct bch_ratelimit *rate, struct bch_move_stats *stats, struct write_point_specifier wp, bool wait_on_copygc) argument 273 bch2_move_extent(struct moving_context *ctxt, struct move_bucket_in_flight *bucket_in_flight, struct btree_iter *iter, struct bkey_s_c k, struct bch_io_opts io_opts, struct data_update_opts data_opts) argument 487 bch2_move_ratelimit(struct moving_context *ctxt) argument 531 bch2_move_data_btree(struct moving_context *ctxt, struct bpos start, struct bpos end, move_pred_fn pred, void *arg, enum btree_id btree_id) argument 628 __bch2_move_data(struct moving_context *ctxt, struct bbpos start, struct bbpos end, move_pred_fn pred, void *arg) argument 667 struct moving_context ctxt; local 677 bch2_evacuate_bucket(struct moving_context *ctxt, struct move_bucket_in_flight *bucket_in_flight, struct bpos bucket, int gen, struct data_update_opts _data_opts) argument 847 struct moving_context ctxt; local 1163 bch2_moving_ctxt_to_text(struct printbuf *out, struct bch_fs *c, struct moving_context *ctxt) argument 1196 struct moving_context *ctxt; local [all...] |
H A D | movinggc.c | 104 static void move_buckets_wait(struct moving_context *ctxt, argument 113 move_ctxt_wait_event(ctxt, !atomic_read(&i->count)); 131 bch2_trans_unlock_long(ctxt->trans); 142 static int bch2_copygc_get_buckets(struct moving_context *ctxt, argument 146 struct btree_trans *trans = ctxt->trans; 152 move_buckets_wait(ctxt, buckets_in_flight, false); 198 static int bch2_copygc(struct moving_context *ctxt, argument 202 struct btree_trans *trans = ctxt->trans; 209 u64 moved = atomic64_read(&ctxt->stats->sectors_moved); 212 ret = bch2_copygc_get_buckets(ctxt, buckets_in_fligh 309 struct moving_context ctxt; local [all...] |
H A D | rebalance.c | 192 static int do_rebalance_extent(struct moving_context *ctxt, argument 196 struct btree_trans *trans = ctxt->trans; 205 ctxt->stats = &r->work_stats; 219 atomic64_add(k.k->size, &ctxt->stats->sectors_seen); 228 ret = bch2_move_extent(ctxt, NULL, extent_iter, k, io_opts, data_opts); 232 bch2_move_ctxt_wait_for_io(ctxt); 269 static int do_rebalance_scan(struct moving_context *ctxt, u64 inum, u64 cookie) argument 271 struct btree_trans *trans = ctxt->trans; 276 ctxt->stats = &r->scan_stats; 288 ret = __bch2_move_data(ctxt, 317 do_rebalance(struct moving_context *ctxt) argument 386 struct moving_context ctxt; local [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | trace_ctxts.h | 25 __field(unsigned int, ctxt) 37 __entry->ctxt = uctxt->ctxt; 48 TP_printk("[%s] ctxt %u:%u " UCTXT_FMT, 50 __entry->ctxt, 66 TP_PROTO(struct hfi1_devdata *dd, unsigned int ctxt, 69 TP_ARGS(dd, ctxt, subctxt, cinfo), 71 __field(unsigned int, ctxt) 80 __entry->ctxt = ctxt; [all...] |
H A D | trace_rx.h | 29 __field(u32, ctxt) 38 __entry->ctxt = packet->rcd->ctxt; 46 "[%s] ctxt %d eflags 0x%llx etype %d,%s hlen %d tlen %d updegr %d etail %d", 48 __entry->ctxt, 62 __field(u32, ctxt) 67 __entry->ctxt = rcd->ctxt; 71 TP_printk("[%s] ctxt %d SlowPath: %d DmaRtail: %d", 73 __entry->ctxt, [all...] |
/linux-master/arch/arm64/include/asm/ |
H A D | kvm_asm.h | 303 .macro get_vcpu_ptr vcpu, ctxt 304 get_host_ctxt \ctxt, \vcpu variable 305 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU] 308 .macro get_loaded_vcpu vcpu, ctxt 309 adr_this_cpu \ctxt, kvm_hyp_ctxt, \vcpu variable 310 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU] 313 .macro set_loaded_vcpu vcpu, ctxt, tmp variable 314 adr_this_cpu \ctxt, kvm_hyp_ctxt, \tmp variable 315 str \vcpu, [\ctxt, #HOST_CONTEXT_VCPU] 342 .macro save_callee_saved_regs ctxt [all...] |
/linux-master/arch/x86/kernel/ |
H A D | sev.c | 293 static int vc_fetch_insn_kernel(struct es_em_ctxt *ctxt, argument 296 return copy_from_kernel_nofault(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); 299 static enum es_result __vc_decode_user_insn(struct es_em_ctxt *ctxt) argument 304 insn_bytes = insn_fetch_from_user_inatomic(ctxt->regs, buffer); 307 ctxt->fi.vector = X86_TRAP_PF; 308 ctxt->fi.error_code = X86_PF_INSTR | X86_PF_USER; 309 ctxt->fi.cr2 = ctxt->regs->ip; 313 ctxt->fi.vector = X86_TRAP_GP; 314 ctxt 328 __vc_decode_kern_insn(struct es_em_ctxt *ctxt) argument 348 vc_decode_insn(struct es_em_ctxt *ctxt) argument 356 vc_write_mem(struct es_em_ctxt *ctxt, char *dst, char *buf, size_t size) argument 435 vc_read_mem(struct es_em_ctxt *ctxt, char *src, char *buf, size_t size) argument 513 vc_slow_virt_to_phys(struct ghcb *ghcb, struct es_em_ctxt *ctxt, unsigned long vaddr, phys_addr_t *paddr) argument 548 vc_ioio_check(struct es_em_ctxt *ctxt, u16 port, size_t size) argument 1203 vc_handle_msr(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1404 vc_early_forward_exception(struct es_em_ctxt *ctxt) argument 1415 vc_insn_get_rm(struct es_em_ctxt *ctxt) argument 1430 vc_do_mmio(struct ghcb *ghcb, struct es_em_ctxt *ctxt, unsigned int bytes, bool read) argument 1481 vc_handle_mmio_movs(struct es_em_ctxt *ctxt, unsigned int bytes) argument 1529 vc_handle_mmio(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1610 vc_handle_dr7_write(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1651 vc_handle_dr7_read(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1671 vc_handle_wbinvd(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1677 vc_handle_rdpmc(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1696 vc_handle_monitor(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1706 vc_handle_mwait(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1713 vc_handle_vmmcall(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1745 vc_handle_trap_ac(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 1758 vc_handle_exitcode(struct es_em_ctxt *ctxt, struct ghcb *ghcb, unsigned long exit_code) argument 1822 vc_forward_exception(struct es_em_ctxt *ctxt) argument 1872 struct es_em_ctxt ctxt; local 2015 struct es_em_ctxt ctxt; local 2197 struct es_em_ctxt ctxt; local [all...] |
H A D | sev-shared.c | 184 static enum es_result vc_init_em_ctxt(struct es_em_ctxt *ctxt, argument 190 memset(ctxt, 0, sizeof(*ctxt)); 191 ctxt->regs = regs; 194 ret = vc_decode_insn(ctxt); 199 static void vc_finish_insn(struct es_em_ctxt *ctxt) argument 201 ctxt->regs->ip += ctxt->insn.length; 204 static enum es_result verify_exception_info(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 220 ctxt 232 sev_es_ghcb_hv_call(struct ghcb *ghcb, struct es_em_ctxt *ctxt, u64 exit_code, u64 exit_info_1, u64 exit_info_2) argument 289 __sev_cpuid_hv_ghcb(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) argument 322 sev_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) argument 431 snp_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) argument 437 snp_cpuid_postprocess(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) argument 533 snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf) argument 642 vc_insn_string_check(struct es_em_ctxt *ctxt, unsigned long address, bool write) argument 659 vc_insn_string_read(struct es_em_ctxt *ctxt, void *src, char *buf, unsigned int data_size, unsigned int count, bool backwards) argument 685 vc_insn_string_write(struct es_em_ctxt *ctxt, void *dst, char *buf, unsigned int data_size, unsigned int count, bool backwards) argument 730 vc_ioio_exitinfo(struct es_em_ctxt *ctxt, u64 *exitinfo) argument 825 vc_handle_ioio(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 933 vc_handle_cpuid_snp(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 952 vc_handle_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt) argument 994 vc_handle_rdtsc(struct ghcb *ghcb, struct es_em_ctxt *ctxt, unsigned long exit_code) argument 1120 struct es_em_ctxt ctxt; local 1182 vc_check_opcode_bytes(struct es_em_ctxt *ctxt, unsigned long exit_code) argument [all...] |
/linux-master/arch/x86/xen/ |
H A D | smp_pv.c | 230 struct vcpu_guest_context *ctxt; local 237 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); 238 if (ctxt == NULL) { 250 ctxt->user_regs.eip = (unsigned long)asm_cpu_bringup_and_idle; 251 ctxt->flags = VGCF_IN_KERNEL; 252 ctxt->user_regs.eflags = 0x1000; /* IOPL_RING1 */ 253 ctxt->user_regs.ds = __USER_DS; 254 ctxt->user_regs.es = __USER_DS; 255 ctxt [all...] |
H A D | pmu.c | 30 #define field_offset(ctxt, field) ((void *)((uintptr_t)ctxt + \ 31 (uintptr_t)ctxt->field)) 202 struct xen_pmu_intel_ctxt *ctxt; local 212 ctxt = &xenpmu_data->pmu.c.intel; 216 reg = &ctxt->global_ovf_ctrl; 219 reg = &ctxt->global_status; 222 reg = &ctxt->global_ctrl; 225 reg = &ctxt->fixed_ctrl; 230 fix_counters = field_offset(ctxt, fixed_counter 265 struct xen_pmu_amd_ctxt *ctxt; local 352 struct xen_pmu_amd_ctxt *ctxt; local 372 struct xen_pmu_intel_ctxt *ctxt; local [all...] |
/linux-master/fs/nilfs2/ |
H A D | btnode.c | 174 struct nilfs_btnode_chkey_ctxt *ctxt) 178 __u64 oldkey = ctxt->oldkey, newkey = ctxt->newkey; 184 obh = ctxt->bh; 185 ctxt->newbh = NULL; 224 ctxt->newbh = nbh; 237 struct nilfs_btnode_chkey_ctxt *ctxt) 239 struct buffer_head *obh = ctxt->bh, *nbh = ctxt->newbh; 240 __u64 oldkey = ctxt 173 nilfs_btnode_prepare_change_key(struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *ctxt) argument 236 nilfs_btnode_commit_change_key(struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *ctxt) argument 276 nilfs_btnode_abort_change_key(struct address_space *btnc, struct nilfs_btnode_chkey_ctxt *ctxt) argument [all...] |
/linux-master/arch/x86/kernel/cpu/mtrr/ |
H A D | mtrr.h | 49 void set_mtrr_done(struct set_mtrr_context *ctxt); 50 void set_mtrr_cache_disable(struct set_mtrr_context *ctxt); 51 void set_mtrr_prepare_save(struct set_mtrr_context *ctxt);
|