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
205 result = CAMERA_I2CActivate(CAMERA_SELECT_NONE); in TwlMain()
206 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
209 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
216 result = CAMERA_I2CActivate(current); in TwlMain()
217 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
219 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
231 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
243 result = CAMERA_I2CActivate(current); in TwlMain()
244 if(result == CAMERA_RESULT_FATAL_ERROR) in TwlMain()
246 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in TwlMain()
249 OS_TPrintf("%s\n", result == CAMERA_RESULT_SUCCESS ? "SUCCESS" : "FAILED"); in TwlMain()
335 CAMERAResult result; in CameraInit() local
338 result = CAMERA_Init(); in CameraInit()
339 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
341 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
346 result = CAMERA_I2CFlip(CAMERA_SELECT_IN, flipIn); in CameraInit()
347 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
348 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
349 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
352 result = CAMERA_I2CFlip(CAMERA_SELECT_OUT, flipOut); in CameraInit()
353 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
354 OS_TPanic("CAMERA_I2CFlip was failed. (%d)\n", result); in CameraInit()
355 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
358 result = CAMERA_I2CActivate(current); in CameraInit()
359 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraInit()
360 OS_TPanic("CAMERA_I2CActivate was failed. (%d)\n", result); in CameraInit()
361 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraInit()
371 void CameraIntrError(CAMERAResult result) in CameraIntrError() argument
373 #pragma unused(result) in CameraIntrError()
385 void CameraIntrReboot(CAMERAResult result) in CameraIntrReboot() argument
387 if(result == CAMERA_RESULT_FATAL_ERROR) in CameraIntrReboot()
391 CameraIntrError(result); // DMA synchronization might have drifted, so realign in CameraIntrReboot()
394 static void DoneCallback(CAMERAResult result, void* arg) in DoneCallback() argument
397 if (result != CAMERA_RESULT_SUCCESS) in DoneCallback()
399 OS_TPrintf("%s was failed. (%d)\n", arg, result); in DoneCallback()
403 void CameraIntrVsync(CAMERAResult result) in CameraIntrVsync() argument
405 #pragma unused(result) in CameraIntrVsync()
414 CAMERAResult result; in CameraDmaRecvIntr() local
422 result = CAMERA_I2CFlipAsync(current, *pFlip, DoneCallback, "CAMERA_I2CFlipAsync"); in CameraDmaRecvIntr()
423 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
424 OS_TPanic("CAMERA_I2CFlipAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
425 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()
433 result = CAMERA_I2CActivateAsync(current, DoneCallback, "CAMERA_I2CActivateAsync"); in CameraDmaRecvIntr()
434 if (result == CAMERA_RESULT_FATAL_ERROR) in CameraDmaRecvIntr()
435 OS_TPanic("CAMERA_I2CActivateAsync was failed. (%d)\n", result); in CameraDmaRecvIntr()
436 if(result == CAMERA_RESULT_ILLEGAL_STATUS) in CameraDmaRecvIntr()