/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | e500mc.c | 215 struct kvm_sregs *sregs) in kvmppc_core_get_sregs_e500mc() argument 219 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc() 221 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc() 223 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc() 224 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc() 225 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc() 226 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc() 228 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc() 230 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc() 232 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc() [all …]
|
D | booke.c | 1462 struct kvm_sregs *sregs) in get_sregs_base() argument 1466 sregs->u.e.features |= KVM_SREGS_E_BASE; in get_sregs_base() 1468 sregs->u.e.csrr0 = vcpu->arch.csrr0; in get_sregs_base() 1469 sregs->u.e.csrr1 = vcpu->arch.csrr1; in get_sregs_base() 1470 sregs->u.e.mcsr = vcpu->arch.mcsr; in get_sregs_base() 1471 sregs->u.e.esr = kvmppc_get_esr(vcpu); in get_sregs_base() 1472 sregs->u.e.dear = kvmppc_get_dar(vcpu); in get_sregs_base() 1473 sregs->u.e.tsr = vcpu->arch.tsr; in get_sregs_base() 1474 sregs->u.e.tcr = vcpu->arch.tcr; in get_sregs_base() 1475 sregs->u.e.dec = kvmppc_get_dec(vcpu, tb); in get_sregs_base() [all …]
|
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 | 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 | 1475 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_get_sregs_pr() argument 1480 sregs->pvr = vcpu->arch.pvr; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1482 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1485 sregs->u.s.ppc64.slb[i].slbe = vcpu->arch.slb[i].orige | i; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1486 sregs->u.s.ppc64.slb[i].slbv = vcpu->arch.slb[i].origv; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1490 sregs->u.s.ppc32.sr[i] = kvmppc_get_sr(vcpu, i); in kvm_arch_vcpu_ioctl_get_sregs_pr() 1493 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1494 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr() 1502 struct kvm_sregs *sregs) in kvm_arch_vcpu_ioctl_set_sregs_pr() argument 1507 kvmppc_set_pvr_pr(vcpu, sregs->pvr); in kvm_arch_vcpu_ioctl_set_sregs_pr() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/ |
D | set_sregs_test.c | 29 struct kvm_sregs sregs; in main() local 39 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 40 sregs.apic_base = 1 << 10; in main() 41 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main() 43 sregs.apic_base); in main() 44 sregs.apic_base = 1 << 11; in main() 45 rc = _vcpu_sregs_set(vm, VCPU_ID, &sregs); in main() 47 sregs.apic_base); in main()
|
D | sync_regs_test.c | 85 struct kvm_sregs sregs; in main() local 149 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 150 compare_sregs(&sregs, &run->s.regs.sregs); in main() 157 run->s.regs.sregs.apic_base = 1 << 11; in main() 170 TEST_ASSERT(run->s.regs.sregs.apic_base == 1 << 11, in main() 172 run->s.regs.sregs.apic_base); in main() 177 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 178 compare_sregs(&sregs, &run->s.regs.sregs); in main()
|
D | cr4_cpuid_sync_test.c | 68 struct kvm_sregs sregs; in main() local 99 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 100 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main() 101 vcpu_sregs_set(vm, VCPU_ID, &sregs); in main()
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/ |
D | processor.c | 169 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, in sregs_dump() argument 175 segment_dump(stream, &sregs->cs, indent + 2); in sregs_dump() 177 segment_dump(stream, &sregs->ds, indent + 2); in sregs_dump() 179 segment_dump(stream, &sregs->es, indent + 2); in sregs_dump() 181 segment_dump(stream, &sregs->fs, indent + 2); in sregs_dump() 183 segment_dump(stream, &sregs->gs, indent + 2); in sregs_dump() 185 segment_dump(stream, &sregs->ss, indent + 2); in sregs_dump() 187 segment_dump(stream, &sregs->tr, indent + 2); in sregs_dump() 189 segment_dump(stream, &sregs->ldt, indent + 2); in sregs_dump() 192 dtable_dump(stream, &sregs->gdt, indent + 2); in sregs_dump() [all …]
|
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/ |
D | itest.S | 30 set SREGS, -64 180 movm.l &0x7fff,SREGS(%a6) 204 movm.l &0x7fff,SREGS(%a6) 227 movm.l &0x7fff,SREGS(%a6) 250 movm.l &0x7fff,SREGS(%a6) 274 movm.l &0x7fff,SREGS(%a6) 298 movm.l &0x7fff,SREGS(%a6) 322 movm.l &0x7fff,SREGS(%a6) 346 movm.l &0x7fff,SREGS(%a6) 370 movm.l &0x7fff,SREGS(%a6) [all …]
|
D | ftest.S | 30 set SREGS, -64 257 movm.l &0x7fff,SREGS(%a6) 297 movm.l &0x7fff,SREGS(%a6) 334 movm.l &0x7fff,SREGS(%a6) 374 movm.l &0x7fff,SREGS(%a6) 410 movm.l &0x7fff,SREGS(%a6) 446 movm.l &0x7fff,SREGS(%a6) 489 movm.l &0x7fff,SREGS(%a6) 525 movm.l &0x7fff,SREGS(%a6) 560 movm.l &0x7fff,SREGS(%a6) [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
D | intel-spi.c | 68 /* Offsets are from @ispi->sregs */ 132 * @sregs: Start of software sequencer registers 150 void __iomem *sregs; member 194 if (ispi->sregs) { in intel_spi_dump_regs() 195 value = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_dump_regs() 198 readl(ispi->sregs + PREOP_OPTYPE)); in intel_spi_dump_regs() 200 readl(ispi->sregs + OPMENU0)); in intel_spi_dump_regs() 202 readl(ispi->sregs + OPMENU1)); in intel_spi_dump_regs() 303 return readl_poll_timeout(ispi->sregs + SSFSTS_CTL, val, in intel_spi_wait_sw_busy() 315 ispi->sregs = ispi->base + BYT_SSFSTS_CTL; in intel_spi_init() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/s390x/ |
D | resets.c | 91 struct kvm_sregs sregs; in assert_clear() local 98 vcpu_sregs_get(vm, VCPU_ID, &sregs); in assert_clear() 99 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(vm, VCPU_ID, &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 | 81 struct kvm_sregs sregs; in main() local 146 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 147 compare_sregs(&sregs, &run->s.regs); in main() 171 vcpu_sregs_get(vm, VCPU_ID, &sregs); in main() 172 compare_sregs(&sregs, &run->s.regs); in main()
|
/kernel/linux/linux-5.10/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";
|
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/ |
D | gpio.c | 246 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated() local 257 sregs->cpdir2 & mask2); in qe_pin_set_dedicated() 259 sregs->cppar2 & mask2); in qe_pin_set_dedicated() 262 sregs->cpdir1 & mask2); in qe_pin_set_dedicated() 264 sregs->cppar1 & mask2); in qe_pin_set_dedicated() 267 if (sregs->cpdata & mask1) in qe_pin_set_dedicated() 273 qe_clrsetbits_be32(®s->cpodr, mask1, sregs->cpodr & mask1); in qe_pin_set_dedicated()
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/ |
D | calxeda.yaml | 13 "hb-sregs" node. 45 sregs@3fffc000 { 46 compatible = "calxeda,hb-sregs";
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | compat_signal.c | 39 _sigregs32 sregs; member 66 static int save_sigregs32(struct pt_regs *regs, _sigregs32 __user *sregs) in save_sigregs32() argument 81 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32() 86 static int restore_sigregs32(struct pt_regs *regs,_sigregs32 __user *sregs) in restore_sigregs32() argument 94 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32() 190 if (restore_sigregs32(regs, &frame->sregs)) in COMPAT_SYSCALL_DEFINE0() 282 if (__put_user(ptr_to_compat(&frame->sregs), &frame->sc.sregs)) in setup_frame32() 289 if (save_sigregs32(regs, &frame->sregs)) in setup_frame32()
|
D | signal.c | 67 _sigregs sregs; member 120 static int save_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in save_sigregs() argument 129 memcpy(&user_sregs.regs.gprs, ®s->gprs, sizeof(sregs->regs.gprs)); in save_sigregs() 133 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs() 138 static int restore_sigregs(struct pt_regs *regs, _sigregs __user *sregs) in restore_sigregs() argument 145 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs() 166 memcpy(®s->gprs, &user_sregs.regs.gprs, sizeof(sregs->regs.gprs)); in restore_sigregs() 228 if (restore_sigregs(regs, &frame->sregs)) in SYSCALL_DEFINE0() 314 sc.sregs = (_sigregs __user __force *) &frame->sregs; in setup_frame() 322 if (save_sigregs(regs, &frame->sregs)) in setup_frame()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
D | kvm_util_internal.h | 98 * sregs - System registers 105 * Dumps the state of the system registers given by @sregs, to the FILE stream 108 void sregs_dump(FILE *stream, struct kvm_sregs *sregs, uint8_t indent);
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 188 struct kvm_sregs sregs; in vm_vcpu_add_default() local 204 vcpu_sregs_get(vm, vcpuid, &sregs); in vm_vcpu_add_default() 205 sregs.crs[0] |= 0x00040000; /* Enable floating point regs */ in vm_vcpu_add_default() 206 sregs.crs[1] = vm->pgd | 0xf; /* Primary region table */ in vm_vcpu_add_default() 207 vcpu_sregs_set(vm, vcpuid, &sregs); in vm_vcpu_add_default()
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | highbank.dts | 149 sregs@fff3c200 { 150 compatible = "calxeda,hb-sregs-l2-ecc";
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | x86.c | 9571 static void __get_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs) in __get_sregs() argument 9575 kvm_get_segment(vcpu, &sregs->cs, VCPU_SREG_CS); in __get_sregs() 9576 kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); in __get_sregs() 9577 kvm_get_segment(vcpu, &sregs->es, VCPU_SREG_ES); in __get_sregs() 9578 kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); in __get_sregs() 9579 kvm_get_segment(vcpu, &sregs->gs, VCPU_SREG_GS); in __get_sregs() 9580 kvm_get_segment(vcpu, &sregs->ss, VCPU_SREG_SS); in __get_sregs() 9582 kvm_get_segment(vcpu, &sregs->tr, VCPU_SREG_TR); in __get_sregs() 9583 kvm_get_segment(vcpu, &sregs->ldt, VCPU_SREG_LDTR); in __get_sregs() 9586 sregs->idt.limit = dt.size; in __get_sregs() [all …]
|