Lines Matching refs:rhall
363 u16 rhall) in bmc150_magn_compensate_x() argument
371 if (!rhall) in bmc150_magn_compensate_x()
372 rhall = xyz1; in bmc150_magn_compensate_x()
374 val = ((s16)(((u16)((((s32)xyz1) << 14) / rhall)) - ((u16)0x4000))); in bmc150_magn_compensate_x()
385 u16 rhall) in bmc150_magn_compensate_y() argument
393 if (!rhall) in bmc150_magn_compensate_y()
394 rhall = xyz1; in bmc150_magn_compensate_y()
396 val = ((s16)(((u16)((((s32)xyz1) << 14) / rhall)) - ((u16)0x4000))); in bmc150_magn_compensate_y()
407 u16 rhall) in bmc150_magn_compensate_z() argument
419 val = (((((s32)(z - z4)) << 15) - ((((s32)z3) * ((s32)(((s16)rhall) - in bmc150_magn_compensate_z()
421 ((((s16)rhall) << 1))) + (1 << 15)) >> 16)))); in bmc150_magn_compensate_z()
431 u16 rhall; in bmc150_magn_read_xyz() local
442 rhall = le16_to_cpu(values[RHALL]) >> BMC150_MAGN_SHIFT_RHALL_L; in bmc150_magn_read_xyz()
449 buffer[AXIS_X] = bmc150_magn_compensate_x(&tregs, raw_x, rhall); in bmc150_magn_read_xyz()
450 buffer[AXIS_Y] = bmc150_magn_compensate_y(&tregs, raw_y, rhall); in bmc150_magn_read_xyz()
451 buffer[AXIS_Z] = bmc150_magn_compensate_z(&tregs, raw_z, rhall); in bmc150_magn_read_xyz()