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

123456789

/linux-master/kernel/trace/
H A Dsynth_event_gen_test.c48 u64 vals[7]; local
113 vals[0] = 777; /* next_pid_field */
114 vals[1] = (u64)(long)"hula hoops"; /* next_comm_field */
115 vals[2] = 1000000; /* ts_ns */
116 vals[3] = 1000; /* ts_ms */
117 vals[4] = raw_smp_processor_id(); /* cpu */
118 vals[5] = (u64)(long)"thneed"; /* my_string_field */
119 vals[6] = 598; /* my_int_field */
122 ret = synth_event_trace_array(gen_synth_test, vals, ARRAY_SIZE(vals));
139 u64 vals[7]; local
255 u64 vals[9]; local
[all...]
/linux-master/tools/perf/tests/
H A Dparse-metric.c33 static void load_runtime_stat(struct evlist *evlist, struct value *vals) argument
40 count = find_value(evsel->name, vals);
68 static int __compute_metric(const char *name, struct value *vals, argument
108 load_runtime_stat(evlist, vals);
125 static int compute_metric(const char *name, struct value *vals, double *ratio) argument
127 return __compute_metric(name, vals, name, ratio, NULL, NULL);
130 static int compute_metric_group(const char *name, struct value *vals, argument
134 return __compute_metric(name, vals, name1, ratio1, name2, ratio2);
140 struct value vals[] = { local
147 compute_metric("IPC", vals,
157 struct value vals[] = { local
176 struct value vals[] = { local
216 struct value vals[] = { local
243 struct value vals[] = { local
260 struct value vals[] = { local
277 struct value vals[] = { local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dqueue_stack_map.c13 __u32 vals[MAP_SIZE], val; local
28 vals[i] = rand();
51 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0);
61 val = vals[i];
62 pkt_v4.iph.saddr = vals[i] * 5;
64 val = vals[MAP_SIZE - 1 - i];
65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5;
97 ASSERT_EQ(val, vals[i] * 5, "bpf_map_push_elem val");
/linux-master/tools/testing/selftests/gpio/
H A Dgpio-mockup-cdev.c48 struct gpio_v2_line_values vals; local
51 memset(&vals, 0, sizeof(vals));
52 vals.mask = 1;
53 ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals);
56 return vals.bits & 0x1;
81 struct gpiohandle_data vals; local
84 memset(&vals, 0, sizeof(vals));
85 ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals);
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dpedit.h19 struct pedit_headers vals; member in struct:pedit_headers_action
/linux-master/drivers/clk/uniphier/
H A Dclk-uniphier-mux.c18 const unsigned int *vals; member in struct:uniphier_clk_mux
28 mux->vals[index]);
44 if ((mux->masks[i] & val) == mux->vals[i])
78 mux->vals = data->vals;
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c110 struct adf_tl_dbg_aggr_values *vals)
122 memset(vals, 0, sizeof(*vals));
127 vals->curr = hist_vals[sample_cnt - 1];
128 vals->min = min_array(hist_vals, sample_cnt);
129 vals->max = max_array(hist_vals, sample_cnt);
130 vals->avg = avg_array(hist_vals, sample_cnt);
140 struct adf_tl_dbg_aggr_values *vals)
146 ret = tl_calc_count(telemetry, ctr, vals);
150 vals
108 tl_calc_count(struct adf_telemetry *telemetry, const struct adf_tl_dbg_counter *ctr, struct adf_tl_dbg_aggr_values *vals) argument
138 tl_cycles_to_ns(struct adf_telemetry *telemetry, const struct adf_tl_dbg_counter *ctr, struct adf_tl_dbg_aggr_values *vals) argument
162 tl_lat_acc_avg(struct adf_telemetry *telemetry, const struct adf_tl_dbg_counter *ctr, struct adf_tl_dbg_aggr_values *vals) argument
213 tl_bw_hw_units_to_mbps(struct adf_telemetry *telemetry, const struct adf_tl_dbg_counter *ctr, struct adf_tl_dbg_aggr_values *vals) argument
243 tl_seq_printf_counter(struct adf_telemetry *telemetry, struct seq_file *s, const char *name, struct adf_tl_dbg_aggr_values *vals) argument
264 struct adf_tl_dbg_aggr_values vals; local
[all...]
/linux-master/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
65 "r1 = %[vals];"
74 : __imm_ptr(vals)
98 * we need to clamp it), as index into vals array, forcing r0
105 "r1 = %[vals];"
114 : __imm_ptr(vals),
115 __imm_const(vals_arr_sz, ARRAY_SIZE(vals))
224 "r1 = %[vals];"
[all...]
/linux-master/tools/objtool/include/objtool/
H A Dcfi.h30 struct cfi_reg vals[CFI_NUM_REGS]; member in struct:cfi_state
/linux-master/fs/smb/server/
H A Dsmb2ops.c200 conn->vals = &smb21_server_values;
207 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING;
217 conn->vals = &smb30_server_values;
224 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING |
229 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION;
234 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION;
237 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL;
247 conn->vals = &smb302_server_values;
254 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING |
260 conn->vals
[all...]
/linux-master/drivers/base/regmap/
H A Dregmap-ram.c23 data->vals[reg] = val;
33 *val = data->vals[reg];
43 kfree(data->vals);
H A Dregmap-raw-ram.c35 u16 *our_buf = (u16 *)data->vals;
69 u16 *our_buf = (u16 *)data->vals;
96 kfree(data->vals);
/linux-master/tools/testing/selftests/kvm/
H A Dguest_print_test.c23 static struct guest_vals vals; variable in typeref:struct:guest_vals
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) {
74 GUEST_PRINTF(PRINTF_FMT_##ext, vals.a, vals.b); \
75 __GUEST_ASSERT(vals.a == vals.b, \
76 ASSERT_FMT_##ext, vals.a, vals
[all...]
/linux-master/sound/soc/fsl/
H A Dfsl_ssi.c406 struct fsl_ssi_regvals *vals = ssi->regvals; local
427 srcr = vals[RX].srcr | vals[TX].srcr;
428 stcr = vals[RX].stcr | vals[TX].stcr;
429 sier = vals[RX].sier | vals[TX].sier;
432 srcr = vals[dir].srcr;
433 stcr = vals[dir].stcr;
434 sier = vals[di
509 struct fsl_ssi_regvals *vals, *avals; local
588 struct fsl_ssi_regvals *vals = ssi->regvals; local
810 struct fsl_ssi_regvals *vals = ssi->regvals; local
[all...]
/linux-master/drivers/iio/orientation/
H A Dhid-sensor-rotation.c68 int size, int *vals, int *val_len,
75 vals[0] = 0;
76 vals[1] = 0;
82 vals[i] = rot_state->scan.sampled_vals[i];
89 vals[0] = rot_state->scale_pre_decml;
90 vals[1] = rot_state->scale_post_decml;
94 *vals = rot_state->value_offset;
99 &rot_state->common_attributes, &vals[0], &vals[1]);
103 &rot_state->common_attributes, &vals[
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) argument
[all...]
/linux-master/drivers/iio/imu/bno055/
H A Dbno055.c117 int *vals; member in struct:bno055_sysfs_attr
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];
572 *val = attr->vals[idx * 2];
573 *val2 = attr->vals[idx * 2 + 1];
619 tbl_val = attr->vals[
761 bno055_sysfs_attr_avail(struct bno055_priv *priv, struct bno055_sysfs_attr *attr, const int **vals, int *length) 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) 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) 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) 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) argument
[all...]
/linux-master/drivers/iio/test/
H A Diio-test-gts.c374 static void test_iio_gts_chk_times(struct kunit *test, const int *vals) argument
380 KUNIT_EXPECT_EQ(test, expected[i], vals[i]);
384 const int *vals, int len)
407 KUNIT_EXPECT_EQ(test, expected[i], vals[i]);
411 const int *vals, int len)
443 KUNIT_EXPECT_EQ(test, expected[i], vals[i]);
451 const int *vals; local
458 ret = iio_gts_avail_times(&gts, &vals, &type, &len);
468 test_iio_gts_chk_times(test, vals);
471 ret = iio_gts_all_avail_scales(&gts, &vals,
383 test_iio_gts_chk_scales_all(struct kunit *test, struct iio_gts *gts, const int *vals, int len) argument
410 test_iio_gts_chk_scales_t200(struct kunit *test, struct iio_gts *gts, const int *vals, int len) argument
[all...]
/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dinit.c174 u32 *vals; local
177 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL);
178 if (!vals)
182 vals[i * 2] = 0xffffffff;
183 vals[i * 2 + 1] = 0x00ffffff;
187 vals, N_WCIDS * 2);
188 kfree(vals);
195 u32 vals[4] = {}; local
198 vals, ARRAY_SIZ
203 u32 *vals; local
[all...]
/linux-master/include/linux/iio/
H A Diio-gts-helper.h199 int iio_gts_avail_times(struct iio_gts *gts, const int **vals, int *type,
201 int iio_gts_all_avail_scales(struct iio_gts *gts, const int **vals, int *type,
204 const int **vals, int *type, int *length);
/linux-master/tools/perf/arch/x86/tests/
H A Dinsn-x86.c42 } vals[] = { local
63 for (val = vals; val->name; val++) {
78 } vals[] = { local
90 for (val = vals; val->name; val++) {
/linux-master/tools/testing/selftests/arm64/pauth/
H A Dpac.c72 size_t vals[nkeys]; local
75 vals[0] = sign->keyia & PAC_MASK;
76 vals[1] = sign->keyib & PAC_MASK;
77 vals[2] = sign->keyda & PAC_MASK;
78 vals[3] = sign->keydb & PAC_MASK;
81 vals[4] = sign->keyg & PAC_MASK;
85 if (vals[i] == vals[j])
/linux-master/drivers/phy/hisilicon/
H A Dphy-histb-combphy.c199 u32 vals[3]; local
226 vals, ARRAY_SIZE(vals));
233 mode->reg = vals[0];
234 mode->shift = vals[1];
235 mode->mask = vals[2];
/linux-master/drivers/iio/light/
H A Dcm32181.c142 u64 vals[CPM0_HEADER_SIZE + CM32181_CONF_REG_NUM]; local
146 count = cm32181_acpi_get_cpm(dev, "CPM0", vals, ARRAY_SIZE(vals));
152 cm32181->init_regs_bitmap = vals[CPM0_REGS_BITMAP];
155 cm32181->conf_regs[i] = vals[CPM0_HEADER_SIZE + i];
157 count = cm32181_acpi_get_cpm(dev, "CPM1", vals, ARRAY_SIZE(vals));
161 cm32181->lux_per_bit = vals[CPM1_LUX_PER_BIT];
164 if (vals[CPM1_CALIBSCALE] == CM32181_CALIBSCALE_DEFAULT)
167 cm32181->calibscale = vals[CPM1_CALIBSCAL
[all...]
/linux-master/drivers/iio/
H A Dinkern.c566 int vals[INDIO_MAX_RAW_ELEMENTS]; local
579 vals, &val_len, info);
580 *val = vals[0];
581 *val2 = vals[1];
801 const int **vals, int *type, int *length,
808 vals, type, length, info);
812 const int **vals, int *type, int *length,
824 ret = iio_channel_read_avail(chan, vals, type, length, attribute);
833 const int **vals, int *length)
838 ret = iio_read_avail_channel_attribute(chan, vals,
800 iio_channel_read_avail(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum info) argument
811 iio_read_avail_channel_attribute(struct iio_channel *chan, const int **vals, int *type, int *length, enum iio_chan_info_enum attribute) argument
832 iio_read_avail_channel_raw(struct iio_channel *chan, const int **vals, int *length) argument
853 const int *vals; local
916 const int *vals; local
[all...]
H A Dindustrialio-core.c640 int size, const int *vals)
648 return sysfs_emit_at(buf, offset, "%d", vals[0]);
653 if (vals[1] < 0)
655 abs(vals[0]), -vals[1],
658 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0],
659 vals[1], scale_db ? " dB" : "");
661 if (vals[1] < 0)
663 abs(vals[0]), -vals[
639 __iio_format_value(char *buf, size_t offset, unsigned int type, int size, const int *vals) argument
717 iio_format_value(char *buf, unsigned int type, int size, int *vals) argument
751 int vals[INDIO_MAX_RAW_ELEMENTS]; local
770 iio_format_list(char *buf, const int *vals, int type, int length, const char *prefix, const char *suffix) argument
805 iio_format_avail_list(char *buf, const int *vals, int type, int length) argument
812 iio_format_avail_range(char *buf, const int *vals, int type) argument
839 const int *vals; local
[all...]

Completed in 317 milliseconds

123456789