Lines Matching refs:write

147     ASSERT_EQ(write(ramdisk->fd(), buf, sizeof(buf)), (ssize_t)sizeof(buf));
148 ASSERT_EQ(write(ramdisk->fd(), buf, sizeof(buf) / 2), (ssize_t) (sizeof(buf) / 2));
190 EXPECT_EQ(write(fd.get(), buf, sizeof(buf)), (ssize_t)sizeof(buf));
191 EXPECT_EQ(write(fd.get(), buf, sizeof(buf) / 2), (ssize_t)(sizeof(buf) / 2));
322 // Read / write non-multiples of the block size
323 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE - 1), -1);
325 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE / 2), -1);
332 // Read / write from unaligned offset
334 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE), -1);
339 // Read / write at end of device
342 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE), -1);
359 if (write(fd, in, sizeof(in)) != static_cast<ssize_t>(sizeof(in))) {
461 // Write 'a' to fd1, write 'b', to fd2
463 ASSERT_EQ(write(ramdisk1->fd(), buf, sizeof(buf)), (ssize_t) sizeof(buf));
465 ASSERT_EQ(write(ramdisk2->fd(), buf, sizeof(buf)), (ssize_t) sizeof(buf));
542 // Batch write the VMO to the ramdisk
601 ASSERT_EQ(vmo.write(buf.get(), 0, vmo_size), ZX_OK);
612 // Batch write the VMO to the ramdisk
632 ASSERT_EQ(fifo.write(request, 1, &actual), ZX_OK);
657 ASSERT_EQ(vmo.write(out.get(), 0, vmo_size), ZX_OK);
672 ASSERT_EQ(fifo.write(requests, 1, nullptr), ZX_OK);
694 ZX_OK, "Failed to write to vmo");
707 // i = 0 will write vmo block 0, 1, 2, 3... to dev block 0, 10, 20, 30...
708 // i = 1 will write vmo block 0, 1, 2, 3... to dev block 1, 11, 21, 31...
753 // Finally, write from the vmo to an out buffer, where we can compare
1031 ZX_ASSERT(fifo.write(sizeof(block_fifo_request_t), &requests[0],
1282 ZX_OK, "Failed to write to vmo");
1290 // Send a request to write to write 2 blocks -- even though that's larger than the VMO
1346 // Batch write the VMO to the ramdisk
1382 // Batch write the VMO to the ramdisk.