Lines Matching refs:bwr
858 binder_write_read bwr; in talkWithDriver() local
868 bwr.write_size = outAvail; in talkWithDriver()
869 bwr.write_buffer = (uintptr_t)mOut.data(); in talkWithDriver()
873 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
874 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver()
876 bwr.read_size = 0; in talkWithDriver()
877 bwr.read_buffer = 0; in talkWithDriver()
884 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
885 const void* end = ((const uint8_t*)cmds)+bwr.write_size; in talkWithDriver()
886 alog << HexDump(cmds, bwr.write_size) << endl; in talkWithDriver()
890 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
895 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
897 bwr.write_consumed = 0; in talkWithDriver()
898 bwr.read_consumed = 0; in talkWithDriver()
905 if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) in talkWithDriver()
922 << bwr.write_consumed << " (of " << mOut.dataSize() in talkWithDriver()
923 << "), read consumed: " << bwr.read_consumed << endl; in talkWithDriver()
927 if (bwr.write_consumed > 0) { in talkWithDriver()
928 if (bwr.write_consumed < mOut.dataSize()) in talkWithDriver()
929 mOut.remove(0, bwr.write_consumed); in talkWithDriver()
935 if (bwr.read_consumed > 0) { in talkWithDriver()
936 mIn.setDataSize(bwr.read_consumed); in talkWithDriver()