Home
last modified time | relevance | path

Searched refs:vals (Results 1 – 25 of 228) sorted by relevance

12345678910

/openbmc/linux/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]; in test_empty_synth_event() local
[all …]
/openbmc/linux/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, &ratio) == 0); in test_ipc()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_subprog_precision.c12 int vals[] SEC(".data.vals") = {1, 2, 3, 4}; variable
74 : __imm_ptr(vals) in 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()
183 : __imm_ptr(vals), in callback_result_precise()
221 : __imm_ptr(vals) in parent_callee_saved_reg_precise()
255 : __imm_ptr(vals) in parent_callee_saved_reg_precise_global()
315 : __imm_ptr(vals), in parent_callee_saved_reg_precise_with_callback()
365 : __imm_ptr(vals) in parent_stack_slot_precise()
411 : __imm_ptr(vals) in parent_stack_slot_precise_global()
[all …]
/openbmc/linux/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[dir].sier; in fsl_ssi_config_enable()
470 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable()
490 #define _ssi_xor_shared_bits(vals, avals, aactive) \ argument
491 ((vals) ^ ((avals) * (aactive)))
[all …]
/openbmc/linux/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()
88 return vals.values[0]; in get_value_v1()
/openbmc/linux/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()
234 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server()
237 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_0_server()
247 conn->vals = &smb302_server_values; in init_smb3_02_server()
254 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_02_server()
260 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server()
[all …]
/openbmc/linux/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()
/openbmc/linux/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.b); \ in guest_code()
81 GUEST_SYNC(vals.type); in guest_code()
/openbmc/linux/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_SIZE(vals)); in mt7601u_init_key_mem()
203 u32 *vals; in mt7601u_init_wcid_attr_mem() local
[all …]
/openbmc/linux/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[i]; in bno055_set_regmask()
[all …]
/openbmc/linux/drivers/iio/orientation/
H A Dhid-sensor-rotation.c68 int size, int *vals, int *val_len, in dev_rot_read_raw() argument
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[0], &vals[1]); in dev_rot_read_raw()
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Drecipeutils.py31 vals = {'SRC_URI[md5sum]': 'aaaaaa', 'LICENSE': 'something'}
32 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
69 vals = {'SRC_URI': val}
70 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
94 vals = {'SRC_URI': val[0]}
95 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
/openbmc/linux/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()
/openbmc/linux/drivers/iio/
H A Dindustrialio-core.c635 int size, const int *vals) in __iio_format_value() argument
643 return sysfs_emit_at(buf, offset, "%d", vals[0]); in __iio_format_value()
648 if (vals[1] < 0) in __iio_format_value()
650 abs(vals[0]), -vals[1], in __iio_format_value()
653 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0], in __iio_format_value()
654 vals[1], scale_db ? " dB" : ""); in __iio_format_value()
656 if (vals[1] < 0) in __iio_format_value()
658 abs(vals[0]), -vals[1]); in __iio_format_value()
660 return sysfs_emit_at(buf, offset, "%d.%09u", vals[0], in __iio_format_value()
661 vals[1]); in __iio_format_value()
[all …]
H A Dinkern.c567 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local
581 vals, &val_len, info); in iio_channel_read()
582 *val = vals[0]; in iio_channel_read()
583 *val2 = vals[1]; in iio_channel_read()
805 const int **vals, int *type, int *length, in iio_channel_read_avail() argument
815 vals, type, length, info); in iio_channel_read_avail()
820 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument
832 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute()
841 const int **vals, int *length) in iio_read_avail_channel_raw() argument
846 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw()
[all …]
/openbmc/openbmc/poky/scripts/lib/resulttool/
H A Dreport.py173 vals = {}
174 vals['result_id'] = line['result_id']
175 vals['testseries'] = line['testseries']
176 vals['sort'] = line['testseries'] + "_" + line['result_id']
177 vals['failed_testcases'] = line['failed_testcases']
180 vals[k] = "%d (%s%%)" % (line[k], format(line[k] / total_tested * 100, '.0f'))
182 vals[k] = "0 (0%)"
184 if k in vals and len(vals[k]) > maxlen[k]:
185 maxlen[k] = len(vals[k])
186 reportvalues.append(vals)
/openbmc/linux/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_sz); in stress_insert()
[all …]
/openbmc/linux/drivers/iio/light/
H A Dcm32181.c142 u64 vals[CPM0_HEADER_SIZE + CM32181_CONF_REG_NUM]; in cm32181_acpi_parse_cpm_tables() local
146 count = cm32181_acpi_get_cpm(dev, "CPM0", vals, ARRAY_SIZE(vals)); in cm32181_acpi_parse_cpm_tables()
152 cm32181->init_regs_bitmap = vals[CPM0_REGS_BITMAP]; in cm32181_acpi_parse_cpm_tables()
155 cm32181->conf_regs[i] = vals[CPM0_HEADER_SIZE + i]; in cm32181_acpi_parse_cpm_tables()
157 count = cm32181_acpi_get_cpm(dev, "CPM1", vals, ARRAY_SIZE(vals)); in cm32181_acpi_parse_cpm_tables()
161 cm32181->lux_per_bit = vals[CPM1_LUX_PER_BIT]; in cm32181_acpi_parse_cpm_tables()
164 if (vals[CPM1_CALIBSCALE] == CM32181_CALIBSCALE_DEFAULT) in cm32181_acpi_parse_cpm_tables()
167 cm32181->calibscale = vals[CPM1_CALIBSCALE]; in cm32181_acpi_parse_cpm_tables()
/openbmc/linux/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()
/openbmc/openbmc/poky/bitbake/lib/simplediff/
H A D__init__.py194 _old = [val for (a, vals) in result if (a in '=-') for val in vals]
196 _new = [val for (a, vals) in result if (a in '=+') for val in vals]
/openbmc/openbmc/poky/scripts/
H A Doe-pkgdata-util295 vals = dict()
301 vals[var] = m.group(1)
302 pkg_version = vals['PKGV'] or ''
303 recipe = vals['PN'] or ''
304 recipe_version = vals['PV'] or ''
305 pkg_size = vals['PKGSIZE'] or ''
306 if 'PKGE' in vals:
307 pkg_version = vals['PKGE'] + ":" + pkg_version
308 if 'PKGR' in vals:
309 pkg_version = pkg_version + "-" + vals['PKGR']
[all …]
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-single.c92 struct pcs_func_vals *vals; member
386 struct pcs_func_vals *vals; in pcs_set_mux() local
390 vals = &func->vals[i]; in pcs_set_mux()
392 val = pcs->read(vals->reg); in pcs_set_mux()
395 mask = vals->mask; in pcs_set_mux()
400 val |= (vals->val & mask); in pcs_set_mux()
401 pcs->write(val, vals->reg); in pcs_set_mux()
780 struct pcs_func_vals *vals, in pcs_add_function() argument
792 function->vals = vals; in pcs_add_function()
1006 struct pcs_func_vals *vals; in pcs_parse_one_pinctrl_entry() local
[all …]
/openbmc/u-boot/test/py/
H A Dconftest.py230 vals = []
235 vals.append(m.group(1) + ' ' + m.group(2))
237 ids = ['ut_' + s.replace(' ', '_') for s in vals]
238 metafunc.parametrize(fixture_name, vals, ids=ids)
266 vals = []
271 vals = (val, )
275 vals = subconfig.get(fixture_name+ 's', [])
281 ids = [fixture_id(index, val) for (index, val) in enumerate(vals)]
282 metafunc.parametrize(fixture_name, vals, ids=ids)
/openbmc/linux/drivers/phy/hisilicon/
H A Dphy-histb-combphy.c199 u32 vals[3]; in histb_combphy_probe() local
226 vals, ARRAY_SIZE(vals)); in histb_combphy_probe()
233 mode->reg = vals[0]; in histb_combphy_probe()
234 mode->shift = vals[1]; in histb_combphy_probe()
235 mode->mask = vals[2]; in histb_combphy_probe()
/openbmc/linux/tools/perf/arch/x86/tests/
H A Dinsn-x86.c42 } vals[] = { in get_op() local
63 for (val = vals; val->name; val++) { in get_op()
78 } vals[] = { in get_branch() local
90 for (val = vals; val->name; val++) { in get_branch()

12345678910