Home
last modified time | relevance | path

Searched refs:buf_sz (Results 1 – 8 of 8) 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
59 mix->buf_sz = buf_sz; in buffer_share_create()
124 unsigned int min_written = mix->buf_sz + 1; in buffer_share_get_new_write_point()
140 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/adhd/cras/src/tests/
Drstream_unittest.cc366 struct buffer_share* buffer_share_create(unsigned int buf_sz) { in buffer_share_create() argument
Diodev_unittest.cc2448 struct buffer_share* buffer_share_create(unsigned int buf_sz) { in buffer_share_create() argument
/external/libvpx/libvpx/
Dvpxenc.c274 static const arg_def_t buf_sz = variable
284 &buf_sz, &buf_initial_sz, &buf_optimal_sz, NULL
938 } else if (arg_match(&arg, &buf_sz, argi)) { in parse_stream_params()
/external/libaom/libaom/apps/
Daomenc.c328 static const arg_def_t buf_sz = variable
349 &buf_sz,
1550 } 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()