Lines Matching refs:bwr
830 binder_write_read bwr; in talkWithDriver() local
840 bwr.write_size = outAvail; in talkWithDriver()
841 bwr.write_buffer = (uintptr_t)mOut.data(); in talkWithDriver()
845 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
846 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver()
848 bwr.read_size = 0; in talkWithDriver()
849 bwr.read_buffer = 0; in talkWithDriver()
856 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
857 const void* end = ((const uint8_t*)cmds)+bwr.write_size; in talkWithDriver()
858 alog << HexDump(cmds, bwr.write_size) << endl; in talkWithDriver()
862 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
867 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
869 bwr.write_consumed = 0; in talkWithDriver()
870 bwr.read_consumed = 0; in talkWithDriver()
877 if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) in talkWithDriver()
894 << bwr.write_consumed << " (of " << mOut.dataSize() in talkWithDriver()
895 << "), read consumed: " << bwr.read_consumed << endl; in talkWithDriver()
899 if (bwr.write_consumed > 0) { in talkWithDriver()
900 if (bwr.write_consumed < mOut.dataSize()) in talkWithDriver()
901 mOut.remove(0, bwr.write_consumed); in talkWithDriver()
905 if (bwr.read_consumed > 0) { in talkWithDriver()
906 mIn.setDataSize(bwr.read_consumed); in talkWithDriver()