Home
last modified time | relevance | path

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

12345678

/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/flann/
H A Dsimplex_downhill.h41 void addValue(int pos, float val, float* vals, T* point, T* points, int n) in addValue() argument
43 vals[pos] = val; in addValue()
50 while (j>0 && vals[j]<vals[j-1]) { in addValue()
51 swap(vals[j],vals[j-1]); in addValue()
69 float optimizeSimplexDownhill(T* points, int n, F func, float* vals = NULL )
84 if (vals == NULL) {
86 vals = new float[n+1];
89 addValue(i, val, vals, points+i*n, points, n);
123 if ((val_r>=vals[0])&&(val_r<vals[n])) {
127 addValue(n, val_r,vals, p_r, points, n);
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dparse-metric.c102 struct value *vals) in load_runtime_stat() argument
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, &ratio) == 0); in test_ipc()
[all …]
/OK3568_Linux_fs/kernel/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()
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[j] <= 6) in dscr_parse_mac_fuse()
339 c6x_fuse_mac[vals[j] - 1] = fuse >> i; in dscr_parse_mac_fuse()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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[dir].sier; in fsl_ssi_config_enable()
465 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable()
485 #define _ssi_xor_shared_bits(vals, avals, aactive) \ argument
486 ((vals) ^ ((avals) * (aactive)))
[all …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/external/xserver/glamor/
H A Dglamor_utils.c46 ChangeGCVal vals[1]; in glamor_solid_boxes() local
48 vals[0].val = fg_pixel; in glamor_solid_boxes()
49 ChangeGC(NullClient, gc, GCForeground, vals); in glamor_solid_boxes()
63 ChangeGCVal vals[1]; in glamor_solid() local
66 vals[0].val = fg_pixel; in glamor_solid()
70 ChangeGC(NullClient, gc, GCForeground, vals); in glamor_solid()
/OK3568_Linux_fs/kernel/drivers/iio/orientation/
H A Dhid-sensor-rotation.c59 int size, int *vals, int *val_len, in dev_rot_read_raw() argument
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[0], &vals[1]); in dev_rot_read_raw()
/OK3568_Linux_fs/kernel/drivers/iio/
H A Dindustrialio-core.c603 int size, const int *vals) in __iio_format_value() argument
611 return scnprintf(buf, len, "%d", vals[0]); in __iio_format_value()
616 if (vals[1] < 0) in __iio_format_value()
617 return scnprintf(buf, len, "-%d.%06u%s", abs(vals[0]), in __iio_format_value()
618 -vals[1], scale_db ? " dB" : ""); in __iio_format_value()
620 return scnprintf(buf, len, "%d.%06u%s", vals[0], vals[1], in __iio_format_value()
623 if (vals[1] < 0) in __iio_format_value()
624 return scnprintf(buf, len, "-%d.%09u", abs(vals[0]), in __iio_format_value()
625 -vals[1]); in __iio_format_value()
627 return scnprintf(buf, len, "%d.%09u", vals[0], vals[1]); in __iio_format_value()
[all …]
H A Dinkern.c504 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local
517 vals, &val_len, info); in iio_channel_read()
518 *val = vals[0]; in iio_channel_read()
519 *val2 = vals[1]; in iio_channel_read()
720 const int **vals, int *type, int *length, in iio_channel_read_avail() argument
727 vals, type, length, info); in iio_channel_read_avail()
731 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument
742 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute()
751 const int **vals, int *length) in iio_read_avail_channel_raw() argument
756 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/lib/oeqa/selftest/cases/
H A Drecipeutils.py29 vals = {'SRC_URI[md5sum]': 'aaaaaa', 'LICENSE': 'something'}
30 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
67 vals = {'SRC_URI': val}
68 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
92 vals = {'SRC_URI': val[0]}
93 …patches = oe.recipeutils.patch_recipe(rd, rd.getVar('FILE'), vals, patch=True, relpath=metaselftes…
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/yocto/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 …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/yocto/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']
179 vals[k] = "%d (%s%%)" % (line[k], format(line[k] / total_tested * 100, '.0f'))
181 if k in vals and len(vals[k]) > maxlen[k]:
182 maxlen[k] = len(vals[k])
183 reportvalues.append(vals)
/OK3568_Linux_fs/kernel/drivers/pinctrl/
H A Dpinctrl-single.c93 struct pcs_func_vals *vals; member
383 struct pcs_func_vals *vals; in pcs_set_mux() local
387 vals = &func->vals[i]; in pcs_set_mux()
389 val = pcs->read(vals->reg); in pcs_set_mux()
392 mask = vals->mask; in pcs_set_mux()
397 val |= (vals->val & mask); in pcs_set_mux()
398 pcs->write(val, vals->reg); in pcs_set_mux()
777 struct pcs_func_vals *vals, in pcs_add_function() argument
789 function->vals = vals; in pcs_add_function()
1001 struct pcs_func_vals *vals; in pcs_parse_one_pinctrl_entry() local
[all …]
/OK3568_Linux_fs/u-boot/test/py/
H A Dconftest.py227 vals = []
232 vals.append(m.group(1) + ' ' + m.group(2))
234 ids = ['ut_' + s.replace(' ', '_') for s in vals]
235 metafunc.parametrize(fixture_name, vals, ids=ids)
263 vals = []
268 vals = (val, )
272 vals = subconfig.get(fixture_name+ 's', [])
278 ids = [fixture_id(index, val) for (index, val) in enumerate(vals)]
279 metafunc.parametrize(fixture_name, vals, ids=ids)
/OK3568_Linux_fs/yocto/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]
/OK3568_Linux_fs/kernel/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c135 VEC(constructor_elt, gc) *vals; in handle_latent_entropy_attribute()
137 vec<constructor_elt, va_gc> *vals; in handle_latent_entropy_attribute() local
191 vals = VEC_alloc(constructor_elt, gc, nelt); in handle_latent_entropy_attribute()
193 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
200 CONSTRUCTOR_APPEND_ELT(vals, fld, random_const); in handle_latent_entropy_attribute()
204 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
235 vals = VEC_alloc(constructor_elt, gc, nelt); in handle_latent_entropy_attribute()
237 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
244 CONSTRUCTOR_APPEND_ELT(vals, cst, rand_cst); in handle_latent_entropy_attribute()
251 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_debugfs.c43 rxd->vals[0], rxd->vals[1]); in nfp_rx_q_show()
108 txd->vals[0], txd->vals[1], in nfp_tx_q_show()
109 txd->vals[2], txd->vals[3]); in nfp_tx_q_show()
/OK3568_Linux_fs/kernel/drivers/input/
H A Dinput.c105 struct input_value *vals, unsigned int count) in input_to_handler() argument
108 struct input_value *end = vals; in input_to_handler()
112 for (v = vals; v != vals + count; v++) { in input_to_handler()
119 count = end - vals; in input_to_handler()
126 handler->events(handle, vals, count); in input_to_handler()
128 for (v = vals; v != vals + count; v++) in input_to_handler()
140 struct input_value *vals, unsigned int count) in input_pass_values() argument
152 count = input_to_handler(handle, vals, count); in input_pass_values()
156 count = input_to_handler(handle, vals, count); in input_pass_values()
166 for (v = vals; v != vals + count; v++) { in input_pass_values()
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/hisilicon/
H A Dphy-histb-combphy.c198 u32 vals[3]; in histb_combphy_probe() local
225 vals, ARRAY_SIZE(vals)); in histb_combphy_probe()
232 mode->reg = vals[0]; in histb_combphy_probe()
233 mode->shift = vals[1]; in histb_combphy_probe()
234 mode->mask = vals[2]; in histb_combphy_probe()

12345678