Home
last modified time | relevance | path

Searched refs:int_pow (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c89 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div()
95 int divisor = int_pow(10, exp); in split_micro_fraction()
98 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction()
120 *val1 = sign * value * int_pow(10, exp); in convert_from_vtf_format()
141 divisor = int_pow(10, 6 + exp); in convert_to_vtf_format()
142 value = abs(val1) * int_pow(10, -exp); in convert_to_vtf_format()
145 divisor = int_pow(10, exp); in convert_to_vtf_format()
365 *val0 = scale0 * int_pow(10, exp); in adjust_exponent_nano()
372 divisor = int_pow(10, 8 - i); in adjust_exponent_nano()
374 res += int_pow(10, exp - 1 - i) * x; in adjust_exponent_nano()
[all …]
/Linux-v6.6/lib/math/
Dint_pow.c19 u64 int_pow(u64 base, unsigned int exp) in int_pow() function
32 EXPORT_SYMBOL_GPL(int_pow);
DMakefile2 obj-y += div64.o gcd.o lcm.o int_log.o int_pow.o int_sqrt.o reciprocal_div.o
/Linux-v6.6/drivers/iio/common/scmi_sensors/
Dscmi_iio.c74 do_div(time, int_pow(10, abs(tstamp_scale))); in scmi_iio_sensor_update_cb()
77 time_ns = time * int_pow(10, tstamp_scale); in scmi_iio_sensor_update_cb()
165 sec = int_pow(10, mult) * MICROHZ_PER_HZ; in scmi_iio_set_odr_val()
272 sensor_interval_mult = int_pow(10, abs(mult)); in scmi_iio_get_odr_val()
275 sensor_interval_mult = int_pow(10, mult); in scmi_iio_get_odr_val()
345 *val2 = int_pow(10, abs(scale)); in scmi_iio_read_raw()
348 *val = int_pow(10, scale); in scmi_iio_read_raw()
401 int_pow(10, abs(exponent)) in scmi_iio_get_raw_available()
407 resolution = resolution * int_pow(10, exponent); in scmi_iio_get_raw_available()
506 sensor_interval_mult = int_pow(10, abs(mult)); in scmi_iio_convert_interval_to_ns()
[all …]
/Linux-v6.6/include/linux/
Dmath.h196 u64 int_pow(u64 base, unsigned int exp);
/Linux-v6.6/drivers/thermal/
Dk3_j72xx_bandgap.c58 value += factors[i] * int_pow(index, i); in compute_value()
60 return (int)div64_s64(value, int_pow(10, reduction)); in compute_value()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dtout.c72 msec *= 1000 * int_pow(60, to_mul - 1); in tout_convert_reg_field_to_ms()
/Linux-v6.6/Documentation/translations/zh_CN/core-api/
Dkernel-api.rst164 lib/math/int_pow.c
/Linux-v6.6/Documentation/core-api/
Dkernel-api.rst170 .. kernel-doc:: lib/math/int_pow.c
/Linux-v6.6/drivers/infiniband/hw/hns/
Dhns_roce_mr.c915 return int_pow(ba_per_bt, hopnum - 1); in cal_pages_per_l1ba()
/Linux-v6.6/drivers/md/
Dmd.c3804 *res = result * int_pow(10, scale - decimals); in strict_strtoul_scaled()