/linux/kernel/trace/ |
A D | synth_event_gen_test.c | 48 u64 vals[7]; in test_gen_synth_cmd() local 115 vals[2] = 1000000; /* ts_ns */ in test_gen_synth_cmd() 116 vals[3] = 1000; /* ts_ms */ in test_gen_synth_cmd() 122 ret = synth_event_trace_array(gen_synth_test, vals, ARRAY_SIZE(vals)); in test_gen_synth_cmd() 141 u64 vals[7]; in test_empty_synth_event() local 222 vals[2] = 1000000; /* ts_ns */ in test_empty_synth_event() 223 vals[3] = 1000; /* ts_ms */ in test_empty_synth_event() 229 ret = synth_event_trace_array(empty_synth_test, vals, ARRAY_SIZE(vals)); in test_empty_synth_event() 259 u64 vals[9]; in test_create_synth_event() local 298 vals[4] = 1000; /* ts_ms */ in test_create_synth_event() [all …]
|
/linux/tools/perf/tests/ |
A D | parse-metric.c | 107 struct value *vals) in load_runtime_stat() argument 114 count = find_value(evsel->name, vals); in load_runtime_stat() 182 load_runtime_stat(&st, evlist, vals); in __compute_metric() 215 struct value vals[] = { in test_ipc() local 232 struct value vals[] = { in test_frontend() local 251 struct value vals[] = { in test_cache_miss_cycles() local 291 struct value vals[] = { in test_dcache_l2() local 318 struct value vals[] = { in test_recursion_fail() local 335 struct value vals[] = { in test_memory_bandwidth() local 352 struct value vals[] = { in test_metric_group() local [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | queue_stack_map.c | 13 __u32 vals[MAP_SIZE], duration, retval, size, val; in test_queue_stack_map_by_type() local 21 vals[i] = rand(); in test_queue_stack_map_by_type() 44 err = bpf_map_update_elem(map_in_fd, NULL, &vals[i], 0); in test_queue_stack_map_by_type() 54 val = vals[i]; in test_queue_stack_map_by_type() 55 pkt_v4.iph.saddr = vals[i] * 5; in test_queue_stack_map_by_type() 57 val = vals[MAP_SIZE - 1 - i]; in test_queue_stack_map_by_type() 58 pkt_v4.iph.saddr = vals[MAP_SIZE - 1 - i] * 5; in test_queue_stack_map_by_type() 84 if (err || val != vals[i] * 5) in test_queue_stack_map_by_type() 88 CHECK(i != MAP_SIZE && (err || val != vals[i] * 5), in test_queue_stack_map_by_type()
|
/linux/tools/testing/selftests/gpio/ |
A 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/sound/soc/fsl/ |
A D | fsl_ssi.c | 422 srcr = vals[RX].srcr | vals[TX].srcr; in fsl_ssi_config_enable() 423 stcr = vals[RX].stcr | vals[TX].stcr; in fsl_ssi_config_enable() 424 sier = vals[RX].sier | vals[TX].sier; in fsl_ssi_config_enable() 427 srcr = vals[dir].srcr; in fsl_ssi_config_enable() 428 stcr = vals[dir].stcr; in fsl_ssi_config_enable() 429 sier = vals[dir].sier; in fsl_ssi_config_enable() 465 vals[dir].scr, vals[dir].scr); in fsl_ssi_config_enable() 489 ((vals) & _ssi_xor_shared_bits(vals, avals, aactive)) 513 vals = &ssi->regvals[dir]; in fsl_ssi_config_disable() 586 vals[RX].srcr = SSI_SRCR_RFEN0; in fsl_ssi_setup_regvals() [all …]
|
/linux/fs/ksmbd/ |
A D | smb2ops.c | 196 conn->vals = &smb21_server_values; in init_smb2_1_server() 204 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb2_1_server() 214 conn->vals = &smb30_server_values; in init_smb3_0_server() 222 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb3_0_server() 226 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server() 229 conn->vals->capabilities |= SMB2_GLOBAL_CAP_MULTI_CHANNEL; in init_smb3_0_server() 239 conn->vals = &smb302_server_values; in init_smb3_02_server() 247 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING; in init_smb3_02_server() 251 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server() 264 conn->vals = &smb311_server_values; in init_smb3_11_server() [all …]
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A 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() 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 206 vals = kmalloc(sizeof(*vals) * N_WCIDS * 2, GFP_KERNEL); in mt7601u_init_wcid_attr_mem() 207 if (!vals) in mt7601u_init_wcid_attr_mem() 211 vals[i] = 1; in mt7601u_init_wcid_attr_mem() [all …]
|
/linux/drivers/iio/orientation/ |
A 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/drivers/iio/ |
A D | industrialio-core.c | 663 if (vals[1] < 0) in __iio_format_value() 665 abs(vals[0]), -vals[1], in __iio_format_value() 671 if (vals[1] < 0) in __iio_format_value() 673 abs(vals[0]), -vals[1]); in __iio_format_value() 676 vals[1]); in __iio_format_value() 678 tmp2 = div_s64((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 679 tmp1 = vals[1]; in __iio_format_value() 687 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 765 vals, &val_len, in iio_read_channel_info() 769 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info() [all …]
|
A D | inkern.c | 547 vals, &val_len, info); in iio_channel_read() 548 *val = vals[0]; in iio_channel_read() 549 *val2 = vals[1]; in iio_channel_read() 752 vals, type, length, info); in iio_channel_read_avail() 798 const int *vals; in iio_channel_read_max() local 810 *val = vals[2]; in iio_channel_read_max() 813 *val = vals[4]; in iio_channel_read_max() 814 *val2 = vals[5]; in iio_channel_read_max() 823 *val = vals[--length]; in iio_channel_read_max() 825 if (vals[--length] > *val) in iio_channel_read_max() [all …]
|
/linux/drivers/clk/uniphier/ |
A 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/drivers/iio/light/ |
A 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/tools/testing/selftests/arm64/pauth/ |
A 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/drivers/pinctrl/ |
A 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() 789 function->vals = vals; in pcs_add_function() 1013 vals = devm_kcalloc(pcs->dev, rows, sizeof(*vals), GFP_KERNEL); in pcs_parse_one_pinctrl_entry() 1014 if (!vals) in pcs_parse_one_pinctrl_entry() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_debugfs.c | 43 rxd->vals[0], rxd->vals[1]); in nfp_rx_q_show() 108 txd->vals[0], txd->vals[1], in nfp_tx_q_show() 109 txd->vals[2], txd->vals[3]); in nfp_tx_q_show()
|
/linux/drivers/input/ |
A D | input.c | 101 for (v = vals; v != vals + count; v++) { in input_to_handler() 108 count = end - vals; in input_to_handler() 117 for (v = vals; v != vals + count; v++) in input_to_handler() 155 for (v = vals; v != vals + count; v++) { in input_pass_values() 171 input_pass_values(dev, vals, ARRAY_SIZE(vals)); in input_pass_event() 194 input_pass_values(dev, vals, ARRAY_SIZE(vals)); in input_repeat_key() 383 if (!dev->vals) in input_handle_event() 965 input_pass_values(dev, vals, ARRAY_SIZE(vals)); in input_set_keycode() 1587 kfree(dev->vals); in input_dev_release() 2297 if (!dev->vals) { in input_register_device() [all …]
|
/linux/drivers/phy/hisilicon/ |
A 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/drivers/net/ethernet/chelsio/cxgb4vf/ |
A 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() 680 p->val = cpu_to_be32(*vals++); in t4vf_set_params() 850 u32 params[7], vals[7]; in t4vf_get_sge_params() local 870 sge_params->sge_control = vals[0]; in t4vf_get_sge_params() 898 sge_params->sge_control2 = vals[0]; in t4vf_get_sge_params() 969 u32 params[7], vals[7]; in t4vf_get_vpd_params() local 977 vpd_params->cclk = vals[0]; in t4vf_get_vpd_params() 992 u32 params[7], vals[7]; in t4vf_get_dev_params() local 1002 dev_params->fwrev = vals[0]; in t4vf_get_dev_params() [all …]
|
/linux/tools/perf/arch/x86/tests/ |
A 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/drivers/cpufreq/ |
A 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/scripts/gcc-plugins/ |
A D | latent_entropy_plugin.c | 128 vec<constructor_elt, va_gc> *vals; in handle_latent_entropy_attribute() local 180 vec_alloc(vals, nelt); in handle_latent_entropy_attribute() 186 CONSTRUCTOR_APPEND_ELT(vals, fld, random_const); in handle_latent_entropy_attribute() 190 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute() 220 vec_alloc(vals, nelt); in handle_latent_entropy_attribute() 226 CONSTRUCTOR_APPEND_ELT(vals, cst, rand_cst); in handle_latent_entropy_attribute() 233 DECL_INITIAL(*node) = build_constructor(type, vals); in handle_latent_entropy_attribute()
|
/linux/drivers/media/i2c/ |
A 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()
|
A D | imx214.c | 656 u8 vals[2]; in imx214_set_ctrl() local 668 vals[1] = ctrl->val; in imx214_set_ctrl() 669 vals[0] = ctrl->val >> 8; in imx214_set_ctrl() 670 ret = regmap_bulk_write(imx214->regmap, 0x202, vals, 2); in imx214_set_ctrl() 693 u8 vals[MAX_CMD]; in imx214_write_table() local 707 vals[i] = table[i].val; in imx214_write_table() 710 ret = regmap_bulk_write(imx214->regmap, table->addr, vals, i); in imx214_write_table()
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A D | init.c | 80 static const struct mt76_reg_pair vals[] = { in mt76_write_mac_initvals() local 146 mt76_wr_rp(dev, 0, vals, ARRAY_SIZE(vals)); in mt76_write_mac_initvals()
|
/linux/drivers/iio/magnetometer/ |
A D | mag3110.c | 119 const int (*vals)[2], int n) in mag3110_show_int_plus_micros() 125 "%d.%06d ", vals[n][0], vals[n][1]); in mag3110_show_int_plus_micros() 133 static int mag3110_get_int_plus_micros_index(const int (*vals)[2], int n, in mag3110_get_int_plus_micros_index() 137 if (val == vals[n][0] && val2 == vals[n][1]) in mag3110_get_int_plus_micros_index()
|