Lines Matching refs:retval

269     PMIC_ERR  retval;  in usePMIC()  local
277 retval = PMICInit(work); in usePMIC()
279 if (retval == PMIC_ERR_OK) in usePMIC()
281 OSReport("(%ld) ok to call PMICInit() -> %ld\n", count++, retval); in usePMIC()
286 OSReport("(%ld) fail to call PMICInit() -> %ld\n", count++, retval); in usePMIC()
298 retval = PMICProbe(); in usePMIC()
300 if (retval == PMIC_ERR_OK) in usePMIC()
302 OSReport("(%ld) P-Mic is inserted -> %ld\n", count++, retval); in usePMIC()
305 else if (retval != PMIC_ERR_NO_DEVICE) in usePMIC()
307 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
319 retval = PMICOpenAsync(funcCb, NULL); in usePMIC()
321 if (retval == PMIC_ERR_OK) in usePMIC()
323 OSReport("(%ld) ok to call PMICOpenAsync() -> %ld\n", count++, retval); in usePMIC()
328 OSReport("(%ld) fail to call PMICOpenAsync() -> %ld\n", count++, retval); in usePMIC()
353 retval = PMICProbe(); in usePMIC()
355 if (retval == PMIC_ERR_NO_DEVICE) in usePMIC()
357 OSReport("(%ld) P-Mic is removed -> %ld\n", count++, retval); in usePMIC()
360 else if (retval != PMIC_ERR_OK) in usePMIC()
362 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
379 retval = PMICStartAsync(funcCb, NULL); in usePMIC()
381 if (retval == PMIC_ERR_OK) in usePMIC()
383 OSReport("(%ld) ok to call PMICStartAsync() -> %ld\n", count++, retval); in usePMIC()
388 OSReport("(%ld) fail to call PMICStartAsync() -> %ld\n", count++, retval); in usePMIC()
416 retval = PMICProbe(); in usePMIC()
418 if (retval == PMIC_ERR_NO_DEVICE) in usePMIC()
420 OSReport("(%ld) P-Mic is removed -> %ld\n", count++, retval); in usePMIC()
424 else if (retval != PMIC_ERR_OK) in usePMIC()
426 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
444 retval = PMICGetLevelAsync(PMIC_LEVEL_SOUT, (u16*)&sout, levelCb, NULL); in usePMIC()
446 if (retval == PMIC_ERR_OK) in usePMIC()
456 retval = PMICStopAsync(funcCb, NULL); in usePMIC()
458 if (retval == PMIC_ERR_OK) in usePMIC()
460 OSReport("(%ld) ok to call PMICStopAsync() -> %ld\n", count++, retval); in usePMIC()
465 OSReport("(%ld) fail to call PMICStopAsync() -> %ld\n", count++, retval); in usePMIC()
492 retval = PMICCloseAsync(funcCb, NULL); in usePMIC()
494 if (retval == PMIC_ERR_OK) in usePMIC()
496 OSReport("(%ld) ok to call PMICCloseAsync() -> %ld\n", count++, retval); in usePMIC()
501 OSReport("(%ld) fail to call PMICCloseAsync() -> %ld\n", count++, retval); in usePMIC()
538 retval = PMICQuit(); in usePMIC()
540 if (retval == PMIC_ERR_OK) in usePMIC()
544 OSReport("(%ld) ok to call PMICQuit() -> %ld\n", count++, retval); in usePMIC()
549 OSReport("(%ld) fail to call PMICQuit() -> %ld\n", count++, retval); in usePMIC()