Lines Matching refs:err

346     const status_t err = mLastError;  in clearLastError()  local
348 return err; in clearLastError()
625 status_t err; in transact() local
637 err = writeTransactionData(BC_TRANSACTION_SG, flags, handle, code, data, nullptr); in transact()
639 if (err != NO_ERROR) { in transact()
640 if (reply) reply->setError(err); in transact()
641 return (mLastError = err); in transact()
663 err = waitForResponse(reply); in transact()
666 err = waitForResponse(&fakeReply); in transact()
683 err = waitForResponse(nullptr, nullptr); in transact()
686 return err; in transact()
791 status_t err; in sendReply() local
793 err = writeTransactionData(BC_REPLY_SG, flags, -1, 0, reply, &statusBuffer); in sendReply()
794 if (err < NO_ERROR) return err; in sendReply()
802 int32_t err; in waitForResponse() local
805 if ((err=talkWithDriver()) < NO_ERROR) break; in waitForResponse()
806 err = mIn.errorCheck(); in waitForResponse()
807 if (err < NO_ERROR) break; in waitForResponse()
823 err = DEAD_OBJECT; in waitForResponse()
827 err = FAILED_TRANSACTION; in waitForResponse()
842 err = mIn.read(&tr, sizeof(tr)); in waitForResponse()
843 ALOG_ASSERT(err == NO_ERROR, "Not enough command data for brREPLY"); in waitForResponse()
844 if (err != NO_ERROR) goto finish; in waitForResponse()
855 err = *reinterpret_cast<const status_t*>(tr.data.ptr.buffer); in waitForResponse()
874 err = executeCommand(cmd); in waitForResponse()
875 if (err != NO_ERROR) goto finish; in waitForResponse()
881 if (err != NO_ERROR) { in waitForResponse()
882 if (acquireResult) *acquireResult = err; in waitForResponse()
883 if (reply) reply->setError(err); in waitForResponse()
884 mLastError = err; in waitForResponse()
887 return err; in waitForResponse()
936 status_t err; in talkWithDriver() local
943 err = NO_ERROR; in talkWithDriver()
945 err = -errno; in talkWithDriver()
947 err = INVALID_OPERATION; in talkWithDriver()
950 err = -EBADF; in talkWithDriver()
955 } while (err == -EINTR); in talkWithDriver()
958 alog << "Our err: " << (void*)(intptr_t)err << ", write consumed: " in talkWithDriver()
963 if (err >= NO_ERROR) { in talkWithDriver()
968 statusToString(err).c_str(), in talkWithDriver()
992 return err; in talkWithDriver()
1008 const status_t err = data.errorCheck(); in writeTransactionData() local
1009 if (err == NO_ERROR) { in writeTransactionData()
1017 *statusBuffer = err; in writeTransactionData()
1024 return (mLastError = err); in writeTransactionData()