| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_init_ops.c | 410 static inline bool comp_eq(u32 val, u32 expected_val) 412 return val == expected_val; in comp_eq() 415 static inline bool comp_and(u32 val, u32 expected_val) 417 return (val & expected_val) == expected_val; in comp_and() 420 static inline bool comp_or(u32 val, u32 expected_val) 422 return (val | expected_val) > 0; in comp_or() 429 bool (*comp_check)(u32 val, u32 expected_val); in qed_init_cmd_rd() 459 data = le32_to_cpu(cmd->expected_val); in qed_init_cmd_rd() 470 addr, le32_to_cpu(cmd->expected_val), in qed_init_cmd_rd() 411 comp_eq(u32 val,u32 expected_val) comp_eq() argument 416 comp_and(u32 val,u32 expected_val) comp_and() argument 421 comp_or(u32 val,u32 expected_val) comp_or() argument [all...] |
| /linux/tools/testing/selftests/alsa/ |
| H A D | mixer-test.c | 567 snd_ctl_elem_value_t *expected_val) in show_mismatch() 580 expected_int = snd_ctl_elem_value_get_boolean(expected_val, in show_mismatch() 586 expected_int = snd_ctl_elem_value_get_integer(expected_val, 592 expected_int = snd_ctl_elem_value_get_integer64(expected_val, in write_and_verify() 599 expected_int = snd_ctl_elem_value_get_enumerated(expected_val, in write_and_verify() 632 snd_ctl_elem_value_t *expected_val) in write_and_verify() 647 if (expected_val) { in write_and_verify() 651 snd_ctl_elem_value_alloca(&expected_val); in write_and_verify() 652 snd_ctl_elem_value_copy(expected_val, write_val); in write_and_verify() 735 if (!snd_ctl_elem_value_compare(expected_val, read_va in test_ctl_write_default() 525 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 590 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...] |
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | pmu_counters_test.c | 428 u64 expected_val) in guest_rd_wr_counters() 436 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_rd_wr_counters() 444 GUEST_ASSERT_PMC_VALUE(RDPMC, rdpmc_idx, val, expected_val); in guest_rd_wr_counters() 472 const u64 expected_val = expect_success ? test_val : 0; in guest_test_gp_counters() 487 GUEST_ASSERT_PMC_VALUE(RDMSR, msr, val, expected_val); in guest_test_gp_counters() 497 guest_test_rdpmc(rdpmc_idx, expect_success, expected_val); 377 guest_test_rdpmc(u32 rdpmc_idx,bool expect_success,u64 expected_val) guest_test_rdpmc() argument 421 const u64 expected_val = expect_success ? test_val : 0; guest_rd_wr_counters() local
|
| /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() 1154 __u32 expected_key = 0, expected_val in test_bpf_percpu_array_map() 1121 __u32 expected_key = 0, expected_val = 0; test_bpf_percpu_array_map() local 1326 __u32 val, expected_val = 0; test_bpf_sk_storage_map() local [all...] |
| H A D | unpriv_bpf_disabled.c | 87 __u32 expected_val = 1; in test_unpriv_bpf_disabled_positive() 95 vals[j] = expected_val; in test_unpriv_bpf_disabled_positive() 101 expected_val = prog_id; in test_unpriv_bpf_disabled_positive() 105 ASSERT_EQ(lookup_vals[0], expected_val, "map_lookup_elem_values"); in test_unpriv_bpf_disabled_positive() 106 __u32 expected_val = 1; test_unpriv_bpf_disabled_positive() local
|
| H A D | btf_dump.c | 660 size_t ptr_sz, char *str, const char *expected_val) in test_btf_dump_struct_data() 691 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in test_btf_dump_struct_data() 1211 const char *expected_val) 1223 if (!ASSERT_STREQ(ctx->str, expected_val, "ensure expected/actual match")) 1318 const char *name, const char *expected_val, 1339 cmp = strcmp(str, expected_val); 341 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 892 btf_dump_one_string(struct btf_dump_string_ctx * ctx,char * ptr,size_t ptr_sz,const char * expected_val) btf_dump_one_string() argument 999 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
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_pwr.c | 240 u64 expected_val = 0; in panthor_pwr_domain_transition() 249 expected_val = 0; in panthor_pwr_domain_transition() 252 expected_val = mask; in panthor_pwr_domain_transition() 264 if ((gpu_read64(pwr->iomem, ready_reg) & mask) == expected_val) in panthor_pwr_domain_transition() 269 ret = gpu_read64_poll_timeout(pwr->iomem, ready_reg, val, (mask & val) == expected_val, in panthor_pwr_domain_transition() 235 u64 expected_val = 0; panthor_pwr_domain_transition() local
|
| /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/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/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/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()
|