| /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() 139 u64 vals[7]; in test_empty_synth_event() local 220 vals[2] = 1000000; /* ts_ns */ in test_empty_synth_event() 221 vals[3] = 1000; /* ts_ms */ in test_empty_synth_event() 227 ret = synth_event_trace_array(empty_synth_test, vals, ARRAY_SIZE(vals)); in test_empty_synth_event() 255 u64 vals[9]; in test_create_synth_event() local 294 vals[4] = 1000; /* ts_ms */ in test_create_synth_event() [all …]
|
| /linux/tools/perf/tests/ |
| A D | parse-metric.c | 40 count = find_value(evsel->name, vals); in load_runtime_stat() 108 load_runtime_stat(evlist, vals); in __compute_metric() 140 struct value vals[] = { in test_ipc() local 147 compute_metric("IPC", vals, &ratio) == 0); in test_ipc() 157 struct value vals[] = { in test_frontend() local 176 struct value vals[] = { in test_cache_miss_cycles() local 216 struct value vals[] = { in test_dcache_l2() local 243 struct value vals[] = { in test_recursion_fail() local 260 struct value vals[] = { in test_memory_bandwidth() local 277 struct value vals[] = { in test_metric_group() local [all …]
|
| /linux/drivers/crypto/intel/qat/qat_common/ |
| A D | adf_tl_debugfs.c | 110 struct adf_tl_dbg_aggr_values *vals) in tl_calc_count() argument 122 memset(vals, 0, sizeof(*vals)); in tl_calc_count() 127 vals->curr = hist_vals[sample_cnt - 1]; in tl_calc_count() 150 vals->curr *= cpp_ns_per_cycle; in tl_cycles_to_ns() 151 vals->min *= cpp_ns_per_cycle; in tl_cycles_to_ns() 152 vals->max *= cpp_ns_per_cycle; in tl_cycles_to_ns() 153 vals->avg *= cpp_ns_per_cycle; in tl_cycles_to_ns() 184 memset(vals, 0, sizeof(*vals)); in tl_lat_acc_avg() 200 vals->curr = hist_vals[sample_cnt - 1]; in tl_lat_acc_avg() 228 memset(vals, 0, sizeof(*vals)); in tl_bw_hw_units_to_mbps() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | verifier_subprog_precision.c | 73 : __imm_ptr(vals) in subprog_result_precise() 125 : __imm_ptr(vals) in fp_precise_subprog_result() 161 : __imm_ptr(vals) in sneaky_fp_precise_subprog_result() 201 : __imm_ptr(vals), in global_subprog_result_precise() 320 : __imm_ptr(vals), in callback_result_precise() 358 : __imm_ptr(vals) in parent_callee_saved_reg_precise() 392 : __imm_ptr(vals) in parent_callee_saved_reg_precise_global() 502 : __imm_ptr(vals) in parent_stack_slot_precise() 546 : __imm_ptr(vals) in parent_stack_slot_precise_global() 726 : __imm_ptr(vals) in subprog_spill_into_parent_stack_slot_precise() [all …]
|
| /linux/sound/soc/fsl/ |
| A D | fsl_ssi.c | 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() 494 ((vals) & _ssi_xor_shared_bits(vals, avals, aactive)) 518 vals = &ssi->regvals[dir]; in fsl_ssi_config_disable() 591 vals[RX].srcr = SSI_SRCR_RFEN0; in fsl_ssi_setup_regvals() [all …]
|
| /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/fs/smb/server/ |
| A 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() 234 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_0_server() 247 conn->vals = &smb302_server_values; in init_smb3_02_server() 254 conn->vals->capabilities |= SMB2_GLOBAL_CAP_LEASING | in init_smb3_02_server() 260 conn->vals->capabilities |= SMB2_GLOBAL_CAP_ENCRYPTION; in init_smb3_02_server() 276 conn->vals = &smb311_server_values; in init_smb3_11_server() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A 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/tools/testing/selftests/kvm/ |
| A D | guest_print_test.c | 24 static struct guest_vals vals; variable 59 vals = (struct guest_vals){ (uint64_t)a, (uint64_t)b, TYPE_##ext }; \ 60 sync_global_to_guest(vcpu->vm, vals); \ 72 switch (vals.type) { in guest_code() 75 GUEST_PRINTF(PRINTF_FMT_##ext, vals.a, vals.b); \ in guest_code() 76 __GUEST_ASSERT(vals.a == vals.b, \ in guest_code() 77 ASSERT_FMT_##ext, vals.a, vals.b); \ in guest_code() 82 GUEST_SYNC(vals.type); in guest_code()
|
| /linux/drivers/hwmon/ |
| A D | max6697.c | 425 u32 vals[2]; in max6697_config_of() local 443 vals[0] = 0; in max6697_config_of() 445 MAX6697_ALERT_MAP_BITS(vals[0])); in max6697_config_of() 450 vals[0] = 0; in max6697_config_of() 452 MAX6697_OVERT_MAP_BITS(vals[0])); in max6697_config_of() 464 vals[0] = 0xfe; in max6697_config_of() 466 vals[0] = 0; in max6697_config_of() 469 vals[0] &= 0xfe; in max6697_config_of() 475 vals[0] = 0; in max6697_config_of() 476 vals[1] = 0; in max6697_config_of() [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/imu/bno055/ |
| A D | bno055.c | 117 int *vals; member 772 *vals = attr->vals; in bno055_sysfs_attr_avail() 791 vals, length); in bno055_read_avail() 800 vals, length); in bno055_read_avail() 804 vals, length); in bno055_read_avail() 815 vals, length); in bno055_read_avail() 870 vals[0] = 1; in bno055_read_quaternion() 871 vals[1] = 14; in bno055_read_quaternion() 918 &vals[0], &vals[1], in _bno055_read_raw_multi() 930 size, vals, in _bno055_read_raw_multi() [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/test/ |
| A D | iio-test-gts.c | 382 KUNIT_EXPECT_EQ(test, expected[i], vals[i]); in test_iio_gts_chk_times() 386 const int *vals, int len) in test_iio_gts_chk_scales_all() argument 409 KUNIT_EXPECT_EQ(test, expected[i], vals[i]); in test_iio_gts_chk_scales_all() 413 const int *vals, int len) in test_iio_gts_chk_scales_t200() argument 445 KUNIT_EXPECT_EQ(test, expected[i], vals[i]); in test_iio_gts_chk_scales_t200() 453 const int *vals; in test_iio_gts_avail_test() local 460 ret = iio_gts_avail_times(>s, &vals, &type, &len); in test_iio_gts_avail_test() 470 test_iio_gts_chk_times(test, vals); in test_iio_gts_avail_test() 473 ret = iio_gts_all_avail_scales(>s, &vals, &type, &len); in test_iio_gts_avail_test() 480 test_iio_gts_chk_scales_all(test, >s, vals, len); in test_iio_gts_avail_test() [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/ |
| A D | inkern.c | 548 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local 563 *val = vals[0]; in iio_channel_read() 564 *val2 = vals[1]; in iio_channel_read() 803 const int *vals; in iio_channel_read_max() local 815 *val = vals[2]; in iio_channel_read_max() 818 *val = vals[4]; in iio_channel_read_max() 820 *val2 = vals[5]; in iio_channel_read_max() 859 const int *vals; in iio_channel_read_min() local 871 *val = vals[0]; in iio_channel_read_min() 874 *val = vals[0]; in iio_channel_read_min() [all …]
|
| A D | industrialio-core.c | 654 if (vals[1] < 0) in __iio_format_value() 656 abs(vals[0]), -vals[1], in __iio_format_value() 662 if (vals[1] < 0) in __iio_format_value() 664 abs(vals[0]), -vals[1]); in __iio_format_value() 667 vals[1]); in __iio_format_value() 669 tmp2 = div_s64((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 677 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 696 tmp2 = (s64)((((u64)vals[1]) << 32) | (u32)vals[0]); in __iio_format_value() 763 vals, &val_len, in iio_read_channel_info() 767 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info() [all …]
|
| /linux/drivers/iio/dac/ |
| A D | adi-axi-dac.c | 193 int ret, vals[2]; in axi_dac_scale_get() local 209 vals[0] = scale / MEGA; in axi_dac_scale_get() 210 vals[1] = scale % MEGA; in axi_dac_scale_get() 213 vals[0] *= -1; in axi_dac_scale_get() 214 if (!vals[0]) in axi_dac_scale_get() 215 vals[1] *= -1; in axi_dac_scale_get() 219 vals); in axi_dac_scale_get() 227 int ret, vals[2]; in axi_dac_phase_get() local 241 vals[0] = phase / MEGA; in axi_dac_phase_get() 242 vals[1] = phase % MEGA; in axi_dac_phase_get() [all …]
|
| /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/base/regmap/ |
| A D | regmap-kunit.c | 189 (*data)->vals = buf; in gen_regmap() 439 data->vals[param->from_reg + i] = val[i]; in read_bypassed() 843 unsigned int rval, *vals; in stress_insert() local 857 KUNIT_ASSERT_FALSE(test, vals == NULL); in stress_insert() 859 get_random_bytes(vals, buf_sz); in stress_insert() 882 KUNIT_EXPECT_EQ(test, rval, vals[i]); in stress_insert() 948 memset(data->vals, 0, sizeof(val)); in cache_sync_marked_dirty() 1291 data->vals[i] = 0; in cache_drop_with_non_contiguous_ranges() 1612 (*data)->vals = (void *)buf; in gen_raw_regmap() 1760 hw_buf = (u16 *)data->vals; in raw_write() [all …]
|
| A 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()
|
| /linux/drivers/pinctrl/ |
| A D | pinctrl-single.c | 90 struct pcs_func_vals *vals; member 382 struct pcs_func_vals *vals; in pcs_set_mux() local 386 vals = &func->vals[i]; in pcs_set_mux() 388 val = pcs->read(vals->reg); in pcs_set_mux() 391 mask = vals->mask; in pcs_set_mux() 396 val |= (vals->val & mask); in pcs_set_mux() 397 pcs->write(val, vals->reg); in pcs_set_mux() 794 function->vals = vals; in pcs_add_function() 1018 vals = devm_kcalloc(pcs->dev, rows, sizeof(*vals), GFP_KERNEL); in pcs_parse_one_pinctrl_entry() 1019 if (!vals) in pcs_parse_one_pinctrl_entry() [all …]
|
| /linux/drivers/phy/hisilicon/ |
| A 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/tools/perf/arch/x86/tests/ |
| A 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()
|