Lines Matching refs:rhall
235 int16_t xy, uint16_t rhall, bool is_x) in bmc150_magn_compensate_xy() argument
244 if (!rhall) { in bmc150_magn_compensate_xy()
245 rhall = tregs->xyz1; in bmc150_magn_compensate_xy()
256 val = ((int16_t)(((uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall)) - in bmc150_magn_compensate_xy()
268 int16_t z, uint16_t rhall) in bmc150_magn_compensate_z() argument
277 ((int32_t)(((int16_t)rhall) - ((int16_t)tregs->xyz1)))) >> 2)) / in bmc150_magn_compensate_z()
279 ((((int16_t)rhall) << 1))) + (1 << 15)) >> 16)))); in bmc150_magn_compensate_z()
291 uint16_t rhall; in bmc150_magn_sample_fetch() local
309 rhall = sys_le16_to_cpu(values[BMC150_MAGN_RHALL]) >> in bmc150_magn_sample_fetch()
312 data->sample_x = bmc150_magn_compensate_xy(&data->tregs, raw_x, rhall, in bmc150_magn_sample_fetch()
314 data->sample_y = bmc150_magn_compensate_xy(&data->tregs, raw_y, rhall, in bmc150_magn_sample_fetch()
316 data->sample_z = bmc150_magn_compensate_z(&data->tregs, raw_z, rhall); in bmc150_magn_sample_fetch()