Home
last modified time | relevance | path

Searched refs:MIR3DA_OFFSET_CUS (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da228e/
H A Dda228e_core.c103 int cus = MIR3DA_OFFSET_MAX-MIR3DA_OFFSET_CUS; in da228e_temp_calibrate()
120 if (abs(abs(*z) - MIR3DA_OFFSET_SEN) > MIR3DA_OFFSET_CUS) { in da228e_temp_calibrate()
125 *x = (*x)*MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
126 *y = (*y)*MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
139 *y = (*y) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
151 *x = (*x) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
156 (1) : (-1))*abs(*x)*MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
161 abs(*y) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da228e_temp_calibrate()
H A Dda228e_core.h14 #define MIR3DA_OFFSET_CUS 130 macro
/OK3568_Linux_fs/kernel/drivers/input/sensors/accel/da215s/
H A Dda215s_core.c105 int cus = MIR3DA_OFFSET_MAX-MIR3DA_OFFSET_CUS; in da215s_temp_calibrate()
121 if (abs(abs(*z) - MIR3DA_OFFSET_SEN) > MIR3DA_OFFSET_CUS) { in da215s_temp_calibrate()
127 *x = (*x) * MIR3DA_OFFSET_CUS / MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
128 *y = (*y) * MIR3DA_OFFSET_CUS / MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
141 *y = (*y) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
153 *x = (*x) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
158 (1) : (-1)) * abs(*x) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
163 (1) : (-1)) * abs(*y) * MIR3DA_OFFSET_CUS/MIR3DA_OFFSET_MAX; in da215s_temp_calibrate()
H A Dda215s_core.h15 #define MIR3DA_OFFSET_CUS 130 macro