Home
last modified time | relevance | path

Searched refs:z_offset (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e_core.c18 static int z_offset; variable
107 *z = *z + z_offset; in da228e_temp_calibrate()
112 is_static = da228e_temp_calibrate_detect_static(*x, *y, *z-z_offset); in da228e_temp_calibrate()
115 if (z_offset == 0) { in da228e_temp_calibrate()
117 z_offset = (*z >= 0) ? (tem_z-*z) : (-tem_z-*z); in da228e_temp_calibrate()
122 z_offset = 0; in da228e_temp_calibrate()
129 (abs(*y) < MIR3DA_OFFSET_MAX) && (z_offset)) { in da228e_temp_calibrate()
141 (abs(*x) < MIR3DA_OFFSET_MAX) && (z_offset)) { in da228e_temp_calibrate()
152 } else if (z_offset == 0) { in da228e_temp_calibrate()
169 if (z_offset) in da228e_temp_calibrate()
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s_core.c17 static int z_offset; variable
109 *z = *z + z_offset; in da215s_temp_calibrate()
113 is_static = da215s_temp_calibrate_detect_static(*x, *y, *z-z_offset); in da215s_temp_calibrate()
116 if (z_offset == 0) { in da215s_temp_calibrate()
118 z_offset = (*z >= 0) ? (tem_z-*z) : (-tem_z-*z); in da215s_temp_calibrate()
123 z_offset = 0; in da215s_temp_calibrate()
131 (abs(*y) < MIR3DA_OFFSET_MAX) && (z_offset)) { in da215s_temp_calibrate()
143 (abs(*x) < MIR3DA_OFFSET_MAX) && (z_offset)) { in da215s_temp_calibrate()
154 } else if (z_offset == 0) { in da215s_temp_calibrate()
171 if (z_offset) in da215s_temp_calibrate()