| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_init_ops.c | 411 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()
|
| H A D | qed_hsi.h | 2290 __le32 expected_val; member
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_combo_phy.c | 96 u32 expected_val) in check_phy_reg() argument 100 if ((val & mask) != expected_val) { in check_phy_reg() 105 reg.reg, val, mask, expected_val); in check_phy_reg() 222 u32 expected_val = 0; in icl_combo_phy_verify_state() local 246 expected_val = ICL_PHY_MISC_MUX_DDID; in icl_combo_phy_verify_state() 250 expected_val); in icl_combo_phy_verify_state()
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | mixer-test.c | 524 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 D | pmu_counters_test.c | 377 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 D | bpf_iter.c | 848 __u64 val, expected_val = 0; in test_bpf_hash_map() local 890 expected_val += val; in test_bpf_hash_map() 923 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_hash_map() 941 __u32 expected_val = 0; in test_bpf_percpu_hash_map() local 975 expected_val += i + j; in test_bpf_percpu_hash_map() 1006 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_percpu_hash_map() 1020 __u64 val, expected_val = 0, res_first_val, first_val = 0; in test_bpf_array_map() local 1038 expected_val += val; in test_bpf_array_map() 1076 if (!ASSERT_EQ(skel->bss->val_sum, expected_val, "val_sum")) in test_bpf_array_map() 1121 __u32 expected_key = 0, expected_val = 0; in test_bpf_percpu_array_map() local [all …]
|
| H A D | unpriv_bpf_disabled.c | 106 __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 D | btf_dump.c | 341 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 D | panthor_pwr.c | 219 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/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 1253 static int do_prog_test_run(int fd_prog, bool unpriv, uint32_t expected_val, in do_prog_test_run() argument 1293 if (topts.retval != expected_val && expected_val != POINTER_VALUE) { in do_prog_test_run() 1294 printf("FAIL retval %d != %d ", topts.retval, expected_val); in do_prog_test_run() 1672 uint32_t expected_val; in do_test_single() local 1680 expected_val = test->retvals[i].retval_unpriv; in do_test_single() 1682 expected_val = test->retvals[i].retval; in do_test_single() 1684 err = do_prog_test_run(fd_prog, unpriv, expected_val, in do_test_single()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | pci_vsc.c | 180 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/drivers/hwmon/ |
| H A D | nzxt-smart2.c | 511 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/drivers/gpu/drm/i915/ |
| H A D | intel_uncore.h | 484 u32 mask, u32 expected_val) in intel_uncore_write_and_verify() argument 491 return (reg_val & mask) != expected_val ? -EINVAL : 0; in intel_uncore_write_and_verify()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | habanalabs.h | 2707 #define hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument 2735 if (__read_val == (expected_val)) \ 2748 #define hl_poll_reg_array_timeout(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument 2750 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \ 2753 #define hl_poll_reg_array_timeout_elbi(hdev, addr_arr, arr_size, expected_val, sleep_us, \ argument 2755 hl_poll_reg_array_timeout_common(hdev, addr_arr, arr_size, expected_val, sleep_us, \
|
| /linux/drivers/mtd/nand/raw/brcmnand/ |
| H A D | brcmnand.c | 1157 u32 mask, u32 expected_val, in bcmnand_ctrl_poll_status() argument 1173 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status() 1187 if ((val & mask) == expected_val) in bcmnand_ctrl_poll_status() 1191 expected_val, val & mask); in bcmnand_ctrl_poll_status()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | marvell_nand.c | 709 u32 expected_val, unsigned long timeout_ms) in marvell_nfc_poll_status() argument 720 if ((st & mask) == expected_val) in marvell_nfc_poll_status()
|