Lines Matching refs:bwr
929 binder_write_read bwr; in talkWithDriver() local
939 bwr.write_size = outAvail; in talkWithDriver()
940 bwr.write_buffer = (uintptr_t)mOut.data(); in talkWithDriver()
944 bwr.read_size = mIn.dataCapacity(); in talkWithDriver()
945 bwr.read_buffer = (uintptr_t)mIn.data(); in talkWithDriver()
947 bwr.read_size = 0; in talkWithDriver()
948 bwr.read_buffer = 0; in talkWithDriver()
955 const void* cmds = (const void*)bwr.write_buffer; in talkWithDriver()
956 const void* end = ((const uint8_t*)cmds)+bwr.write_size; in talkWithDriver()
957 alog << HexDump(cmds, bwr.write_size) << endl; in talkWithDriver()
961 alog << "Size of receive buffer: " << bwr.read_size in talkWithDriver()
966 if ((bwr.write_size == 0) && (bwr.read_size == 0)) return NO_ERROR; in talkWithDriver()
968 bwr.write_consumed = 0; in talkWithDriver()
969 bwr.read_consumed = 0; in talkWithDriver()
976 if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) in talkWithDriver()
993 << bwr.write_consumed << " (of " << mOut.dataSize() in talkWithDriver()
994 << "), read consumed: " << bwr.read_consumed << endl; in talkWithDriver()
998 if (bwr.write_consumed > 0) { in talkWithDriver()
999 if (bwr.write_consumed < mOut.dataSize()) in talkWithDriver()
1003 (size_t)bwr.write_consumed, in talkWithDriver()
1010 if (bwr.read_consumed > 0) { in talkWithDriver()
1011 mIn.setDataSize(bwr.read_consumed); in talkWithDriver()