Searched refs:values (Results 26 - 50 of 385) sorted by relevance

1234567891011>>

/linux-master/tools/gpio/
H A Dgpio-utils.c106 * @values: The array of values want to set.
111 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) argument
115 ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values);
130 * @values: The array of values get from hardware.
135 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) argument
139 ret = ioctl(fd, GPIO_V2_LINE_GET_VALUES_IOCTL, values);
194 * gpiotools_gets() - Get values from specific lines.
200 * @values
205 gpiotools_gets(const char *device_name, unsigned int *lines, unsigned int num_lines, unsigned int *values) argument
263 gpiotools_sets(const char *device_name, unsigned int *lines, unsigned int num_lines, unsigned int *values) argument
[all...]
H A Dgpio-event-mon.c34 struct gpio_v2_line_values values; local
59 values.mask = 0;
60 values.bits = 0;
62 gpiotools_set_bit(&values.mask, i);
63 ret = gpiotools_get_values(lfd, &values);
74 gpiotools_test_bit(values.bits, 0));
80 fprintf(stdout, "Initial line values: %d",
81 gpiotools_test_bit(values.bits, 0));
84 gpiotools_test_bit(values.bits, i));
86 gpiotools_test_bit(values
[all...]
/linux-master/net/ax25/
H A Dax25_dev.c68 ax25_dev->values[AX25_VALUES_IPDEFMODE] = AX25_DEF_IPDEFMODE;
69 ax25_dev->values[AX25_VALUES_AXDEFMODE] = AX25_DEF_AXDEFMODE;
70 ax25_dev->values[AX25_VALUES_BACKOFF] = AX25_DEF_BACKOFF;
71 ax25_dev->values[AX25_VALUES_CONMODE] = AX25_DEF_CONMODE;
72 ax25_dev->values[AX25_VALUES_WINDOW] = AX25_DEF_WINDOW;
73 ax25_dev->values[AX25_VALUES_EWINDOW] = AX25_DEF_EWINDOW;
74 ax25_dev->values[AX25_VALUES_T1] = AX25_DEF_T1;
75 ax25_dev->values[AX25_VALUES_T2] = AX25_DEF_T2;
76 ax25_dev->values[AX25_VALUES_T3] = AX25_DEF_T3;
77 ax25_dev->values[AX25_VALUES_IDL
[all...]
/linux-master/drivers/i2c/muxes/
H A Di2c-mux-gpio.c27 DECLARE_BITMAP(values, BITS_PER_TYPE(val));
29 values[0] = val;
31 gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values);
61 unsigned int *values; local
93 values = devm_kcalloc(dev,
94 mux->data.n_values, sizeof(*mux->data.values),
96 if (!values) {
97 dev_err(dev, "Cannot allocate values array");
103 fwnode_property_read_u32(child, "reg", values + i);
105 rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values
[all...]
/linux-master/tools/perf/util/
H A Dcounts.h14 struct xyarray *values; member in struct:perf_counts
22 return xyarray__entry(counts->values, cpu_map_idx, thread);
H A Dbpf_counter_cgroup.c238 struct bpf_perf_event_value *values; local
246 values = calloc(total_cpus, sizeof(*values));
247 if (values == NULL)
257 err = bpf_map_lookup_elem(reading_map_fd, &idx, values);
266 counts->val = values[cpu.cpu].counter;
267 counts->ena = values[cpu.cpu].enabled;
268 counts->run = values[cpu.cpu].running;
273 free(values);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_map_in_map_invalid.c17 __array(values, struct inner);
H A Dverifier_map_ptr_mixing.c34 __array(values, struct {
51 __array(values, void (void));
53 .values = {
64 __array(values, void (void));
66 .values = {
H A Dverifier_prevent_map_lookup.c19 __array(values, void (void));
H A Dtest_global_func_args.c18 } values SEC(".maps");
22 bpf_map_update_elem(&values, &index, &value, 0);
H A Dtimer_mim_reject.c31 __array(values, struct inner_map);
33 .values = { [ARRAY_KEY] = &inner_htab },
/linux-master/samples/bpf/
H A Dtracex6.bpf.c19 } values SEC(".maps");
40 val = bpf_map_lookup_elem(&values, &key);
44 bpf_map_update_elem(&values, &key, &count, BPF_NOEXIST);
H A Dlwt_len_hist_user.c33 uint64_t values[nr_cpus], sum, max_value = 0, data[MAX_INDEX] = {}; local
51 bpf_map_lookup_elem(map_fd, &next_key, values);
55 sum += values[i];
/linux-master/tools/testing/selftests/bpf/
H A Dtest_bpftool.py89 for helpers in res["helpers"].values():
114 for helpers in tc["helpers"].values():
133 for helpers in tc["helpers"].values():
147 for helpers in full_res["helpers"].values():
151 for helpers in not_full_res["helpers"].values():
/linux-master/drivers/mmc/core/
H A Dpwrseq_simple.c42 unsigned long *values; local
45 values = bitmap_alloc(nvalues, GFP_KERNEL);
46 if (!values)
50 bitmap_fill(values, nvalues);
52 bitmap_zero(values, nvalues);
55 reset_gpios->info, values);
57 bitmap_free(values);
/linux-master/drivers/media/platform/renesas/vsp1/
H A Dvsp1_hgt.c73 const u8 *values = ctrl->p_new.p_u8; local
78 * control min, max and step. The values must match one of the following
87 if (values[i] > values[i+1])
92 if (values[0] > values[1] && values[11] > values[0])
/linux-master/drivers/auxdisplay/
H A Dhd44780.c66 DECLARE_BITMAP(values, 10); /* for DATA[0-7], RS, RW */
69 values[0] = val;
70 __assign_bit(8, values, rs);
74 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values);
82 DECLARE_BITMAP(values, 6); /* for DATA[4-7], RS, RW */
86 values[0] = val >> 4;
87 __assign_bit(4, values, rs);
91 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values);
96 values[0] &= ~0x0fUL;
97 values[
[all...]
/linux-master/kernel/gcov/
H A Dgcc_4_7.c44 * @num: number of counter values for this type
45 * @values: array of counter values for this type
48 * at run-time with the exception of the values array.
52 gcov_type *values; member in struct:gcov_ctr_info
220 memset(ci_ptr->values, 0,
263 dci_ptr->values[val_idx] +=
264 sci_ptr->values[val_idx];
287 size_t cv_size; /* counter values size */
324 dci_ptr->values
[all...]
/linux-master/drivers/hwtracing/coresight/
H A Dcoresight-cti-platform.c245 u32 *values; local
250 values = kcalloc(tgrp->nr_sigs, sizeof(u32), GFP_KERNEL);
251 if (!values)
255 values, tgrp->nr_sigs);
260 tgrp->used_mask |= BIT(values[idx]);
263 kfree(values);
272 u32 *values = NULL, i; local
284 /* need an array to store the values iff there are any */
286 values = kcalloc(items, sizeof(u32), GFP_KERNEL);
287 if (!values)
[all...]
/linux-master/drivers/net/mdio/
H A Dmdio-mux-gpio.c26 DECLARE_BITMAP(values, BITS_PER_TYPE(desired_child));
31 values[0] = desired_child;
34 s->gpios->info, values);
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_zswap.c307 struct no_kmem_bypass_child_args *values = arg; local
310 allocation = malloc(values->target_alloc_bytes);
312 values->child_allocated = true;
315 for (long i = 0; i < values->target_alloc_bytes; i += 4095)
317 values->child_allocated = true;
338 struct no_kmem_bypass_child_args *values; local
348 /* Read sys info and compute test values accordingly */
353 values = mmap(0, sizeof(struct no_kmem_bypass_child_args), PROT_READ |
355 if (values == MAP_FAILED)
361 values
[all...]
/linux-master/drivers/mfd/
H A Dstmpe-i2c.c34 static int i2c_block_read(struct stmpe *stmpe, u8 reg, u8 length, u8 *values) argument
38 return i2c_smbus_read_i2c_block_data(i2c, reg, length, values);
42 const u8 *values)
46 return i2c_smbus_write_i2c_block_data(i2c, reg, length, values);
41 i2c_block_write(struct stmpe *stmpe, u8 reg, u8 length, const u8 *values) argument
/linux-master/drivers/media/pci/mgb4/
H A Dmgb4_i2c.c127 const struct mgb4_i2c_kv *values, size_t count)
133 res = mgb4_i2c_mask_byte(client, values[i].reg, values[i].mask,
134 values[i].val);
126 mgb4_i2c_configure(struct mgb4_i2c_client *client, const struct mgb4_i2c_kv *values, size_t count) argument
/linux-master/drivers/gpu/drm/arm/display/include/
H A Dmalidp_io.h41 malidp_write_group(u32 __iomem *base, u32 offset, int num, const u32 *values) argument
46 malidp_write32(base, offset + i * 4, values[i]);
/linux-master/tools/testing/selftests/net/
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']
228 1. devlink_data contains values
232 if any(devlink_data.values()):

Completed in 402 milliseconds

1234567891011>>