Home
last modified time | relevance | path

Searched refs:sign_extend32 (Results 1 – 25 of 94) sorted by relevance

1234

/Linux-v4.19/drivers/thermal/tegra/
Dsoctherm-fuse.c100 shifted_ft = sign_extend32(shifted_ft, 4); in tegra_calc_shared_calib()
108 shifted_cp = sign_extend32(val, 5); in tegra_calc_shared_calib()
135 actual_tsensor_cp = (shared->base_cp * 64) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
138 actual_tsensor_ft = (shared->base_ft * 32) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
/Linux-v4.19/arch/arm64/kernel/probes/
Dsimulate-insn.c25 sign_extend32(((insn) & 0x3ffffff) << 2, 27)
28 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
31 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
34 sign_extend32(((insn >> 5) & 0x3fff) << 2, 15)
37 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
/Linux-v4.19/drivers/hwmon/
Dltc2990.c114 *result = sign_extend32(val, 12) * 1000 / 16; in ltc2990_get_value()
119 *result = sign_extend32(val, 14) * 1942 / 100; in ltc2990_get_value()
123 *result = sign_extend32(val, 14) * 30518 / (100 * 1000) + 2500; in ltc2990_get_value()
130 *result = sign_extend32(val, 14) * 30518 / (100 * 1000); in ltc2990_get_value()
Dad7314.c70 data = sign_extend32(data, 9); in ad7314_show_temperature()
81 data = sign_extend32(data, 13); in ad7314_show_temperature()
Dfam15h_power.c104 running_avg_capture = sign_extend32(running_avg_capture, 27); in power1_input_show()
107 running_avg_capture = sign_extend32(running_avg_capture, 21); in power1_input_show()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dar9002_phy.c337 nfarray[0] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
341 nfarray[3] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
347 nfarray[1] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
351 nfarray[4] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
Dar5008_phy.c1127 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1130 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1133 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1139 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1142 nfarray[4] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1145 nfarray[5] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
/Linux-v4.19/drivers/iio/temperature/
Dtmp006.c91 *val = sign_extend32(ret, 15); in tmp006_read_raw()
97 *val = sign_extend32(ret, 15) >> TMP006_TAMBIENT_SHIFT; in tmp006_read_raw()
Dtmp007.c130 *val = sign_extend32(ret, 15) >> TMP007_TEMP_SHIFT; in tmp007_read_raw()
319 *val = sign_extend32(ret, 15) >> 7; in tmp007_read_thresh()
/Linux-v4.19/drivers/iio/accel/
Dadxl345_core.c111 *val = sign_extend32(le16_to_cpu(accel), 12); in adxl345_read_raw()
134 *val = sign_extend32(regval, 7) * 4; in adxl345_read_raw()
Dmxc6255.c69 *val = sign_extend32(reg, 7); in mxc6255_read_raw()
Dmc3230.c98 *val = sign_extend32(ret, 7); in mc3230_read_raw()
Ddmard10.c161 *val = sign_extend32(ret, 12); in dmard10_read_raw()
/Linux-v4.19/drivers/iio/magnetometer/
Dmag3110.c287 *val = sign_extend32( in mag3110_read_raw()
303 *val = sign_extend32(ret, 7); in mag3110_read_raw()
335 *val = sign_extend32(ret >> 1, 14); in mag3110_read_raw()
/Linux-v4.19/drivers/iio/adc/
Dad7291.c222 *val = sign_extend32(uval, 11); in ad7291_read_event_value()
365 *val = sign_extend32(ret, 11); in ad7291_read_raw()
375 *val = sign_extend32(ret, 11); in ad7291_read_raw()
Dltc2485.c54 *val = sign_extend32(be32_to_cpu(buf) >> 6, 24); in ltc2485_read()
Dep93xx_adc.c122 *value = sign_extend32(t, 15); in ep93xx_read_raw()
/Linux-v4.19/drivers/thermal/qcom/
Dtsens-v2.c59 *temp = sign_extend32(last_temp, fls(LAST_TEMP_MASK) - 1) * 100; in get_temp_tsens_v2()
/Linux-v4.19/drivers/staging/iio/accel/
Dadis16240.c293 *val = sign_extend32(val16, 9); in adis16240_read_raw()
300 *val = sign_extend32(val16, 9); in adis16240_read_raw()
/Linux-v4.19/drivers/power/supply/
Dmax17042_battery.c116 *temp = sign_extend32(data, 15); in max17042_get_temperature()
175 avg_current = sign_extend32(data, 15); in max17042_get_status()
379 val->intval = sign_extend32(data & 0xff, 7) * 10; in max17042_get_property()
386 val->intval = sign_extend32(data >> 8, 7) * 10; in max17042_get_property()
408 val->intval = sign_extend32(data, 15); in max17042_get_property()
420 val->intval = sign_extend32(data, 15); in max17042_get_property()
/Linux-v4.19/drivers/input/misc/
Dbma150.c335 x = sign_extend32(x, 9); in bma150_report_xyz()
336 y = sign_extend32(y, 9); in bma150_report_xyz()
337 z = sign_extend32(z, 9); in bma150_report_xyz()
/Linux-v4.19/drivers/iio/dac/
Dad5764.c242 *val = sign_extend32(*val, 7); in ad5764_read_raw()
249 *val = sign_extend32(*val, 5); in ad5764_read_raw()
/Linux-v4.19/drivers/input/mouse/
Dlogips2pp.c65 -sign_extend32(packet[2], 3)); in ps2pp_process_byte()
85 -sign_extend32(packet[2] >> 4, 3)); in ps2pp_process_byte()
/Linux-v4.19/drivers/iio/resolver/
Dad2s1200.c96 *val = sign_extend32(be16_to_cpup(&st->rx) >> 4, 11); in ad2s1200_read_raw()
/Linux-v4.19/drivers/iio/gyro/
Dadis16080.c70 *val = sign_extend32(be16_to_cpu(st->buf), 11); in adis16080_read_sample()

1234