Home
last modified time | relevance | path

Searched refs:expected_val (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_ops.c411 static inline bool comp_eq(u32 val, u32 expected_val) in comp_eq() argument
413 return val == expected_val; in comp_eq()
416 static inline bool comp_and(u32 val, u32 expected_val) in comp_and() argument
418 return (val & expected_val) == expected_val; in comp_and()
421 static inline bool comp_or(u32 val, u32 expected_val) in comp_or() argument
423 return (val | expected_val) > 0; in comp_or()
430 bool (*comp_check)(u32 val, u32 expected_val); in qed_init_cmd_rd()
460 data = le32_to_cpu(cmd->expected_val); in qed_init_cmd_rd()
471 addr, le32_to_cpu(cmd->expected_val), in qed_init_cmd_rd()
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c524 snd_ctl_elem_value_t *expected_val) in show_mismatch() argument
537 expected_int = snd_ctl_elem_value_get_boolean(expected_val, in show_mismatch()
543 expected_int = snd_ctl_elem_value_get_integer(expected_val, in show_mismatch()
549 expected_int = snd_ctl_elem_value_get_integer64(expected_val, in show_mismatch()
556 expected_int = snd_ctl_elem_value_get_enumerated(expected_val, in show_mismatch()
589 snd_ctl_elem_value_t *expected_val) in write_and_verify() argument
604 if (expected_val) { in write_and_verify()
608 snd_ctl_elem_value_alloca(&expected_val); in write_and_verify()
609 snd_ctl_elem_value_copy(expected_val, write_val); in write_and_verify()
692 if (!snd_ctl_elem_value_compare(expected_val, read_val)) in write_and_verify()
[all …]
/linux/tools/testing/selftests/kvm/x86/
H A Dpmu_counters_test.c377 uint64_t expected_val) in guest_test_rdpmc() argument
385 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
393 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
421 const uint64_t expected_val = expect_success ? test_val : 0; in guest_rd_wr_counters() local
436 GUEST_ASSERT_PMC_VALUE(RDMSR, msr, val, expected_val); in guest_rd_wr_counters()
446 guest_test_rdpmc(rdpmc_idx, expect_success, expected_val); in guest_rd_wr_counters()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c849 __u64 val, expected_val = 0; in test_bpf_hash_map() local
891 expected_val += val; in test_bpf_hash_map()
924 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_hash_map()
942 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local
976 expected_val += i + j; in test_bpf_percpu_hash_map()
1007 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_percpu_hash_map()
1021 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local
1039 expected_val += val; in test_bpf_array_map()
1077 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_array_map()
1122 __u32 expected_key = 0, expected_val = 0; in test_bpf_percpu_array_map() local
[all …]
H A Dunpriv_bpf_disabled.c106 __u32 expected_val = 1; in test_unpriv_bpf_disabled_positive() local
114 vals[j] = expected_val; in test_unpriv_bpf_disabled_positive()
120 expected_val = prog_id; in test_unpriv_bpf_disabled_positive()
124 ASSERT_EQ(lookup_vals[0], expected_val, "map_lookup_elem_values"); in test_unpriv_bpf_disabled_positive()
H A Dbtf_dump.c341 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument
372 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data()
892 const char *expected_val) in btf_dump_one_string() argument
904 if (!ASSERT_STREQ(ctx->str, expected_val, "ensure expected/actual match")) in btf_dump_one_string()
999 const char *name, const char *expected_val, in test_btf_datasec() argument
1020 cmp = strcmp(str, expected_val); in test_btf_datasec()
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_pwr.c219 u64 expected_val = 0; in panthor_pwr_domain_transition() local
228 expected_val = 0; in panthor_pwr_domain_transition()
231 expected_val = mask; in panthor_pwr_domain_transition()
243 if ((gpu_read64(ptdev, ready_reg) & mask) == expected_val) in panthor_pwr_domain_transition()
248 ret = gpu_read64_poll_timeout(ptdev, ready_reg, val, (mask & val) == expected_val, 100, in panthor_pwr_domain_transition()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dpci_vsc.c180 static int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *dev, u8 expected_val) in mlx5_vsc_wait_on_flag() argument
199 } while (flag != expected_val); in mlx5_vsc_wait_on_flag()