Home
last modified time | relevance | path

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

12345678

/linux-6.3-rc2/kernel/trace/
A Dsynth_event_gen_test.c48 u64 vals[7]; in test_gen_synth_cmd() local
115 vals[2] = 1000000; /* ts_ns */ in test_gen_synth_cmd()
116 vals[3] = 1000; /* ts_ms */ 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
220 vals[2] = 1000000; /* ts_ns */ in test_empty_synth_event()
221 vals[3] = 1000; /* ts_ms */ in test_empty_synth_event()
227 ret = synth_event_trace_array(empty_synth_test, vals, ARRAY_SIZE(vals)); in test_empty_synth_event()
255 u64 vals[9]; in test_create_synth_event() local
294 vals[4] = 1000; /* ts_ms */ in test_create_synth_event()
[all …]
/linux-6.3-rc2/tools/perf/tests/
A Dparse-metric.c34 struct value *vals) in load_runtime_stat() argument
41 count = find_value(evsel->name, vals); in load_runtime_stat()
111 load_runtime_stat(&st, evlist, vals); in __compute_metric()
144 struct value vals[] = { in test_ipc() local
161 struct value vals[] = { in test_frontend() local
180 struct value vals[] = { in test_cache_miss_cycles() local
220 struct value vals[] = { in test_dcache_l2() local
247 struct value vals[] = { in test_recursion_fail() local
264 struct value vals[] = { in test_memory_bandwidth() local
281 struct value vals[] = { in test_metric_group() local
[all …]
/linux-6.3-rc2/tools/testing/selftests/gpio/
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()
/linux-6.3-rc2/sound/soc/fsl/
A Dfsl_ssi.c427 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()
494 ((vals) & _ssi_xor_shared_bits(vals, avals, aactive))
518 vals = &ssi->regvals[dir]; in fsl_ssi_config_disable()
591 vals[RX].srcr = SSI_SRCR_RFEN0; in fsl_ssi_setup_regvals()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
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()
/linux-6.3-rc2/fs/ksmbd/
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()
228 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server()
241 conn->vals = &smb302_server_values; in init_smb3_02_server()
248 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb3_02_server()
253 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server()
266 conn->vals = &smb311_server_values; in init_smb3_11_server()
273 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb3_11_server()
[all …]
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt7601u/
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()
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
206 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL); in mt7601u_init_wcid_attr_mem()
207 if (!vals) in mt7601u_init_wcid_attr_mem()
211 vals[i] = 1; in mt7601u_init_wcid_attr_mem()
[all …]
/linux-6.3-rc2/drivers/iio/imu/bno055/
A Dbno055.c117 int *vals; member
772 *vals = attr->vals; in bno055_sysfs_attr_avail()
791 vals, length); in bno055_read_avail()
800 vals, length); in bno055_read_avail()
804 vals, length); in bno055_read_avail()
815 vals, length); in bno055_read_avail()
870 vals[0] = 1; in bno055_read_quaternion()
871 vals[1] = 14; in bno055_read_quaternion()
918 &vals[0], &vals[1], in _bno055_read_raw_multi()
930 size, vals, in _bno055_read_raw_multi()
[all …]
/linux-6.3-rc2/drivers/iio/orientation/
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()
/linux-6.3-rc2/drivers/clk/uniphier/
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()
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-core.c635 if (vals[1] < 0) in __iio_format_value()
637 abs(vals[0]), -vals[1], in __iio_format_value()
643 if (vals[1] < 0) in __iio_format_value()
645 abs(vals[0]), -vals[1]); in __iio_format_value()
648 vals[1]); in __iio_format_value()
650 tmp2 = div_s64((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value()
651 tmp1 = vals[1]; in __iio_format_value()
659 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value()
678 tmp2 = (s64)((((u64)vals[1]) << 32) | (u32)vals[0]); in __iio_format_value()
744 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info()
[all …]
A Dinkern.c578 vals, &val_len, info); in iio_channel_read()
579 *val = vals[0]; in iio_channel_read()
580 *val2 = vals[1]; in iio_channel_read()
807 vals, type, length, info); in iio_channel_read_avail()
853 const int *vals; in iio_channel_read_max() local
865 *val = vals[2]; in iio_channel_read_max()
868 *val = vals[4]; in iio_channel_read_max()
869 *val2 = vals[5]; in iio_channel_read_max()
878 *val = vals[--length]; in iio_channel_read_max()
880 if (vals[--length] > *val) in iio_channel_read_max()
[all …]
/linux-6.3-rc2/drivers/iio/light/
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()
/linux-6.3-rc2/tools/testing/selftests/arm64/pauth/
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()
/linux-6.3-rc2/drivers/pinctrl/
A Dpinctrl-single.c93 struct pcs_func_vals *vals; member
385 struct pcs_func_vals *vals; in pcs_set_mux() local
389 vals = &func->vals[i]; in pcs_set_mux()
391 val = pcs->read(vals->reg); in pcs_set_mux()
394 mask = vals->mask; in pcs_set_mux()
399 val |= (vals->val & mask); in pcs_set_mux()
400 pcs->write(val, vals->reg); in pcs_set_mux()
791 function->vals = vals; in pcs_add_function()
1015 vals = devm_kcalloc(pcs->dev, rows, sizeof(*vals), GFP_KERNEL); in pcs_parse_one_pinctrl_entry()
1016 if (!vals) in pcs_parse_one_pinctrl_entry()
[all …]
/linux-6.3-rc2/drivers/phy/hisilicon/
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()
/linux-6.3-rc2/tools/perf/arch/x86/tests/
A Dinsn-x86.c40 } vals[] = { in get_op() local
59 for (val = vals; val->name; val++) { in get_op()
74 } vals[] = { in get_branch() local
86 for (val = vals; val->name; val++) { in get_branch()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4vf/
A Dt4vf_hw.c623 const u32 *params, u32 *vals) in t4vf_query_params() argument
646 *vals++ = be32_to_cpu(p->val); in t4vf_query_params()
680 p->val = cpu_to_be32(*vals++); in t4vf_set_params()
850 u32 params[7], vals[7]; in t4vf_get_sge_params() local
870 sge_params->sge_control = vals[0]; in t4vf_get_sge_params()
898 sge_params->sge_control2 = vals[0]; in t4vf_get_sge_params()
969 u32 params[7], vals[7]; in t4vf_get_vpd_params() local
977 vpd_params->cclk = vals[0]; in t4vf_get_vpd_params()
992 u32 params[7], vals[7]; in t4vf_get_dev_params() local
1002 dev_params->fwrev = vals[0]; in t4vf_get_dev_params()
[all …]
/linux-6.3-rc2/drivers/media/i2c/
A 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-6.3-rc2/scripts/gcc-plugins/
A Dlatent_entropy_plugin.c134 vec<constructor_elt, va_gc> *vals; in handle_latent_entropy_attribute() local
186 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
192 CONSTRUCTOR_APPEND_ELT(vals, fld, random_const); in handle_latent_entropy_attribute()
196 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
226 vec_alloc(vals, nelt); in handle_latent_entropy_attribute()
232 CONSTRUCTOR_APPEND_ELT(vals, cst, rand_cst); in handle_latent_entropy_attribute()
239 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
/linux-6.3-rc2/drivers/input/
A Dinput.c111 struct input_value *end = vals; in input_to_handler()
115 for (v = vals; v != vals + count; v++) { in input_to_handler()
122 count = end - vals; in input_to_handler()
131 for (v = vals; v != vals + count; v++) in input_to_handler()
171 for (v = vals; v != vals + count; v++) { in input_pass_values()
355 if (!dev->vals) in input_event_dispose()
1614 kfree(dev->vals); in input_dev_release()
2355 dev->vals = kcalloc(dev->max_vals, sizeof(*dev->vals), GFP_KERNEL); in input_register_device()
2356 if (!dev->vals) { in input_register_device()
2410 kfree(dev->vals); in input_register_device()
[all …]
/linux-6.3-rc2/drivers/iio/adc/
A Drtq6056.c313 const int **vals, int *type, int *length, in rtq6056_adc_read_avail() argument
318 *vals = rtq6056_samp_freq_list; in rtq6056_adc_read_avail()
323 *vals = rtq6056_avg_sample_list; in rtq6056_adc_read_avail()
400 int vals[2] = { priv->shunt_resistor_uohm, 1000000 }; in shunt_resistor_show() local
402 return iio_format_value(buf, IIO_VAL_FRACTIONAL, 1, vals); in shunt_resistor_show()
455 u16 vals[RTQ6056_MAX_CHANNEL]; in rtq6056_buffer_trigger_handler() member
472 data.vals[i++] = raw; in rtq6056_buffer_trigger_handler()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/nfd3/
A Drings.c214 txd->vals[0], txd->vals[1], in nfp_nfd3_print_tx_descs()
215 txd->vals[2], txd->vals[3]); in nfp_nfd3_print_tx_descs()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt76x2/
A Dinit.c109 static const struct mt76_reg_pair vals[] = { in mt76_write_mac_initvals() local
175 mt76_wr_rp(dev, 0, vals, ARRAY_SIZE(vals)); in mt76_write_mac_initvals()
/linux-6.3-rc2/drivers/iio/magnetometer/
A 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()

Completed in 60 milliseconds

12345678