Lines Matching refs:retval

255     PMIC_ERR  retval;  in usePMIC()  local
264 retval = PMICInit(work); in usePMIC()
266 if (retval == PMIC_ERR_OK) in usePMIC()
268 OSReport("(%ld) ok to call PMICInit() -> %ld\n", count++, retval); in usePMIC()
273 OSReport("(%ld) fail to call PMICInit() -> %ld\n", count++, retval); in usePMIC()
286 retval = PMICProbe(); in usePMIC()
288 if (retval == PMIC_ERR_OK) in usePMIC()
290 OSReport("(%ld) P-Mic is inserted -> %ld\n", count++, retval); in usePMIC()
293 else if (retval != PMIC_ERR_NO_DEVICE) in usePMIC()
295 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
309 retval = PMICOpenAsync(funcCb, NULL); in usePMIC()
311 if (retval == PMIC_ERR_OK) in usePMIC()
313 OSReport("(%ld) ok to call PMICOpenAsync() -> %ld\n", count++, retval); in usePMIC()
318 OSReport("(%ld) fail to call PMICOpenAsync() -> %ld\n", count++, retval); in usePMIC()
346 retval = PMICProbe(); in usePMIC()
348 if (retval == PMIC_ERR_NO_DEVICE) in usePMIC()
350 OSReport("(%ld) P-Mic is removed -> %ld\n", count++, retval); in usePMIC()
353 else if (retval != PMIC_ERR_OK) in usePMIC()
355 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
367 retval = PMICStartAsync(funcCb, NULL); in usePMIC()
369 if (retval == PMIC_ERR_OK) in usePMIC()
371 OSReport("(%ld) ok to call PMICStartAsync() -> %ld\n", count++, retval); in usePMIC()
376 OSReport("(%ld) fail to call PMICStartAsync() -> %ld\n", count++, retval); in usePMIC()
404 retval = PMICProbe(); in usePMIC()
406 if (retval == PMIC_ERR_NO_DEVICE) in usePMIC()
408 OSReport("(%ld) P-Mic is removed -> %ld\n", count++, retval); in usePMIC()
411 else if (retval != PMIC_ERR_OK) in usePMIC()
413 OSReport("(%ld) fail to call PMICProbe() -> %ld\n", count++, retval); in usePMIC()
430 retval = PMICStopAsync(funcCb, NULL); in usePMIC()
432 if (retval == PMIC_ERR_OK) in usePMIC()
434 OSReport("(%ld) ok to call PMICStopAsync() -> %ld\n", count++, retval); in usePMIC()
439 OSReport("(%ld) fail to call PMICStopAsync() -> %ld\n", count++, retval); in usePMIC()
467 retval = PMICCloseAsync(funcCb, NULL); in usePMIC()
469 if (retval == PMIC_ERR_OK) in usePMIC()
471 OSReport("(%ld) ok to call PMICCloseAsync() -> %ld\n", count++, retval); in usePMIC()
476 OSReport("(%ld) fail to call PMICCloseAsync() -> %ld\n", count++, retval); in usePMIC()
516 retval = PMICQuit(); in usePMIC()
518 if (retval == PMIC_ERR_OK) in usePMIC()
520 OSReport("(%ld) ok to call PMICQuit() -> %ld\n", count++, retval); in usePMIC()
526 OSReport("(%ld) fail to call PMICQuit() -> %ld\n", count++, retval); in usePMIC()
750 PMIC_ERR retval; in shutdown() local
760 retval = PMICStopAsync(funcCb, NULL); in shutdown()
761 if (retval == PMIC_ERR_OK) in shutdown()
771 retval = PMICCloseAsync(funcCb, NULL); in shutdown()
772 if (retval == PMIC_ERR_OK) in shutdown()