Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 1402) sorted by relevance

12345678910>>...57

/linux/drivers/iio/test/
H A Diio-test-format.c47 int values[2]; in iio_test_iio_format_value_fixedpoint() local
55 values[0] = 1; in iio_test_iio_format_value_fixedpoint()
56 values[1] = 10; in iio_test_iio_format_value_fixedpoint()
58 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
61 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
64 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
68 values[0] = 0; in iio_test_iio_format_value_fixedpoint()
69 values[1] = 12; in iio_test_iio_format_value_fixedpoint()
71 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
74 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
[all …]
H A Diio-test-rescale.c651 int values[2]; in iio_rescale_test_scale() local
660 values[0] = t->schan_val; in iio_rescale_test_scale()
661 values[1] = t->schan_val2; in iio_rescale_test_scale()
664 &values[0], &values[1]); in iio_rescale_test_scale()
666 ret = iio_format_value(buff, ret, 2, values); in iio_rescale_test_scale()
683 int values[2]; in iio_rescale_test_offset() local
691 values[0] = t->schan_val; in iio_rescale_test_offset()
692 values[1] = t->schan_val2; in iio_rescale_test_offset()
696 &values[0], &values[1]); in iio_rescale_test_offset()
698 ret = iio_format_value(buff_off, ret, 2, values); in iio_rescale_test_offset()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dhtab_map_batch_ops.c15 void *values, bool is_pcpu) in map_batch_update() argument
26 v = (value *)values; in map_batch_update()
34 ((int *)values)[i] = i + 2; in map_batch_update()
37 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
42 int *keys, void *values, bool is_pcpu) in map_batch_verify() argument
49 v = (value *)values; in map_batch_verify()
62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify()
65 ((int *)values)[i]); in map_batch_verify()
86 void *values; in __test_map_lookup_and_delete_batch() local
100 values = pcpu_values; in __test_map_lookup_and_delete_batch()
[all …]
H A Darray_map_batch_ops.c16 __s64 *values, bool is_pcpu) in map_batch_update() argument
30 (values + cpu_offset)[j] = i + 1 + j; in map_batch_update()
32 values[i] = i + 1; in map_batch_update()
36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
41 __s64 *values, bool is_pcpu) in map_batch_verify() argument
51 __s64 value = (values + cpu_offset)[j]; in map_batch_verify()
58 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify()
60 values[i]); in map_batch_verify()
77 void *values; in __test_map_lookup_and_update_batch() local
93 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
[all …]
H A Dlpm_trie_map_batch_ops.c23 struct test_lpm_key *keys, int *values) in map_batch_update() argument
37 values[i] = i + 1; in map_batch_update()
40 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update()
45 struct test_lpm_key *keys, int *values) in map_batch_verify() argument
56 CHECK(lower_byte != values[i], "key/value checking", in map_batch_verify()
57 "error: i %d key %s value %d\n", i, buff, values[i]); in map_batch_verify()
70 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
87 values = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops()
89 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in test_lpm_trie_map_batch_ops()
94 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops()
[all …]
/linux/drivers/pcmcia/
H A Dmax1600.c70 DECLARE_BITMAP(values, MAX1600_GPIO_MAX) = { 0, }; in max1600_configure()
75 __assign_bit(MAX1600_GPIO_0VPP, values, 0); in max1600_configure()
76 __assign_bit(MAX1600_GPIO_1VPP, values, 0); in max1600_configure()
78 __assign_bit(MAX1600_GPIO_0VPP, values, 0); in max1600_configure()
79 __assign_bit(MAX1600_GPIO_1VPP, values, 1); in max1600_configure()
81 __assign_bit(MAX1600_GPIO_0VPP, values, 1); in max1600_configure()
82 __assign_bit(MAX1600_GPIO_1VPP, values, 0); in max1600_configure()
95 __assign_bit(MAX1600_GPIO_0VCC, values, 0); in max1600_configure()
96 __assign_bit(MAX1600_GPIO_1VCC, values, 0); in max1600_configure()
98 __assign_bit(MAX1600_GPIO_0VCC, values, 1); in max1600_configure()
[all …]
H A Dsa1111_jornada720.c64 DECLARE_BITMAP(values, J720_GPIO_MAX) = { 0, }; in jornada720_pcmcia_configure_socket()
75 __assign_bit(J720_GPIO_PWR, values, 0); in jornada720_pcmcia_configure_socket()
76 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket()
79 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket()
80 __assign_bit(J720_GPIO_3V, values, 1); in jornada720_pcmcia_configure_socket()
83 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket()
84 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket()
93 __assign_bit(J720_GPIO_PWR, values, 0); in jornada720_pcmcia_configure_socket()
94 __assign_bit(J720_GPIO_3V, values, 0); in jornada720_pcmcia_configure_socket()
98 __assign_bit(J720_GPIO_PWR, values, 1); in jornada720_pcmcia_configure_socket()
[all …]
/linux/tools/perf/util/
H A Dcounts.c15 struct xyarray *values; in perf_counts__new() local
17 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
18 if (!values) { in perf_counts__new()
23 counts->values = values; in perf_counts__new()
25 values = xyarray__new(ncpus, nthreads, sizeof(bool)); in perf_counts__new()
26 if (!values) { in perf_counts__new()
27 xyarray__delete(counts->values); in perf_counts__new()
32 counts->loaded = values; in perf_counts__new()
42 xyarray__delete(counts->values); in perf_counts__delete()
50 xyarray__reset(counts->values); in perf_counts__reset()
/linux/drivers/soc/rockchip/
H A Dgrf.c23 const struct rockchip_grf_value *values; member
38 .values = rk3036_defaults,
51 .values = rk3128_defaults,
62 .values = rk3228_defaults,
75 .values = rk3288_defaults,
86 .values = rk3328_defaults,
98 .values = rk3368_defaults,
109 .values = rk3368_pmugrf_defaults,
120 .values = rk3399_defaults,
133 .values = rk3566_defaults,
[all …]
/linux/Documentation/userspace-api/gpio/
H A Dgpio-handle-get-line-values-ioctl.rst10 gpio-v2-line-get-values-ioctl.rst.
15 GPIOHANDLE_GET_LINE_VALUES_IOCTL - Get the values of all requested lines.
22 ``int ioctl(int handle_fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, struct gpiohandle_data *values)``
31 ``values``
37 Get the values of all requested lines.
39 The values returned are logical, indicating if the line is active or inactive.
41 values (high/low) and logical values (active/inactive).
46 The values of both input and output lines may be read.
55 one line requested in that case, only the one value is returned in ``values``.
60 On success 0 and ``values`` populated with the values read.
H A Dgpio-handle-set-line-values-ioctl.rst10 gpio-v2-line-set-values-ioctl.rst.
15 GPIO_HANDLE_SET_LINE_VALUES_IOCTL - Set the values of all requested output lines.
22 ``int ioctl(int handle_fd, GPIO_HANDLE_SET_LINE_VALUES_IOCTL, struct gpiohandle_data *values)``
31 ``values``
37 Set the values of all requested output lines.
39 The values set are logical, indicating if the line is to be active or inactive.
41 values (active/inactive) and physical values (high/low).
46 Only the values of output lines may be set.
H A Dgpio-v2-line-get-values-ioctl.rst12 GPIO_V2_LINE_GET_VALUES_IOCTL - Get the values of requested lines.
19 ``int ioctl(int req_fd, GPIO_V2_LINE_GET_VALUES_IOCTL, struct gpio_v2_line_values *values)``
28 ``values``
35 Get the values of requested lines.
37 The values returned are logical, indicating if the line is active or inactive.
39 values (high/low) and logical values (active/inactive).
44 The values of both input and output lines may be read.
54 On success 0 and the corresponding :c:type:`values.bits<gpio_v2_line_values>`
H A Dgpio-v2-line-set-values-ioctl.rst12 GPIO_V2_LINE_SET_VALUES_IOCTL - Set the values of requested output lines.
19 ``int ioctl(int req_fd, GPIO_V2_LINE_SET_VALUES_IOCTL, struct gpio_v2_line_values *values)``
28 ``values``
36 Set the values of requested output lines.
38 The values set are logical, indicating if the line is to be active or inactive.
40 values (active/inactive) and physical values (high/low).
45 Only the values of output lines may be set.
/linux/tools/gpio/
H A Dgpio-hammer.c28 struct gpio_v2_line_values values; in hammer_device() local
46 values.mask = 0; in hammer_device()
47 values.bits = 0; in hammer_device()
49 gpiotools_set_bit(&values.mask, i); in hammer_device()
51 ret = gpiotools_get_values(fd, &values); in hammer_device()
63 fprintf(stdout, "%d", gpiotools_test_bit(values.bits, i)); in hammer_device()
74 gpiotools_change_bit(&values.bits, i); in hammer_device()
76 ret = gpiotools_set_values(fd, &values); in hammer_device()
81 ret = gpiotools_get_values(fd, &values); in hammer_device()
93 gpiotools_test_bit(values.bits, i)); in hammer_device()
H A Dgpio-utils.c111 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_set_values() argument
115 ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values); in gpiotools_set_values()
135 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_get_values() argument
139 ret = ioctl(fd, GPIO_V2_LINE_GET_VALUES_IOCTL, values); in gpiotools_get_values()
206 unsigned int num_lines, unsigned int *values) in gpiotools_gets() argument
227 values[i] = gpiotools_test_bit(lv.bits, i); in gpiotools_gets()
264 unsigned int num_lines, unsigned int *values) in gpiotools_sets() argument
275 gpiotools_assign_bit(&config.attrs[0].attr.values, in gpiotools_sets()
276 i, values[i]); in gpiotools_sets()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_btf_map_in_map.c27 __array(values, struct {
41 .values = { (void *)&inner_map1, 0, (void *)&inner_map2 },
66 __array(values, struct {
74 .values = {
89 __array(values, struct inner_map);
91 .values = {
116 __array(values, struct sockarr_sz1);
118 .values = { (void *)&sockarr_sz1 },
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat944 self.values = {}
963 self.values = {}
968 self.values = {}
990 self.values = {}
1017 oldval = self.values.get(key, EventStat(0, 0)).value
1020 self.values[key] = EventStat(newval, newdelta)
1021 return self.values
1038 if key in self.values.keys():
1039 del self.values[key]
1041 oldvals = self.values.copy()
[all …]
/linux/samples/bpf/
H A Dtracex3_user.c20 __u64 values[nr_cpus]; in clear_stats() local
23 memset(values, 0, sizeof(values)); in clear_stats()
25 bpf_map_update_elem(fd, &key, values, BPF_ANY); in clear_stats()
78 long values[nr_cpus]; in print_hist() local
86 bpf_map_lookup_elem(fd, &key, values); in print_hist()
89 value += values[i]; in print_hist()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-cti-platform.c245 u32 *values; in cti_plat_read_trig_group() local
250 values = kcalloc(tgrp->nr_sigs, sizeof(u32), GFP_KERNEL); in cti_plat_read_trig_group()
251 if (!values) in cti_plat_read_trig_group()
255 values, tgrp->nr_sigs); in cti_plat_read_trig_group()
260 tgrp->used_mask |= BIT(values[idx]); in cti_plat_read_trig_group()
263 kfree(values); in cti_plat_read_trig_group()
272 u32 *values = NULL, i; in cti_plat_read_trig_types() local
286 values = kcalloc(items, sizeof(u32), GFP_KERNEL); in cti_plat_read_trig_types()
287 if (!values) in cti_plat_read_trig_types()
291 values, items); in cti_plat_read_trig_types()
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Diou-zcrx.py18 values = re.findall(r'Combined:\s+(\d+)', output)
19 return int(values[1])
24 values = re.search(r'New RSS context is (\d+)', output).group(1)
25 ctx_id = int(values)
31 values = re.search(r'ID (\d+)', output).group(1)
32 return int(values)
37 values = re.search(r'ID (\d+)', output).group(1)
38 return int(values)
H A Ddevlink_port_split.py84 values = list(json.loads(stdout)['port'].values())[0]
86 if 'lanes' in values:
87 lanes = values['lanes']
102 values = list(json.loads(stdout)['port'].values())[0]
104 return values['splittable']
232 if any(devlink_data.values()):
/linux/Documentation/devicetree/bindings/powerpc/opal/
H A Dpower-mgt.txt41 Array of unsigned 32-bit values containing the values of the
61 Array of unsigned 32-bit values containing the values of the
66 Array of unsigned 32-bit values containing the values of the
74 Array of unsigned 64-bit values containing the values for the
79 Array of unsigned 64-bit values containing the masks
90 values.
101 For all the other values of the entry in
107 Array of unsigned 64-bit values containing the pmicr values
115 Array of unsigned 64-bit values containing the mask indicating
/linux/Documentation/ABI/testing/
H A Dsysfs-tty29 These sysfs values expose the TIOCGSERIAL interface via
38 These sysfs values expose the TIOCGSERIAL interface via
47 These sysfs values expose the TIOCGSERIAL interface via
56 These sysfs values expose the TIOCGSERIAL interface via
65 These sysfs values expose the TIOCGSERIAL interface via
74 These sysfs values expose the TIOCGSERIAL interface via
83 These sysfs values expose the TIOCGSERIAL interface via
92 These sysfs values expose the TIOCGSERIAL interface via
104 These sysfs values expose the TIOCGSERIAL interface via
113 These sysfs values expose the TIOCGSERIAL interface via
[all …]
/linux/Documentation/hwmon/
H A Dlm95245.rst33 All temperature values are given in millidegrees Celsius. Local temperature
40 user-space applications, two absolute values are exported, one for each
41 channel, but these values are of course linked. Only the local hysteresis
45 The lm95245 driver can change its update interval to a fixed set of values.
47 values. Reading sensor values more often will do no harm, but will return
48 'old' values.
/linux/kernel/gcov/
H A Dgcc_4_7.c52 gcov_type *values; member
220 memset(ci_ptr->values, 0, in gcov_info_reset()
263 dci_ptr->values[val_idx] += in gcov_info_add()
264 sci_ptr->values[val_idx]; in gcov_info_add()
324 dci_ptr->values = kvmalloc(cv_size, GFP_KERNEL); in gcov_info_dup()
326 if (!dci_ptr->values) in gcov_info_dup()
330 memcpy(dci_ptr->values, sci_ptr->values, cv_size); in gcov_info_dup()
366 kvfree(ci_ptr->values); in gcov_info_free()
428 ci_ptr->values[cv_idx]); in convert_to_gcda()

12345678910>>...57