/kernel/linux/linux-5.10/tools/perf/util/ |
D | values.c | 12 int perf_read_values_init(struct perf_read_values *values) in perf_read_values_init() argument 14 values->threads_max = 16; in perf_read_values_init() 15 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() 22 values->threads = 0; in perf_read_values_init() 24 values->counters_max = 16; in perf_read_values_init() 25 values->counterrawid = malloc(values->counters_max in perf_read_values_init() 26 * sizeof(*values->counterrawid)); in perf_read_values_init() [all …]
|
D | counts.c | 14 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()
|
D | values.h | 18 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/liteos_m/tools/ |
D | mem_analysis.py | 62 for base_address, values in static_map.items(): 64 c.value = values.get('offsets') 66 c.value = values.get('section') 68 c.value = values.get('sizeH') 70 c.value = values.get('sizeD') 72 c.value = values.get('symbol') 74 c.value = values.get('lib') 76 c.value = values.get('obj') 84 for base_address, values in static_map.items(): 85 target_list.append('{:<10s}'.format(values.get('offsets'))) [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
D | array_map_batch_ops.c | 13 int *values) in map_batch_update() argument 23 values[i] = i + 1; in map_batch_update() 26 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 31 int *keys, int *values) in map_batch_verify() argument 37 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify() 38 "error: i %d key %d value %d\n", i, keys[i], values[i]); in map_batch_verify() 55 int map_fd, *keys, *values, *visited; in test_array_map_batch_ops() local 72 values = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops() 74 CHECK(!keys || !values || !visited, "malloc()", "error:%s\n", in test_array_map_batch_ops() 78 map_batch_update(map_fd, max_entries, keys, values); in test_array_map_batch_ops() [all …]
|
D | htab_map_batch_ops.c | 14 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() 36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 41 int *keys, void *values, bool is_pcpu) in map_batch_verify() argument 48 v = (value *)values; in map_batch_verify() 61 CHECK(keys[i] + 1 != ((int *)values)[i], 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() [all …]
|
/kernel/linux/linux-5.10/drivers/pcmcia/ |
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 …]
|
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 …]
|
/kernel/linux/linux-5.10/lib/ |
D | test_min_heap.c | 36 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() 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() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 544 minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ? in parse_pins1() 548 minfo->values.reg.mctlwtst = 0x00030101; in parse_pins1() 556 minfo->values.pll.system = 50000; in default_pins1() 558 minfo->values.reg.mctlwtst = 0x00030101; in default_pins1() 566 minfo->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) | in parse_pins2() 570 minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000); in parse_pins2() 580 minfo->values.reg.mctlwtst = 0x00030101; in default_pins2() 581 minfo->values.pll.system = 50000; in default_pins2() 590 minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ? in parse_pins3() 593 minfo->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) | in parse_pins3() [all …]
|
/kernel/linux/linux-5.10/net/ax25/ |
D | ax25_dev.c | 66 ax25_dev->values[AX25_VALUES_IPDEFMODE] = AX25_DEF_IPDEFMODE; in ax25_dev_device_up() 67 ax25_dev->values[AX25_VALUES_AXDEFMODE] = AX25_DEF_AXDEFMODE; in ax25_dev_device_up() 68 ax25_dev->values[AX25_VALUES_BACKOFF] = AX25_DEF_BACKOFF; in ax25_dev_device_up() 69 ax25_dev->values[AX25_VALUES_CONMODE] = AX25_DEF_CONMODE; in ax25_dev_device_up() 70 ax25_dev->values[AX25_VALUES_WINDOW] = AX25_DEF_WINDOW; in ax25_dev_device_up() 71 ax25_dev->values[AX25_VALUES_EWINDOW] = AX25_DEF_EWINDOW; in ax25_dev_device_up() 72 ax25_dev->values[AX25_VALUES_T1] = AX25_DEF_T1; in ax25_dev_device_up() 73 ax25_dev->values[AX25_VALUES_T2] = AX25_DEF_T2; in ax25_dev_device_up() 74 ax25_dev->values[AX25_VALUES_T3] = AX25_DEF_T3; in ax25_dev_device_up() 75 ax25_dev->values[AX25_VALUES_IDLE] = AX25_DEF_IDLE; in ax25_dev_device_up() [all …]
|
/kernel/linux/linux-5.10/tools/gpio/ |
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()
|
D | gpio-event-mon.c | 34 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()
|
D | gpio-utils.c | 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() 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() 295 unsigned int num_lines, unsigned int *values) in gpiotools_gets() argument 316 values[i] = gpiotools_test_bit(lv.bits, i); in gpiotools_gets() 353 unsigned int num_lines, unsigned int *values) in gpiotools_sets() argument 364 gpiotools_assign_bit(&config.attrs[0].attr.values, in gpiotools_sets() 365 i, values[i]); in gpiotools_sets()
|
/kernel/linux/linux-5.10/drivers/auxdisplay/ |
D | hd44780.c | 64 DECLARE_BITMAP(values, 10); /* for DATA[0-7], RS, RW */ in hd44780_write_gpio8() 67 values[0] = val; in hd44780_write_gpio8() 68 __assign_bit(8, values, rs); in hd44780_write_gpio8() 72 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], NULL, values); in hd44780_write_gpio8() 80 DECLARE_BITMAP(values, 6); /* for DATA[4-7], RS, RW */ in hd44780_write_gpio4() 84 values[0] = val >> 4; in hd44780_write_gpio4() 85 __assign_bit(4, values, rs); in hd44780_write_gpio4() 89 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA4], NULL, values); in hd44780_write_gpio4() 94 values[0] &= ~0x0fUL; in hd44780_write_gpio4() 95 values[0] |= val & 0x0f; in hd44780_write_gpio4() [all …]
|
/kernel/linux/linux-5.10/arch/alpha/oprofile/ |
D | op_model_ev5.c | 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()
|
/kernel/linux/linux-5.10/drivers/soc/rockchip/ |
D | grf.c | 24 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/ |
D | i2c-mux-gpio.c | 27 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() 89 of_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_dt() 92 mux->data.values = values; in i2c_mux_gpio_probe_dt() 160 initial_state = mux->data.values[0]; in i2c_mux_gpio_probe() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
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 },
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | sysfs-class-power | 10 Valid values: Represented as string 19 Valid values: Represented as string 28 Valid values: Represented as string 37 Valid values: "Battery", "UPS", "Mains", "USB", "Wireless" 60 Valid values: Represented in microamps. Negative values are 61 used for discharging batteries, positive values for charging 77 Valid values: Represented in microamps 100 Valid values: Represented in microamps. Negative values are 101 used for discharging batteries, positive values for charging 120 Valid values: Represented in 1/10 Degrees Celsius [all …]
|
/kernel/linux/linux-5.10/drivers/char/ |
D | tb0219.c | 90 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/samples/bpf/ |
D | tracex3_user.c | 21 __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-5.10/drivers/mmc/core/ |
D | pwrseq_simple.c | 42 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/hwtracing/coresight/ |
D | coresight-cti-platform.c | 245 u32 *values; in cti_plat_read_trig_group() local 250 values = kcalloc(tgrp->nr_sigs, sizeof(u32), GFP_KERNEL); in cti_plat_read_trig_group() 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() [all …]
|
/kernel/linux/linux-5.10/tools/kvm/kvm_stat/ |
D | kvm_stat | 876 self.values = {} 895 self.values = {} 900 self.values = {} 922 self.values = {} 949 oldval = self.values.get(key, EventStat(0, 0)).value 952 self.values[key] = EventStat(newval, newdelta) 953 return self.values 970 if key in self.values.keys(): 971 del self.values[key] 973 oldvals = self.values.copy() [all …]
|