Home
last modified time | relevance | path

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

12345678910>>...30

/kernel/linux/linux-6.6/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()
62 unsigned *values; in i2c_mux_gpio_probe_fw() local
94 values = devm_kcalloc(dev, in i2c_mux_gpio_probe_fw()
95 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_gpio_probe_fw()
97 if (!values) { in i2c_mux_gpio_probe_fw()
98 dev_err(dev, "Cannot allocate values array"); in i2c_mux_gpio_probe_fw()
104 fwnode_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_fw()
107 rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values in i2c_mux_gpio_probe_fw()
[all...]
/kernel/linux/linux-5.10/arch/alpha/oprofile/
H A Dop_model_ev5.c148 For EV5, this means disabling profiling, reading the current values,
159 unsigned long values, mask, not_pk, reset_values; in ev5_reset_ctr() local
170 values = wrperfmon(5, 0); in ev5_reset_ctr()
171 values = (reset_values & mask) | (values & ~mask & -2); in ev5_reset_ctr()
172 wrperfmon(6, values); in ev5_reset_ctr()
175 values = wrperfmon(5, 0); in ev5_reset_ctr()
176 values = (reset_values & mask) | (values & ~mask & -2); in ev5_reset_ctr()
177 wrperfmon(6, values); in ev5_reset_ctr()
[all...]
/kernel/linux/linux-5.10/drivers/soc/rockchip/
H 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,
165 const struct rockchip_grf_value *val = &grf_info->values[i]; in rockchip_grf_init()
/kernel/linux/linux-5.10/drivers/i2c/muxes/
H 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()
59 unsigned *values; in i2c_mux_gpio_probe_dt() local
80 values = devm_kcalloc(&pdev->dev, in i2c_mux_gpio_probe_dt()
81 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_gpio_probe_dt()
83 if (!values) { in i2c_mux_gpio_probe_dt()
84 dev_err(&pdev->dev, "Cannot allocate values array"); in i2c_mux_gpio_probe_dt()
89 of_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_dt()
92 mux->data.values in i2c_mux_gpio_probe_dt()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_zswap.c120 struct no_kmem_bypass_child_args *values = arg; in no_kmem_bypass_child() local
123 allocation = malloc(values->target_alloc_bytes); in no_kmem_bypass_child()
125 values->child_allocated = true; in no_kmem_bypass_child()
128 for (long i = 0; i < values->target_alloc_bytes; i += 4095) in no_kmem_bypass_child()
130 values->child_allocated = true; in no_kmem_bypass_child()
151 struct no_kmem_bypass_child_args *values; in test_no_kmem_bypass() local
161 /* Read sys info and compute test values accordingly */ in test_no_kmem_bypass()
166 values = mmap(0, sizeof(struct no_kmem_bypass_child_args), PROT_READ | in test_no_kmem_bypass()
168 if (values == MAP_FAILED) in test_no_kmem_bypass()
174 values in test_no_kmem_bypass()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_btf_map_in_map.c27 __array(values, struct {
37 * in __inner(values, ...)
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 },
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_btf_map_in_map.c27 __array(values, struct {
37 * in __inner(values, ...)
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 },
/kernel/linux/linux-6.6/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[ in hd44780_write_gpio4()
[all...]
/kernel/linux/linux-5.10/tools/gpio/
H 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()
80 fprintf(stdout, "Initial line values: %d", 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 in monitor_device()
[all...]
H A Dgpio-utils.c174 * @values: The array of values want to set.
179 int gpiotools_set_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_set_values() argument
183 ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values); in gpiotools_set_values()
198 * @values: The array of values get from hardware.
203 int gpiotools_get_values(const int fd, struct gpio_v2_line_values *values) in gpiotools_get_values() argument
207 ret = ioctl(fd, GPIO_V2_LINE_GET_VALUES_IOCTL, values); in gpiotools_get_values()
283 * gpiotools_gets(): Get values from specific lines.
289 * @values
294 gpiotools_gets(const char *device_name, unsigned int *lines, unsigned int num_lines, unsigned int *values) gpiotools_gets() argument
352 gpiotools_sets(const char *device_name, unsigned int *lines, unsigned int num_lines, unsigned int *values) gpiotools_sets() argument
[all...]
/kernel/linux/linux-6.6/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) in gpiotools_set_values() argument
115 ret = ioctl(fd, GPIO_V2_LINE_SET_VALUES_IOCTL, values); in gpiotools_set_values()
130 * @values: The array of values get from hardware.
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()
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) gpiotools_gets() argument
263 gpiotools_sets(const char *device_name, unsigned int *lines, unsigned int num_lines, unsigned int *values) gpiotools_sets() argument
[all...]
H 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()
80 fprintf(stdout, "Initial line values: %d", 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 in monitor_device()
[all...]
/kernel/linux/linux-5.10/samples/bpf/
H 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/char/
H 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()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dvalues.h18 int perf_read_values_init(struct perf_read_values *values);
19 void perf_read_values_destroy(struct perf_read_values *values);
21 int perf_read_values_add_value(struct perf_read_values *values,
25 void perf_read_values_display(FILE *fp, struct perf_read_values *values,
/kernel/linux/linux-6.6/tools/perf/util/
H A Dvalues.h18 int perf_read_values_init(struct perf_read_values *values);
19 void perf_read_values_destroy(struct perf_read_values *values);
21 int perf_read_values_add_value(struct perf_read_values *values,
25 void perf_read_values_display(FILE *fp, struct perf_read_values *values,
/kernel/linux/linux-6.6/drivers/net/bonding/
H A Dbond_options.c241 .values = bond_mode_tbl,
249 .values = bond_pps_tbl,
256 .values = bond_xmit_hashtype_tbl,
265 .values = bond_arp_validate_tbl,
272 .values = bond_arp_all_targets_tbl,
280 .values = bond_fail_over_mac_tbl,
289 .values = bond_intmax_tbl,
298 .values = bond_missed_max_tbl,
319 .values = bond_intmax_tbl,
326 .values
[all...]
/kernel/linux/linux-5.10/drivers/mmc/core/
H A Dpwrseq_simple.c42 unsigned long *values; in mmc_pwrseq_simple_set_gpios_value() local
45 values = bitmap_alloc(nvalues, GFP_KERNEL); in mmc_pwrseq_simple_set_gpios_value()
46 if (!values) in mmc_pwrseq_simple_set_gpios_value()
50 bitmap_fill(values, nvalues); in mmc_pwrseq_simple_set_gpios_value()
52 bitmap_zero(values, nvalues); in mmc_pwrseq_simple_set_gpios_value()
55 reset_gpios->info, values); in mmc_pwrseq_simple_set_gpios_value()
57 kfree(values); in mmc_pwrseq_simple_set_gpios_value()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
H A Dvsp1_hgt.c73 const u8 *values = ctrl->p_new.p_u8; in hgt_hue_areas_try_ctrl() local
78 * control min, max and step. The values must match one of the following in hgt_hue_areas_try_ctrl()
87 if (values[i] > values[i+1]) in hgt_hue_areas_try_ctrl()
92 if (values[0] > values[1] && values[11] > values[0]) in hgt_hue_areas_try_ctrl()
/kernel/linux/linux-6.6/drivers/mmc/core/
H A Dpwrseq_simple.c42 unsigned long *values; in mmc_pwrseq_simple_set_gpios_value() local
45 values = bitmap_alloc(nvalues, GFP_KERNEL); in mmc_pwrseq_simple_set_gpios_value()
46 if (!values) in mmc_pwrseq_simple_set_gpios_value()
50 bitmap_fill(values, nvalues); in mmc_pwrseq_simple_set_gpios_value()
52 bitmap_zero(values, nvalues); in mmc_pwrseq_simple_set_gpios_value()
55 reset_gpios->info, values); in mmc_pwrseq_simple_set_gpios_value()
57 bitmap_free(values); in mmc_pwrseq_simple_set_gpios_value()
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
H A Dvsp1_hgt.c73 const u8 *values = ctrl->p_new.p_u8; in hgt_hue_areas_try_ctrl() local
78 * control min, max and step. The values must match one of the following in hgt_hue_areas_try_ctrl()
87 if (values[i] > values[i+1]) in hgt_hue_areas_try_ctrl()
92 if (values[0] > values[1] && values[11] > values[0]) in hgt_hue_areas_try_ctrl()
/kernel/linux/linux-5.10/drivers/net/bonding/
H A Dbond_options.c213 .values = bond_mode_tbl,
221 .values = bond_pps_tbl,
228 .values = bond_xmit_hashtype_tbl,
237 .values = bond_arp_validate_tbl,
244 .values = bond_arp_all_targets_tbl,
252 .values = bond_fail_over_mac_tbl,
261 .values = bond_intmax_tbl,
275 .values = bond_intmax_tbl,
282 .values = bond_intmax_tbl,
291 .values
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
H A Dmatroxfb_DAC1064.c597 /* maybe cmdline MCLK= ?, doc says gclk=44MHz, mclk=66MHz... it was 55/83 with old values */ in MGA1064_ramdac_init()
721 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init()
724 if (((minfo->values.reg.opt3 & 0x000003) == 0x000003) || in g450_mclk_init()
725 ((minfo->values.reg.opt3 & 0x000C00) == 0x000C00) || in g450_mclk_init()
726 ((minfo->values.reg.opt3 & 0x300000) == 0x300000)) { in g450_mclk_init()
727 matroxfb_g450_setclk(minfo, minfo->values.pll.video, M_VIDEO_PLL); in g450_mclk_init()
737 matroxfb_g450_setclk(minfo, minfo->values.pll.system, M_SYSTEM_PLL); in g450_mclk_init()
741 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3); in g450_mclk_init()
754 minfo->hw.MXoptionReg |= 0x00207E00 & minfo->values.reg.opt; in g450_memory_init()
756 pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, minfo->values in g450_memory_init()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/
H A Dmatroxfb_DAC1064.c597 /* maybe cmdline MCLK= ?, doc says gclk=44MHz, mclk=66MHz... it was 55/83 with old values */ in MGA1064_ramdac_init()
721 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init()
724 if (((minfo->values.reg.opt3 & 0x000003) == 0x000003) || in g450_mclk_init()
725 ((minfo->values.reg.opt3 & 0x000C00) == 0x000C00) || in g450_mclk_init()
726 ((minfo->values.reg.opt3 & 0x300000) == 0x300000)) { in g450_mclk_init()
727 matroxfb_g450_setclk(minfo, minfo->values.pll.video, M_VIDEO_PLL); in g450_mclk_init()
737 matroxfb_g450_setclk(minfo, minfo->values.pll.system, M_SYSTEM_PLL); in g450_mclk_init()
741 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3); in g450_mclk_init()
754 minfo->hw.MXoptionReg |= 0x00207E00 & minfo->values.reg.opt; in g450_memory_init()
756 pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, minfo->values in g450_memory_init()
[all...]

Completed in 13 milliseconds

12345678910>>...30