Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_init_ops.c412 static inline bool comp_eq(u32 val, u32 expected_val) in comp_eq() argument
414 return val == expected_val; in comp_eq()
417 static inline bool comp_and(u32 val, u32 expected_val) in comp_and() argument
419 return (val & expected_val) == expected_val; in comp_and()
422 static inline bool comp_or(u32 val, u32 expected_val) in comp_or() argument
424 return (val | expected_val) > 0; in comp_or()
431 bool (*comp_check)(u32 val, u32 expected_val); in qed_init_cmd_rd()
461 data = le32_to_cpu(cmd->expected_val); in qed_init_cmd_rd()
472 addr, le32_to_cpu(cmd->expected_val), in qed_init_cmd_rd()
Dqed_hsi.h2290 __le32 expected_val; member
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_combo_phy.c93 u32 expected_val) in check_phy_reg() argument
97 if ((val & mask) != expected_val) { in check_phy_reg()
102 reg.reg, val, mask, expected_val); in check_phy_reg()
221 u32 expected_val = 0; in icl_combo_phy_verify_state() local
245 expected_val = ICL_PHY_MISC_MUX_DDID; in icl_combo_phy_verify_state()
249 expected_val); in icl_combo_phy_verify_state()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dpmu_counters_test.c334 __GUEST_ASSERT(val == expected_val, \
336 msr, expected_val, val);
339 uint64_t expected_val) in guest_test_rdpmc() argument
347 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
355 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_test_rdpmc()
383 const uint64_t expected_val = expect_success ? test_val : 0; in guest_rd_wr_counters() local
398 GUEST_ASSERT_PMC_VALUE(RDMSR, msr, val, expected_val); in guest_rd_wr_counters()
408 guest_test_rdpmc(rdpmc_idx, expect_success, expected_val); in guest_rd_wr_counters()
/linux-6.12.1/tools/testing/selftests/alsa/
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-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c781 __u64 val, expected_val = 0; in test_bpf_hash_map() local
823 expected_val += val; in test_bpf_hash_map()
856 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_hash_map()
874 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local
908 expected_val += i + j; in test_bpf_percpu_hash_map()
939 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_percpu_hash_map()
953 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local
971 expected_val += val; in test_bpf_array_map()
1009 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_array_map()
1054 __u32 expected_key = 0, expected_val = 0; in test_bpf_percpu_array_map() local
[all …]
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()
Dbtf_dump.c271 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument
302 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data()
813 const char *name, const char *expected_val, in test_btf_datasec() argument
834 cmp = strcmp(str, expected_val); in test_btf_datasec()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
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()
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_verifier.c1257 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1297 if (topts.retval != expected_val && expected_val != POINTER_VALUE) { in do_prog_test_run()
1298 printf("FAIL retval %d != %d ", topts.retval, expected_val); in do_prog_test_run()
1676 uint32_t expected_val; in do_test_single() local
1684 expected_val = test->retvals[i].retval_unpriv; in do_test_single()
1686 expected_val = test->retvals[i].retval; in do_test_single()
1688 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
/linux-6.12.1/drivers/hwmon/
Dnzxt-smart2.c511 long expected_val; in set_pwm_enable() local
523 expected_val = drvdata->fan_type[channel] != FAN_TYPE_NONE; in set_pwm_enable()
527 return (val == expected_val) ? 0 : -EOPNOTSUPP; in set_pwm_enable()
/linux-6.12.1/drivers/gpu/drm/i915/
Dintel_uncore.h489 u32 mask, u32 expected_val) in intel_uncore_write_and_verify() argument
496 return (reg_val & mask) != expected_val ? -EINVAL : 0; in intel_uncore_write_and_verify()
/linux-6.12.1/drivers/accel/habanalabs/common/
Dhabanalabs.h2670 #define hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument
2698 if (__read_val == (expected_val)) \
2711 #define hl_poll_reg_array_timeout(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument
2713 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
2716 #define hl_poll_reg_array_timeout_elbi(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument
2718 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
/linux-6.12.1/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c1121 u32 mask, u32 expected_val, in bcmnand_ctrl_poll_status() argument
1137 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1151 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1155 expected_val, val & mask); in bcmnand_ctrl_poll_status()
/linux-6.12.1/drivers/mtd/nand/raw/
Dmarvell_nand.c706 u32 expected_val, unsigned long timeout_ms) in marvell_nfc_poll_status() argument
717 if ((st & mask) == expected_val) in marvell_nfc_poll_status()