Lines Matching refs:ii
136 int ii; in inv_get_accel_data() local
158 for (ii = 0; ii < ARRAY_SIZE(tmp); ii++) { in inv_get_accel_data()
160 tmp[ii] = (long)((signed char)raw_data[2 * ii + 1]) * 256; in inv_get_accel_data()
161 tmp[ii] += (long)((unsigned char)raw_data[2 * ii]); in inv_get_accel_data()
164 tmp[ii] = (long)((signed char)raw_data[2 * ii]) * 256; in inv_get_accel_data()
165 tmp[ii] += (long)((unsigned char)raw_data[2 * ii + 1]); in inv_get_accel_data()
167 tmp[ii] = (long)((short)(((unsigned short)tmp[ii]) in inv_get_accel_data()
171 tmp[ii] = (long)((signed char)raw_data[ii]) * 256; in inv_get_accel_data()
177 for (ii = 0; ii < ARRAY_SIZE(tmp); ii++) { in inv_get_accel_data()
178 data[ii] = ((long)tmp[0] * mtx[3 * ii] + in inv_get_accel_data()
179 (long)tmp[1] * mtx[3 * ii + 1] + in inv_get_accel_data()
180 (long)tmp[2] * mtx[3 * ii + 2]); in inv_get_accel_data()