Home
last modified time | relevance | path

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

12345678910>>...72

/linux/tools/perf/util/
H A Dvalues.c13 int perf_read_values_init(struct perf_read_values *values) in perf_read_values_init() argument
15 values->threads_max = 16; in perf_read_values_init()
16 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
17 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
18 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
19 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
23 values->threads = 0; in perf_read_values_init()
25 values->counters_max = 16; in perf_read_values_init()
26 values->counters = malloc(values->counters_max * sizeof(*values->counters)); in perf_read_values_init()
27 if (!values->counters) { in perf_read_values_init()
[all …]
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/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 …]
/linux/lib/tests/
H A Dmin_heap_kunit.c46 int *values = heap->data; in pop_verify_heap() local
49 last = values[0]; in pop_verify_heap()
53 KUNIT_EXPECT_LE(test, last, values[0]); in pop_verify_heap()
55 KUNIT_EXPECT_GE(test, last, values[0]); in pop_verify_heap()
56 last = values[0]; in pop_verify_heap()
64 int values[] = { 3, 1, 2, 4, 0x8000000, 0x7FFFFFF, 0, in test_heapify_all() local
67 .data = values, in test_heapify_all()
68 .nr = ARRAY_SIZE(values), in test_heapify_all()
69 .size = ARRAY_SIZE(values), in test_heapify_all()
82 heap.nr = ARRAY_SIZE(values); in test_heapify_all()
[all …]
/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/drivers/video/fbdev/matrox/
H A Dmatroxfb_misc.c545 minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ? in parse_pins1()
549 minfo->values.reg.mctlwtst = 0x00030101; in parse_pins1()
557 minfo->values.pll.system = 50000; in default_pins1()
559 minfo->values.reg.mctlwtst = 0x00030101; in default_pins1()
567 minfo->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) | in parse_pins2()
571 minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); in parse_pins2()
581 minfo->values.reg.mctlwtst = 0x00030101; in default_pins2()
582 minfo->values.pll.system = 50000; in default_pins2()
591 minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ? in parse_pins3()
594 minfo->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) | in parse_pins3()
[all …]
/linux/kernel/bpf/
H A Dbpf_insn_array.c10 DECLARE_FLEX_ARRAY(struct bpf_insn_array_value, values);
54 insn_array->ips = (void *)&insn_array->values[attr->max_entries]; in insn_array_alloc()
72 return &insn_array->values[index]; in insn_array_lookup_elem()
91 insn_array->values[index].orig_off = val.orig_off; in insn_array_update_elem()
169 off = insn_array->values[i].orig_off; in valid_offsets()
186 struct bpf_insn_array_value *values = insn_array->values; in bpf_insn_array_init() local
207 values[i].xlated_off = values[i].orig_off; in bpf_insn_array_init()
218 if (insn_array->values[i].xlated_off == INSN_DELETED) in bpf_insn_array_ready()
243 if (insn_array->values[i].xlated_off <= off) in bpf_insn_array_adjust()
245 if (insn_array->values[i].xlated_off == INSN_DELETED) in bpf_insn_array_adjust()
[all …]
/linux/net/ax25/
H A Dax25_dev.c69 ax25_dev->values[AX25_VALUES_IPDEFMODE] = AX25_DEF_IPDEFMODE; in ax25_dev_device_up()
70 ax25_dev->values[AX25_VALUES_AXDEFMODE] = AX25_DEF_AXDEFMODE; in ax25_dev_device_up()
71 ax25_dev->values[AX25_VALUES_BACKOFF] = AX25_DEF_BACKOFF; in ax25_dev_device_up()
72 ax25_dev->values[AX25_VALUES_CONMODE] = AX25_DEF_CONMODE; in ax25_dev_device_up()
73 ax25_dev->values[AX25_VALUES_WINDOW] = AX25_DEF_WINDOW; in ax25_dev_device_up()
74 ax25_dev->values[AX25_VALUES_EWINDOW] = AX25_DEF_EWINDOW; in ax25_dev_device_up()
75 ax25_dev->values[AX25_VALUES_T1] = AX25_DEF_T1; in ax25_dev_device_up()
76 ax25_dev->values[AX25_VALUES_T2] = AX25_DEF_T2; in ax25_dev_device_up()
77 ax25_dev->values[AX25_VALUES_T3] = AX25_DEF_T3; in ax25_dev_device_up()
78 ax25_dev->values[AX25_VALUES_IDLE] = AX25_DEF_IDLE; in ax25_dev_device_up()
[all …]
/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/drivers/soc/apple/
H A Dtunable.c41 tunable = devm_kzalloc(dev, struct_size(tunable, values, sz), GFP_KERNEL); in devm_apple_tunable_parse()
47 p = of_prop_next_u32(prop, p, &tunable->values[i].offset); in devm_apple_tunable_parse()
48 p = of_prop_next_u32(prop, p, &tunable->values[i].mask); in devm_apple_tunable_parse()
49 p = of_prop_next_u32(prop, p, &tunable->values[i].value); in devm_apple_tunable_parse()
52 if (tunable->values[i].offset % 4) in devm_apple_tunable_parse()
54 if (tunable->values[i].offset > (resource_size(res) - 4)) in devm_apple_tunable_parse()
69 old_val = readl(regs + tunable->values[i].offset); in apple_tunable_apply()
70 val = old_val & ~tunable->values[i].mask; in apple_tunable_apply()
71 val |= tunable->values[i].value; in apple_tunable_apply()
73 writel(val, regs + tunable->values[i].offset); in apple_tunable_apply()
/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/sound/soc/intel/avs/
H A Dcontrol.c76 ctl_data->values[i] = dspvols[i].target_volume; in avs_control_volume_get()
80 memcpy(uctl->value.integer.value, ctl_data->values, sizeof(ctl_data->values)); in avs_control_volume_get()
105 if (!memcmp(ctl_data->values, input, sizeof(ctl_data->values))) in avs_control_volume_put()
118 memcpy(ctl_data->values, input, sizeof(ctl_data->values)); in avs_control_volume_put()
159 ctl_data->values[i] = !dspmutes[i].mute; in avs_control_mute_get()
163 memcpy(uctl->value.integer.value, ctl_data->values, sizeof(ctl_data->values)); in avs_control_mute_get()
188 if (!memcmp(ctl_data->values, input, sizeof(ctl_data->values))) in avs_control_mute_put()
201 memcpy(ctl_data->values, input, sizeof(ctl_data->values)); in avs_control_mute_put()
/linux/drivers/iio/adc/
H A Dti-ads7138.c103 u8 *values, u8 length) in ads7138_i2c_write_block() argument
114 memcpy(&buf[2], values, length); in ads7138_i2c_write_block()
236 u8 values[2]; in ads7138_read_raw() local
242 values, ARRAY_SIZE(values)); in ads7138_read_raw()
246 *val = get_unaligned_le16(values); in ads7138_read_raw()
251 values, ARRAY_SIZE(values)); in ads7138_read_raw()
255 *val = get_unaligned_le16(values); in ads7138_read_raw()
260 values, ARRAY_SIZE(values)); in ads7138_read_raw()
264 *val = get_unaligned_le16(values); in ads7138_read_raw()
337 u8 reg, values[2]; in ads7138_read_event() local
[all …]
/linux/drivers/i2c/muxes/
H A Di2c-mux-gpio.c28 DECLARE_BITMAP(values, BITS_PER_TYPE(val)); in i2c_mux_gpio_set()
30 values[0] = val; in i2c_mux_gpio_set()
32 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set()
65 unsigned int *values; in i2c_mux_gpio_probe_fw() local
97 values = devm_kcalloc(dev, in i2c_mux_gpio_probe_fw()
98 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_gpio_probe_fw()
100 if (!values) { in i2c_mux_gpio_probe_fw()
107 fwnode_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_fw()
109 rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values + i); in i2c_mux_gpio_probe_fw()
118 mux->data.values = values; in i2c_mux_gpio_probe_fw()
[all …]
/linux/drivers/auxdisplay/
H A Dhd44780.c66 DECLARE_BITMAP(values, 10); /* for DATA[0-7], RS, RW */ in hd44780_write_gpio8()
69 values[0] = val; in hd44780_write_gpio8()
70 __assign_bit(8, values, rs); in hd44780_write_gpio8()
74 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values); in hd44780_write_gpio8()
82 DECLARE_BITMAP(values, 6); /* for DATA[4-7], RS, RW */ in hd44780_write_gpio4()
86 values[0] = val >> 4; in hd44780_write_gpio4()
87 __assign_bit(4, values, rs); in hd44780_write_gpio4()
91 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values); in hd44780_write_gpio4()
96 values[0] &= ~0x0fUL; in hd44780_write_gpio4()
97 values[0] |= val & 0x0f; in hd44780_write_gpio4()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Drefcounted_kptr.c54 u64 *values; in test_percpu_hash_refcounted_kptr_refcount_leak() local
65 values = calloc(cpu_nr, sizeof(u64)); in test_percpu_hash_refcounted_kptr_refcount_leak()
66 if (!ASSERT_OK_PTR(values, "calloc values")) in test_percpu_hash_refcounted_kptr_refcount_leak()
71 free(values); in test_percpu_hash_refcounted_kptr_refcount_leak()
76 memset(values, 0, values_sz); in test_percpu_hash_refcounted_kptr_refcount_leak()
79 err = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, 0); in test_percpu_hash_refcounted_kptr_refcount_leak()
90 err = bpf_map__update_elem(map, &key, sizeof(key), values, values_sz, 0); in test_percpu_hash_refcounted_kptr_refcount_leak()
101 free(values); in test_percpu_hash_refcounted_kptr_refcount_leak()

12345678910>>...72