/linux-6.6.21/kernel/trace/ |
D | synth_event_gen_test.c | 48 u64 vals[7]; in test_gen_synth_cmd() local 113 vals[0] = 777; /* next_pid_field */ in test_gen_synth_cmd() 114 vals[1] = (u64)(long)"hula hoops"; /* next_comm_field */ in test_gen_synth_cmd() 115 vals[2] = 1000000; /* ts_ns */ in test_gen_synth_cmd() 116 vals[3] = 1000; /* ts_ms */ in test_gen_synth_cmd() 117 vals[4] = raw_smp_processor_id(); /* cpu */ in test_gen_synth_cmd() 118 vals[5] = (u64)(long)"thneed"; /* my_string_field */ in test_gen_synth_cmd() 119 vals[6] = 598; /* my_int_field */ in test_gen_synth_cmd() 122 ret = synth_event_trace_array(gen_synth_test, vals, ARRAY_SIZE(vals)); in test_gen_synth_cmd() 139 u64 vals[7]; in test_empty_synth_event() local [all …]
|
/linux-6.6.21/tools/perf/tests/ |
D | parse-metric.c | 33 static void load_runtime_stat(struct evlist *evlist, struct value *vals) in load_runtime_stat() argument 40 count = find_value(evsel->name, vals); in load_runtime_stat() 68 static int __compute_metric(const char *name, struct value *vals, in __compute_metric() argument 108 load_runtime_stat(evlist, vals); in __compute_metric() 125 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 127 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 130 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument 134 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group() 140 struct value vals[] = { in test_ipc() local 147 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | verifier_subprog_precision.c | 12 int vals[] SEC(".data.vals") = {1, 2, 3, 4}; variable 74 : __imm_ptr(vals) in subprog_result_precise() 114 : __imm_ptr(vals), in global_subprog_result_precise() 115 __imm_const(vals_arr_sz, ARRAY_SIZE(vals)) in global_subprog_result_precise() 183 : __imm_ptr(vals), in callback_result_precise() 221 : __imm_ptr(vals) in parent_callee_saved_reg_precise() 255 : __imm_ptr(vals) in parent_callee_saved_reg_precise_global() 315 : __imm_ptr(vals), in parent_callee_saved_reg_precise_with_callback() 365 : __imm_ptr(vals) in parent_stack_slot_precise() 411 : __imm_ptr(vals) in parent_stack_slot_precise_global() [all …]
|
/linux-6.6.21/tools/testing/selftests/gpio/ |
D | gpio-mockup-cdev.c | 48 struct gpio_v2_line_values vals; in get_value_v2() local 51 memset(&vals, 0, sizeof(vals)); in get_value_v2() 52 vals.mask = 1; in get_value_v2() 53 ret = ioctl(lfd, GPIO_V2_LINE_GET_VALUES_IOCTL, &vals); in get_value_v2() 56 return vals.bits & 0x1; in get_value_v2() 81 struct gpiohandle_data vals; in get_value_v1() local 84 memset(&vals, 0, sizeof(vals)); in get_value_v1() 85 ret = ioctl(lfd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, &vals); in get_value_v1() 88 return vals.values[0]; in get_value_v1()
|
/linux-6.6.21/sound/soc/fsl/ |
D | fsl_ssi.c | 406 struct fsl_ssi_regvals *vals = ssi->regvals; in fsl_ssi_config_enable() local 427 srcr = vals[RX].srcr | vals[TX].srcr; in fsl_ssi_config_enable() 428 stcr = vals[RX].stcr | vals[TX].stcr; in fsl_ssi_config_enable() 429 sier = vals[RX].sier | vals[TX].sier; in fsl_ssi_config_enable() 432 srcr = vals[dir].srcr; in fsl_ssi_config_enable() 433 stcr = vals[dir].stcr; in fsl_ssi_config_enable() 434 sier = vals[dir].sier; in fsl_ssi_config_enable() 470 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable() 490 #define _ssi_xor_shared_bits(vals, avals, aactive) \ argument 491 ((vals) ^ ((avals) * (aactive))) [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | queue_stack_map.c | 13 __u32 vals[MAP_SIZE], val; in test_queue_stack_map_by_type() local 28 vals[i] = rand(); in test_queue_stack_map_by_type() 51 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type() 61 val = vals[i]; in test_queue_stack_map_by_type() 62 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type() 64 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 65 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 97 ASSERT_EQ(val, vals[i] * 5, "bpf_map_push_elem val"); in test_queue_stack_map_by_type()
|
/linux-6.6.21/tools/testing/selftests/kvm/ |
D | guest_print_test.c | 23 static struct guest_vals vals; variable 58 vals = (struct guest_vals){ (uint64_t)a, (uint64_t)b, TYPE_##ext }; \ 59 sync_global_to_guest(vcpu->vm, vals); \ 71 switch (vals.type) { in guest_code() 74 GUEST_PRINTF(PRINTF_FMT_##ext, vals.a, vals.b); \ in guest_code() 75 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code() 76 ASSERT_FMT_##ext, vals.a, vals.b); \ in guest_code() 81 GUEST_SYNC(vals.type); in guest_code()
|
/linux-6.6.21/fs/smb/server/ |
D | smb2ops.c | 200 conn->vals = &smb21_server_values; in init_smb2_1_server() 207 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb2_1_server() 217 conn->vals = &smb30_server_values; in init_smb3_0_server() 224 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_0_server() 229 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server() 232 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_0_server() 242 conn->vals = &smb302_server_values; in init_smb3_02_server() 249 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_02_server() 255 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server() 258 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_02_server() [all …]
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt7601u/ |
D | init.c | 174 u32 *vals; in mt7601u_init_wcid_mem() local 177 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL); in mt7601u_init_wcid_mem() 178 if (!vals) in mt7601u_init_wcid_mem() 182 vals[i * 2] = 0xffffffff; in mt7601u_init_wcid_mem() 183 vals[i * 2 + 1] = 0x00ffffff; in mt7601u_init_wcid_mem() 187 vals, N_WCIDS * 2); in mt7601u_init_wcid_mem() 188 kfree(vals); in mt7601u_init_wcid_mem() 195 u32 vals[4] = {}; in mt7601u_init_key_mem() local 198 vals, ARRAY_SIZE(vals)); in mt7601u_init_key_mem() 203 u32 *vals; in mt7601u_init_wcid_attr_mem() local [all …]
|
/linux-6.6.21/drivers/iio/imu/bno055/ |
D | bno055.c | 117 int *vals; member 130 .vals = bno055_acc_lpf_vals, 142 .vals = bno055_acc_range_vals, 174 .vals = bno055_gyr_scale_vals, 183 .vals = bno055_gyr_lpf_vals, 192 .vals = bno055_mag_odr_vals, 570 *val = attr->vals[idx]; in bno055_get_regmask() 572 *val = attr->vals[idx * 2]; in bno055_get_regmask() 573 *val2 = attr->vals[idx * 2 + 1]; in bno055_get_regmask() 619 tbl_val = attr->vals[i]; in bno055_set_regmask() [all …]
|
/linux-6.6.21/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 68 int size, int *vals, int *val_len, in dev_rot_read_raw() argument 75 vals[0] = 0; in dev_rot_read_raw() 76 vals[1] = 0; in dev_rot_read_raw() 82 vals[i] = rot_state->scan.sampled_vals[i]; in dev_rot_read_raw() 89 vals[0] = rot_state->scale_pre_decml; in dev_rot_read_raw() 90 vals[1] = rot_state->scale_post_decml; in dev_rot_read_raw() 94 *vals = rot_state->value_offset; in dev_rot_read_raw() 99 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw() 103 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
|
/linux-6.6.21/drivers/clk/uniphier/ |
D | clk-uniphier-mux.c | 18 const unsigned int *vals; member 28 mux->vals[index]); in uniphier_clk_mux_set_parent() 44 if ((mux->masks[i] & val) == mux->vals[i]) in uniphier_clk_mux_get_parent() 78 mux->vals = data->vals; in uniphier_clk_register_mux()
|
/linux-6.6.21/drivers/iio/ |
D | inkern.c | 566 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local 579 vals, &val_len, info); in iio_channel_read() 580 *val = vals[0]; in iio_channel_read() 581 *val2 = vals[1]; in iio_channel_read() 801 const int **vals, int *type, int *length, in iio_channel_read_avail() argument 808 vals, type, length, info); in iio_channel_read_avail() 812 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument 824 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute() 833 const int **vals, int *length) in iio_read_avail_channel_raw() argument 838 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw() [all …]
|
D | industrialio-core.c | 635 int size, const int *vals) in __iio_format_value() argument 643 return sysfs_emit_at(buf, offset, "%d", vals[0]); in __iio_format_value() 648 if (vals[1] < 0) in __iio_format_value() 650 abs(vals[0]), -vals[1], in __iio_format_value() 653 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0], in __iio_format_value() 654 vals[1], scale_db ? " dB" : ""); in __iio_format_value() 656 if (vals[1] < 0) in __iio_format_value() 658 abs(vals[0]), -vals[1]); in __iio_format_value() 660 return sysfs_emit_at(buf, offset, "%d.%09u", vals[0], in __iio_format_value() 661 vals[1]); in __iio_format_value() [all …]
|
/linux-6.6.21/drivers/base/regmap/ |
D | regmap-kunit.c | 73 (*data)->vals = buf; in gen_regmap() 298 KUNIT_EXPECT_MEMEQ(test, data->vals, rval, sizeof(rval)); in reg_defaults() 332 KUNIT_EXPECT_MEMEQ(test, data->vals, rval, sizeof(rval)); in reg_defaults_read_dev() 379 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i] + 1); in register_patch() 383 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i]); in register_patch() 422 KUNIT_EXPECT_EQ(test, data->vals[i], rval); in stride() 535 unsigned int rval, *vals; in stress_insert() local 548 vals = kunit_kcalloc(test, sizeof(unsigned long), config.max_register, in stress_insert() 550 KUNIT_ASSERT_FALSE(test, vals == NULL); in stress_insert() 553 get_random_bytes(vals, buf_sz); in stress_insert() [all …]
|
D | regmap-ram.c | 23 data->vals[reg] = val; in regmap_ram_write() 33 *val = data->vals[reg]; in regmap_ram_read() 43 kfree(data->vals); in regmap_ram_free_context()
|
D | regmap-raw-ram.c | 35 u16 *our_buf = (u16 *)data->vals; in regmap_raw_ram_gather_write() 64 u16 *our_buf = (u16 *)data->vals; in regmap_raw_ram_read() 85 kfree(data->vals); in regmap_raw_ram_free_context()
|
/linux-6.6.21/drivers/iio/light/ |
D | cm32181.c | 142 u64 vals[CPM0_HEADER_SIZE + CM32181_CONF_REG_NUM]; in cm32181_acpi_parse_cpm_tables() local 146 count = cm32181_acpi_get_cpm(dev, "CPM0", vals, ARRAY_SIZE(vals)); in cm32181_acpi_parse_cpm_tables() 152 cm32181->init_regs_bitmap = vals[CPM0_REGS_BITMAP]; in cm32181_acpi_parse_cpm_tables() 155 cm32181->conf_regs[i] = vals[CPM0_HEADER_SIZE + i]; in cm32181_acpi_parse_cpm_tables() 157 count = cm32181_acpi_get_cpm(dev, "CPM1", vals, ARRAY_SIZE(vals)); in cm32181_acpi_parse_cpm_tables() 161 cm32181->lux_per_bit = vals[CPM1_LUX_PER_BIT]; in cm32181_acpi_parse_cpm_tables() 164 if (vals[CPM1_CALIBSCALE] == CM32181_CALIBSCALE_DEFAULT) in cm32181_acpi_parse_cpm_tables() 167 cm32181->calibscale = vals[CPM1_CALIBSCALE]; in cm32181_acpi_parse_cpm_tables()
|
/linux-6.6.21/tools/testing/selftests/arm64/pauth/ |
D | pac.c | 72 size_t vals[nkeys]; in n_same_single_set() local 75 vals[0] = sign->keyia & PAC_MASK; in n_same_single_set() 76 vals[1] = sign->keyib & PAC_MASK; in n_same_single_set() 77 vals[2] = sign->keyda & PAC_MASK; in n_same_single_set() 78 vals[3] = sign->keydb & PAC_MASK; in n_same_single_set() 81 vals[4] = sign->keyg & PAC_MASK; in n_same_single_set() 85 if (vals[i] == vals[j]) in n_same_single_set()
|
/linux-6.6.21/drivers/pinctrl/ |
D | pinctrl-single.c | 92 struct pcs_func_vals *vals; member 384 struct pcs_func_vals *vals; in pcs_set_mux() local 388 vals = &func->vals[i]; in pcs_set_mux() 390 val = pcs->read(vals->reg); in pcs_set_mux() 393 mask = vals->mask; in pcs_set_mux() 398 val |= (vals->val & mask); in pcs_set_mux() 399 pcs->write(val, vals->reg); in pcs_set_mux() 778 struct pcs_func_vals *vals, in pcs_add_function() argument 790 function->vals = vals; in pcs_add_function() 1004 struct pcs_func_vals *vals; in pcs_parse_one_pinctrl_entry() local [all …]
|
/linux-6.6.21/drivers/phy/hisilicon/ |
D | phy-histb-combphy.c | 199 u32 vals[3]; in histb_combphy_probe() local 226 vals, ARRAY_SIZE(vals)); in histb_combphy_probe() 233 mode->reg = vals[0]; in histb_combphy_probe() 234 mode->shift = vals[1]; in histb_combphy_probe() 235 mode->mask = vals[2]; in histb_combphy_probe()
|
/linux-6.6.21/tools/perf/arch/x86/tests/ |
D | insn-x86.c | 42 } vals[] = { in get_op() local 63 for (val = vals; val->name; val++) { in get_op() 78 } vals[] = { in get_branch() local 90 for (val = vals; val->name; val++) { in get_branch()
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | t4vf_hw.c | 623 const u32 *params, u32 *vals) in t4vf_query_params() argument 646 *vals++ = be32_to_cpu(p->val); in t4vf_query_params() 661 const u32 *params, const u32 *vals) in t4vf_set_params() argument 680 p->val = cpu_to_be32(*vals++); in t4vf_set_params() 850 u32 params[7], vals[7]; in t4vf_get_sge_params() local 867 v = t4vf_query_params(adapter, 7, params, vals); in t4vf_get_sge_params() 870 sge_params->sge_control = vals[0]; in t4vf_get_sge_params() 871 sge_params->sge_host_page_size = vals[1]; in t4vf_get_sge_params() 872 sge_params->sge_fl_buffer_size[0] = vals[2]; in t4vf_get_sge_params() 873 sge_params->sge_fl_buffer_size[1] = vals[3]; in t4vf_get_sge_params() [all …]
|
/linux-6.6.21/drivers/media/i2c/ |
D | saa717x.c | 815 } vals[] = { in set_h_prescale() local 828 static const int count = ARRAY_SIZE(vals); in set_h_prescale() 833 if (vals[i].xpsc == prescale) in set_h_prescale() 839 saa717x_write(sd, 0x60 + task_shift, vals[i].xpsc); in set_h_prescale() 841 saa717x_write(sd, 0x61 + task_shift, vals[i].xacl); in set_h_prescale() 844 (vals[i].xc2_1 << 3) | vals[i].xdcg); in set_h_prescale() 847 (vals[i].vpfy << 2) | vals[i].vpfy); in set_h_prescale()
|
/linux-6.6.21/scripts/gcc-plugins/ |
D | latent_entropy_plugin.c | 134 vec<constructor_elt, va_gc> *vals; in handle_latent_entropy_attribute() local 186 vec_alloc(vals, nelt); in handle_latent_entropy_attribute() 192 CONSTRUCTOR_APPEND_ELT(vals, fld, random_const); in handle_latent_entropy_attribute() 196 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute() 226 vec_alloc(vals, nelt); in handle_latent_entropy_attribute() 232 CONSTRUCTOR_APPEND_ELT(vals, cst, rand_cst); in handle_latent_entropy_attribute() 239 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
|