Home
last modified time | relevance | path

Searched refs:ctxt (Results 1 – 25 of 68) sorted by relevance

123

/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dsysreg-sr.h19 static inline bool ctxt_has_s1poe(struct kvm_cpu_context *ctxt);
21 static inline struct kvm_vcpu *ctxt_to_vcpu(struct kvm_cpu_context *ctxt) in ctxt_to_vcpu() argument
23 struct kvm_vcpu *vcpu = ctxt->__hyp_running_vcpu; in ctxt_to_vcpu()
26 vcpu = container_of(ctxt, struct kvm_vcpu, arch.ctxt); in ctxt_to_vcpu()
31 static inline bool ctxt_is_guest(struct kvm_cpu_context *ctxt) in ctxt_is_guest() argument
33 return host_data_ptr(host_ctxt) != ctxt; in ctxt_is_guest()
36 static inline u64 *ctxt_mdscr_el1(struct kvm_cpu_context *ctxt) in ctxt_mdscr_el1() argument
38 struct kvm_vcpu *vcpu = ctxt_to_vcpu(ctxt); in ctxt_mdscr_el1()
40 if (ctxt_is_guest(ctxt) && kvm_host_owns_debug_regs(vcpu)) in ctxt_mdscr_el1()
43 return &ctxt_sys_reg(ctxt, MDSCR_EL1); in ctxt_mdscr_el1()
[all …]
H A Ddebug-sr.h107 struct kvm_cpu_context *ctxt) in __debug_save_state() argument
117 ctxt_sys_reg(ctxt, MDCCINT_EL1) = read_sysreg(mdccint_el1); in __debug_save_state()
121 struct kvm_cpu_context *ctxt) in __debug_restore_state() argument
131 write_sysreg(ctxt_sys_reg(ctxt, MDCCINT_EL1), mdccint_el1); in __debug_restore_state()
145 guest_ctxt = &vcpu->arch.ctxt; in __debug_switch_to_guest_common()
164 guest_ctxt = &vcpu->arch.ctxt; in __debug_switch_to_host_common()
H A Dswitch.h425 hcr = __ctxt_sys_reg(&vcpu->arch.ctxt, HCR_EL2); in ___deactivate_traps()
478 fpsimd_load_common(&vcpu->arch.ctxt.fp_regs); in __hyp_sve_restore_guest()
633 fpsimd_load_state(&vcpu->arch.ctxt.fp_regs); in kvm_hyp_handle_fpsimd()
710 static inline u64 hyp_timer_get_offset(struct arch_timer_context *ctxt) in hyp_timer_get_offset() argument
714 if (ctxt->offset.vm_offset) in hyp_timer_get_offset()
715 offset += *kern_hyp_va(ctxt->offset.vm_offset); in hyp_timer_get_offset()
716 if (ctxt->offset.vcpu_offset) in hyp_timer_get_offset()
717 offset += *kern_hyp_va(ctxt->offset.vcpu_offset); in hyp_timer_get_offset()
722 static inline u64 compute_counter_value(struct arch_timer_context *ctxt) in compute_counter_value() argument
724 return arch_timer_read_cntpct_el0() - hyp_timer_get_offset(ctxt); in compute_counter_value()
[all …]
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_recvfrom.c123 struct svc_rdma_recv_ctxt *ctxt; in svc_rdma_recv_ctxt_alloc() local
129 ctxt = kzalloc_node(struct_size(ctxt, rc_pages, pages), in svc_rdma_recv_ctxt_alloc()
131 if (!ctxt) in svc_rdma_recv_ctxt_alloc()
133 ctxt->rc_maxpages = pages; in svc_rdma_recv_ctxt_alloc()
142 svc_rdma_recv_cid_init(rdma, &ctxt->rc_cid); in svc_rdma_recv_ctxt_alloc()
143 pcl_init(&ctxt->rc_call_pcl); in svc_rdma_recv_ctxt_alloc()
144 pcl_init(&ctxt->rc_read_pcl); in svc_rdma_recv_ctxt_alloc()
145 pcl_init(&ctxt->rc_write_pcl); in svc_rdma_recv_ctxt_alloc()
146 pcl_init(&ctxt->rc_reply_pcl); in svc_rdma_recv_ctxt_alloc()
148 ctxt->rc_recv_wr.next = NULL; in svc_rdma_recv_ctxt_alloc()
[all …]
H A Dsvc_rdma_sendto.c121 struct svc_rdma_send_ctxt *ctxt; in svc_rdma_send_ctxt_alloc() local
127 ctxt = kzalloc_node(struct_size(ctxt, sc_sges, rdma->sc_max_send_sges), in svc_rdma_send_ctxt_alloc()
129 if (!ctxt) in svc_rdma_send_ctxt_alloc()
132 ctxt->sc_pages = kcalloc_node(pages, sizeof(struct page *), in svc_rdma_send_ctxt_alloc()
134 if (!ctxt->sc_pages) in svc_rdma_send_ctxt_alloc()
136 ctxt->sc_maxpages = pages; in svc_rdma_send_ctxt_alloc()
145 svc_rdma_send_cid_init(rdma, &ctxt->sc_cid); in svc_rdma_send_ctxt_alloc()
147 ctxt->sc_rdma = rdma; in svc_rdma_send_ctxt_alloc()
148 ctxt->sc_send_wr.next = NULL; in svc_rdma_send_ctxt_alloc()
149 ctxt->sc_send_wr.wr_cqe = &ctxt->sc_cqe; in svc_rdma_send_ctxt_alloc()
[all …]
H A Dsvc_rdma_rw.c50 struct svc_rdma_rw_ctxt *ctxt);
64 struct svc_rdma_rw_ctxt *ctxt; in svc_rdma_get_rw_ctxt() local
71 ctxt = llist_entry(node, struct svc_rdma_rw_ctxt, rw_node); in svc_rdma_get_rw_ctxt()
73 ctxt = kmalloc_node(struct_size(ctxt, rw_first_bvec, in svc_rdma_get_rw_ctxt()
76 if (!ctxt) in svc_rdma_get_rw_ctxt()
79 INIT_LIST_HEAD(&ctxt->rw_list); in svc_rdma_get_rw_ctxt()
80 ctxt->rw_first_bvec_nents = first_bvec_nents; in svc_rdma_get_rw_ctxt()
83 if (nr_bvec <= ctxt->rw_first_bvec_nents) { in svc_rdma_get_rw_ctxt()
84 ctxt->rw_bvec = ctxt->rw_first_bvec; in svc_rdma_get_rw_ctxt()
86 ctxt->rw_bvec = kmalloc_array_node(nr_bvec, in svc_rdma_get_rw_ctxt()
[all …]
H A Dsvc_rdma_backchannel.c140 struct svc_rdma_send_ctxt *ctxt; in rpcrdma_bc_send_request() local
144 ctxt = svc_rdma_send_ctxt_get(rdma); in rpcrdma_bc_send_request()
145 if (!ctxt) in rpcrdma_bc_send_request()
148 p = xdr_reserve_space(&ctxt->sc_stream, RPCRDMA_HDRLEN_MIN); in rpcrdma_bc_send_request()
160 rc = svc_rdma_bc_sendto(rdma, rqst, ctxt); in rpcrdma_bc_send_request()
166 svc_rdma_send_ctxt_put(rdma, ctxt); in rpcrdma_bc_send_request()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_vsi_vlan_lib.c94 struct ice_vsi_ctx *ctxt; in ice_vsi_manage_vlan_insertion() local
97 ctxt = kzalloc_obj(*ctxt); in ice_vsi_manage_vlan_insertion()
98 if (!ctxt) in ice_vsi_manage_vlan_insertion()
105 ctxt->info.inner_vlan_flags = ICE_AQ_VSI_INNER_VLAN_TX_MODE_ALL; in ice_vsi_manage_vlan_insertion()
108 ctxt->info.inner_vlan_flags |= (vsi->info.inner_vlan_flags & in ice_vsi_manage_vlan_insertion()
111 ctxt->info.valid_sections = cpu_to_le16(ICE_AQ_VSI_PROP_VLAN_VALID); in ice_vsi_manage_vlan_insertion()
113 err = ice_update_vsi(hw, vsi->idx, ctxt, NULL); in ice_vsi_manage_vlan_insertion()
120 vsi->info.inner_vlan_flags = ctxt->info.inner_vlan_flags; in ice_vsi_manage_vlan_insertion()
122 kfree(ctxt); in ice_vsi_manage_vlan_insertion()
134 struct ice_vsi_ctx *ctxt; in ice_vsi_manage_vlan_stripping() local
[all …]
H A Dice_lib.c287 struct ice_vsi_ctx *ctxt; in ice_vsi_delete_from_hw() local
291 ctxt = kzalloc_obj(*ctxt); in ice_vsi_delete_from_hw()
292 if (!ctxt) in ice_vsi_delete_from_hw()
296 ctxt->vf_num = vsi->vf->vf_id; in ice_vsi_delete_from_hw()
297 ctxt->vsi_num = vsi->vsi_num; in ice_vsi_delete_from_hw()
299 memcpy(&ctxt->info, &vsi->info, sizeof(ctxt->info)); in ice_vsi_delete_from_hw()
301 status = ice_free_vsi(&pf->hw, vsi->idx, ctxt, false, NULL); in ice_vsi_delete_from_hw()
306 kfree(ctxt); in ice_vsi_delete_from_hw()
947 static void ice_set_dflt_vsi_ctx(struct ice_hw *hw, struct ice_vsi_ctx *ctxt) in ice_set_dflt_vsi_ctx() argument
951 memset(&ctxt->info, 0, sizeof(ctxt->info)); in ice_set_dflt_vsi_ctx()
[all …]
/linux/arch/x86/power/
H A Dcpu.c41 static void msr_save_context(struct saved_context *ctxt) in msr_save_context() argument
43 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_save_context()
44 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_save_context()
53 static void msr_restore_context(struct saved_context *ctxt) in msr_restore_context() argument
55 struct saved_msr *msr = ctxt->saved_msrs.array; in msr_restore_context()
56 struct saved_msr *end = msr + ctxt->saved_msrs.num; in msr_restore_context()
81 static void __save_processor_state(struct saved_context *ctxt) in __save_processor_state() argument
91 store_idt(&ctxt->idt); in __save_processor_state()
99 ctxt->gdt_desc.size = GDT_SIZE - 1; in __save_processor_state()
100 ctxt->gdt_desc.address = (unsigned long)get_cpu_gdt_rw(smp_processor_id()); in __save_processor_state()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dtrace_ctxts.h25 __field(unsigned int, ctxt)
37 __entry->ctxt = uctxt->ctxt;
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;
90 __entry->ctxt,
100 const char *hfi1_trace_print_rsm_hist(struct trace_seq *p, unsigned int ctxt);
102 TP_PROTO(unsigned int ctxt),
[all …]
H A Dtrace_misc.h75 __field(u32, ctxt)
83 __entry->ctxt = packet->rcd->ctxt;
92 __entry->ctxt,
/linux/arch/arm64/include/asm/
H A Dkvm_asm.h341 .macro get_vcpu_ptr vcpu, ctxt
342 get_host_ctxt \ctxt, \vcpu
343 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
346 .macro get_loaded_vcpu vcpu, ctxt
347 adr_this_cpu \ctxt, kvm_hyp_ctxt, \vcpu
348 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
351 .macro set_loaded_vcpu vcpu, ctxt, tmp
352 adr_this_cpu \ctxt, kvm_hyp_ctxt, \tmp
353 str \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
380 .macro save_callee_saved_regs ctxt
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dffa.c97 static void ffa_set_retval(struct kvm_cpu_context *ctxt, in ffa_set_retval() argument
100 cpu_reg(ctxt, 0) = res->a0; in ffa_set_retval()
101 cpu_reg(ctxt, 1) = res->a1; in ffa_set_retval()
102 cpu_reg(ctxt, 2) = res->a2; in ffa_set_retval()
103 cpu_reg(ctxt, 3) = res->a3; in ffa_set_retval()
104 cpu_reg(ctxt, 4) = res->a4; in ffa_set_retval()
105 cpu_reg(ctxt, 5) = res->a5; in ffa_set_retval()
106 cpu_reg(ctxt, 6) = res->a6; in ffa_set_retval()
107 cpu_reg(ctxt, 7) = res->a7; in ffa_set_retval()
126 cpu_reg(ctxt, 8) = res->a8; in ffa_set_retval()
[all …]
/linux/arch/x86/hyperv/
H A Dhv_crash.c200 struct hv_crash_ctxt *ctxt = &hv_crash_ctxt; in hv_hvcrash_ctxt_save() local
202 ctxt->rsp = current_stack_pointer; in hv_hvcrash_ctxt_save()
204 ctxt->cr0 = native_read_cr0(); in hv_hvcrash_ctxt_save()
205 ctxt->cr4 = native_read_cr4(); in hv_hvcrash_ctxt_save()
207 asm volatile("movq %%cr2, %0" : "=r"(ctxt->cr2)); in hv_hvcrash_ctxt_save()
208 asm volatile("movq %%cr8, %0" : "=r"(ctxt->cr8)); in hv_hvcrash_ctxt_save()
210 asm volatile("movw %%cs, %0" : "=m"(ctxt->cs)); in hv_hvcrash_ctxt_save()
211 asm volatile("movw %%ss, %0" : "=m"(ctxt->ss)); in hv_hvcrash_ctxt_save()
212 asm volatile("movw %%ds, %0" : "=m"(ctxt->ds)); in hv_hvcrash_ctxt_save()
213 asm volatile("movw %%es, %0" : "=m"(ctxt->es)); in hv_hvcrash_ctxt_save()
[all …]
/linux/arch/arm64/kvm/
H A Dreset.c161 free_page((unsigned long)vcpu->arch.ctxt.vncr_array); in kvm_arm_vcpu_destroy()
222 memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); in kvm_reset_vcpu()
223 vcpu->arch.ctxt.spsr_abt = 0; in kvm_reset_vcpu()
224 vcpu->arch.ctxt.spsr_und = 0; in kvm_reset_vcpu()
225 vcpu->arch.ctxt.spsr_irq = 0; in kvm_reset_vcpu()
226 vcpu->arch.ctxt.spsr_fiq = 0; in kvm_reset_vcpu()
/linux/drivers/scsi/be2iscsi/
H A Dbe_cmds.c784 void *ctxt = &req->context; in beiscsi_cmd_cq_create() local
798 ctxt, coalesce_wm); in beiscsi_cmd_cq_create()
799 AMAP_SET_BITS(struct amap_cq_context, nodelay, ctxt, no_delay); in beiscsi_cmd_cq_create()
800 AMAP_SET_BITS(struct amap_cq_context, count, ctxt, in beiscsi_cmd_cq_create()
802 AMAP_SET_BITS(struct amap_cq_context, valid, ctxt, 1); in beiscsi_cmd_cq_create()
803 AMAP_SET_BITS(struct amap_cq_context, solevent, ctxt, sol_evts); in beiscsi_cmd_cq_create()
804 AMAP_SET_BITS(struct amap_cq_context, eventable, ctxt, 1); in beiscsi_cmd_cq_create()
805 AMAP_SET_BITS(struct amap_cq_context, eqid, ctxt, eq->id); in beiscsi_cmd_cq_create()
806 AMAP_SET_BITS(struct amap_cq_context, armed, ctxt, 1); in beiscsi_cmd_cq_create()
807 AMAP_SET_BITS(struct amap_cq_context, func, ctxt, in beiscsi_cmd_cq_create()
[all …]
/linux/drivers/dma/amd/qdma/
H A Dqdma.c180 const struct qdma_ctxt_sw_desc *ctxt, in qdma_prep_sw_desc_context() argument
184 qdma_set_field(qdev, data, QDMA_REGF_DESC_BASE, ctxt->desc_base); in qdma_prep_sw_desc_context()
185 qdma_set_field(qdev, data, QDMA_REGF_IRQ_VEC, ctxt->vec); in qdma_prep_sw_desc_context()
202 const struct qdma_ctxt_intr *ctxt, in qdma_prep_intr_context() argument
206 qdma_set_field(qdev, data, QDMA_REGF_INTR_AGG_BASE, ctxt->agg_base); in qdma_prep_intr_context()
207 qdma_set_field(qdev, data, QDMA_REGF_INTR_VECTOR, ctxt->vec); in qdma_prep_intr_context()
208 qdma_set_field(qdev, data, QDMA_REGF_INTR_SIZE, ctxt->size); in qdma_prep_intr_context()
209 qdma_set_field(qdev, data, QDMA_REGF_INTR_VALID, ctxt->valid); in qdma_prep_intr_context()
210 qdma_set_field(qdev, data, QDMA_REGF_INTR_COLOR, ctxt->color); in qdma_prep_intr_context()
215 const struct qdma_ctxt_fmap *ctxt, in qdma_prep_fmap_context() argument
[all …]
/linux/arch/x86/kvm/
H A Dx86.c108 #define emul_to_vcpu(ctxt) \ argument
109 ((struct kvm_vcpu *)(ctxt)->vcpu)
568 static int emulator_fix_hypercall(struct x86_emulate_ctxt *ctxt);
7898 static int kvm_fetch_guest_virt(struct x86_emulate_ctxt *ctxt, in kvm_fetch_guest_virt() argument
7902 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in kvm_fetch_guest_virt()
7943 static int emulator_read_std(struct x86_emulate_ctxt *ctxt, in emulator_read_std() argument
7947 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in emulator_read_std()
7988 static int emulator_write_std(struct x86_emulate_ctxt *ctxt, gva_t addr, void *val, in emulator_write_std() argument
7992 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); in emulator_write_std()
8130 struct x86_emulate_ctxt *ctxt = vcpu->arch.emulate_ctxt; in emulator_read_write_onepage() local
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_client.c670 struct i40e_vsi_context ctxt; in i40e_client_update_vsi_ctxt() local
678 ctxt.seid = pf->main_vsi_seid; in i40e_client_update_vsi_ctxt()
679 ctxt.pf_num = pf->hw.pf_id; in i40e_client_update_vsi_ctxt()
680 err = i40e_aq_get_vsi_params(&pf->hw, &ctxt, NULL); in i40e_client_update_vsi_ctxt()
681 ctxt.flags = I40E_AQ_VSI_TYPE_PF; in i40e_client_update_vsi_ctxt()
691 ctxt.info.valid_sections = in i40e_client_update_vsi_ctxt()
693 ctxt.info.queueing_opt_flags |= I40E_AQ_VSI_QUE_OPT_TCP_ENA; in i40e_client_update_vsi_ctxt()
696 ctxt.info.valid_sections = in i40e_client_update_vsi_ctxt()
698 ctxt.info.queueing_opt_flags &= ~I40E_AQ_VSI_QUE_OPT_TCP_ENA; in i40e_client_update_vsi_ctxt()
707 err = i40e_aq_update_vsi_params(&vsi->back->hw, &ctxt, NULL); in i40e_client_update_vsi_ctxt()
H A Di40e_main.c1943 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map_mqprio() argument
1992 ctxt->info.tc_mapping[0] = cpu_to_le16(qmap); in i40e_vsi_setup_queue_map_mqprio()
1993 ctxt->info.mapping_flags |= cpu_to_le16(I40E_AQ_VSI_QUE_MAP_CONTIG); in i40e_vsi_setup_queue_map_mqprio()
1994 ctxt->info.queue_mapping[0] = cpu_to_le16(vsi->base_queue); in i40e_vsi_setup_queue_map_mqprio()
1995 ctxt->info.valid_sections |= cpu_to_le16(sections); in i40e_vsi_setup_queue_map_mqprio()
2031 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map() argument
2048 memset(ctxt->info.queue_mapping, 0, sizeof(ctxt->info.queue_mapping)); in i40e_vsi_setup_queue_map()
2152 ctxt->info.tc_mapping[i] = cpu_to_le16(qmap); in i40e_vsi_setup_queue_map()
2164 ctxt->info.up_enable_bits = enabled_tc; in i40e_vsi_setup_queue_map()
2167 ctxt->info.mapping_flags |= in i40e_vsi_setup_queue_map()
[all …]
/linux/include/trace/events/
H A Drpcrdma.h1540 const struct svc_rdma_recv_ctxt *ctxt,
1545 TP_ARGS(ctxt, p, hdrlen),
1558 __entry->cq_id = ctxt->rc_cid.ci_queue_id;
1559 __entry->completion_id = ctxt->rc_cid.ci_completion_id;
1575 const struct svc_rdma_recv_ctxt *ctxt,
1579 TP_ARGS(ctxt, hdrlen),
1588 __entry->cq_id = ctxt->rc_cid.ci_queue_id;
1589 __entry->completion_id = ctxt->rc_cid.ci_completion_id;
1600 const struct svc_rdma_recv_ctxt *ctxt,
1604 TP_ARGS(ctxt, p),
[all …]
/linux/tools/testing/selftests/powerpc/mm/
H A Dsegv_errors.c27 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in segv_handler() local
28 struct pt_regs *regs = ctxt->uc_mcontext.regs; in segv_handler()
/linux/tools/testing/selftests/powerpc/mce/
H A Dinject-ra-err.c21 ucontext_t *ctxt = (ucontext_t *)ctxt_v; in sigbus_handler() local
22 struct pt_regs *regs = ctxt->uc_mcontext.regs; in sigbus_handler()
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_wwan.c164 static int ipc_wwan_newlink(void *ctxt, struct net_device *dev, in ipc_wwan_newlink() argument
167 struct iosm_wwan *ipc_wwan = ctxt; in ipc_wwan_newlink()
193 static void ipc_wwan_dellink(void *ctxt, struct net_device *dev, in ipc_wwan_dellink() argument
197 struct iosm_wwan *ipc_wwan = ctxt; in ipc_wwan_dellink()

123