Home
last modified time | relevance | path

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

123456

/linux/arch/csky/kernel/probes/
A 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/arch/arm64/kernel/probes/
A Dsimulate-insn.c18 sign_extend32(((insn) & 0x3ffffff) << 2, 27)
21 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
24 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
27 sign_extend32(((insn >> 5) & 0x3fff) << 2, 15)
30 sign_extend32(((insn >> 5) & 0x7ffff) << 2, 20)
/linux/drivers/iio/pressure/
A 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/drivers/thermal/tegra/
A 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/drivers/hwmon/
A 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()
A Dad7314.c69 data = sign_extend32(data, 9); in ad7314_temperature_show()
80 data = sign_extend32(data, 13); in ad7314_temperature_show()
A 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()
A 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/arch/riscv/kernel/probes/
A Dsimulate-insn.c56 instruction_pointer_set(regs, addr + sign_extend32((imm), 20)); in simulate_jal()
82 instruction_pointer_set(regs, (base_addr + sign_extend32((imm), 11))&~1); in simulate_jalr()
137 sign_extend32((branch_imm(opcode)), 12)
/linux/drivers/iio/temperature/
A Dtmp117.c55 *val = sign_extend32(ret, 15); in tmp117_read_raw()
63 *val = sign_extend32(ret, 15); in tmp117_read_raw()
A 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/drivers/net/wireless/ath/ath9k/
A 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()
A Dar5008_phy.c1143 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1146 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1149 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1155 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1158 nfarray[4] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1161 nfarray[5] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
/linux/drivers/iio/magnetometer/
A Dyamaha-yas530.c618 c->r[0] = sign_extend32(FIELD_GET(GENMASK(28, 23), val), 5); in yas530_get_calibration_data()
619 c->r[1] = sign_extend32(FIELD_GET(GENMASK(20, 15), val), 5); in yas530_get_calibration_data()
620 c->r[2] = sign_extend32(FIELD_GET(GENMASK(12, 7), val), 5); in yas530_get_calibration_data()
671 c->r[0] = sign_extend32(FIELD_GET(GENMASK(30, 25), val), 5); in yas532_get_calibration_data()
672 c->r[1] = sign_extend32(FIELD_GET(GENMASK(22, 17), val), 5); in yas532_get_calibration_data()
673 c->r[2] = sign_extend32(FIELD_GET(GENMASK(14, 7), val), 5); in yas532_get_calibration_data()
A Dmag3110.c293 *val = sign_extend32( in mag3110_read_raw()
309 *val = sign_extend32(ret, 7); in mag3110_read_raw()
341 *val = sign_extend32(ret >> 1, 14); in mag3110_read_raw()
/linux/drivers/iio/accel/
A 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()
A Dadxl313_core.c156 *val = sign_extend32(ret, chan->scan_type.realbits - 1); in adxl313_read_raw()
176 *val = sign_extend32(regval, 7) * 4; in adxl313_read_raw()
/linux/drivers/iio/adc/
A 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()
/linux/drivers/input/misc/
A 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/drivers/power/supply/
A Dcpcap-battery.c332 ccd->sample = sign_extend32(24, ccd->sample); in cpcap_battery_read_accumulated()
343 ccd->offset = sign_extend32(ccd->offset, 9); in cpcap_battery_read_accumulated()
347 ccd->integrator = sign_extend32(buf[6], 13); in cpcap_battery_read_accumulated()
373 acc = sign_extend32(value, 13); in cpcap_battery_cc_get_avg_current()
385 offset = sign_extend32(value, 9); in cpcap_battery_cc_get_avg_current()
/linux/drivers/staging/iio/accel/
A Dadis16240.c285 *val = sign_extend32(val16, 9); in adis16240_read_raw()
292 *val = sign_extend32(val16, 9); in adis16240_read_raw()
/linux/drivers/hwmon/pmbus/
A Dmax16601.c127 if (sign_extend32(ret, 10) > in max16601_read_word()
128 sign_extend32(data->iout_avg_pkg, 10)) in max16601_read_word()
/linux/drivers/iio/dac/
A Dad5764.c242 *val = sign_extend32(*val, 7); in ad5764_read_raw()
249 *val = sign_extend32(*val, 5); in ad5764_read_raw()
/linux/drivers/iio/light/
A 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/drivers/input/mouse/
A Dlogips2pp.c62 -sign_extend32(packet[2], 3)); in ps2pp_process_byte()
82 -sign_extend32(packet[2] >> 4, 3)); in ps2pp_process_byte()

Completed in 76 milliseconds

123456