| /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 …]
|
| /drivers/iio/imu/bno055/ |
| A D | bno055.c | 117 const int *vals; member 780 *vals = attr->vals; in bno055_sysfs_attr_avail() 799 vals, length); in bno055_read_avail() 808 vals, length); in bno055_read_avail() 812 vals, length); in bno055_read_avail() 823 vals, length); in bno055_read_avail() 878 vals[0] = 1; in bno055_read_quaternion() 879 vals[1] = 14; in bno055_read_quaternion() 926 &vals[0], &vals[1], in _bno055_read_raw_multi() 938 size, vals, in _bno055_read_raw_multi() [all …]
|
| /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 …]
|
| /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 …]
|
| /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()
|
| /drivers/iio/ |
| A D | inkern.c | 550 int vals[INDIO_MAX_RAW_ELEMENTS]; in iio_channel_read() local 565 *val = vals[0]; in iio_channel_read() 566 *val2 = vals[1]; in iio_channel_read() 805 const int *vals; in iio_channel_read_max() local 817 *val = vals[2]; in iio_channel_read_max() 820 *val = vals[4]; in iio_channel_read_max() 822 *val2 = vals[5]; in iio_channel_read_max() 861 const int *vals; in iio_channel_read_min() local 873 *val = vals[0]; in iio_channel_read_min() 876 *val = vals[0]; in iio_channel_read_min() [all …]
|
| A D | industrialio-core.c | 661 if (vals[1] < 0) in __iio_format_value() 663 abs(vals[0]), -vals[1], in __iio_format_value() 669 if (vals[1] < 0) in __iio_format_value() 671 abs(vals[0]), -vals[1]); in __iio_format_value() 674 vals[1]); in __iio_format_value() 676 tmp2 = div_s64((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 684 tmp2 = shift_right((s64)vals[0] * 1000000000LL, vals[1]); in __iio_format_value() 703 tmp2 = (s64)((((u64)vals[1]) << 32) | (u32)vals[0]); in __iio_format_value() 770 vals, &val_len, in iio_read_channel_info() 774 &vals[0], &vals[1], this_attr->address); in iio_read_channel_info() [all …]
|
| /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 …]
|
| /drivers/i2c/busses/ |
| A D | i2c-rtl9300.c | 118 u32 vals[4] = {}; in rtl9300_i2c_read() local 125 vals, ARRAY_SIZE(vals)); in rtl9300_i2c_read() 130 buf[i] = vals[i/4] & 0xff; in rtl9300_i2c_read() 131 vals[i/4] >>= 8; in rtl9300_i2c_read() 139 u32 vals[4] = {}; in rtl9300_i2c_write() local 147 vals[i/4] = 0; in rtl9300_i2c_write() 148 vals[i/4] <<= 8; in rtl9300_i2c_write() 149 vals[i/4] |= buf[i]; in rtl9300_i2c_write() 153 vals, ARRAY_SIZE(vals)); in rtl9300_i2c_write()
|
| /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()
|
| /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() 1654 (*data)->vals = (void *)buf; in gen_raw_regmap() 1802 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()
|
| A D | regmap-raw-ram.c | 35 u16 *our_buf = (u16 *)data->vals; in regmap_raw_ram_gather_write() 69 u16 *our_buf = (u16 *)data->vals; in regmap_raw_ram_read() 96 kfree(data->vals); in regmap_raw_ram_free_context()
|
| /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()
|
| /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 …]
|
| /drivers/iio/dac/ |
| A D | ad3552r-common.c | 252 s32 *vals) in ad3552r_find_range() argument 257 if (vals[0] == model_info->ranges_table[i][0] * 1000 && in ad3552r_find_range() 258 vals[1] == model_info->ranges_table[i][1] * 1000) in ad3552r_find_range() 269 s32 vals[2]; in ad3552r_get_output_range() local 277 vals, 2); in ad3552r_get_output_range() 282 ret = ad3552r_find_range(model_info, vals); in ad3552r_get_output_range()
|
| A D | adi-axi-dac.c | 234 int ret, vals[2]; in axi_dac_scale_get() local 254 vals[0] = scale / MEGA; in axi_dac_scale_get() 255 vals[1] = scale % MEGA; in axi_dac_scale_get() 258 vals[0] *= -1; in axi_dac_scale_get() 259 if (!vals[0]) in axi_dac_scale_get() 260 vals[1] *= -1; in axi_dac_scale_get() 264 vals); in axi_dac_scale_get() 272 int ret, vals[2]; in axi_dac_phase_get() local 289 vals[0] = phase / MEGA; in axi_dac_phase_get() 290 vals[1] = phase % MEGA; in axi_dac_phase_get() [all …]
|
| /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()
|
| /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 …]
|
| /drivers/input/ |
| A D | input.c | 137 for (v = vals; v != vals + count; v++) { in input_pass_values() 1597 kfree(dev->vals); in input_dev_release() 1934 dev->vals = kcalloc(dev->max_vals, sizeof(*dev->vals), GFP_KERNEL); in input_allocate_device() 1935 if (!dev->vals) { in input_allocate_device() 2308 vals = kcalloc(max_vals, sizeof(*vals), GFP_KERNEL); in input_device_tune_vals() 2309 if (!vals) in input_device_tune_vals() 2314 swap(dev->vals, vals); in input_device_tune_vals() 2318 kfree(vals); in input_device_tune_vals() 2574 for (v = vals; v != vals + count; v++) in input_handle_events_default() 2593 for (v = vals; v != vals + count; v++) { in input_handle_events_filter() [all …]
|
| /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()
|
| /drivers/net/ethernet/netronome/nfp/nfd3/ |
| A 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()
|
| /drivers/iio/magnetometer/ |
| A D | mag3110.c | 115 const int (*vals)[2], int n) in mag3110_show_int_plus_micros() 121 "%d.%06d ", vals[n][0], vals[n][1]); in mag3110_show_int_plus_micros() 129 static int mag3110_get_int_plus_micros_index(const int (*vals)[2], int n, in mag3110_get_int_plus_micros_index() 133 if (val == vals[n][0] && val2 == vals[n][1]) in mag3110_get_int_plus_micros_index()
|
| /drivers/net/wireless/mediatek/mt76/mt76x2/ |
| A 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()
|
| /drivers/iio/imu/bmi270/ |
| A D | bmi270_core.c | 294 const u8 *vals; member 301 .vals = bmi270_accel_odr_vals, 306 .vals = bmi270_gyro_odr_vals, 547 bmi270_odr_item.vals[i]); in bmi270_set_odr() 583 if (val != bmi270_odr_item.vals[i]) in bmi270_get_odr() 793 const int **vals, int *type, int *length, in bmi270_read_avail() argument 801 *vals = (const int *)bmi270_gyro_scale; in bmi270_read_avail() 805 *vals = (const int *)bmi270_accel_scale; in bmi270_read_avail() 815 *vals = (const int *)bmi270_gyro_odr; in bmi270_read_avail() 819 *vals = (const int *)bmi270_accel_odr; in bmi270_read_avail()
|