Home
last modified time | relevance | path

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

12345

/Linux-v5.10/arch/csky/kernel/probes/
Dsimulate-insn.c72 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_br16()
79 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_br32()
87 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bt16()
97 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bt32()
107 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bf16()
117 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bf32()
254 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bez32()
268 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bnez32()
285 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bnezad32()
302 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bhsz32()
[all …]
/Linux-v5.10/drivers/thermal/tegra/
Dsoctherm-fuse.c91 shifted_ft = sign_extend32(shifted_ft, 4); in tegra_calc_shared_calib()
99 shifted_cp = sign_extend32(val, 5); in tegra_calc_shared_calib()
126 actual_tsensor_cp = (shared->base_cp * 64) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
129 actual_tsensor_ft = (shared->base_ft * 32) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
/Linux-v5.10/arch/arm64/kernel/probes/
Dsimulate-insn.c17 sign_extend32(((insn) & 0x3ffffff) << 2, 27)
20 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
23 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
26 sign_extend32(((insn >> 5) & 0x3fff) << 2, 15)
29 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
/Linux-v5.10/drivers/iio/pressure/
Ddps310.c128 data->c0 = sign_extend32(c0, 11); in dps310_get_coefs()
131 data->c1 = sign_extend32(c1, 11); in dps310_get_coefs()
139 data->c00 = sign_extend32(c00, 19); in dps310_get_coefs()
142 data->c10 = sign_extend32(c10, 19); in dps310_get_coefs()
145 data->c01 = sign_extend32(c01, 15); in dps310_get_coefs()
148 data->c11 = sign_extend32(c11, 15); in dps310_get_coefs()
151 data->c20 = sign_extend32(c20, 15); in dps310_get_coefs()
154 data->c21 = sign_extend32(c21, 15); in dps310_get_coefs()
157 data->c30 = sign_extend32(c30, 15); in dps310_get_coefs()
327 data->pressure_raw = sign_extend32(raw, 23); in dps310_read_pres_raw()
[all …]
/Linux-v5.10/drivers/hwmon/
Dltc2990.c113 *result = sign_extend32(val, 12) * 1000 / 16; in ltc2990_get_value()
118 *result = sign_extend32(val, 14) * 1942 / 100; in ltc2990_get_value()
122 *result = sign_extend32(val, 14) * 30518 / (100 * 1000) + 2500; in ltc2990_get_value()
129 *result = sign_extend32(val, 14) * 30518 / (100 * 1000); in ltc2990_get_value()
Dad7314.c69 data = sign_extend32(data, 9); in ad7314_temperature_show()
80 data = sign_extend32(data, 13); in ad7314_temperature_show()
Dtmp513.c198 *val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data)); in tmp51x_get_value()
214 *val = sign_extend32(regval, 16) * data->curr_lsb_ua; in tmp51x_get_value()
226 *val = sign_extend32(regval, 16) >> TMP51X_TEMP_SHIFT; in tmp51x_get_value()
Dfam15h_power.c88 running_avg_capture = sign_extend32(running_avg_capture, 27); in power1_input_show()
91 running_avg_capture = sign_extend32(running_avg_capture, 21); in power1_input_show()
/Linux-v5.10/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.c1152 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1155 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1158 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1164 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1167 nfarray[4] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1170 nfarray[5] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
/Linux-v5.10/drivers/power/supply/
Dcpcap-battery.c311 ccd->sample = sign_extend32(24, ccd->sample); in cpcap_battery_read_accumulated()
322 ccd->offset = sign_extend32(ccd->offset, 9); in cpcap_battery_read_accumulated()
326 ccd->integrator = sign_extend32(buf[6], 13); in cpcap_battery_read_accumulated()
352 acc = sign_extend32(value, 13); in cpcap_battery_cc_get_avg_current()
364 offset = sign_extend32(value, 9); in cpcap_battery_cc_get_avg_current()
Dmax17042_battery.c103 *temp = sign_extend32(data, 15); in max17042_get_temperature()
162 avg_current = sign_extend32(data, 15); in max17042_get_status()
368 val->intval = sign_extend32(data & 0xff, 7) * 10; in max17042_get_property()
375 val->intval = sign_extend32(data >> 8, 7) * 10; in max17042_get_property()
397 val->intval = sign_extend32(data, 15); in max17042_get_property()
409 val->intval = sign_extend32(data, 15); in max17042_get_property()
/Linux-v5.10/drivers/iio/accel/
Dadxl345_core.c108 *val = sign_extend32(le16_to_cpu(accel), 12); in adxl345_read_raw()
131 *val = sign_extend32(regval, 7) * 4; in adxl345_read_raw()
/Linux-v5.10/drivers/iio/temperature/
Dtmp006.c88 *val = sign_extend32(ret, 15); in tmp006_read_raw()
94 *val = sign_extend32(ret, 15) >> TMP006_TAMBIENT_SHIFT; in tmp006_read_raw()
/Linux-v5.10/drivers/hwmon/pmbus/
Dmax16601.c121 if (sign_extend32(ret, 10) > in max16601_read_word()
122 sign_extend32(data->iout_avg_pkg, 10)) in max16601_read_word()
/Linux-v5.10/drivers/iio/adc/
Dad7291.c219 *val = sign_extend32(uval, 11); in ad7291_read_event_value()
362 *val = sign_extend32(ret, 11); in ad7291_read_raw()
372 *val = sign_extend32(ret, 11); in ad7291_read_raw()
Dltc2485.c51 *val = sign_extend32(be32_to_cpu(buf) >> 6, 24); in ltc2485_read()
/Linux-v5.10/drivers/input/misc/
Dbma150.c320 x = sign_extend32(x, 9); in bma150_report_xyz()
321 y = sign_extend32(y, 9); in bma150_report_xyz()
322 z = sign_extend32(z, 9); in bma150_report_xyz()
/Linux-v5.10/drivers/staging/iio/accel/
Dadis16240.c291 *val = sign_extend32(val16, 9); in adis16240_read_raw()
298 *val = sign_extend32(val16, 9); in adis16240_read_raw()
/Linux-v5.10/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-v5.10/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-v5.10/drivers/input/mouse/
Dlogips2pp.c62 -sign_extend32(packet[2], 3)); in ps2pp_process_byte()
82 -sign_extend32(packet[2] >> 4, 3)); in ps2pp_process_byte()
/Linux-v5.10/drivers/iio/light/
Dsi1133.c636 *val = sign_extend32(get_unaligned_be24(&buffer[0]), 23); in si1133_measure()
725 high_vis = sign_extend32(get_unaligned_be24(&buffer[0]), 23); in si1133_get_lux()
727 low_vis = sign_extend32(get_unaligned_be24(&buffer[3]), 23); in si1133_get_lux()
729 ir = sign_extend32(get_unaligned_be24(&buffer[6]), 23); in si1133_get_lux()
/Linux-v5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_accel.c406 offset = sign_extend32(((data[0] & 0xF0) << 4) | data[1], 11); in inv_icm42600_accel_read_offset()
409 offset = sign_extend32(((data[1] & 0x0F) << 8) | data[0], 11); in inv_icm42600_accel_read_offset()
412 offset = sign_extend32(((data[0] & 0xF0) << 4) | data[1], 11); in inv_icm42600_accel_read_offset()
Dinv_icm42600_gyro.c418 offset = sign_extend32(((data[1] & 0x0F) << 8) | data[0], 11); in inv_icm42600_gyro_read_offset()
421 offset = sign_extend32(((data[0] & 0xF0) << 4) | data[1], 11); in inv_icm42600_gyro_read_offset()
424 offset = sign_extend32(((data[1] & 0x0F) << 8) | data[0], 11); in inv_icm42600_gyro_read_offset()

12345