Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/kernel/trace/
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()
141 u64 vals[7]; in test_empty_synth_event() local
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
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-5.10/arch/c6x/platforms/
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 …]
/kernel/linux/linux-5.10/sound/soc/fsl/
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 …]
/kernel/linux/linux-5.10/fs/cifs/
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/net/wireless/mediatek/mt7601u/
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 …]
/kernel/linux/linux-5.10/drivers/iio/orientation/
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()
/kernel/linux/linux-5.10/drivers/clk/uniphier/
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-5.10/drivers/iio/
Dindustrialio-core.c593 int size, const int *vals) in __iio_format_value() argument
601 return scnprintf(buf, len, "%d", vals[0]); in __iio_format_value()
606 if (vals[1] < 0) in __iio_format_value()
607 return scnprintf(buf, len, "-%d.%06u%s", abs(vals[0]), in __iio_format_value()
608 -vals[1], scale_db ? " dB" : ""); in __iio_format_value()
610 return scnprintf(buf, len, "%d.%06u%s", vals[0], vals[1], in __iio_format_value()
613 if (vals[1] < 0) in __iio_format_value()
614 return scnprintf(buf, len, "-%d.%09u", abs(vals[0]), in __iio_format_value()
615 -vals[1]); in __iio_format_value()
617 return scnprintf(buf, len, "%d.%09u", vals[0], vals[1]); in __iio_format_value()
[all …]
Dinkern.c502 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local
515 vals, &val_len, info); in iio_channel_read()
516 *val = vals[0]; in iio_channel_read()
517 *val2 = vals[1]; in iio_channel_read()
696 const int **vals, int *type, int *length, in iio_channel_read_avail() argument
703 vals, type, length, info); in iio_channel_read_avail()
707 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument
718 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute()
727 const int **vals, int *length) in iio_read_avail_channel_raw() argument
732 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw()
[all …]
/kernel/linux/linux-5.10/drivers/iio/light/
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()
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/pauth/
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-5.10/drivers/net/ethernet/netronome/nfp/
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()
/kernel/linux/linux-5.10/scripts/gcc-plugins/
Dlatent_entropy_plugin.c129 VEC(constructor_elt, gc) *vals; in handle_latent_entropy_attribute()
131 vec<constructor_elt, va_gc> *vals; in handle_latent_entropy_attribute() local
185 vals = VEC_alloc(constructor_elt, gc, nelt); in handle_latent_entropy_attribute()
187 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
194 CONSTRUCTOR_APPEND_ELT(vals, fld, random_const); in handle_latent_entropy_attribute()
198 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
229 vals = VEC_alloc(constructor_elt, gc, nelt); in handle_latent_entropy_attribute()
231 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
238 CONSTRUCTOR_APPEND_ELT(vals, cst, rand_cst); in handle_latent_entropy_attribute()
245 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
/kernel/linux/linux-5.10/drivers/pinctrl/
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 …]
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/
Dinsn-x86.c40 } vals[] = { in get_op() local
58 for (val = vals; val->name; val++) { in get_op()
73 } vals[] = { in get_branch() local
85 for (val = vals; val->name; val++) { in get_branch()
/kernel/linux/linux-5.10/drivers/phy/hisilicon/
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()
/kernel/linux/linux-5.10/drivers/input/
Dinput.c97 struct input_value *vals, unsigned int count) in input_to_handler() argument
100 struct input_value *end = vals; in input_to_handler()
104 for (v = vals; v != vals + count; v++) { in input_to_handler()
111 count = end - vals; in input_to_handler()
118 handler->events(handle, vals, count); in input_to_handler()
120 for (v = vals; v != vals + count; v++) in input_to_handler()
132 struct input_value *vals, unsigned int count) in input_pass_values() argument
144 count = input_to_handler(handle, vals, count); in input_pass_values()
148 count = input_to_handler(handle, vals, count); in input_pass_values()
158 for (v = vals; v != vals + count; v++) { in input_pass_values()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c622 const u32 *params, u32 *vals) in t4vf_query_params() argument
645 *vals++ = be32_to_cpu(p->val); in t4vf_query_params()
660 const u32 *params, const u32 *vals) in t4vf_set_params() argument
679 p->val = cpu_to_be32(*vals++); in t4vf_set_params()
849 u32 params[7], vals[7]; in t4vf_get_sge_params() local
866 v = t4vf_query_params(adapter, 7, params, vals); in t4vf_get_sge_params()
869 sge_params->sge_control = vals[0]; in t4vf_get_sge_params()
870 sge_params->sge_host_page_size = vals[1]; in t4vf_get_sge_params()
871 sge_params->sge_fl_buffer_size[0] = vals[2]; in t4vf_get_sge_params()
872 sge_params->sge_fl_buffer_size[1] = vals[3]; in t4vf_get_sge_params()
[all …]
/kernel/linux/linux-5.10/drivers/cpufreq/
Ds3c24xx-cpufreq.c628 struct cpufreq_frequency_table *vals; in s3c_plltab_register() local
631 size = sizeof(*vals) * (plls_no + 1); in s3c_plltab_register()
633 vals = kzalloc(size, GFP_KERNEL); in s3c_plltab_register()
634 if (vals) { in s3c_plltab_register()
635 memcpy(vals, plls, size); in s3c_plltab_register()
636 pll_reg = vals; in s3c_plltab_register()
640 vals += plls_no; in s3c_plltab_register()
641 vals->frequency = CPUFREQ_TABLE_END; in s3c_plltab_register()
647 return vals ? 0 : -ENOMEM; in s3c_plltab_register()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_dp_aux_backlight.c115 u8 vals[2] = { 0x0 }; in intel_dp_aux_set_backlight() local
117 vals[0] = level; in intel_dp_aux_set_backlight()
121 vals[0] = (level & 0xFF00) >> 8; in intel_dp_aux_set_backlight()
122 vals[1] = (level & 0xFF); in intel_dp_aux_set_backlight()
125 vals, sizeof(vals)) < 0) { in intel_dp_aux_set_backlight()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dsaa717x.c815 } vals[] = { in set_h_prescale() local
828 static const int count = ARRAY_SIZE(vals); in set_h_prescale()
833 if (vals[i].xpsc == prescale) in set_h_prescale()
839 saa717x_write(sd, 0x60 + task_shift, vals[i].xpsc); in set_h_prescale()
841 saa717x_write(sd, 0x61 + task_shift, vals[i].xacl); in set_h_prescale()
844 (vals[i].xc2_1 << 3) | vals[i].xdcg); in set_h_prescale()
847 (vals[i].vpfy << 2) | vals[i].vpfy); in set_h_prescale()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dinit.c80 static const struct mt76_reg_pair vals[] = { in mt76_write_mac_initvals() local
146 mt76_wr_rp(dev, 0, vals, ARRAY_SIZE(vals)); in mt76_write_mac_initvals()
/kernel/linux/linux-5.10/drivers/iio/magnetometer/
Dmag3110.c119 const int (*vals)[2], int n) in mag3110_show_int_plus_micros()
125 "%d.%06d ", vals[n][0], vals[n][1]); in mag3110_show_int_plus_micros()
133 static int mag3110_get_int_plus_micros_index(const int (*vals)[2], int n, in mag3110_get_int_plus_micros_index()
137 if (val == vals[n][0] && val2 == vals[n][1]) in mag3110_get_int_plus_micros_index()

123456