Home
last modified time | relevance | path

Searched refs:expected_val (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c571 __u64 val, expected_val = 0; in test_bpf_hash_map() local
618 expected_val += val; in test_bpf_hash_map()
649 if (CHECK(skel->bss->val_sum != expected_val, in test_bpf_hash_map()
651 skel->bss->val_sum, expected_val)) in test_bpf_hash_map()
669 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local
705 expected_val += i + j; in test_bpf_percpu_hash_map()
740 if (CHECK(skel->bss->val_sum != expected_val, in test_bpf_percpu_hash_map()
742 skel->bss->val_sum, expected_val)) in test_bpf_percpu_hash_map()
755 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local
774 expected_val in test_bpf_array_map()
843 __u32 expected_key = 0, expected_val = 0; test_bpf_percpu_array_map() local
923 __u32 val, expected_val = 0; test_bpf_sk_storage_map() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_combo_phy.c93 u32 expected_val) in check_phy_reg()
97 if ((val & mask) != expected_val) { in check_phy_reg()
102 reg.reg, val, mask, expected_val); in check_phy_reg()
223 u32 expected_val = 0; in icl_combo_phy_verify_state() local
247 expected_val = ICL_PHY_MISC_MUX_DDID; in icl_combo_phy_verify_state()
251 expected_val); in icl_combo_phy_verify_state()
91 check_phy_reg(struct drm_i915_private *dev_priv, enum phy phy, i915_reg_t reg, u32 mask, u32 expected_val) check_phy_reg() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_ops.c394 static inline bool comp_eq(u32 val, u32 expected_val) in comp_eq() argument
396 return val == expected_val; in comp_eq()
399 static inline bool comp_and(u32 val, u32 expected_val) in comp_and() argument
401 return (val & expected_val) == expected_val; in comp_and()
404 static inline bool comp_or(u32 val, u32 expected_val) in comp_or() argument
406 return (val | expected_val) > 0; in comp_or()
413 bool (*comp_check)(u32 val, u32 expected_val); in qed_init_cmd_rd()
444 data = le32_to_cpu(cmd->expected_val); in qed_init_cmd_rd()
455 addr, le32_to_cpu(cmd->expected_val), in qed_init_cmd_rd()
[all...]
H A Dqed_hsi.h2959 __le32 expected_val; member
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/
H A 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()
[all...]
H A Dqed_hsi.h2290 __le32 expected_val; member
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dmixer-test.c504 snd_ctl_elem_value_t *expected_val) in show_mismatch()
517 expected_int = snd_ctl_elem_value_get_boolean(expected_val, in show_mismatch()
523 expected_int = snd_ctl_elem_value_get_integer(expected_val, in show_mismatch()
529 expected_int = snd_ctl_elem_value_get_integer64(expected_val, in show_mismatch()
536 expected_int = snd_ctl_elem_value_get_enumerated(expected_val, in show_mismatch()
569 snd_ctl_elem_value_t *expected_val) in write_and_verify()
584 if (expected_val) { in write_and_verify()
588 snd_ctl_elem_value_alloca(&expected_val); in write_and_verify()
589 snd_ctl_elem_value_copy(expected_val, write_val); in write_and_verify()
659 if (!snd_ctl_elem_value_compare(expected_val, read_va in write_and_verify()
502 show_mismatch(struct ctl_data *ctl, int index, snd_ctl_elem_value_t *read_val, snd_ctl_elem_value_t *expected_val) show_mismatch() argument
567 write_and_verify(struct ctl_data *ctl, snd_ctl_elem_value_t *write_val, snd_ctl_elem_value_t *expected_val) write_and_verify() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_combo_phy.c95 u32 expected_val) in check_phy_reg()
99 if ((val & mask) != expected_val) { in check_phy_reg()
104 reg.reg, val, mask, expected_val); in check_phy_reg()
262 u32 expected_val = 0; in icl_combo_phy_verify_state() local
287 expected_val = ICL_PHY_MISC_MUX_DDID; in icl_combo_phy_verify_state()
291 expected_val); in icl_combo_phy_verify_state()
93 check_phy_reg(struct drm_i915_private *dev_priv, enum phy phy, i915_reg_t reg, u32 mask, u32 expected_val) check_phy_reg() argument
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dunpriv_bpf_disabled.c105 __u32 expected_val = 1; in test_unpriv_bpf_disabled_positive() local
113 vals[j] = expected_val; in test_unpriv_bpf_disabled_positive()
119 expected_val = prog_id; in test_unpriv_bpf_disabled_positive()
123 ASSERT_EQ(lookup_vals[0], expected_val, "map_lookup_elem_values"); in test_unpriv_bpf_disabled_positive()
H A Dbpf_iter.c774 __u64 val, expected_val = 0; in test_bpf_hash_map() local
816 expected_val += val; in test_bpf_hash_map()
849 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_hash_map()
867 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local
899 expected_val += i + j; in test_bpf_percpu_hash_map()
930 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_percpu_hash_map()
944 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local
962 expected_val += val; in test_bpf_array_map()
1003 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_array_map()
1048 __u32 expected_key = 0, expected_val in test_bpf_percpu_array_map() local
1247 __u32 val, expected_val = 0; test_bpf_sk_storage_map() local
[all...]
H A Dbtf_dump.c271 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data()
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()
834 cmp = strcmp(str, expected_val); in test_btf_datasec()
269 btf_dump_data(struct btf *btf, struct btf_dump *d, char *name, char *prefix, __u64 flags, void *ptr, size_t ptr_sz, char *str, const char *expected_val) btf_dump_data() argument
812 test_btf_datasec(struct btf *btf, struct btf_dump *d, char *str, const char *name, const char *expected_val, void *data, size_t data_sz) test_btf_datasec() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dpci_vsc.c171 static int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *dev, u8 expected_val) in mlx5_vsc_wait_on_flag() argument
190 } while (flag != expected_val); in mlx5_vsc_wait_on_flag()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dpci_vsc.c171 static int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *dev, u8 expected_val) in mlx5_vsc_wait_on_flag() argument
190 } while (flag != expected_val); in mlx5_vsc_wait_on_flag()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_verifier.c882 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
900 if (!err && retval != expected_val && in do_prog_test_run()
901 expected_val != POINTER_VALUE) { in do_prog_test_run()
902 printf("FAIL retval %d != %d ", retval, expected_val); in do_prog_test_run()
1068 uint32_t expected_val; in do_test_single() local
1076 expected_val = test->retvals[i].retval_unpriv; in do_test_single()
1078 expected_val = test->retvals[i].retval; in do_test_single()
1080 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
/kernel/linux/linux-6.6/drivers/hwmon/
H A 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()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_verifier.c1260 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument
1300 if (topts.retval != expected_val && expected_val != POINTER_VALUE) { in do_prog_test_run()
1301 printf("FAIL retval %d != %d ", topts.retval, expected_val); in do_prog_test_run()
1715 uint32_t expected_val; in do_test_single() local
1723 expected_val = test->retvals[i].retval_unpriv; in do_test_single()
1725 expected_val = test->retvals[i].retval; in do_test_single()
1727 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
H A Dintel_uncore.h410 u32 mask, u32 expected_val) in intel_uncore_write_and_verify()
417 return (reg_val & mask) != expected_val ? -EINVAL : 0; in intel_uncore_write_and_verify()
408 intel_uncore_write_and_verify(struct intel_uncore *uncore, i915_reg_t reg, u32 val, u32 mask, u32 expected_val) intel_uncore_write_and_verify() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Dintel_uncore.h489 u32 mask, u32 expected_val) in intel_uncore_write_and_verify()
496 return (reg_val & mask) != expected_val ? -EINVAL : 0; in intel_uncore_write_and_verify()
487 intel_uncore_write_and_verify(struct intel_uncore *uncore, i915_reg_t reg, u32 val, u32 mask, u32 expected_val) intel_uncore_write_and_verify() argument
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/
H A Dhabanalabs.h2606 #define hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
2634 if (__read_val == (expected_val)) \
2647 #define hl_poll_reg_array_timeout(hdev, addr_arr, arr_size, expected_val, sleep_us, \
2649 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
2652 #define hl_poll_reg_array_timeout_elbi(hdev, addr_arr, arr_size, expected_val, sleep_us, \
2654 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c1051 u32 mask, u32 expected_val, in bcmnand_ctrl_poll_status()
1063 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1074 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1078 expected_val, val & mask); in bcmnand_ctrl_poll_status()
1050 bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl, u32 mask, u32 expected_val, unsigned long timeout_ms) bcmnand_ctrl_poll_status() argument
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/brcmnand/
H A Dbrcmnand.c1065 u32 mask, u32 expected_val, in bcmnand_ctrl_poll_status()
1077 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1088 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status()
1092 expected_val, val & mask); in bcmnand_ctrl_poll_status()
1064 bcmnand_ctrl_poll_status(struct brcmnand_controller *ctrl, u32 mask, u32 expected_val, unsigned long timeout_ms) bcmnand_ctrl_poll_status() argument
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dmarvell_nand.c698 u32 expected_val, unsigned long timeout_ms) in marvell_nfc_poll_status()
709 if ((st & mask) == expected_val) in marvell_nfc_poll_status()
697 marvell_nfc_poll_status(struct marvell_nfc *nfc, u32 mask, u32 expected_val, unsigned long timeout_ms) marvell_nfc_poll_status() argument
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dmarvell_nand.c706 u32 expected_val, unsigned long timeout_ms) in marvell_nfc_poll_status()
717 if ((st & mask) == expected_val) in marvell_nfc_poll_status()
705 marvell_nfc_poll_status(struct marvell_nfc *nfc, u32 mask, u32 expected_val, unsigned long timeout_ms) marvell_nfc_poll_status() argument

Completed in 154 milliseconds