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()
122 struct binder_write_read bwr = binder_write_read(); in binderTestReadEmpty() local
124 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
125 bwr.read_size = sizeof(br); in binderTestReadEmpty()
126 binderTestIoctlErr1(BINDER_WRITE_READ, &bwr, EAGAIN); in binderTestReadEmpty()
127 EXPECT_EQ(0u, bwr.read_consumed); in binderTestReadEmpty()
128 for (i = 0; i * sizeof(uint32_t) < bwr.read_consumed; i++) { in binderTestReadEmpty()
205 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
206 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
224 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
225 bwr.write_buffer = (uintptr_t)bc; in TEST_F()
226 bwr.write_size = sizeof(bc); in TEST_F()
227 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
228 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
260 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
262 bwr.write_buffer = (uintptr_t)&bc1; in TEST_F()
263 bwr.write_size = sizeof(bc1); in TEST_F()
264 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
265 bwr.read_size = sizeof(br); in TEST_F()
269 binderTestIoctlSuccessOrError(BINDER_WRITE_READ, &bwr, EAGAIN); in TEST_F()
271 EXPECT_EQ(sizeof(bc1), bwr.write_consumed); in TEST_F()
272 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
275 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
277 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
278 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
280 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
282 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
284 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
304 bwr.write_buffer = (uintptr_t)&bc2; in TEST_F()
305 bwr.write_size = sizeof(bc2); in TEST_F()
306 bwr.write_consumed = 0; in TEST_F()
307 bwr.read_size = 0; in TEST_F()
309 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
310 EXPECT_EQ(sizeof(bc2), bwr.write_consumed); in TEST_F()
348 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
350 bwr.write_buffer = (uintptr_t)&bc; in TEST_F()
351 bwr.write_size = sizeof(bc); in TEST_F()
352 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
353 bwr.read_size = sizeof(br); in TEST_F()
355 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
356 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
357 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()