Home
last modified time | relevance | path

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

12345

/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c12 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local
20 vals[i] = rand(); in test_queue_stack_map_by_type()
43 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type()
53 val = vals[i]; in test_queue_stack_map_by_type()
54 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type()
56 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type()
57 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type()
83 if (err || val != vals[i] * 5) in test_queue_stack_map_by_type()
87 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
/Linux-v5.4/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 …]
/Linux-v5.4/sound/soc/fsl/
Dfsl_ssi.c407 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_config_enable() local
428 srcr = vals[RX].srcr | vals[TX].srcr; in fsl_ssi_config_enable()
429 stcr = vals[RX].stcr | vals[TX].stcr; in fsl_ssi_config_enable()
430 sier = vals[RX].sier | vals[TX].sier; in fsl_ssi_config_enable()
433 srcr = vals[dir].srcr; in fsl_ssi_config_enable()
434 stcr = vals[dir].stcr; in fsl_ssi_config_enable()
435 sier = vals[dir].sier; in fsl_ssi_config_enable()
471 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable()
491 #define _ssi_xor_shared_bits(vals, avals, aactive) \ argument
492 ((vals) ^ ((avals) * (aactive)))
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/iio/orientation/
Dhid-sensor-rotation.c61 int size, int *vals, int *val_len, in dev_rot_read_raw() argument
68 vals[0] = 0; in dev_rot_read_raw()
69 vals[1] = 0; in dev_rot_read_raw()
75 vals[i] = rot_state->sampled_vals[i]; in dev_rot_read_raw()
82 vals[0] = rot_state->scale_pre_decml; in dev_rot_read_raw()
83 vals[1] = rot_state->scale_post_decml; in dev_rot_read_raw()
87 *vals = rot_state->value_offset; in dev_rot_read_raw()
92 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
96 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
/Linux-v5.4/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()
/Linux-v5.4/drivers/iio/
Dindustrialio-core.c553 int size, const int *vals) in __iio_format_value() argument
561 return snprintf(buf, len, "%d", vals[0]); in __iio_format_value()
566 if (vals[1] < 0) in __iio_format_value()
567 return snprintf(buf, len, "-%d.%06u%s", abs(vals[0]), in __iio_format_value()
568 -vals[1], scale_db ? " dB" : ""); in __iio_format_value()
570 return snprintf(buf, len, "%d.%06u%s", vals[0], vals[1], in __iio_format_value()
573 if (vals[1] < 0) in __iio_format_value()
574 return snprintf(buf, len, "-%d.%09u", abs(vals[0]), in __iio_format_value()
575 -vals[1]); in __iio_format_value()
577 return snprintf(buf, len, "%d.%09u", vals[0], vals[1]); in __iio_format_value()
[all …]
Dinkern.c529 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local
542 vals, &val_len, info); in iio_channel_read()
543 *val = vals[0]; in iio_channel_read()
544 *val2 = vals[1]; in iio_channel_read()
723 const int **vals, int *type, int *length, in iio_channel_read_avail() argument
730 vals, type, length, info); in iio_channel_read_avail()
734 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument
745 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute()
754 const int **vals, int *length) in iio_read_avail_channel_raw() argument
759 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_dp_aux_backlight.c86 u8 vals[2] = { 0x0 }; in intel_dp_aux_set_backlight() local
88 vals[0] = level; in intel_dp_aux_set_backlight()
92 vals[0] = (level & 0xFF00) >> 8; in intel_dp_aux_set_backlight()
93 vals[1] = (level & 0xFF); in intel_dp_aux_set_backlight()
96 vals, sizeof(vals)) < 0) { in intel_dp_aux_set_backlight()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/phy/hisilicon/
Dphy-histb-combphy.c199 u32 vals[3]; in histb_combphy_probe() local
227 vals, ARRAY_SIZE(vals)); in histb_combphy_probe()
234 mode->reg = vals[0]; in histb_combphy_probe()
235 mode->shift = vals[1]; in histb_combphy_probe()
236 mode->mask = vals[2]; in histb_combphy_probe()
/Linux-v5.4/drivers/power/supply/
Dbd70528-charger.c341 int vals; member
349 .vals = 36,
355 .vals = 5,
361 .vals = 8,
367 .vals = 7,
381 .vals = 20,
387 .vals = 13,
408 if (r[i].low_sel <= sel && r[i].low_sel + r[i].vals >= sel) { in find_value_for_selector_low()
433 if (r[i].min + r[i].step * r[i].vals >= val) { in find_selector_for_value_low()
444 *sel = r[i].low_sel + r[i].vals; in find_selector_for_value_low()
/Linux-v5.4/drivers/pinctrl/
Dpinctrl-single.c90 struct pcs_func_vals *vals; member
356 struct pcs_func_vals *vals; in pcs_set_mux() local
360 vals = &func->vals[i]; in pcs_set_mux()
362 val = pcs->read(vals->reg); in pcs_set_mux()
365 mask = vals->mask; in pcs_set_mux()
370 val |= (vals->val & mask); in pcs_set_mux()
371 pcs->write(val, vals->reg); in pcs_set_mux()
762 struct pcs_func_vals *vals, in pcs_add_function() argument
774 function->vals = vals; in pcs_add_function()
987 struct pcs_func_vals *vals; in pcs_parse_one_pinctrl_entry() local
[all …]
/Linux-v5.4/drivers/input/
Dinput.c94 struct input_value *vals, unsigned int count) in input_to_handler() argument
97 struct input_value *end = vals; in input_to_handler()
101 for (v = vals; v != vals + count; v++) { in input_to_handler()
108 count = end - vals; in input_to_handler()
115 handler->events(handle, vals, count); in input_to_handler()
117 for (v = vals; v != vals + count; v++) in input_to_handler()
129 struct input_value *vals, unsigned int count) in input_pass_values() argument
141 count = input_to_handler(handle, vals, count); in input_pass_values()
145 count = input_to_handler(handle, vals, count); in input_pass_values()
155 for (v = vals; v != vals + count; v++) { in input_pass_values()
[all …]
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c624 const u32 *params, u32 *vals) in t4vf_query_params() argument
647 *vals++ = be32_to_cpu(p->val); in t4vf_query_params()
662 const u32 *params, const u32 *vals) in t4vf_set_params() argument
681 p->val = cpu_to_be32(*vals++); in t4vf_set_params()
851 u32 params[7], vals[7]; in t4vf_get_sge_params() local
868 v = t4vf_query_params(adapter, 7, params, vals); in t4vf_get_sge_params()
871 sge_params->sge_control = vals[0]; in t4vf_get_sge_params()
872 sge_params->sge_host_page_size = vals[1]; in t4vf_get_sge_params()
873 sge_params->sge_fl_buffer_size[0] = vals[2]; in t4vf_get_sge_params()
874 sge_params->sge_fl_buffer_size[1] = vals[3]; in t4vf_get_sge_params()
[all …]
/Linux-v5.4/drivers/cpufreq/
Ds3c24xx-cpufreq.c632 struct cpufreq_frequency_table *vals; in s3c_plltab_register() local
635 size = sizeof(*vals) * (plls_no + 1); in s3c_plltab_register()
637 vals = kzalloc(size, GFP_KERNEL); in s3c_plltab_register()
638 if (vals) { in s3c_plltab_register()
639 memcpy(vals, plls, size); in s3c_plltab_register()
640 pll_reg = vals; in s3c_plltab_register()
644 vals += plls_no; in s3c_plltab_register()
645 vals->frequency = CPUFREQ_TABLE_END; in s3c_plltab_register()
651 return vals ? 0 : -ENOMEM; in s3c_plltab_register()
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/phy/cadence/
Dphy-cadence-sierra.c106 struct cdns_reg_pairs *vals; in cdns_sierra_phy_init() local
111 vals = phy->init_data->pcie_vals; in cdns_sierra_phy_init()
114 vals = phy->init_data->usb_vals; in cdns_sierra_phy_init()
120 writel(vals[j].val, phy->base + in cdns_sierra_phy_init()
121 vals[j].off + (i + ins->mlane) * 0x800); in cdns_sierra_phy_init()
/Linux-v5.4/drivers/staging/media/soc_camera/
Dsoc_ov5642.c722 struct regval_list *vals) in ov5642_write_array() argument
724 while (vals->reg_num != 0xffff || vals->value != 0xff) { in ov5642_write_array()
725 int ret = reg_write(client, vals->reg_num, vals->value); in ov5642_write_array()
728 vals++; in ov5642_write_array()
/Linux-v5.4/drivers/iio/magnetometer/
Dmag3110.c113 const int (*vals)[2], int n) in mag3110_show_int_plus_micros()
119 "%d.%06d ", vals[n][0], vals[n][1]); in mag3110_show_int_plus_micros()
127 static int mag3110_get_int_plus_micros_index(const int (*vals)[2], int n, in mag3110_get_int_plus_micros_index()
131 if (val == vals[n][0] && val2 == vals[n][1]) in mag3110_get_int_plus_micros_index()
/Linux-v5.4/include/linux/iio/
Dconsumer.h288 const int **vals, int *length);
301 const int **vals, int *type, int *length,
/Linux-v5.4/net/ipv4/
Dproc.c295 static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, in icmpmsg_put_line() argument
308 seq_printf(seq, " %lu", vals[j]); in icmpmsg_put_line()
318 unsigned long vals[PERLINE], val; in icmpmsg_put() local
326 vals[count++] = val; in icmpmsg_put()
329 icmpmsg_put_line(seq, vals, type, count); in icmpmsg_put()
333 icmpmsg_put_line(seq, vals, type, count); in icmpmsg_put()

12345