| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | htab_map_batch_ops.c | 15 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 D | array_map_batch_ops.c | 16 __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 D | lpm_trie_map_batch_ops.c | 23 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 D | max1600.c | 70 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 D | sa1111_jornada720.c | 64 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 D | counts.c | 15 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/kernel/bpf/ |
| H A D | bpf_insn_array.c | 10 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/drivers/soc/rockchip/ |
| H A D | grf.c | 23 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 D | gpio-handle-get-line-values-ioctl.rst | 10 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 D | gpio-handle-set-line-values-ioctl.rst | 10 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 D | gpio-v2-line-get-values-ioctl.rst | 12 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 D | gpio-v2-line-set-values-ioctl.rst | 12 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/testing/selftests/cgroup/ |
| H A D | test_zswap.c | 530 struct no_kmem_bypass_child_args *values = arg; in no_kmem_bypass_child() local 533 allocation = malloc(values->target_alloc_bytes); in no_kmem_bypass_child() 535 values->child_allocated = true; in no_kmem_bypass_child() 538 for (long i = 0; i < values->target_alloc_bytes; i += page_size) in no_kmem_bypass_child() 540 values->child_allocated = true; in no_kmem_bypass_child() 561 struct no_kmem_bypass_child_args *values; in test_no_kmem_bypass() local 584 values = mmap(0, sizeof(struct no_kmem_bypass_child_args), PROT_READ | in test_no_kmem_bypass() 586 if (values == MAP_FAILED) in test_no_kmem_bypass() 592 values->target_alloc_bytes = (sys_info.totalram - min_free_kb_high * 1000) + in test_no_kmem_bypass() 606 values->child_allocated = false; in test_no_kmem_bypass() [all …]
|
| /linux/tools/gpio/ |
| H A D | gpio-hammer.c | 28 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 D | gpio-utils.c | 111 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/drivers/auxdisplay/ |
| H A D | hd44780.c | 65 DECLARE_BITMAP(values, 10); /* for DATA[0-7], RS, RW */ in hd44780_write_gpio8() 68 values[0] = val; in hd44780_write_gpio8() 69 __assign_bit(8, values, rs); in hd44780_write_gpio8() 73 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values); in hd44780_write_gpio8() 81 DECLARE_BITMAP(values, 6); /* for DATA[4-7], RS, RW */ in hd44780_write_gpio4() 85 values[0] = val >> 4; in hd44780_write_gpio4() 86 __assign_bit(4, values, rs); in hd44780_write_gpio4() 90 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values); in hd44780_write_gpio4() 95 values[0] &= ~0x0fUL; in hd44780_write_gpio4() 96 values[0] |= val & 0x0f; in hd44780_write_gpio4() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_btf_map_in_map.c | 27 __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/drivers/net/netdevsim/ |
| H A D | ethtool.c | 179 struct ethtool_fec_hist_value *values = hist->values; in nsim_get_fec_stats() local 186 values[0].per_lane[0] = 125; in nsim_get_fec_stats() 187 values[0].per_lane[1] = 120; in nsim_get_fec_stats() 188 values[0].per_lane[2] = 100; in nsim_get_fec_stats() 189 values[0].per_lane[3] = 100; in nsim_get_fec_stats() 190 values[1].sum = 12; in nsim_get_fec_stats() 191 values[2].sum = 2; in nsim_get_fec_stats() 192 values[2].per_lane[0] = 2; in nsim_get_fec_stats() 193 values[2].per_lane[1] = 0; in nsim_get_fec_stats() 194 values[2].per_lane[2] = 0; in nsim_get_fec_stats() [all …]
|
| /linux/samples/bpf/ |
| H A D | tracex3_user.c | 20 __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/tools/testing/selftests/drivers/net/hw/ |
| H A D | iou-zcrx.py | 29 values = re.search(r'New RSS context is (\d+)', output).group(1) 30 return int(values) 35 values = re.search(r'ID (\d+)', output).group(1) 36 return int(values) 41 values = re.search(r'ID (\d+)', output).group(1) 42 return int(values)
|
| /linux/tools/kvm/kvm_stat/ |
| H A D | kvm_stat | 944 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/Documentation/hwmon/ |
| H A D | lm95245.rst | 33 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/Documentation/devicetree/bindings/powerpc/opal/ |
| H A D | power-mgt.txt | 41 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 D | sysfs-tty | 29 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/kernel/gcov/ |
| H A D | gcc_4_7.c | 52 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() 323 dci_ptr->values = kvmalloc(cv_size, GFP_KERNEL); in gcov_info_dup() 325 if (!dci_ptr->values) in gcov_info_dup() 329 memcpy(dci_ptr->values, sci_ptr->values, cv_size); in gcov_info_dup() 365 kvfree(ci_ptr->values); in gcov_info_free() 427 ci_ptr->values[cv_idx]); in convert_to_gcda()
|