Home
last modified time | relevance | path

Searched refs:buf_sz (Results 1 – 10 of 10) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/sparc64/drivers/
Dadi-test.c184 static int read_adi(int fd, unsigned char *buf, int buf_sz) in read_adi() argument
191 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi()
197 update_stats(&read_stats, elapsed_time, buf_sz); in read_adi()
200 } while (bytes_read < buf_sz); in read_adi()
209 int buf_sz, unsigned long offset) in pread_adi() argument
218 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi()
225 update_stats(&pread_stats, elapsed_time, buf_sz); in pread_adi()
229 } while (bytes_read < buf_sz); in pread_adi()
240 static int write_adi(int fd, const unsigned char * const buf, int buf_sz) in write_adi() argument
247 ret = write(fd, buf + bytes_written, buf_sz - bytes_written); in write_adi()
[all …]
/external/adhd/cras/src/server/
Dbuffer_share.c51 struct buffer_share *buffer_share_create(unsigned int buf_sz) in buffer_share_create() argument
58 mix->buf_sz = buf_sz; in buffer_share_create()
123 unsigned int min_written = mix->buf_sz + 1; in buffer_share_get_new_write_point()
139 if (min_written > mix->buf_sz) in buffer_share_get_new_write_point()
Dbuffer_share.h19 unsigned int buf_sz; member
28 struct buffer_share *buffer_share_create(unsigned int buf_sz);
/external/u-boot/drivers/net/
Dcalxedaxgmac.c214 static inline void desc_set_buf_len(struct xgmac_dma_desc *p, u32 buf_sz) in desc_set_buf_len() argument
216 if (buf_sz > MAX_DESC_BUF_SZ) in desc_set_buf_len()
218 (buf_sz - MAX_DESC_BUF_SZ) << DESC_BUFFER2_SZ_OFFSET); in desc_set_buf_len()
220 p->buf_size = cpu_to_le32(buf_sz); in desc_set_buf_len()
231 int buf_sz) in desc_init_rx_desc() argument
238 desc_set_buf_len(p, buf_sz); in desc_init_rx_desc()
/external/swiftshader/third_party/LLVM/lib/Support/Unix/
DPathV2.inc123 const size_t buf_sz = 32768;
124 char buffer[buf_sz];
150 (sz_read = ::read(from_fd, buffer, buf_sz)) > 0) {
/external/adhd/cras/src/tests/
Drstream_unittest.cc361 struct buffer_share *buffer_share_create(unsigned int buf_sz) { in buffer_share_create() argument
Diodev_unittest.cc2204 struct buffer_share *buffer_share_create(unsigned int buf_sz) { in buffer_share_create() argument
/external/libvpx/libvpx/
Dvpxenc.c308 static const arg_def_t buf_sz = variable
318 &buf_sz, &buf_initial_sz, &buf_optimal_sz, NULL
1244 } else if (arg_match(&arg, &buf_sz, argi)) { in parse_stream_params()
/external/libaom/libaom/apps/
Daomenc.c334 static const arg_def_t buf_sz = variable
355 &buf_sz,
1496 } else if (arg_match(&arg, &buf_sz, argi)) { in parse_stream_params()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c2211 int res, t, buf_sz, dio_tmp; in do_scsi_device_read_write() local
2494 if (ioctl(infd, SG_GET_RESERVED_SIZE, &buf_sz) < in do_scsi_device_read_write()
2499 blocks_per = (buf_sz + bs - 1) / bs; in do_scsi_device_read_write()
2550 if (ioctl(outfd, SG_GET_RESERVED_SIZE, &buf_sz) in do_scsi_device_read_write()
2555 blocks_per = (buf_sz + bs - 1) / bs; in do_scsi_device_read_write()