/Linux-v6.1/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-v6.1/tools/perf/tests/ |
D | parse-metric.c | 34 struct value *vals) in load_runtime_stat() argument 41 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 111 load_runtime_stat(&st, evlist, vals); in __compute_metric() 129 static int compute_metric(const char *name, struct value *vals, double *ratio) in compute_metric() argument 131 return __compute_metric(name, vals, name, ratio, NULL, NULL); in compute_metric() 134 static int compute_metric_group(const char *name, struct value *vals, in compute_metric_group() argument 138 return __compute_metric(name, vals, name1, ratio1, name2, ratio2); in compute_metric_group() 144 struct value vals[] = { in test_ipc() local 151 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() [all …]
|
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/fs/ksmbd/ |
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() 228 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server() 231 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_0_server() 241 conn->vals = &smb302_server_values; in init_smb3_02_server() 248 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb3_02_server() 252 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server() 255 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_02_server() [all …]
|
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/drivers/iio/ |
D | industrialio-core.c | 650 int size, const int *vals) in __iio_format_value() argument 658 return sysfs_emit_at(buf, offset, "%d", vals[0]); in __iio_format_value() 663 if (vals[1] < 0) in __iio_format_value() 665 abs(vals[0]), -vals[1], in __iio_format_value() 668 return sysfs_emit_at(buf, offset, "%d.%06u%s", vals[0], in __iio_format_value() 669 vals[1], scale_db ? " dB" : ""); in __iio_format_value() 671 if (vals[1] < 0) in __iio_format_value() 673 abs(vals[0]), -vals[1]); in __iio_format_value() 675 return sysfs_emit_at(buf, offset, "%d.%09u", vals[0], in __iio_format_value() 676 vals[1]); in __iio_format_value() [all …]
|
D | inkern.c | 565 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local 578 vals, &val_len, info); in iio_channel_read() 579 *val = vals[0]; in iio_channel_read() 580 *val2 = vals[1]; in iio_channel_read() 800 const int **vals, int *type, int *length, in iio_channel_read_avail() argument 807 vals, type, length, info); in iio_channel_read_avail() 811 const int **vals, int *type, int *length, in iio_read_avail_channel_attribute() argument 823 ret = iio_channel_read_avail(chan, vals, type, length, attribute); in iio_read_avail_channel_attribute() 832 const int **vals, int *length) in iio_read_avail_channel_raw() argument 837 ret = iio_read_avail_channel_attribute(chan, vals, &type, length, in iio_read_avail_channel_raw() [all …]
|
/Linux-v6.1/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-v6.1/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-v6.1/drivers/pinctrl/ |
D | pinctrl-single.c | 93 struct pcs_func_vals *vals; member 383 struct pcs_func_vals *vals; in pcs_set_mux() local 387 vals = &func->vals[i]; in pcs_set_mux() 389 val = pcs->read(vals->reg); in pcs_set_mux() 392 mask = vals->mask; in pcs_set_mux() 397 val |= (vals->val & mask); in pcs_set_mux() 398 pcs->write(val, vals->reg); in pcs_set_mux() 777 struct pcs_func_vals *vals, in pcs_add_function() argument 789 function->vals = vals; in pcs_add_function() 1003 struct pcs_func_vals *vals; in pcs_parse_one_pinctrl_entry() local [all …]
|
/Linux-v6.1/drivers/phy/hisilicon/ |
D | phy-histb-combphy.c | 198 u32 vals[3]; in histb_combphy_probe() local 225 vals, ARRAY_SIZE(vals)); in histb_combphy_probe() 232 mode->reg = vals[0]; in histb_combphy_probe() 233 mode->shift = vals[1]; in histb_combphy_probe() 234 mode->mask = vals[2]; in histb_combphy_probe()
|
/Linux-v6.1/tools/perf/arch/x86/tests/ |
D | insn-x86.c | 40 } vals[] = { in get_op() local 59 for (val = vals; val->name; val++) { in get_op() 74 } vals[] = { in get_branch() local 86 for (val = vals; val->name; val++) { in get_branch()
|
/Linux-v6.1/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-v6.1/drivers/cpufreq/ |
D | s3c24xx-cpufreq.c | 628 struct cpufreq_frequency_table *vals; in s3c_plltab_register() local 631 size = sizeof(*vals) * (plls_no + 1); in s3c_plltab_register() 633 vals = kzalloc(size, GFP_KERNEL); in s3c_plltab_register() 634 if (vals) { in s3c_plltab_register() 635 memcpy(vals, plls, size); in s3c_plltab_register() 636 pll_reg = vals; in s3c_plltab_register() 640 vals += plls_no; in s3c_plltab_register() 641 vals->frequency = CPUFREQ_TABLE_END; in s3c_plltab_register() 647 return vals ? 0 : -ENOMEM; in s3c_plltab_register()
|
/Linux-v6.1/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-v6.1/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()
|
/Linux-v6.1/drivers/input/ |
D | input.c | 106 struct input_value *vals, unsigned int count) in input_to_handler() argument 109 struct input_value *end = vals; in input_to_handler() 113 for (v = vals; v != vals + count; v++) { in input_to_handler() 120 count = end - vals; in input_to_handler() 127 handler->events(handle, vals, count); in input_to_handler() 129 for (v = vals; v != vals + count; v++) in input_to_handler() 141 struct input_value *vals, unsigned int count) in input_pass_values() argument 155 count = input_to_handler(handle, vals, count); in input_pass_values() 159 count = input_to_handler(handle, vals, count); in input_pass_values() 169 for (v = vals; v != vals + count; v++) { in input_pass_values() [all …]
|
/Linux-v6.1/drivers/iio/adc/ |
D | rtq6056.c | 313 const int **vals, int *type, int *length, in rtq6056_adc_read_avail() argument 318 *vals = rtq6056_samp_freq_list; in rtq6056_adc_read_avail() 323 *vals = rtq6056_avg_sample_list; in rtq6056_adc_read_avail() 400 int vals[2] = { priv->shunt_resistor_uohm, 1000000 }; in shunt_resistor_show() local 402 return iio_format_value(buf, IIO_VAL_FRACTIONAL, 1, vals); in shunt_resistor_show() 455 u16 vals[RTQ6056_MAX_CHANNEL]; in rtq6056_buffer_trigger_handler() member 472 data.vals[i++] = raw; in rtq6056_buffer_trigger_handler()
|
/Linux-v6.1/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | rings.c | 214 txd->vals[0], txd->vals[1], in nfp_nfd3_print_tx_descs() 215 txd->vals[2], txd->vals[3]); in nfp_nfd3_print_tx_descs()
|
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | init.c | 109 static const struct mt76_reg_pair vals[] = { in mt76_write_mac_initvals() local 175 mt76_wr_rp(dev, 0, vals, ARRAY_SIZE(vals)); in mt76_write_mac_initvals()
|