Lines Matching refs:bwr

60             struct binder_write_read bwr = binder_write_read();  in EnterLooper()  local
61 bwr.write_buffer = (uintptr_t)bc; in EnterLooper()
62 bwr.write_size = sizeof(bc); in EnterLooper()
63 ret = ioctl(m_binderFd, BINDER_WRITE_READ, &bwr); in EnterLooper()
68 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in EnterLooper()
112 struct binder_write_read bwr = binder_write_read(); in binderTestReadEmpty() local
114 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
115 bwr.read_size = sizeof(br); in binderTestReadEmpty()
116 binderTestIoctlErr1(BINDER_WRITE_READ, &bwr, EAGAIN); in binderTestReadEmpty()
117 EXPECT_EQ(0u, bwr.read_consumed); in binderTestReadEmpty()
118 for (i = 0; i * sizeof(uint32_t) < bwr.read_consumed; i++) { in binderTestReadEmpty()
189 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
190 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
208 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
209 bwr.write_buffer = (uintptr_t)bc; in TEST_F()
210 bwr.write_size = sizeof(bc); in TEST_F()
211 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
212 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
244 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
246 bwr.write_buffer = (uintptr_t)&bc1; in TEST_F()
247 bwr.write_size = sizeof(bc1); in TEST_F()
248 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
249 bwr.read_size = sizeof(br); in TEST_F()
253 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
255 EXPECT_EQ(sizeof(bc1), bwr.write_consumed); in TEST_F()
256 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
259 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
261 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
262 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
264 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
266 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
268 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
288 bwr.write_buffer = (uintptr_t)&bc2; in TEST_F()
289 bwr.write_size = sizeof(bc2); in TEST_F()
290 bwr.write_consumed = 0; in TEST_F()
291 bwr.read_size = 0; in TEST_F()
293 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
294 EXPECT_EQ(sizeof(bc2), bwr.write_consumed); in TEST_F()
332 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
334 bwr.write_buffer = (uintptr_t)&bc; in TEST_F()
335 bwr.write_size = sizeof(bc); in TEST_F()
336 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
337 bwr.read_size = sizeof(br); in TEST_F()
339 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
340 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
341 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()