Home
last modified time | relevance | path

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

12345678910>>...57

/linux/tools/perf/util/
A Dvalues.c15 values->pid = malloc(values->threads_max * sizeof(*values->pid)); in perf_read_values_init()
16 values->tid = malloc(values->threads_max * sizeof(*values->tid)); in perf_read_values_init()
17 values->value = zalloc(values->threads_max * sizeof(*values->value)); in perf_read_values_init()
18 if (!values->pid || !values->tid || !values->value) { in perf_read_values_init()
25 values->counterrawid = malloc(values->counters_max in perf_read_values_init()
27 values->countername = malloc(values->counters_max in perf_read_values_init()
29 if (!values->counterrawid || !values->countername) { in perf_read_values_init()
51 if (!values->threads_max || !values->counters_max) in perf_read_values_destroy()
97 if (values->threads == values->threads_max) { in perf_read_values__findnew_thread()
105 values->value[i] = zalloc(values->counters_max * sizeof(**values->value)); in perf_read_values__findnew_thread()
[all …]
A Dcounts.c14 struct xyarray *values; in perf_counts__new() local
16 values = xyarray__new(ncpus, nthreads, sizeof(struct perf_counts_values)); in perf_counts__new()
17 if (!values) { in perf_counts__new()
22 counts->values = values; in perf_counts__new()
24 values = xyarray__new(ncpus, nthreads, sizeof(bool)); in perf_counts__new()
25 if (!values) { in perf_counts__new()
26 xyarray__delete(counts->values); in perf_counts__new()
31 counts->loaded = values; in perf_counts__new()
41 xyarray__delete(counts->values); in perf_counts__delete()
49 xyarray__reset(counts->values); in perf_counts__reset()
/linux/drivers/iio/test/
A Diio-test-format.c45 int values[2]; in iio_test_iio_format_value_fixedpoint() local
49 values[0] = 1; in iio_test_iio_format_value_fixedpoint()
50 values[1] = 10; in iio_test_iio_format_value_fixedpoint()
62 values[0] = 0; in iio_test_iio_format_value_fixedpoint()
63 values[1] = 12; in iio_test_iio_format_value_fixedpoint()
75 values[0] = -1; in iio_test_iio_format_value_fixedpoint()
88 values[0] = 0; in iio_test_iio_format_value_fixedpoint()
103 int values[2]; in iio_test_iio_format_value_fractional() local
107 values[0] = 1; in iio_test_iio_format_value_fractional()
114 values[1] = 3; in iio_test_iio_format_value_fractional()
[all …]
/linux/tools/testing/selftests/bpf/map_tests/
A Dhtab_map_batch_ops.c14 void *values, bool is_pcpu) in map_batch_update() argument
25 v = (value *)values; in map_batch_update()
33 ((int *)values)[i] = i + 2; in map_batch_update()
48 v = (value *)values; in map_batch_verify()
64 ((int *)values)[i]); in map_batch_verify()
85 void *values; in __test_map_lookup_and_delete_batch() local
106 values = pcpu_values; in __test_map_lookup_and_delete_batch()
116 values, &count, &opts); in __test_map_lookup_and_delete_batch()
161 values + in __test_map_lookup_and_delete_batch()
224 values + in __test_map_lookup_and_delete_batch()
[all …]
A Darray_map_batch_ops.c15 __s64 *values, bool is_pcpu) in map_batch_update() argument
29 (values + cpu_offset)[j] = i + 1 + j; in map_batch_update()
31 values[i] = i + 1; in map_batch_update()
40 __s64 *values, bool is_pcpu) in map_batch_verify() argument
50 __s64 value = (values + cpu_offset)[j]; in map_batch_verify()
59 values[i]); in map_batch_verify()
83 void *values; in __test_map_lookup_and_update_batch() local
99 values = calloc(max_entries, value_size); in __test_map_lookup_and_update_batch()
110 memset(values, 0, max_entries * value_size); in __test_map_lookup_and_update_batch()
121 values + total * value_size, in __test_map_lookup_and_update_batch()
[all …]
A Dlpm_trie_map_batch_ops.c22 struct test_lpm_key *keys, int *values) in map_batch_update() argument
36 values[i] = i + 1; in map_batch_update()
44 struct test_lpm_key *keys, int *values) in map_batch_verify() argument
55 CHECK(lower_byte != values[i], "key/value checking", in map_batch_verify()
75 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
91 values = malloc(max_entries * sizeof(int)); in test_lpm_trie_map_batch_ops()
98 map_batch_update(map_fd, max_entries, keys, values); in test_lpm_trie_map_batch_ops()
99 map_batch_verify(visited, max_entries, keys, values); in test_lpm_trie_map_batch_ops()
101 memset(values, 0, max_entries * sizeof(*values)); in test_lpm_trie_map_batch_ops()
111 keys + total, values + total, &count, &opts); in test_lpm_trie_map_batch_ops()
[all …]
/linux/drivers/pcmcia/
A Dmax1600.c75 __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()
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()
99 __assign_bit(MAX1600_GPIO_1VCC, values, 0); in max1600_configure()
101 __assign_bit(MAX1600_GPIO_0VCC, values, 0); in max1600_configure()
102 __assign_bit(MAX1600_GPIO_1VCC, values, 1); in max1600_configure()
114 __change_bit(MAX1600_GPIO_0VCC, values); in max1600_configure()
[all …]
A Dsa1111_jornada720.c75 __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()
99 __assign_bit(J720_GPIO_3V, values, 1); in jornada720_pcmcia_configure_socket()
[all …]
/linux/lib/
A Dtest_min_heap.c36 int *values = heap->data; in pop_verify_heap() local
40 last = values[0]; in pop_verify_heap()
44 if (last > values[0]) { in pop_verify_heap()
46 values[0]); in pop_verify_heap()
50 if (last < values[0]) { in pop_verify_heap()
52 values[0]); in pop_verify_heap()
56 last = values[0]; in pop_verify_heap()
67 .data = values, in test_heapify_all()
68 .nr = ARRAY_SIZE(values), in test_heapify_all()
100 .data = values, in test_heap_push()
[all …]
/linux/drivers/video/fbdev/matrox/
A Dmatroxfb_misc.c556 minfo->values.pll.system = 50000; in default_pins1()
581 minfo->values.pll.system = 50000; in default_pins2()
660 minfo->values.pll.system = in parse_pins5()
672 minfo->values.reg.maccess = minfo->values.memory.emrswen ? 0x00004000 : 0x00000000; in parse_pins5()
674 minfo->values.reg.mctlwtst_core = minfo->values.reg.mctlwtst; in parse_pins5()
680 minfo->values.reg.mctlwtst_core = (minfo->values.reg.mctlwtst & ~7) | in parse_pins5()
696 minfo->values.pll.system = in default_pins5()
701 minfo->values.reg.mctlwtst_core = in default_pins5()
706 minfo->values.memory.ddr = 1; in default_pins5()
707 minfo->values.memory.dll = 1; in default_pins5()
[all …]
A Dmatroxfb_DAC1064.c758 mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst); in g450_memory_init()
762 mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk); in g450_memory_init()
763 mga_outl(M_MACCESS, minfo->values.reg.maccess); in g450_memory_init()
769 if (minfo->values.memory.ddr && (!minfo->values.memory.emrswen || !minfo->values.memory.dll)) { in g450_memory_init()
783 if (minfo->values.reg.mctlwtst != minfo->values.reg.mctlwtst_core) { in g450_memory_init()
911 mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst); in MGAG100_preinit()
947 mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst); in MGAG100_preinit()
948 mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk); in MGAG100_preinit()
953 mga_outw(M_MEMRDBK, minfo->values.reg.memrdbk); in MGAG100_preinit()
968 mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk); in MGAG100_preinit()
[all …]
/linux/net/ax25/
A Dax25_dev.c64 ax25_dev->values[AX25_VALUES_IPDEFMODE] = AX25_DEF_IPDEFMODE; in ax25_dev_device_up()
66 ax25_dev->values[AX25_VALUES_BACKOFF] = AX25_DEF_BACKOFF; in ax25_dev_device_up()
67 ax25_dev->values[AX25_VALUES_CONMODE] = AX25_DEF_CONMODE; in ax25_dev_device_up()
68 ax25_dev->values[AX25_VALUES_WINDOW] = AX25_DEF_WINDOW; in ax25_dev_device_up()
69 ax25_dev->values[AX25_VALUES_EWINDOW] = AX25_DEF_EWINDOW; in ax25_dev_device_up()
70 ax25_dev->values[AX25_VALUES_T1] = AX25_DEF_T1; in ax25_dev_device_up()
71 ax25_dev->values[AX25_VALUES_T2] = AX25_DEF_T2; in ax25_dev_device_up()
72 ax25_dev->values[AX25_VALUES_T3] = AX25_DEF_T3; in ax25_dev_device_up()
73 ax25_dev->values[AX25_VALUES_IDLE] = AX25_DEF_IDLE; in ax25_dev_device_up()
74 ax25_dev->values[AX25_VALUES_N2] = AX25_DEF_N2; in ax25_dev_device_up()
[all …]
/linux/tools/gpio/
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()
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()
A Dgpio-event-mon.c34 struct gpio_v2_line_values values; in monitor_device() local
59 values.mask = 0; in monitor_device()
60 values.bits = 0; in monitor_device()
62 gpiotools_set_bit(&values.mask, i); in monitor_device()
63 ret = gpiotools_get_values(lfd, &values); in monitor_device()
74 gpiotools_test_bit(values.bits, 0)); in monitor_device()
81 gpiotools_test_bit(values.bits, 0)); in monitor_device()
84 gpiotools_test_bit(values.bits, i)); in monitor_device()
86 gpiotools_test_bit(values.bits, i)); in monitor_device()
/linux/drivers/auxdisplay/
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()
96 values[0] &= ~0x0fUL; in hd44780_write_gpio4()
97 values[0] |= val & 0x0f; in hd44780_write_gpio4()
158 DECLARE_BITMAP(values, 6); /* for DATA[4-7], RS, RW */ in hd44780_write_cmd_raw_gpio4()
[all …]
/linux/drivers/soc/rockchip/
A Dgrf.c24 const struct rockchip_grf_value *values; member
39 .values = rk3036_defaults,
50 .values = rk3128_defaults,
61 .values = rk3228_defaults,
74 .values = rk3288_defaults,
85 .values = rk3328_defaults,
96 .values = rk3368_defaults,
107 .values = rk3399_defaults,
163 const struct rockchip_grf_value *val = &grf_info->values[i]; in rockchip_grf_init()
/linux/drivers/i2c/muxes/
A Di2c-mux-gpio.c27 DECLARE_BITMAP(values, BITS_PER_TYPE(val)); in i2c_mux_gpio_set()
29 values[0] = val; in i2c_mux_gpio_set()
31 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); in i2c_mux_gpio_set()
99 unsigned *values; in i2c_mux_gpio_probe_fw() local
131 values = devm_kcalloc(dev, in i2c_mux_gpio_probe_fw()
132 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_gpio_probe_fw()
134 if (!values) { in i2c_mux_gpio_probe_fw()
141 fwnode_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_fw()
144 rc = i2c_mux_gpio_get_acpi_adr(dev, child, values + i); in i2c_mux_gpio_probe_fw()
151 mux->data.values = values; in i2c_mux_gpio_probe_fw()
[all …]
/linux/Documentation/ABI/testing/
A Dsysfs-class-power60 Valid values: Represented in microamps. Negative values are
100 Valid values: Represented in microamps. Negative values are
327 Valid values:
387 Valid values:
411 Valid values:
437 Valid values:
454 Valid values:
466 Valid values:
492 Valid values:
556 Valid values:
[all …]
/linux/tools/testing/selftests/bpf/progs/
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/
A Dkvm_stat876 self.values = {}
895 self.values = {}
900 self.values = {}
922 self.values = {}
953 return self.values
1180 if values == (0, 0):
1238 cur = int(round(values.delta / sleeptime)) if values.delta else 0
1243 if values.delta:
1496 values.delta))
1551 def do_statline(opts, values): argument
[all …]
/linux/Documentation/userspace-api/media/dvb/
A Dfe_property_parameters.rst288 Possible values: 0, 1, -1 (AUTO)
302 Possible values: 0, 1, -1 (AUTO)
339 Possible values: 0 .. 41, -1 (AUTO)
372 Possible values: 1 .. 13
560 Valid values: 0, 1, 2, 4, -1 (AUTO)
640 Possible values: 0, 1, 2, 3, ..., 30, 31
667 Possible values: 1, 2, 3, 4, 5, 6, 7, 8
680 Possible values: 0, 1, 2, 3, ..., 30, 31
692 Possible values: 0, 1, 2, 3, ..., 14, 15
704 Possible values: 1, 2, 3, 4, 5, 6, 7, 8
[all …]
/linux/drivers/char/
A Dtb0219.c90 uint16_t values; in get_gpio_input_pin() local
92 values = tb0219_read(TB0219_GPIO_INPUT); in get_gpio_input_pin()
93 if (values & (1 << pin)) in get_gpio_input_pin()
101 uint16_t values; in get_gpio_output_pin() local
103 values = tb0219_read(TB0219_GPIO_OUTPUT); in get_gpio_output_pin()
104 if (values & (1 << pin)) in get_gpio_output_pin()
112 uint16_t values; in get_dip_switch() local
114 values = tb0219_read(TB0219_DIP_SWITCH); in get_dip_switch()
115 if (values & (1 << pin)) in get_dip_switch()
/linux/drivers/hwtracing/coresight/
A Dcoresight-cti-platform.c245 u32 *values; in cti_plat_read_trig_group() local
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()
303 values[i] < CTI_TRIG_MAX ? values[i] : GEN_IO; in cti_plat_read_trig_types()
[all …]
/linux/samples/bpf/
A Dtracex3_user.c21 __u64 values[nr_cpus]; in clear_stats() local
24 memset(values, 0, sizeof(values)); in clear_stats()
26 bpf_map_update_elem(fd, &key, values, BPF_ANY); in clear_stats()
79 long values[nr_cpus]; in print_hist() local
87 bpf_map_lookup_elem(fd, &key, values); in print_hist()
90 value += values[i]; in print_hist()

Completed in 36 milliseconds

12345678910>>...57