/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | set_sregs_test.c | 34 memcpy(&new, &orig, sizeof(sregs)); \ 78 struct kvm_sregs sregs; in main() local 92 vcpu_sregs_get(vcpu, &sregs); in main() 94 sregs.cr0 = 0; in main() 95 sregs.cr4 |= calc_supported_cr4_feature_bits(); in main() 96 cr4 = sregs.cr4; in main() 98 rc = _vcpu_sregs_set(vcpu, &sregs); in main() 101 vcpu_sregs_get(vcpu, &sregs); in main() 102 TEST_ASSERT(sregs.cr4 == cr4, "sregs.CR4 (0x%llx) != CR4 (0x%lx)", in main() 103 sregs.cr4, cr4); in main() [all …]
|
D | sync_regs_test.c | 137 __u64 *cr4 = &run->s.regs.sregs.cr4; in race_sregs_cr4() 180 TEST_ASSERT((run->s.regs.sregs.cr4 & X86_CR4_PAE) && in race_sync_regs() 181 (run->s.regs.sregs.efer & EFER_LME), in race_sync_regs() 183 !!(run->s.regs.sregs.cr4 & X86_CR4_PAE), in race_sync_regs() 184 !!(run->s.regs.sregs.efer & EFER_LME)); in race_sync_regs() 217 struct kvm_sregs sregs; in main() local 268 vcpu_sregs_get(vcpu, &sregs); in main() 269 compare_sregs(&sregs, &run->s.regs.sregs); in main() 276 run->s.regs.sregs.apic_base = 1 << 11; in main() 286 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main() [all …]
|
D | vmx_invalid_nested_guest_state.c | 56 struct kvm_sregs sregs; in main() local 88 memset(&sregs, 0, sizeof(sregs)); in main() 89 vcpu_sregs_get(vcpu, &sregs); in main() 90 sregs.tr.unusable = 1; in main() 91 vcpu_sregs_set(vcpu, &sregs); in main()
|
D | cr4_cpuid_sync_test.c | 54 struct kvm_sregs sregs; in main() local 68 vcpu_sregs_get(vcpu, &sregs); in main() 69 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main() 70 vcpu_sregs_set(vcpu, &sregs); in main()
|
D | vmx_exception_with_invalid_guest_state.c | 58 static struct kvm_sregs sregs; in set_or_clear_invalid_guest_state() local 60 if (!sregs.cr0) in set_or_clear_invalid_guest_state() 61 vcpu_sregs_get(vcpu, &sregs); in set_or_clear_invalid_guest_state() 62 sregs.tr.unusable = !!set; in set_or_clear_invalid_guest_state() 63 vcpu_sregs_set(vcpu, &sregs); in set_or_clear_invalid_guest_state()
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | e500.c | 362 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500() argument 366 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_SPE | in kvmppc_core_get_sregs_e500() 368 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500() 370 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500() 371 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500() 372 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500() 373 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500() 375 sregs->u.e.ivor_high[0] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL]; in kvmppc_core_get_sregs_e500() 376 sregs->u.e.ivor_high[1] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_DATA]; in kvmppc_core_get_sregs_e500() 377 sregs->u.e.ivor_high[2] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_ROUND]; in kvmppc_core_get_sregs_e500() [all …]
|
D | e500mc.c | 220 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500mc() argument 224 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc() 226 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc() 228 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc() 229 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc() 230 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc() 231 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc() 233 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc() 235 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc() 237 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc() [all …]
|
D | booke.c | 1510 struct kvm_sregs *sregs) in get_sregs_base() argument 1514 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base() 1516 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base() 1517 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base() 1518 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base() 1519 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base() 1520 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base() 1521 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base() 1522 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base() 1523 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base() [all …]
|
D | e500_mmu.c | 567 void kvmppc_get_sregs_e500_tlb(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in kvmppc_get_sregs_e500_tlb() argument 569 sregs->u.e.mas0 = vcpu->arch.shared->mas0; in kvmppc_get_sregs_e500_tlb() 570 sregs->u.e.mas1 = vcpu->arch.shared->mas1; in kvmppc_get_sregs_e500_tlb() 571 sregs->u.e.mas2 = vcpu->arch.shared->mas2; in kvmppc_get_sregs_e500_tlb() 572 sregs->u.e.mas7_3 = vcpu->arch.shared->mas7_3; in kvmppc_get_sregs_e500_tlb() 573 sregs->u.e.mas4 = vcpu->arch.shared->mas4; in kvmppc_get_sregs_e500_tlb() 574 sregs->u.e.mas6 = vcpu->arch.shared->mas6; in kvmppc_get_sregs_e500_tlb() 576 sregs->u.e.mmucfg = vcpu->arch.mmucfg; in kvmppc_get_sregs_e500_tlb() 577 sregs->u.e.tlbcfg[0] = vcpu->arch.tlbcfg[0]; in kvmppc_get_sregs_e500_tlb() 578 sregs->u.e.tlbcfg[1] = vcpu->arch.tlbcfg[1]; in kvmppc_get_sregs_e500_tlb() [all …]
|
D | book3s_pr.c | 1463 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument 1468 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1470 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1473 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1474 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1478 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr() 1481 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1482 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1490 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument 1495 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr() [all …]
|
/linux-6.6.21/drivers/net/ethernet/seeq/ |
D | sgiseeq.c | 100 struct sgiseeq_regs *sregs; member 137 struct sgiseeq_regs *sregs) in reset_hpc3_and_seeq() argument 148 struct sgiseeq_regs *sregs) in seeq_go() argument 150 sregs->rstat = sp->mode | RSTAT_GO_BITS; in seeq_go() 157 struct sgiseeq_regs *sregs = sp->sregs; in __sgiseeq_set_mac_address() local 160 sregs->tstat = SEEQ_TCMD_RB0; in __sgiseeq_set_mac_address() 162 sregs->rw.eth_addr[i] = dev->dev_addr[i]; in __sgiseeq_set_mac_address() 292 struct sgiseeq_regs *sregs) in init_seeq() argument 297 reset_hpc3_and_seeq(hregs, sregs); in init_seeq() 304 sregs->tstat = TSTAT_INIT_EDLC; in init_seeq() [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 75 static void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent) in sregs_dump() argument 80 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump() 82 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump() 84 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump() 86 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump() 88 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump() 90 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump() 92 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump() 94 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump() 97 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump() [all …]
|
/linux-6.6.21/tools/testing/selftests/kvm/s390x/ |
D | resets.c | 88 struct kvm_sregs sregs; in assert_clear() local 95 vcpu_sregs_get(vcpu, &sregs); in assert_clear() 96 TEST_ASSERT(!memcmp(&sregs.acrs, regs_null, sizeof(sregs.acrs)), "acrs == 0"); in assert_clear() 132 struct kvm_sregs sregs; in assert_initial() local 136 vcpu_sregs_get(vcpu, &sregs); in assert_initial() 137 TEST_ASSERT(sregs.crs[0] == 0xE0UL, "cr0 == 0xE0 (KVM_GET_SREGS)"); in assert_initial() 138 TEST_ASSERT(sregs.crs[14] == 0xC2000000UL, in assert_initial() 140 TEST_ASSERT(!memcmp(&sregs.crs[1], regs_null, sizeof(sregs.crs[1]) * 12), in assert_initial() 142 TEST_ASSERT(sregs.crs[15] == 0, "cr15 == 0 (KVM_GET_SREGS)"); in assert_initial()
|
D | sync_regs_test.c | 121 struct kvm_sregs sregs; in test_req_and_verify_all_valid_regs() local 140 vcpu_sregs_get(vcpu, &sregs); in test_req_and_verify_all_valid_regs() 141 compare_sregs(&sregs, &run->s.regs); in test_req_and_verify_all_valid_regs() 147 struct kvm_sregs sregs; in test_set_and_verify_various_reg_values() local 179 vcpu_sregs_get(vcpu, &sregs); in test_set_and_verify_various_reg_values() 180 compare_sregs(&sregs, &run->s.regs); in test_set_and_verify_various_reg_values()
|
/linux-6.6.21/Documentation/devicetree/bindings/arm/calxeda/ |
D | hb-sregs.yaml | 4 $id: http://devicetree.org/schemas/arm/calxeda/hb-sregs.yaml# 19 const: calxeda,hb-sregs 35 sregs@fff3c000 { 36 compatible = "calxeda,hb-sregs";
|
D | l2ecc.yaml | 19 const: "calxeda,hb-sregs-l2-ecc" 38 sregs@fff3c200 { 39 compatible = "calxeda,hb-sregs-l2-ecc";
|
/linux-6.6.21/drivers/spi/ |
D | spi-intel.c | 163 void __iomem *sregs; member 217 if (ispi->sregs) { in intel_spi_dump_regs() 218 value = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_dump_regs() 221 readl(ispi->sregs + PREOP_OPTYPE)); in intel_spi_dump_regs() 223 readl(ispi->sregs + OPMENU0)); in intel_spi_dump_regs() 225 readl(ispi->sregs + OPMENU1)); in intel_spi_dump_regs() 322 return readl_poll_timeout(ispi->sregs + SSFSTS_CTL, val, in intel_spi_wait_sw_busy() 349 writel(opcode, ispi->sregs + OPMENU0); in intel_spi_opcode_index() 350 preop = readw(ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index() 351 writel(optype << 16 | preop, ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index() [all …]
|
/linux-6.6.21/arch/s390/kernel/ |
D | signal.c | 68 _sigregs sregs; member 121 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument 130 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 134 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 139 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument 146 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 167 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs() 229 if (restore_sigregs(regs, &frame->sregs)) in SYSCALL_DEFINE0() 315 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame() 323 if (save_sigregs(regs, &frame->sregs)) in setup_frame()
|
D | compat_signal.c | 40 _sigregs32 sregs; member 67 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 82 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 87 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 95 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 191 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 283 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32() 290 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
/linux-6.6.21/drivers/soc/fsl/qe/ |
D | gpio.c | 239 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated() local 250 sregs->cpdir2 & mask2); in qe_pin_set_dedicated() 252 sregs->cppar2 & mask2); in qe_pin_set_dedicated() 255 sregs->cpdir1 & mask2); in qe_pin_set_dedicated() 257 sregs->cppar1 & mask2); in qe_pin_set_dedicated() 260 if (sregs->cpdata & mask1) in qe_pin_set_dedicated() 266 qe_clrsetbits_be32(®s->cpodr, mask1, sregs->cpodr & mask1); in qe_pin_set_dedicated()
|
/linux-6.6.21/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 164 struct kvm_sregs sregs; in vm_arch_vcpu_add() local 182 vcpu_sregs_get(vcpu, &sregs); in vm_arch_vcpu_add() 183 sregs.crs[0] |= 0x00040000; /* Enable floating point regs */ in vm_arch_vcpu_add() 184 sregs.crs[1] = vm->pgd | 0xf; /* Primary region table */ in vm_arch_vcpu_add() 185 vcpu_sregs_set(vcpu, &sregs); in vm_arch_vcpu_add()
|
/linux-6.6.21/Documentation/devicetree/bindings/clock/ |
D | calxeda.yaml | 13 "hb-sregs" node. 45 sregs@3fffc000 { 46 compatible = "calxeda,hb-sregs";
|
/linux-6.6.21/tools/testing/selftests/kvm/ |
D | max_guest_memory_test.c | 66 struct kvm_sregs sregs; in vcpu_worker() local 78 vcpu_sregs_get(vcpu, &sregs); in vcpu_worker() 81 sregs.cr0 ^= X86_CR0_WP; in vcpu_worker() 83 vcpu_sregs_set(vcpu, &sregs); in vcpu_worker()
|
/linux-6.6.21/arch/arm/boot/dts/calxeda/ |
D | highbank.dts | 149 sregs@fff3c200 { 150 compatible = "calxeda,hb-sregs-l2-ecc";
|
/linux-6.6.21/arch/mips/sgi-ip30/ |
D | ip30-console.c | 12 return &ioc3->sregs.uarta; in console_uart()
|