Home
last modified time | relevance | path

Searched full:state (Results 1 – 25 of 50) sorted by relevance

12

/kvm-unit-tests/lib/
H A Drand.c4 * Currently uses SHA-256 to scramble the PRNG state.
146 prng_state state = { .next_word = 0 }; in prng_init() local
149 sha256_hash(ARRAY_SIZE(seed_arr), &seed_arr, &state.hash); in prng_init()
150 return state; in prng_init()
153 static void prng_scramble(prng_state *state) in prng_scramble() argument
157 memcpy(input, state->hash, sizeof(state->hash)); in prng_scramble()
158 sha256_hash(ARRAY_SIZE(input), &input, &state->hash); in prng_scramble()
159 state->next_word = 0; in prng_scramble()
162 uint32_t prng32(prng_state *state) in prng32() argument
164 if (state->next_word < ARRAY_SIZE(state->hash)) in prng32()
[all …]
H A Drand.h18 uint32_t prng32(prng_state *state);
19 uint64_t prng64(prng_state *state);
/kvm-unit-tests/s390x/
H A Dcmm.c45 unsigned long state; in test_reset_no_translate() local
59 state = essa(ESSA_GET_STATE, (unsigned long)pagebuf); in test_reset_no_translate()
60 report(state & mask_no_translate, "no-translate bit set before reset"); in test_reset_no_translate()
65 state = essa(ESSA_GET_STATE, (unsigned long)pagebuf); in test_reset_no_translate()
66 report(!(state & mask_no_translate), "no-translate bit unset after reset"); in test_reset_no_translate()
H A Dfirq.c25 /* Enable external interrupts and go to the wait state. */ in wait_for_sclp_int()
39 report_prefix_push("wait state delivery"); in test_wait_state_delivery()
52 * interrupt on CPU #1 while it is in the wait state. in test_wait_state_delivery()
64 * wait state. in test_wait_state_delivery()
H A Dmigration-cmm.c47 /* extract the usage state in bits 60 and 61 */ in test_migration()
50 …report(BIT(actual_state) & state_mask, "page %d state: expected_mask=0x%x actual_mask=0x%lx", i, s… in test_migration()
H A Dmvpg.c103 * state, and even then, only if the move-page-and-set-key facility in test_exceptions()
158 /* Test successful scenarios, both in supervisor and problem state */ in test_success()
160 report(page_ok(buffer) && !cc, "Supervisor state MVPG successful"); in test_success()
166 report(page_ok(buffer) && !cc, "Problem state MVPG successful"); in test_success()
H A Dselftest-migration.c8 * migration of tricky machine state.
/kvm-unit-tests/riscv/
H A Dsbi-sse.c143 static struct sbiret sse_event_get_state(uint32_t event_id, enum sbi_sse_state *state) in sse_event_get_state() argument
150 *state = status; in sse_event_get_state()
172 enum sbi_sse_state state; in sse_check_state() local
174 ret = sse_event_get_state(event_id, &state); in sse_check_state()
178 return report(state == expected_state, "event status == %ld", expected_state); in sse_check_state()
300 "Set attribute %s invalid state error", attr_name); in sse_test_attrs()
427 /* Read full interrupted state */ in sse_simple_handler()
430 sbiret_report_error(&ret, SBI_SUCCESS, "Save full interrupted state from handler"); in sse_simple_handler()
432 /* Write full modified state and read it */ in sse_simple_handler()
436 "Write full interrupted state from handler"); in sse_simple_handler()
[all …]
H A Dsbi-asm.S98 * State is as specified by "SUSP System Resume Register State" of the SBI spec
/kvm-unit-tests/lib/libfdt/
H A Dfdt_sw.c32 /* 'memrsv' state: Initial state after fdt_create()
36 * fdt_finish_reservemap() [moves to 'struct' state]
56 /* 'struct' state: Enter this state after fdt_finish_reservemap()
62 * fdt_finish() [moves to 'complete' state]
89 /* 'complete' state: Enter this state after fdt_finish()
124 * magic and last_comp_version keep intermediate state during the fdt in fdt_create_with_flags()
379 /* And fix up fields that were keeping intermediate state. */ in fdt_finish()
/kvm-unit-tests/lib/linux/
H A Dpsci.h2 * ARM Power State and Coordination Interface (PSCI) header
54 /* PSCI v0.2 power state encoding for CPU_SUSPEND function */
64 /* PSCI extended power state encoding for CPU_SUSPEND function */
71 /* PSCI v0.2 affinity level state returned by AFFINITY_INFO */
H A Dpci_regs.h233 #define PCI_PM_CAP_D1 0x0200 /* D1 power state support */
234 #define PCI_PM_CAP_D2 0x0400 /* D2 power state support */
244 #define PCI_PM_CTRL_STATE_MASK 0x0003 /* Current power state (D0 to D3) */
583 #define PCI_EXP_SLTCTL_DLLSCE 0x1000 /* Data Link Layer State Changed Enable */
590 #define PCI_EXP_SLTSTA_MRLSS 0x0020 /* MRL Sensor State */
591 #define PCI_EXP_SLTSTA_PDS 0x0040 /* Presence Detect State */
593 #define PCI_EXP_SLTSTA_DLLSC 0x0100 /* Data Link Layer State Changed */
776 #define PCI_PWR_DATA_PM_SUB(x) (((x) >> 10) & 7) /* PM Sub State */
777 #define PCI_PWR_DATA_PM_STATE(x) (((x) >> 13) & 3) /* PM State */
890 #define PCI_SRIOV_VFM 0x3c /* VF Migration State Array Offset*/
[all …]
/kvm-unit-tests/lib/s390x/asm/
H A Dcmm.h28 static unsigned long essa(uint8_t state, unsigned long paddr) in essa() argument
34 : [addr] "a" (paddr), [new_state] "i" (state)); in essa()
H A Duv.h349 u8 state; member
358 static inline int uv_set_cpu_state(uint64_t handle, uint8_t state) in uv_set_cpu_state() argument
364 .state = state, in uv_set_cpu_state()
/kvm-unit-tests/lib/arm/asm/
H A Dptrace.h51 #define PSR_ISET_MASK 0x01000010 /* ISA state (J, T) mask */
52 #define PSR_IT_MASK 0x0600fc00 /* If-Then execution state mask */
53 #define PSR_ENDIAN_MASK 0x00000200 /* Endianness state mask */
/kvm-unit-tests/lib/arm/
H A Dgic.c343 enum gic_irq_state state; in gic_irq_state() local
375 state = GIC_IRQ_STATE_INACTIVE; in gic_irq_state()
377 state = GIC_IRQ_STATE_PENDING; in gic_irq_state()
379 state = GIC_IRQ_STATE_ACTIVE; in gic_irq_state()
381 state = GIC_IRQ_STATE_ACTIVE_PENDING; in gic_irq_state()
383 return state; in gic_irq_state()
/kvm-unit-tests/x86/
H A Dinit.c37 #define state (*(volatile int *)0x2000) macro
54 if (state != 0) { in main()
75 switch (state++) { in main()
H A Dvmx.h197 /* 16-Bit Guest State Fields */
209 /* 16-Bit Host State Fields */
248 /* 64-Bit Guest State */
259 /* 64-Bit Host State */
292 /* 32-Bit Guest State Fields */
317 /* 32-Bit Host State Fields */
338 /* Natural-Width Guest State Fields */
360 /* Natural-Width Host State Fields */
541 * Guest interruptibility state
/kvm-unit-tests/lib/powerpc/
H A Dsmp.c175 ret = rtas_token("query-cpu-stopped-state", &query_token); in cpu_is_running()
177 printf("rtas token query-cpu-stopped-state failed\n"); in cpu_is_running()
183 printf("query-cpu-stopped-state failed for cpu %d\n", cpu_id); in cpu_is_running()
186 if (outputs[0]) /* cpu not in stopped state */ in cpu_is_running()
196 * >0 on cpu not in stopped state
313 * >0 on cpu not in stopped state
/kvm-unit-tests/scripts/
H A Dkernel-doc223 my $state;
227 # Inline documentation state
229 STATE_INLINE_NA => 0, # not applicable ($state != STATE_INLINE)
1826 $state = STATE_NORMAL;
2010 $state = STATE_NAME; # next line is always the function name
2024 $state = STATE_DOCBLOCK;
2060 $state = STATE_BODY;
2073 $state = STATE_BODY_MAYBE;
2080 $state = STATE_NORMAL;
2089 $state = STATE_NORMAL;
[all …]
/kvm-unit-tests/common/
H A Dselftest-migration.c8 * migration of tricky machine state.
/kvm-unit-tests/powerpc/
H A Dselftest-migration.c8 * migration of tricky machine state.
/kvm-unit-tests/arm/
H A Dselftest.c110 * Capture the current register state and execute an instruction
112 * capture of the current register state matches the capture done
237 * Capture the current register state and execute an instruction
239 * capture of the current register state matches the capture done
H A Dtimer.c240 * timer state and we want to test the timer output signal. We can in test_timer_pending()
241 * still read the pending state even if it's disabled. in test_timer_pending()
305 /* Wait one second for the GIC to update the interrupt state. */ in test_timer_tval()
/kvm-unit-tests/lib/powerpc/asm/
H A Dreg.h49 /* Machine State Register definitions: */

12