Lines Matching refs:result

31 static void CameraIntrVsync(CAMERAResult result);
32 static void CameraIntrError(CAMERAResult result);
33 static void CameraIntrReboot(CAMERAResult result);
80 CAMERAResult result; in TwlMain() local
208 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
209 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
212 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
219 result = CAMERA_I2CActivate(current); in TwlMain()
220 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
222 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
234 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
246 result = CAMERA_I2CActivate(current); in TwlMain()
247 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
249 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
252 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
338 CAMERAResult result; in CameraInit() local
341 result = CAMERA_Init(); in CameraInit()
342 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
344 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
349 result = CAMERA_I2CFlip(CAMERA_SELECT_IN, flipIn); in CameraInit()
350 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
351 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
352 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
355 result = CAMERA_I2CFlip(CAMERA_SELECT_OUT, flipOut); in CameraInit()
356 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
357 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
358 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
361 result = CAMERA_I2CActivate(current); in CameraInit()
362 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
363 OS_TPanic("CAMERA_I2CActivate was failed. (%d)\n", result); in CameraInit()
364 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
374 void CameraIntrError(CAMERAResult result) in CameraIntrError() argument
376 #pragma unused(result) in CameraIntrError()
388 void CameraIntrReboot(CAMERAResult result) in CameraIntrReboot() argument
390 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraIntrReboot()
394 CameraIntrError(result); // DMA synchronization might have drifted, so realign in CameraIntrReboot()
397 static void DoneCallback(CAMERAResult result, void* arg) in DoneCallback() argument
400 if (result != CAMERA_RESULT_SUCCESS) in DoneCallback()
402 OS_TPrintf("%s was failed. (%d)\n", arg, result); in DoneCallback()
406 void CameraIntrVsync(CAMERAResult result) in CameraIntrVsync() argument
408 #pragma unused(result) in CameraIntrVsync()
417 CAMERAResult result; in CameraDmaRecvIntr() local
425 result = CAMERA_I2CFlipAsync(current, *pFlip, DoneCallback, "CAMERA_I2CFlipAsync"); in CameraDmaRecvIntr()
426 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
427 OS_TPanic("CAMERA_I2CFlipAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
428 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()
436 result = CAMERA_I2CActivateAsync(current, DoneCallback, "CAMERA_I2CActivateAsync"); in CameraDmaRecvIntr()
437 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
438 OS_TPanic("CAMERA_I2CActivateAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
439 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()