Home
last modified time | relevance | path

Searched refs:cval (Results 1 – 10 of 10) sorted by relevance

/tools/testing/selftests/kvm/arm64/
A Darch_timer_edge_cases.c149 uint64_t cnt, cval; in guest_irq_handler() local
166 cval = timer_get_cval(timer); in guest_irq_handler()
168 timer_condition = cnt >= cval; in guest_irq_handler()
514 test_timer_cval(timer, cval, wm, true, DEF_CNT); in test_basic_functionality()
611 uint64_t cval; in test_timers_above_tval_max() local
623 cval = timer_get_cntct(timer) + TVAL_MAX + in test_timers_above_tval_max()
625 test_cval_no_irq(timer, cval, in test_timers_above_tval_max()
695 uint64_t cval, uint64_t cnt_2, in test_set_cnt_after_cval() argument
710 uint64_t cnt_1, uint64_t cval, in test_set_cnt_after_cval_no_irq() argument
758 uint64_t cval; in test_timers_in_the_past() local
[all …]
A Darch_timer.c59 uint64_t xcnt = 0, xcnt_diff_us, cval = 0; in guest_validate_irq() local
89 cval = timer_get_cval(accessor); in guest_validate_irq()
97 __GUEST_ASSERT(xcnt >= cval, in guest_validate_irq()
99 xcnt, cval, xcnt_diff_us); in guest_validate_irq()
/tools/testing/selftests/kvm/include/arm64/
A Darch_timer.h51 static inline void timer_set_cval(enum arch_timer timer, uint64_t cval) in timer_set_cval() argument
55 write_sysreg(cval, cntv_cval_el0); in timer_set_cval()
58 write_sysreg(cval, cntp_cval_el0); in timer_set_cval()
/tools/testing/selftests/kvm/include/riscv/
A Darch_timer.h30 static inline void timer_set_cmp(uint64_t cval) in timer_set_cmp() argument
32 csr_write(CSR_STIMECMP, cval); in timer_set_cmp()
/tools/testing/selftests/filesystems/statmount/
A Dstatmount_test_ns.c226 char cval; in test_listmount_ns() local
249 if (read(parent_ready_pipe[0], &cval, sizeof(cval)) != sizeof(cval)) in test_listmount_ns()
/tools/testing/selftests/bpf/progs/
A Dtest_l4lb.c332 struct ctl_value *cval; in process_packet() local
427 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet()
428 if (!cval) in process_packet()
430 ifindex = cval->ifindex; in process_packet()
434 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet()
435 if (!cval) in process_packet()
437 ifindex = cval->ifindex; in process_packet()
A Dtest_l4lb_noinline.c331 struct ctl_value *cval; in process_packet() local
426 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet()
427 if (!cval) in process_packet()
429 ifindex = cval->ifindex; in process_packet()
433 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet()
434 if (!cval) in process_packet()
436 ifindex = cval->ifindex; in process_packet()
A Dtest_l4lb_noinline_dynptr.c336 struct ctl_value *cval; in process_packet() local
433 cval = bpf_map_lookup_elem(&ctl_array, &v6_intf_pos); in process_packet()
434 if (!cval) in process_packet()
436 ifindex = cval->ifindex; in process_packet()
440 cval = bpf_map_lookup_elem(&ctl_array, &v4_intf_pos); in process_packet()
441 if (!cval) in process_packet()
443 ifindex = cval->ifindex; in process_packet()
A Dtest_xdp_noinline.c279 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6() argument
300 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v6()
330 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4() argument
356 memcpy(new_eth->eth_dest, cval->mac, 6); in encap_v4()
678 struct ctl_value *cval; in process_packet() local
748 cval = bpf_map_lookup_elem(&ctl_array, &mac_addr_pos); in process_packet()
749 if (!cval) in process_packet()
752 if (!encap_v6(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
755 if (!encap_v4(xdp, cval, &pckt, dst, pkt_bytes)) in process_packet()
/tools/testing/selftests/breakpoints/
A Dbreakpoint_test.c177 char cval; short sval; int ival; long long lval; in read_var() local
183 cval = *(char *)&dummy_var[i]; in read_var()

Completed in 17 milliseconds