Lines Matching refs:bwr
763 binder_write_read bwr; in talkWithDriver() local
773 bwr.write_size = outAvail; in talkWithDriver()
774 bwr.write_buffer = (long unsigned int)mOut.data(); in talkWithDriver()
778 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
779 bwr.read_buffer = (long unsigned int)mIn.data(); in talkWithDriver()
781 bwr.read_size = 0; in talkWithDriver()
782 bwr.read_buffer = 0; in talkWithDriver()
789 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
790 const void* end = ((const uint8_t*)cmds)+bwr.write_size; in talkWithDriver()
791 alog << HexDump(cmds, bwr.write_size) << endl; in talkWithDriver()
795 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
800 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
802 bwr.write_consumed = 0; in talkWithDriver()
803 bwr.read_consumed = 0; in talkWithDriver()
810 if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) in talkWithDriver()
824 << bwr.write_consumed << " (of " << mOut.dataSize() in talkWithDriver()
825 << "), read consumed: " << bwr.read_consumed << endl; in talkWithDriver()
829 if (bwr.write_consumed > 0) { in talkWithDriver()
830 if (bwr.write_consumed < (ssize_t)mOut.dataSize()) in talkWithDriver()
831 mOut.remove(0, bwr.write_consumed); in talkWithDriver()
835 if (bwr.read_consumed > 0) { in talkWithDriver()
836 mIn.setDataSize(bwr.read_consumed); in talkWithDriver()