Home
last modified time | relevance | path

Searched refs:vals (Results 1 - 25 of 319) sorted by relevance

12345678910>>...13

/kernel/linux/linux-5.10/kernel/trace/
H A Dsynth_event_gen_test.c48 u64 vals[7]; in test_gen_synth_cmd() local
113 vals[0] = 777; /* next_pid_field */ in test_gen_synth_cmd()
114 vals[1] = (u64)(long)"hula hoops"; /* next_comm_field */ in test_gen_synth_cmd()
115 vals[2] = 1000000; /* ts_ns */ in test_gen_synth_cmd()
116 vals[3] = 1000; /* ts_ms */ in test_gen_synth_cmd()
117 vals[4] = raw_smp_processor_id(); /* cpu */ in test_gen_synth_cmd()
118 vals[5] = (u64)(long)"thneed"; /* my_string_field */ in test_gen_synth_cmd()
119 vals[6] = 598; /* my_int_field */ in test_gen_synth_cmd()
122 ret = synth_event_trace_array(gen_synth_test, vals, ARRAY_SIZE(vals)); in test_gen_synth_cmd()
139 u64 vals[7]; test_empty_synth_event() local
255 u64 vals[9]; test_create_synth_event() local
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dsynth_event_gen_test.c48 u64 vals[7]; in test_gen_synth_cmd() local
113 vals[0] = 777; /* next_pid_field */ in test_gen_synth_cmd()
114 vals[1] = (u64)(long)"hula hoops"; /* next_comm_field */ in test_gen_synth_cmd()
115 vals[2] = 1000000; /* ts_ns */ in test_gen_synth_cmd()
116 vals[3] = 1000; /* ts_ms */ in test_gen_synth_cmd()
117 vals[4] = raw_smp_processor_id(); /* cpu */ in test_gen_synth_cmd()
118 vals[5] = (u64)(long)"thneed"; /* my_string_field */ in test_gen_synth_cmd()
119 vals[6] = 598; /* my_int_field */ in test_gen_synth_cmd()
122 ret = synth_event_trace_array(gen_synth_test, vals, ARRAY_SIZE(vals)); in test_gen_synth_cmd()
139 u64 vals[7]; test_empty_synth_event() local
255 u64 vals[9]; test_create_synth_event() local
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dparse-metric.c33 static void load_runtime_stat(struct evlist *evlist, struct value *vals) in load_runtime_stat() argument
40 count = find_value(evsel->name, vals); in load_runtime_stat()
68 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument
108 load_runtime_stat(evlist, vals); in __compute_metric()
125 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
127 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
130 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument
134 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group()
140 struct value vals[] = { in test_ipc() local
147 compute_metric("IPC", vals, in test_ipc()
157 struct value vals[] = { test_frontend() local
176 struct value vals[] = { test_cache_miss_cycles() local
216 struct value vals[] = { test_dcache_l2() local
243 struct value vals[] = { test_recursion_fail() local
260 struct value vals[] = { test_memory_bandwidth() local
277 struct value vals[] = { test_metric_group() local
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dparse-metric.c102 struct value *vals) in load_runtime_stat()
108 count = find_value(evsel->name, vals); in load_runtime_stat()
133 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument
174 load_runtime_stat(&st, evlist, vals); in __compute_metric()
192 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument
194 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric()
197 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument
201 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group()
207 struct value vals[] = { in test_ipc() local
214 compute_metric("IPC", vals, in test_ipc()
101 load_runtime_stat(struct runtime_stat *st, struct evlist *evlist, struct value *vals) load_runtime_stat() argument
224 struct value vals[] = { test_frontend() local
243 struct value vals[] = { test_cache_miss_cycles() local
283 struct value vals[] = { test_dcache_l2() local
310 struct value vals[] = { test_recursion_fail() local
327 struct value vals[] = { test_metric_group() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dverifier_subprog_precision.c12 int vals[] SEC(".data.vals") = {1, 2, 3, 4};
61 * r6 -> r1 -> r0 chain), as index into vals array, forcing in subprog_result_precise()
65 "r1 = %[vals];" in subprog_result_precise()
74 : __imm_ptr(vals) in subprog_result_precise()
98 * we need to clamp it), as index into vals array, forcing r0 in global_subprog_result_precise()
105 "r1 = %[vals];" in global_subprog_result_precise()
114 : __imm_ptr(vals), in global_subprog_result_precise()
115 __imm_const(vals_arr_sz, ARRAY_SIZE(vals)) in global_subprog_result_precise()
174 "r1 = %[vals];" in callback_result_precise()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/gpio/
H A Dgpio-mockup-cdev.c48 struct gpio_v2_line_values vals; in get_value_v2() local
51 memset(&vals, 0, sizeof(vals)); in get_value_v2()
52 vals.mask = 1; in get_value_v2()
53 ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals); in get_value_v2()
56 return vals.bits & 0x1; in get_value_v2()
81 struct gpiohandle_data vals; in get_value_v1() local
84 memset(&vals, 0, sizeof(vals)); in get_value_v1()
85 ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals); in get_value_v1()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dqueue_stack_map.c13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local
21 vals[i] = rand(); in test_queue_stack_map_by_type()
44 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type()
54 val = vals[i]; in test_queue_stack_map_by_type()
55 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
57 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type()
58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
84 if (err || val != vals[i] * 5) in test_queue_stack_map_by_type()
88 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
/kernel/linux/linux-6.6/sound/soc/fsl/
H A Dfsl_ssi.c406 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_config_enable() local
427 srcr = vals[RX].srcr | vals[TX].srcr; in fsl_ssi_config_enable()
428 stcr = vals[RX].stcr | vals[TX].stcr; in fsl_ssi_config_enable()
429 sier = vals[RX].sier | vals[TX].sier; in fsl_ssi_config_enable()
432 srcr = vals[dir].srcr; in fsl_ssi_config_enable()
433 stcr = vals[dir].stcr; in fsl_ssi_config_enable()
434 sier = vals[di in fsl_ssi_config_enable()
509 struct fsl_ssi_regvals *vals, *avals; fsl_ssi_config_disable() local
588 struct fsl_ssi_regvals *vals = ssi->regvals; fsl_ssi_setup_regvals() local
810 struct fsl_ssi_regvals *vals = ssi->regvals; fsl_ssi_hw_params() local
[all...]
/kernel/linux/linux-5.10/arch/c6x/platforms/
H A Ddscr.c296 u32 vals[3]; in dscr_parse_silicon_rev() local
299 err = of_property_read_u32_array(node, "ti,dscr-silicon-rev", vals, 3); in dscr_parse_silicon_rev()
301 c6x_silicon_rev = soc_readl(base + vals[0]); in dscr_parse_silicon_rev()
302 c6x_silicon_rev >>= vals[1]; in dscr_parse_silicon_rev() local
303 c6x_silicon_rev &= vals[2]; in dscr_parse_silicon_rev()
327 u32 vals[10], fuse; in dscr_parse_mac_fuse() local
331 vals, 10); in dscr_parse_mac_fuse()
336 fuse = soc_readl(base + vals[f * 5]); in dscr_parse_mac_fuse()
338 if (vals[j] && vals[ in dscr_parse_mac_fuse()
368 u32 vals[2]; dscr_parse_privperm() local
431 u32 vals[4]; dscr_parse_kick_regs() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dqueue_stack_map.c13 __u32 vals[MAP_SIZE], val; in test_queue_stack_map_by_type() local
28 vals[i] = rand(); in test_queue_stack_map_by_type()
51 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type()
61 val = vals[i]; in test_queue_stack_map_by_type()
62 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
64 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type()
65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
97 ASSERT_EQ(val, vals[i] * 5, "bpf_map_push_elem val"); in test_queue_stack_map_by_type()
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/
H A Dguest_print_test.c23 static struct guest_vals vals; variable
58 vals = (struct guest_vals){ (uint64_t)a, (uint64_t)b, TYPE_##ext }; \
59 sync_global_to_guest(vcpu->vm, vals); \
71 switch (vals.type) { in guest_code()
74 GUEST_PRINTF(PRINTF_FMT_##ext, vals.a, vals.b); \ in guest_code()
75 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code()
76 ASSERT_FMT_##ext, vals.a, vals in guest_code()
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dsmb2ops.c200 conn->vals = &smb21_server_values; in init_smb2_1_server()
207 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb2_1_server()
217 conn->vals = &smb30_server_values; in init_smb3_0_server()
224 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_0_server()
229 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server()
232 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_0_server()
242 conn->vals = &smb302_server_values; in init_smb3_02_server()
249 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_02_server()
255 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server()
258 conn->vals in init_smb3_02_server()
[all...]
/kernel/linux/linux-5.10/sound/soc/fsl/
H A Dfsl_ssi.c401 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_config_enable() local
422 srcr = vals[RX].srcr | vals[TX].srcr; in fsl_ssi_config_enable()
423 stcr = vals[RX].stcr | vals[TX].stcr; in fsl_ssi_config_enable()
424 sier = vals[RX].sier | vals[TX].sier; in fsl_ssi_config_enable()
427 srcr = vals[dir].srcr; in fsl_ssi_config_enable()
428 stcr = vals[dir].stcr; in fsl_ssi_config_enable()
429 sier = vals[di in fsl_ssi_config_enable()
504 struct fsl_ssi_regvals *vals, *avals; fsl_ssi_config_disable() local
583 struct fsl_ssi_regvals *vals = ssi->regvals; fsl_ssi_setup_regvals() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
H A Dinit.c174 u32 *vals; in mt7601u_init_wcid_mem() local
177 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL); in mt7601u_init_wcid_mem()
178 if (!vals) in mt7601u_init_wcid_mem()
182 vals[i * 2] = 0xffffffff; in mt7601u_init_wcid_mem()
183 vals[i * 2 + 1] = 0x00ffffff; in mt7601u_init_wcid_mem()
187 vals, N_WCIDS * 2); in mt7601u_init_wcid_mem()
188 kfree(vals); in mt7601u_init_wcid_mem()
195 u32 vals[4] = {}; in mt7601u_init_key_mem() local
198 vals, ARRAY_SIZ in mt7601u_init_key_mem()
203 u32 *vals; mt7601u_init_wcid_attr_mem() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt7601u/
H A Dinit.c174 u32 *vals; in mt7601u_init_wcid_mem() local
177 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL); in mt7601u_init_wcid_mem()
178 if (!vals) in mt7601u_init_wcid_mem()
182 vals[i * 2] = 0xffffffff; in mt7601u_init_wcid_mem()
183 vals[i * 2 + 1] = 0x00ffffff; in mt7601u_init_wcid_mem()
187 vals, N_WCIDS * 2); in mt7601u_init_wcid_mem()
188 kfree(vals); in mt7601u_init_wcid_mem()
195 u32 vals[4] = {}; in mt7601u_init_key_mem() local
198 vals, ARRAY_SIZ in mt7601u_init_key_mem()
203 u32 *vals; mt7601u_init_wcid_attr_mem() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/imu/bno055/
H A Dbno055.c117 int *vals; member
130 .vals = bno055_acc_lpf_vals,
142 .vals = bno055_acc_range_vals,
174 .vals = bno055_gyr_scale_vals,
183 .vals = bno055_gyr_lpf_vals,
192 .vals = bno055_mag_odr_vals,
570 *val = attr->vals[idx]; in bno055_get_regmask()
572 *val = attr->vals[idx * 2]; in bno055_get_regmask()
573 *val2 = attr->vals[idx * 2 + 1]; in bno055_get_regmask()
619 tbl_val = attr->vals[ in bno055_set_regmask()
761 bno055_sysfs_attr_avail(struct bno055_priv *priv, struct bno055_sysfs_attr *attr, const int **vals, int *length) bno055_sysfs_attr_avail() argument
779 bno055_read_avail(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, const int **vals, int *type, int *length, long mask) bno055_read_avail() argument
844 bno055_read_quaternion(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) bno055_read_quaternion() argument
901 _bno055_read_raw_multi(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) _bno055_read_raw_multi() argument
943 bno055_read_raw_multi(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) bno055_read_raw_multi() argument
[all...]
/kernel/linux/linux-5.10/fs/cifs/
H A Dfs_context.c45 vol->vals = &smb1_values; in cifs_parse_smb_version()
57 vol->vals = &smb20_values; in cifs_parse_smb_version()
69 vol->vals = &smb21_values; in cifs_parse_smb_version()
73 vol->vals = &smb30_values; in cifs_parse_smb_version()
77 vol->vals = &smb302_values; in cifs_parse_smb_version()
81 vol->vals = &smb311_values; in cifs_parse_smb_version()
85 vol->vals = &smb3any_values; in cifs_parse_smb_version()
89 vol->vals = &smbdefault_values; in cifs_parse_smb_version()
/kernel/linux/linux-5.10/drivers/iio/orientation/
H A Dhid-sensor-rotation.c59 int size, int *vals, int *val_len, in dev_rot_read_raw()
66 vals[0] = 0; in dev_rot_read_raw()
67 vals[1] = 0; in dev_rot_read_raw()
73 vals[i] = rot_state->sampled_vals[i]; in dev_rot_read_raw()
80 vals[0] = rot_state->scale_pre_decml; in dev_rot_read_raw()
81 vals[1] = rot_state->scale_post_decml; in dev_rot_read_raw()
85 *vals = rot_state->value_offset; in dev_rot_read_raw()
90 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
94 &rot_state->common_attributes, &vals[ in dev_rot_read_raw()
57 dev_rot_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) dev_rot_read_raw() argument
[all...]
/kernel/linux/linux-6.6/drivers/iio/orientation/
H A Dhid-sensor-rotation.c68 int size, int *vals, int *val_len, in dev_rot_read_raw()
75 vals[0] = 0; in dev_rot_read_raw()
76 vals[1] = 0; in dev_rot_read_raw()
82 vals[i] = rot_state->scan.sampled_vals[i]; in dev_rot_read_raw()
89 vals[0] = rot_state->scale_pre_decml; in dev_rot_read_raw()
90 vals[1] = rot_state->scale_post_decml; in dev_rot_read_raw()
94 *vals = rot_state->value_offset; in dev_rot_read_raw()
99 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
103 &rot_state->common_attributes, &vals[ in dev_rot_read_raw()
66 dev_rot_read_raw(struct iio_dev *indio_dev, struct iio_chan_spec const *chan, int size, int *vals, int *val_len, long mask) dev_rot_read_raw() argument
[all...]
/kernel/linux/linux-5.10/drivers/clk/uniphier/
H A Dclk-uniphier-mux.c18 const unsigned int *vals; member
28 mux->vals[index]); in uniphier_clk_mux_set_parent()
44 if ((mux->masks[i] & val) == mux->vals[i]) in uniphier_clk_mux_get_parent()
78 mux->vals = data->vals; in uniphier_clk_register_mux()
/kernel/linux/linux-6.6/drivers/clk/uniphier/
H A Dclk-uniphier-mux.c18 const unsigned int *vals; member
28 mux->vals[index]); in uniphier_clk_mux_set_parent()
44 if ((mux->masks[i] & val) == mux->vals[i]) in uniphier_clk_mux_get_parent()
78 mux->vals = data->vals; in uniphier_clk_register_mux()
/kernel/linux/linux-6.6/drivers/iio/
H A Dinkern.c566 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local
579 vals, &val_len, info); in iio_channel_read()
580 *val = vals[0]; in iio_channel_read()
581 *val2 = vals[1]; in iio_channel_read()
801 const int **vals, int *type, int *length, in iio_channel_read_avail()
808 vals, type, length, info); in iio_channel_read_avail()
812 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute()
824 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute()
833 const int **vals, int *length) in iio_read_avail_channel_raw()
838 ret = iio_read_avail_channel_attribute(chan, vals, in iio_read_avail_channel_raw()
800 iio_channel_read_avail(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum info) iio_channel_read_avail() argument
811 iio_read_avail_channel_attribute(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum attribute) iio_read_avail_channel_attribute() argument
832 iio_read_avail_channel_raw(struct iio_channel *chan, const int **vals, int *length) iio_read_avail_channel_raw() argument
853 const int *vals; iio_channel_read_max() local
916 const int *vals; iio_channel_read_min() local
[all...]
/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap-kunit.c90 (*data)->vals = buf; in gen_regmap()
315 KUNIT_EXPECT_MEMEQ(test, data->vals, rval, sizeof(rval)); in reg_defaults()
349 KUNIT_EXPECT_MEMEQ(test, data->vals, rval, sizeof(rval)); in reg_defaults_read_dev()
396 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i] + 1); in register_patch()
400 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i]); in register_patch()
439 KUNIT_EXPECT_EQ(test, data->vals[i], rval); in stride()
552 unsigned int rval, *vals; in stress_insert() local
565 vals = kunit_kcalloc(test, sizeof(unsigned long), config.max_register, in stress_insert()
567 KUNIT_ASSERT_FALSE(test, vals == NULL); in stress_insert()
570 get_random_bytes(vals, buf_s in stress_insert()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/pauth/
H A Dpac.c72 size_t vals[nkeys]; in n_same_single_set() local
75 vals[0] = sign->keyia & PAC_MASK; in n_same_single_set()
76 vals[1] = sign->keyib & PAC_MASK; in n_same_single_set()
77 vals[2] = sign->keyda & PAC_MASK; in n_same_single_set()
78 vals[3] = sign->keydb & PAC_MASK; in n_same_single_set()
81 vals[4] = sign->keyg & PAC_MASK; in n_same_single_set()
85 if (vals[i] == vals[j]) in n_same_single_set()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/pauth/
H A Dpac.c72 size_t vals[nkeys]; in n_same_single_set() local
75 vals[0] = sign->keyia & PAC_MASK; in n_same_single_set()
76 vals[1] = sign->keyib & PAC_MASK; in n_same_single_set()
77 vals[2] = sign->keyda & PAC_MASK; in n_same_single_set()
78 vals[3] = sign->keydb & PAC_MASK; in n_same_single_set()
81 vals[4] = sign->keyg & PAC_MASK; in n_same_single_set()
85 if (vals[i] == vals[j]) in n_same_single_set()

Completed in 16 milliseconds

12345678910>>...13