Home
last modified time | relevance | path

Searched full:v (Results 1 – 25 of 62) sorted by relevance

123

/kvm-unit-tests/lib/x86/
H A Datomic.h16 * @v: pointer of type atomic_t
18 * Atomically reads the value of @v.
20 static inline int atomic_read(const atomic_t *v) in atomic_read() argument
22 return v->counter; in atomic_read()
27 * @v: pointer of type atomic_t
30 * Atomically sets the value of @v to @i.
32 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument
34 v->counter = i; in atomic_set()
39 * @v: pointer of type atomic_t
41 * Atomically increments @v by 1.
[all …]
H A Datomic.c6 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new) in atomic64_cmpxchg() argument
13 "+m" (*(volatile long long *)&v->counter) in atomic64_cmpxchg()
23 u64 atomic64_cmpxchg(atomic64_t *v, u64 old, u64 new) in atomic64_cmpxchg() argument
30 : "=a" (ret), "+m" (*(volatile long *)&v->counter) in atomic64_cmpxchg()
/kvm-unit-tests/lib/arm64/
H A Dprocessor.c105 static void bad_exception(enum vector v, struct pt_regs *regs, in bad_exception() argument
118 if (v < VECTOR_MAX) in bad_exception()
119 printf("Unhandled vector %d (%s)\n", v, in bad_exception()
120 vector_names[v]); in bad_exception()
122 printf("Got bad vector=%d\n", v); in bad_exception()
131 printf("Vector: %d (%s)\n", v, vector_names[v]); in bad_exception()
140 void install_exception_handler(enum vector v, unsigned int ec, exception_fn fn) in install_exception_handler() argument
144 if (v < VECTOR_MAX && ec < EC_MAX) in install_exception_handler()
145 ti->exception_handlers[v][ec] = fn; in install_exception_handler()
148 void install_irq_handler(enum vector v, irq_handler_fn fn) in install_irq_handler() argument
[all …]
H A Dspinlock.c18 lock->v = 1; in spin_lock()
30 : "r" (&lock->v) in spin_lock()
40 asm volatile("stlrh wzr, [%0]" :: "r" (&lock->v)); in spin_unlock()
42 lock->v = 0; in spin_unlock()
/kvm-unit-tests/lib/arm/
H A Dprocessor.c48 buf[3] = flags & PSR_V_BIT ? 'V' : 'v'; in show_regs()
68 void install_exception_handler(enum vector v, exception_fn fn) in install_exception_handler() argument
72 if (v < EXCPTN_MAX) in install_exception_handler()
73 ti->exception_handlers[v] = fn; in install_exception_handler()
77 void do_handle_exception(enum vector v, struct pt_regs *regs);
79 void do_handle_exception(enum vector v, struct pt_regs *regs) in do_handle_exception() argument
84 if (v < EXCPTN_MAX && ti->exception_handlers[v]) { in do_handle_exception()
85 ti->exception_handlers[v](regs); in do_handle_exception()
91 if (v < EXCPTN_MAX && ti->exception_handlers[v]) { in do_handle_exception()
92 ti->exception_handlers[v](regs); in do_handle_exception()
[all …]
H A Dspinlock.c17 lock->v = 1; in spin_lock()
30 : "r" (&lock->v) in spin_lock()
40 lock->v = 0; in spin_unlock()
/kvm-unit-tests/lib/s390x/
H A Dsclp-console.c48 /*50 P Q R S T U V W */
56 /*70 p q r s t u v w */
324 struct gds_vector *v; in sclp_find_gds_vector() local
326 for (v = start; (void *)v < end; v = (void *)v + v->length) in sclp_find_gds_vector()
327 if (v->gds_id == id) in sclp_find_gds_vector()
328 return v; in sclp_find_gds_vector()
343 static struct gds_subvector *sclp_eval_textcmd(struct gds_vector *v) in sclp_eval_textcmd() argument
348 end = (void *)v + v->length; in sclp_eval_textcmd()
349 for (sv = (struct gds_subvector *)(v + 1); (void *)sv < end; in sclp_eval_textcmd()
356 static struct gds_subvector *sclp_eval_cpmsu(struct gds_vector *v) in sclp_eval_cpmsu() argument
[all …]
/kvm-unit-tests/lib/asm-generic/
H A Dspinlock.h5 unsigned int v; member
10 while (__sync_lock_test_and_set(&lock->v, 1)); in spin_lock()
15 __sync_lock_release(&lock->v); in spin_unlock()
/kvm-unit-tests/powerpc/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
/kvm-unit-tests/common/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
/kvm-unit-tests/arm/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
H A Dselftest.c316 enum vector v = check_vector_prep(); in check_und() local
318 install_exception_handler(v, ESR_EL1_EC_UNKNOWN, unknown_handler); in check_und()
323 install_exception_handler(v, ESR_EL1_EC_UNKNOWN, NULL); in check_und()
338 enum vector v = check_vector_prep(); in check_svc() local
340 install_exception_handler(v, ESR_EL1_EC_SVC64, svc_handler); in check_svc()
344 install_exception_handler(v, ESR_EL1_EC_SVC64, NULL); in check_svc()
363 enum vector v = check_vector_prep(); in check_pabt() local
365 install_exception_handler(v, ESR_EL1_EC_IABT_EL1, pabt_handler); in check_pabt()
373 install_exception_handler(v, ESR_EL1_EC_IABT_EL1, NULL); in check_pabt()
H A Dspinlock-test.c20 void (*lock)(int *v);
21 void (*unlock)(int *v);
/kvm-unit-tests/riscv/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
/kvm-unit-tests/x86/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
H A Dhyperv_stimer.c103 report_fail("invalid Hyper-V SynIC msg type"); in process_stimer_msg()
113 report_fail("invalid Hyper-V SynIC msg payload size"); in process_stimer_msg()
121 report_fail("invalid Hyper-V SynIC timer index"); in process_stimer_msg()
305 report_pass("Hyper-V SynIC periodic timers test vcpu %d", vcpu); in stimer_test_periodic()
317 report_pass("Hyper-V SynIC one-shot test vcpu %d", vcpu); in stimer_test_one_shot()
328 report_pass("Hyper-V SynIC auto-enable one-shot timer test vcpu %d", vcpu); in stimer_test_auto_enable_one_shot()
339 report_pass("Hyper-V SynIC auto-enable periodic timer test vcpu %d", vcpu); in stimer_test_auto_enable_periodic()
425 printf("Starting Hyper-V SynIC timers tests: message mode\n"); in stimer_test_all()
434 printf("Starting Hyper-V SynIC timers tests: direct mode\n"); in stimer_test_all()
450 report_skip("Hyper-V SynIC is not supported"); in main()
[all …]
H A Demulator.c178 unsigned long *m = mem, v = 1234; in test_incdecnotneg() local
201 *m = v; in test_incdecnotneg()
204 asm ("lock negq %0" : "+m"(*m)); v = -v; in test_incdecnotneg()
205 report(*m == v, "lock negl"); in test_incdecnotneg()
206 asm ("lock notq %0" : "+m"(*m)); v = ~v; in test_incdecnotneg()
207 report(*m == v, "lock notl"); in test_incdecnotneg()
401 uint32_t *v = (uint32_t *)&vv; in test_sse() local
408 v[0] = 1; v[1] = 2; v[2] = 3; v[3] = 4; \ in test_sse()
410 report(sseeq(v, mem), insn " (read)"); \ in test_sse()
413 report(sseeq(v, mem), insn " (write)"); \ in test_sse()
[all …]
H A Dsmap.c49 #define USER_VAR(v) (*((__typeof__(&(v))) (((unsigned long)&v) + USER_BASE))) argument
50 #define USER_ADDR(v) ((void *)((unsigned long)(&v) + USER_BASE)) argument
/kvm-unit-tests/s390x/
H A Dsieve.c38 void *v; in main() local
47 v = malloc(VSIZE); in main()
48 test_sieve("virtual", v, VSIZE); in main()
49 free(v); in main()
H A Dgs.c28 unsigned long v; in load_guarded() local
31 : "=d" (v) in load_guarded()
34 return v; in load_guarded()
72 unsigned long v; in test_load() local
75 v = load_guarded(&gs_area); in test_load()
76 report(guarded, "load guarded %ld", v); in test_load()
/kvm-unit-tests/lib/arm64/asm/
H A Dprocessor.h37 typedef void (*vector_fn)(enum vector v, struct pt_regs *regs,
41 extern void install_vector_handler(enum vector v, vector_fn fn);
42 extern void install_exception_handler(enum vector v, unsigned int ec,
44 extern void install_irq_handler(enum vector v, irq_handler_fn fn);
45 extern void default_vector_sync_handler(enum vector v, struct pt_regs *regs,
47 extern void default_vector_irq_handler(enum vector v, struct pt_regs *regs,
H A Dsysreg.h39 #define write_sysreg(v, r) do { \ argument
40 u64 __val = (u64)v; \
50 #define write_sysreg_s(v, r) do { \ argument
51 u64 __val = (u64)v; \
/kvm-unit-tests/lib/powerpc/
H A Dprocessor.c47 unsigned char v; in do_handle_exception() local
61 v = regs->trap >> 5; in do_handle_exception()
63 if (v < 128 && handlers[v].func) { in do_handle_exception()
64 handlers[v].func(regs, handlers[v].data); in do_handle_exception()
/kvm-unit-tests/scripts/
H A Darch-run.bash133 grep -v "Now migrate the VM (quiet)" |
134 grep -v "Begin continuous migration (quiet)" |
135 grep -v "End continuous migration (quiet)" |
136 grep -v "Skipped VM migration (quiet)"
150 if ! command -v ncat >/dev/null 2>&1; then
355 if ! command -v ncat >/dev/null 2>&1; then
360 if ! command -v jq >/dev/null 2>&1; then
421 command -v $qemu
460 if eval test -v $p; then
530 local line commit minver errata rest v p s x have
[all …]
/kvm-unit-tests/lib/arm/asm/
H A Dsysreg.h61 #define __write_sysreg(v, r, w, c, t) asm volatile(w " " c : : "r" ((t)(v))) argument
62 #define write_sysreg(v, ...) __write_sysreg(v, __VA_ARGS__) argument

123