/linux-6.12.1/arch/riscv/kvm/ |
D | vcpu_vector.c | 22 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_vector_reset() local 24 cntx->sstatus &= ~SR_VS; in kvm_riscv_vcpu_vector_reset() 26 cntx->sstatus |= SR_VS_INITIAL; in kvm_riscv_vcpu_vector_reset() 27 WARN_ON(!cntx->vector.datap); in kvm_riscv_vcpu_vector_reset() 28 memset(cntx->vector.datap, 0, riscv_v_vsize); in kvm_riscv_vcpu_vector_reset() 30 cntx->sstatus |= SR_VS_OFF; in kvm_riscv_vcpu_vector_reset() 34 static void kvm_riscv_vcpu_vector_clean(struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_vector_clean() argument 36 cntx->sstatus &= ~SR_VS; in kvm_riscv_vcpu_vector_clean() 37 cntx->sstatus |= SR_VS_CLEAN; in kvm_riscv_vcpu_vector_clean() 40 void kvm_riscv_vcpu_guest_vector_save(struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_vector_save() argument [all …]
|
D | vcpu_fp.c | 19 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_fp_reset() local 21 cntx->sstatus &= ~SR_FS; in kvm_riscv_vcpu_fp_reset() 24 cntx->sstatus |= SR_FS_INITIAL; in kvm_riscv_vcpu_fp_reset() 26 cntx->sstatus |= SR_FS_OFF; in kvm_riscv_vcpu_fp_reset() 29 static void kvm_riscv_vcpu_fp_clean(struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_fp_clean() argument 31 cntx->sstatus &= ~SR_FS; in kvm_riscv_vcpu_fp_clean() 32 cntx->sstatus |= SR_FS_CLEAN; in kvm_riscv_vcpu_fp_clean() 35 void kvm_riscv_vcpu_guest_fp_save(struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_fp_save() argument 38 if ((cntx->sstatus & SR_FS) == SR_FS_DIRTY) { in kvm_riscv_vcpu_guest_fp_save() 40 __kvm_riscv_fp_d_save(cntx); in kvm_riscv_vcpu_guest_fp_save() [all …]
|
D | vcpu_onereg.c | 359 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_get_reg_core() local 373 reg_val = cntx->sepc; in kvm_riscv_vcpu_get_reg_core() 376 reg_val = ((unsigned long *)cntx)[reg_num]; in kvm_riscv_vcpu_get_reg_core() 378 reg_val = (cntx->sstatus & SR_SPP) ? in kvm_riscv_vcpu_get_reg_core() 392 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_set_reg_core() local 409 cntx->sepc = reg_val; in kvm_riscv_vcpu_set_reg_core() 412 ((unsigned long *)cntx)[reg_num] = reg_val; in kvm_riscv_vcpu_set_reg_core() 415 cntx->sstatus |= SR_SPP; in kvm_riscv_vcpu_set_reg_core() 417 cntx->sstatus &= ~SR_SPP; in kvm_riscv_vcpu_set_reg_core() 913 const struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in num_fp_f_regs() local [all …]
|
D | vcpu.c | 53 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_reset_vcpu() local 72 memcpy(cntx, reset_cntx, sizeof(*cntx)); in kvm_riscv_reset_vcpu() 108 struct kvm_cpu_context *cntx; in kvm_arch_vcpu_create() local 133 cntx = &vcpu->arch.guest_reset_context; in kvm_arch_vcpu_create() 134 cntx->sstatus = SR_SPP | SR_SPIE; in kvm_arch_vcpu_create() 135 cntx->hstatus = 0; in kvm_arch_vcpu_create() 136 cntx->hstatus |= HSTATUS_VTW; in kvm_arch_vcpu_create() 137 cntx->hstatus |= HSTATUS_SPVP; in kvm_arch_vcpu_create() 138 cntx->hstatus |= HSTATUS_SPV; in kvm_arch_vcpu_create() 141 if (kvm_riscv_vcpu_alloc_vector_context(vcpu, cntx)) in kvm_arch_vcpu_create()
|
/linux-6.12.1/arch/riscv/mm/ |
D | context.c | 35 static bool check_update_reserved_context(unsigned long cntx, in check_update_reserved_context() argument 51 if (per_cpu(reserved_context, cpu) == cntx) { in check_update_reserved_context() 63 unsigned long cntx; in __flush_context() local 73 cntx = atomic_long_xchg_relaxed(&per_cpu(active_context, i), 0); in __flush_context() 80 if (cntx == 0) in __flush_context() 81 cntx = per_cpu(reserved_context, i); in __flush_context() 83 __set_bit(cntx2asid(cntx), context_asid_map); in __flush_context() 84 per_cpu(reserved_context, i) = cntx; in __flush_context() 97 unsigned long cntx = atomic_long_read(&mm->context.id); in __new_context() local 103 if (cntx != 0) { in __new_context() [all …]
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | kvm_vcpu_vector.h | 30 void kvm_riscv_vcpu_guest_vector_save(struct kvm_cpu_context *cntx, 32 void kvm_riscv_vcpu_guest_vector_restore(struct kvm_cpu_context *cntx, 34 void kvm_riscv_vcpu_host_vector_save(struct kvm_cpu_context *cntx); 35 void kvm_riscv_vcpu_host_vector_restore(struct kvm_cpu_context *cntx); 37 struct kvm_cpu_context *cntx); 47 static inline void kvm_riscv_vcpu_guest_vector_save(struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_vector_save() argument 52 static inline void kvm_riscv_vcpu_guest_vector_restore(struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_vector_restore() argument 57 static inline void kvm_riscv_vcpu_host_vector_save(struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_host_vector_save() argument 61 static inline void kvm_riscv_vcpu_host_vector_restore(struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_host_vector_restore() argument 66 struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_alloc_vector_context() argument
|
D | kvm_vcpu_fp.h | 24 void kvm_riscv_vcpu_guest_fp_save(struct kvm_cpu_context *cntx, 26 void kvm_riscv_vcpu_guest_fp_restore(struct kvm_cpu_context *cntx, 28 void kvm_riscv_vcpu_host_fp_save(struct kvm_cpu_context *cntx); 29 void kvm_riscv_vcpu_host_fp_restore(struct kvm_cpu_context *cntx); 34 static inline void kvm_riscv_vcpu_guest_fp_save(struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_fp_save() argument 39 struct kvm_cpu_context *cntx, in kvm_riscv_vcpu_guest_fp_restore() argument 43 static inline void kvm_riscv_vcpu_host_fp_save(struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_host_fp_save() argument 47 struct kvm_cpu_context *cntx) in kvm_riscv_vcpu_host_fp_restore() argument
|
D | mmu.h | 31 #define cntx2asid(cntx) ((cntx) & SATP_ASID_MASK) argument 32 #define cntx2version(cntx) ((cntx) & ~SATP_ASID_MASK) argument
|
/linux-6.12.1/drivers/nfc/pn533/ |
D | usb.c | 166 void *cntx; in pn533_usb_send_frame() local 180 cntx = phy->out_urb->context; in pn533_usb_send_frame() 188 phy->out_urb->context = cntx; in pn533_usb_send_frame() 387 void *cntx; in pn533_acr122_poweron_rdr() local 395 cntx = phy->in_urb->context; /* backup context */ in pn533_acr122_poweron_rdr() 420 phy->in_urb->context = cntx; /* restore context */ in pn533_acr122_poweron_rdr()
|
/linux-6.12.1/drivers/staging/rtl8723bs/include/ |
D | osdep_service_linux.h | 61 static inline void _init_workitem(struct work_struct *pwork, void *pfunc, void *cntx) in _init_workitem() argument
|
/linux-6.12.1/drivers/gpu/drm/i915/display/ |
D | intel_cx0_phy.c | 2350 bool cntx; in intel_c20pll_readout_hw_state() local 2358 …cntx = intel_cx0_read(encoder, INTEL_CX0_LANE0, PHY_C20_VDR_CUSTOM_SERDES_RATE) & PHY_C20_CONTEXT_… in intel_c20pll_readout_hw_state() 2362 if (cntx) in intel_c20pll_readout_hw_state() 2374 if (cntx) in intel_c20pll_readout_hw_state() 2387 if (cntx) in intel_c20pll_readout_hw_state() 2399 if (cntx) in intel_c20pll_readout_hw_state() 2549 bool cntx; in intel_c20_pll_program() local 2556 cntx = intel_cx0_read(encoder, INTEL_CX0_LANE0, PHY_C20_VDR_CUSTOM_SERDES_RATE) & BIT(0); in intel_c20_pll_program() 2572 if (cntx) in intel_c20_pll_program() 2584 if (cntx) in intel_c20_pll_program() [all …]
|
/linux-6.12.1/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 1031 struct bnxt_re_qp *qp, struct bnxt_re_ucontext *cntx, in bnxt_re_init_user_qp() argument 1047 if (cntx && bnxt_re_is_var_size_supported(rdev, cntx)) { in bnxt_re_init_user_qp() 1084 qplib_qp->dpi = &cntx->dpi; in bnxt_re_init_user_qp() 1746 struct bnxt_re_ucontext *cntx = rdma_udata_to_drv_context( in bnxt_re_init_user_srq() local 1764 qplib_srq->dpi = &cntx->dpi; in bnxt_re_init_user_srq()
|