/external/perf_data_converter/src/quipper/ |
H A D | buffer_writer.cc | 25 size_t write_size = std::min(str.size(), size); local 26 if (offset_ + size > size_ || !WriteData(str.c_str(), write_size)) 31 memset(buffer_ + offset_, 0, size - write_size); 32 offset_ += size - write_size;
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl34.c | 36 const int write_size = 4096; variable 66 unsigned char buf[write_size]; 69 memset(buf, (intptr_t)arg, write_size); 82 SAFE_WRITE(1, fd, buf, write_size); 101 unsigned char buf[write_size]; 115 SAFE_READ(1, fd, buf, write_size); 124 for (k = 1; k < write_size; ++k) {
|
H A D | fcntl36.c | 66 static const long write_size = 4096; variable 301 unsigned char buf[write_size]; 305 if (tst_fill_file(fname, 1, write_size, thread_cnt + 1)) 313 p0[i].offset = i * write_size; 314 p0[i].length = write_size; 317 p1[i].offset = i * write_size + write_size / 4; 318 p1[i].length = write_size; 321 p2[i].offset = i * write_size + write_size / [all...] |
/external/ltp/testcases/kernel/syscalls/epoll_wait/ |
H A D | epoll_wait01.c | 33 static int write_size, epfd, fds[2]; variable 37 int nfd, write_size = 0; local 46 write_size += SAFE_WRITE(0, fds[1], buf, sizeof(buf)); 52 char read_buf[write_size]; 56 tst_res(TINFO, "Pipe buffer size is %i bytes", write_size); 58 return write_size; 73 write_size = get_writesize(); 142 char write_buf[write_size];
|
/external/autotest/client/tests/wb_kupdate/ |
H A D | wb_kupdate.py | 9 def _check_parameters(self, mount_point, write_size, file_count, 15 @param write_size: the size of data in MB to write. 32 # Check write_size > 0. 33 if not (write_size > 0): 95 def _write_data(self, destination, counter, write_size): 102 @param write_size: the size of data to be written. 109 (file_name, write_size)) 183 def run_once(self, mount_point, file_count, write_size, 192 @param write_size: the size of each file in MB. 204 self._check_parameters(mount_point, write_size, file_coun [all...] |
/external/kernel-headers/original/uapi/sound/ |
H A D | usb_stream.h | 44 unsigned write_size; member in struct:usb_stream
|
/external/v8/src/wasm/ |
H A D | wasm-module-builder.cc | 194 buffer.write_size(name.size()); 204 buffer.write_size(locals_size + body_.size()); 222 buffer.write_size(0); 228 buffer.write_size(asm_offsets_.size() + locals_enc_size + func_start_size); 332 buffer.write_size(signatures_.size()); 336 buffer.write_size(sig->parameter_count()); 340 buffer.write_size(sig->return_count()); 351 buffer.write_size(imports_.size()); 367 buffer.write_size(functions_.size()); 382 buffer.write_size(indirect_functions [all...] |
H A D | wasm-module-builder.h | 57 void write_size(size_t val) { function in class:v8::internal::wasm::ZoneBuffer
|
/external/adhd/cras/src/tests/ |
H A D | cras_router.c | 56 int write_size; local 60 write_size = frames * frame_bytes; 61 ret = write(*fd, captured_samples, write_size); 62 if (ret != write_size)
|
H A D | cras_test_client.c | 129 int write_size; local 138 write_size = frames * frame_bytes; 143 MIN(write_size, duration_frames * frame_bytes)); 148 ret = write(*fd, captured_samples, write_size); 149 if (ret != write_size)
|
/external/fio/profiles/ |
H A D | act.c | 61 static unsigned int write_size; variable 85 unsigned int write_size; member in struct:act_options 145 .off1 = offsetof(struct act_options, write_size), 204 const int rsize = write_size / (num_read_blocks * 512); 209 if (act_add_opt("bs=%u", write_size))
|
/external/ltp/utils/ffsb-6.0-rc2/ |
H A D | fileops.c | 232 uint32_t write_size = ft_get_write_size(ft); local 242 assert(filesize >= write_size); 246 uint64_t range = filesize - write_size; 253 iterations = writefile_helper(fd, write_size, write_blocksize, 259 iterations = write_size / write_blocksize; 371 uint32_t write_size = ft_get_write_size(ft); local 381 curfile->size += (uint64_t) write_size; 383 iterations = writefile_helper(fd, write_size, write_blocksize, buf, 393 *filesize_ret = write_size;
|
H A D | ffsb_tg.c | 201 tg->write_size = ws; 247 return tg->write_size; 283 printf("\t write_size = %llu\t(%s)\n", tg->write_size, 284 ffsb_printsize(buf, tg->write_size, 256));
|
H A D | ffsb_tg.h | 80 uint64_t write_size; member in struct:ffsb_tg
|
H A D | parser.c | 844 tg->write_size = get_config_u64(config, "write_size");
|
/external/kmod/libkmod/ |
H A D | libkmod-file.c | 114 size_t write_size = BUFSIZ - strm->avail_out; local 115 char *tmp = realloc(p, total + write_size); 120 memcpy(tmp + total, out_buf, write_size); 121 total += write_size;
|
/external/libbrillo/brillo/streams/ |
H A D | stream_unittest.cc | 380 size_t write_size = 0; local 382 auto success_callback = [](size_t* write_size, size_t size) { 383 *write_size = size; 403 base::Bind(success_callback, base::Unretained(&write_size)), 406 EXPECT_EQ(0u, write_size); 413 base::Bind(success_callback, base::Unretained(&write_size)), 424 EXPECT_EQ(7u, write_size);
|
H A D | file_stream_unittest.cc | 517 size_t write_size = 0; local 519 auto success_callback = [](size_t* write_size, size_t size) { 520 *write_size = size; 534 base::Bind(success_callback, base::Unretained(&write_size)), 537 EXPECT_EQ(0u, write_size); 542 EXPECT_EQ(87u, write_size);
|
/external/libpng/contrib/tools/ |
H A D | pngcp.c | 424 png_alloc_size_t write_size; member in struct:display 1198 * dp->write_size will be MAX_SIZE, however on the first run dp->tsp 1201 assert(dp->write_size > 0U && dp->write_size < MAX_SIZE); 1203 if (dp->stack[sp].best_size > dp->write_size || 1204 (dp->stack[sp].best_size == dp->write_size && 1207 dp->stack[sp].best_size = dp->write_size; 1893 dp->write_size += size; 1894 if (dp->write_size < size || dp->write_size [all...] |
/external/puffin/src/ |
H A D | main.cc | 267 auto write_size = std::min(static_cast<uint64_t>(buffer.size()), local 269 TEST_AND_RETURN_VALUE(reader->Read(buffer.data(), write_size), -1); 270 TEST_AND_RETURN_VALUE(writer->Write(buffer.data(), write_size), -1); 271 bytes_wrote += write_size;
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pt_so_emit.c | 146 unsigned write_size = num_comps * sizeof(float); local 152 if ((buffer_total_bytes[ob] + write_size + dst_offset) >
|
/external/kernel-headers/original/uapi/linux/android/ |
H A D | binder.h | 169 binder_size_t write_size; /* bytes to write */ member in struct:binder_write_read
|
/external/libchrome/base/files/ |
H A D | file_path_watcher_unittest.cc | 176 int write_size = ::base::WriteFile(file, content.c_str(), content.length()); local 177 return write_size == static_cast<int>(content.length());
|
/external/libusb/libusb/os/ |
H A D | windows_winusb.c | 3354 DWORD ioctl_code, write_size = (DWORD)*size; local 3380 write_size++; 3382 buf = malloc(write_size); 3398 if (!DeviceIoControl(hid_handle, ioctl_code, buf, write_size, 3399 buf, write_size, &write_size, overlapped)) { 3411 *size = write_size; 3412 if (write_size == 0)
|
/external/valgrind/coregrind/m_syswrap/ |
H A D | syswrap-linux.c | 7677 PRE_FIELD_READ("ioctl(BINDER_WRITE_READ).write_size", 7678 bwr->write_size); 7696 if (bwr->write_size) 7698 (Addr)bwr->write_buffer, bwr->write_size);
|