Lines Matching refs:result

212     int result;
213 result = ioctl((int)mlsl_handle, MPU_GET_MPU_CONFIG, mldl_cfg);
214 if (result) {
215 LOG_RESULT_LOCATION(result);
216 return result;
219 result = inv_mpu_suspend(mldl_cfg, mlsl_handle, NULL, NULL, NULL,
221 if (result) {
222 LOG_RESULT_LOCATION(result);
223 return result;
225 return result;
245 int result = INV_SUCCESS;
247 result = inv_mpu_suspend(mldl_cfg, mlsl_handle, NULL, NULL, NULL,
249 return result;
259 int result;
262 result = ioctl((int)mlsl_handle, MPU_SET_MPU_CONFIG, mldl_cfg);
263 if (result) {
264 LOG_RESULT_LOCATION(result);
265 return result;
267 result = ioctl((int)mlsl_handle, MPU_RESUME, NULL);
268 if (result) {
269 LOG_RESULT_LOCATION(result);
270 return result;
272 result = ioctl((int)mlsl_handle, MPU_GET_MPU_CONFIG, mldl_cfg);
273 if (result) {
274 LOG_RESULT_LOCATION(result);
275 return result;
279 return result;
290 int result;
297 result = ioctl((int)mlsl_handle, MPU_SET_MPU_CONFIG, mldl_cfg);
298 if (result) {
299 LOG_RESULT_LOCATION(result);
300 return result;
302 result = ioctl((int)mlsl_handle, MPU_SUSPEND, NULL);
303 if (result) {
304 LOG_RESULT_LOCATION(result);
305 return result;
307 result = ioctl((int)mlsl_handle, MPU_GET_MPU_CONFIG, mldl_cfg);
308 if (result) {
309 LOG_RESULT_LOCATION(result);
310 return result;
316 return result;
338 int result;
346 result = ioctl((int)gyro_handle, MPU_READ_ACCEL, data);
349 result = ioctl((int)gyro_handle, MPU_READ_COMPASS, data);
352 result = ioctl((int)gyro_handle, MPU_READ_PRESSURE, data);
360 return result;
382 int result;
390 result = ioctl((int)gyro_handle, MPU_CONFIG_ACCEL, data);
391 if (result) {
392 LOG_RESULT_LOCATION(result);
393 return result;
397 result = ioctl((int)gyro_handle, MPU_CONFIG_COMPASS, data);
398 if (result) {
399 LOG_RESULT_LOCATION(result);
400 return result;
404 result = ioctl((int)gyro_handle, MPU_CONFIG_PRESSURE, data);
405 if (result) {
406 LOG_RESULT_LOCATION(result);
407 return result;
416 return result;
441 int result;
448 result = ioctl((int)gyro_handle, MPU_GET_CONFIG_ACCEL, data);
449 if (result) {
450 LOG_RESULT_LOCATION(result);
451 return result;
455 result = ioctl((int)gyro_handle, MPU_GET_CONFIG_COMPASS, data);
456 if (result) {
457 LOG_RESULT_LOCATION(result);
458 return result;
462 result = ioctl((int)gyro_handle, MPU_GET_CONFIG_PRESSURE, data);
463 if (result) {
464 LOG_RESULT_LOCATION(result);
465 return result;
473 return result;