Lines Matching refs:bwr
890 binder_write_read bwr; in talkWithDriver() local
900 bwr.write_size = outAvail; in talkWithDriver()
901 bwr.write_buffer = (uintptr_t)mOut.data(); in talkWithDriver()
905 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
906 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver()
908 bwr.read_size = 0; in talkWithDriver()
909 bwr.read_buffer = 0; in talkWithDriver()
915 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
916 const void* end = ((const uint8_t*)cmds)+bwr.write_size; in talkWithDriver()
917 alog << HexDump(cmds, bwr.write_size) << endl; in talkWithDriver()
921 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
926 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
928 bwr.write_consumed = 0; in talkWithDriver()
929 bwr.read_consumed = 0; in talkWithDriver()
936 if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) in talkWithDriver()
953 << bwr.write_consumed << " (of " << mOut.dataSize() in talkWithDriver()
954 << "), read consumed: " << bwr.read_consumed << endl; in talkWithDriver()
958 if (bwr.write_consumed > 0) { in talkWithDriver()
959 if (bwr.write_consumed < mOut.dataSize()) in talkWithDriver()
963 (size_t)bwr.write_consumed, in talkWithDriver()
970 if (bwr.read_consumed > 0) { in talkWithDriver()
971 mIn.setDataSize(bwr.read_consumed); in talkWithDriver()