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
206 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
207 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
210 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
217 result = CAMERA_I2CActivate(current); in TwlMain()
218 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
220 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
232 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
244 result = CAMERA_I2CActivate(current); in TwlMain()
245 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
247 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
250 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
336 CAMERAResult result; in CameraInit() local
339 result = CAMERA_Init(); in CameraInit()
340 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
342 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
347 result = CAMERA_I2CFlip(CAMERA_SELECT_IN, flipIn); in CameraInit()
348 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
349 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
350 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
353 result = CAMERA_I2CFlip(CAMERA_SELECT_OUT, flipOut); in CameraInit()
354 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
355 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
356 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
359 result = CAMERA_I2CActivate(current); in CameraInit()
360 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
361 OS_TPanic("CAMERA_I2CActivate was failed. (%d)\n", result); in CameraInit()
362 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
372 void CameraIntrError(CAMERAResult result) in CameraIntrError() argument
374 #pragma unused(result) in CameraIntrError()
386 void CameraIntrReboot(CAMERAResult result) in CameraIntrReboot() argument
388 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraIntrReboot()
392 CameraIntrError(result); // DMA synchronization might have drifted, so realign in CameraIntrReboot()
395 static void DoneCallback(CAMERAResult result, void* arg) in DoneCallback() argument
398 if (result != CAMERA_RESULT_SUCCESS) in DoneCallback()
400 OS_TPrintf("%s was failed. (%d)\n", arg, result); in DoneCallback()
404 void CameraIntrVsync(CAMERAResult result) in CameraIntrVsync() argument
406 #pragma unused(result) in CameraIntrVsync()
415 CAMERAResult result; in CameraDmaRecvIntr() local
423 result = CAMERA_I2CFlipAsync(current, *pFlip, DoneCallback, "CAMERA_I2CFlipAsync"); in CameraDmaRecvIntr()
424 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
425 OS_TPanic("CAMERA_I2CFlipAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
426 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()
434 result = CAMERA_I2CActivateAsync(current, DoneCallback, "CAMERA_I2CActivateAsync"); in CameraDmaRecvIntr()
435 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
436 OS_TPanic("CAMERA_I2CActivateAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
437 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()