/Linux-v5.10/arch/csky/kernel/probes/ |
D | simulate-insn.c | 72 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/ |
D | soctherm-fuse.c | 91 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/ |
D | simulate-insn.c | 17 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/ |
D | dps310.c | 128 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/ |
D | ltc2990.c | 113 *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()
|
D | ad7314.c | 69 data = sign_extend32(data, 9); in ad7314_temperature_show() 80 data = sign_extend32(data, 13); in ad7314_temperature_show()
|
D | tmp513.c | 198 *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()
|
D | fam15h_power.c | 88 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/ |
D | ar9002_phy.c | 337 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()
|
D | ar5008_phy.c | 1152 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/ |
D | cpcap-battery.c | 311 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()
|
D | max17042_battery.c | 103 *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/ |
D | adxl345_core.c | 108 *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/ |
D | tmp006.c | 88 *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/ |
D | max16601.c | 121 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/ |
D | ad7291.c | 219 *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()
|
D | ltc2485.c | 51 *val = sign_extend32(be32_to_cpu(buf) >> 6, 24); in ltc2485_read()
|
/Linux-v5.10/drivers/input/misc/ |
D | bma150.c | 320 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/ |
D | adis16240.c | 291 *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/ |
D | mag3110.c | 287 *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/ |
D | ad5764.c | 242 *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/ |
D | logips2pp.c | 62 -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/ |
D | si1133.c | 636 *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/ |
D | inv_icm42600_accel.c | 406 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()
|
D | inv_icm42600_gyro.c | 418 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()
|