Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/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_pow.o int_sqrt.o reciprocal_div.o
/linux-6.1.9/drivers/iio/common/scmi_sensors/
Dscmi_iio.c71 do_div(time, int_pow(10, abs(tstamp_scale))); in scmi_iio_sensor_update_cb()
74 time_ns = time * int_pow(10, tstamp_scale); in scmi_iio_sensor_update_cb()
162 sec = int_pow(10, mult) * MICROHZ_PER_HZ; in scmi_iio_set_odr_val()
268 sensor_interval_mult = int_pow(10, abs(mult)); in scmi_iio_get_odr_val()
271 sensor_interval_mult = int_pow(10, mult); in scmi_iio_get_odr_val()
341 *val2 = int_pow(10, abs(scale)); in scmi_iio_read_raw()
344 *val = int_pow(10, scale); in scmi_iio_read_raw()
397 int_pow(10, abs(exponent)) in scmi_iio_get_raw_available()
403 resolution = resolution * int_pow(10, exponent); in scmi_iio_get_raw_available()
502 sensor_interval_mult = int_pow(10, abs(mult)); in scmi_iio_convert_interval_to_ns()
[all …]
/linux-6.1.9/include/linux/
Dmath.h177 u64 int_pow(u64 base, unsigned int exp);
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dtout.c71 msec *= 1000 * int_pow(60, to_mul - 1); in tout_convert_reg_field_to_ms()
/linux-6.1.9/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-6.1.9/Documentation/translations/zh_CN/core-api/
Dkernel-api.rst156 lib/math/int_pow.c
/linux-6.1.9/Documentation/core-api/
Dkernel-api.rst159 .. kernel-doc:: lib/math/int_pow.c
/linux-6.1.9/drivers/md/
Dmd.c3823 *res = result * int_pow(10, scale - decimals); in strict_strtoul_scaled()