/external/webrtc/modules/third_party/portaudio/ |
D | pa_ringbuffer.c | 66 PaRingBufferSize PaUtil_InitializeRingBuffer(PaUtilRingBuffer* rbuf, in PaUtil_InitializeRingBuffer() argument 71 rbuf->bufferSize = elementCount; in PaUtil_InitializeRingBuffer() 72 rbuf->buffer = (char *)dataPtr; in PaUtil_InitializeRingBuffer() 73 PaUtil_FlushRingBuffer( rbuf ); in PaUtil_InitializeRingBuffer() 74 rbuf->bigMask = (elementCount*2)-1; in PaUtil_InitializeRingBuffer() 75 rbuf->smallMask = (elementCount)-1; in PaUtil_InitializeRingBuffer() 76 rbuf->elementSizeBytes = elementSizeBytes; in PaUtil_InitializeRingBuffer() 82 PaRingBufferSize PaUtil_GetRingBufferReadAvailable( PaUtilRingBuffer *rbuf ) in PaUtil_GetRingBufferReadAvailable() argument 85 return ( (rbuf->writeIndex - rbuf->readIndex) & rbuf->bigMask ); in PaUtil_GetRingBufferReadAvailable() 89 PaRingBufferSize PaUtil_GetRingBufferWriteAvailable( PaUtilRingBuffer *rbuf ) in PaUtil_GetRingBufferWriteAvailable() argument [all …]
|
D | pa_ringbuffer.h | 114 PaRingBufferSize PaUtil_InitializeRingBuffer(PaUtilRingBuffer* rbuf, 123 void PaUtil_FlushRingBuffer(PaUtilRingBuffer* rbuf); 131 PaRingBufferSize PaUtil_GetRingBufferWriteAvailable(PaUtilRingBuffer* rbuf); 139 PaRingBufferSize PaUtil_GetRingBufferReadAvailable(PaUtilRingBuffer* rbuf); 151 PaRingBufferSize PaUtil_WriteRingBuffer(PaUtilRingBuffer* rbuf, 165 PaRingBufferSize PaUtil_ReadRingBuffer(PaUtilRingBuffer* rbuf, 189 PaRingBufferSize PaUtil_GetRingBufferWriteRegions(PaUtilRingBuffer* rbuf, 205 PaUtilRingBuffer* rbuf, 228 PaRingBufferSize PaUtil_GetRingBufferReadRegions(PaUtilRingBuffer* rbuf, 244 PaUtilRingBuffer* rbuf,
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_screen_buffer.c | 56 struct r300_resource *rbuf = r300_resource(buf); in r300_buffer_destroy() local 58 align_free(rbuf->malloced_buffer); in r300_buffer_destroy() 60 if (rbuf->buf) in r300_buffer_destroy() 61 pb_reference(&rbuf->buf, NULL); in r300_buffer_destroy() 63 FREE(rbuf); in r300_buffer_destroy() 76 struct r300_resource *rbuf = r300_resource(resource); in r300_buffer_transfer_map() local 88 if (rbuf->malloced_buffer) { in r300_buffer_transfer_map() 90 return rbuf->malloced_buffer + box->x; in r300_buffer_transfer_map() 98 if (r300->rws->cs_is_buffer_referenced(r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map() 99 !r300->rws->buffer_wait(rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map() [all …]
|
/external/perfetto/src/ipc/ |
D | buffered_frame_deserializer_unittest.cc | 77 void CheckedMemcpy(BufferedFrameDeserializer::ReceiveBuffer rbuf, in CheckedMemcpy() argument 80 ASSERT_GE(rbuf.size, encoded_frame.size() + offset); in CheckedMemcpy() 81 memcpy(rbuf.data + offset, encoded_frame.data(), encoded_frame.size()); in CheckedMemcpy() 102 BufferedFrameDeserializer::ReceiveBuffer rbuf = bfd.BeginReceive(); in TEST() local 104 ASSERT_NE(nullptr, rbuf.data); in TEST() 106 CheckedMemcpy(rbuf, frame); in TEST() 146 BufferedFrameDeserializer::ReceiveBuffer rbuf = bfd.BeginReceive(); in TEST() local 147 CheckedMemcpy(rbuf, simple_frame); in TEST() 148 CheckedMemcpy(rbuf, frame_chunk1, simple_frame.size()); in TEST() 153 rbuf = bfd.BeginReceive(); in TEST() [all …]
|
D | buffered_frame_deserializer_fuzzer.cc | 30 auto rbuf = bfd.BeginReceive(); in LLVMFuzzerTestOneInput() local 31 size_t chunk_size = std::min(available_size, rbuf.size); in LLVMFuzzerTestOneInput() 32 memcpy(rbuf.data, data, chunk_size); in LLVMFuzzerTestOneInput()
|
/external/rust/crates/nix/test/sys/ |
D | test_aio.rs | 26 let mut rbuf = vec![0; 4]; in test_accessors() localVariable 29 &mut rbuf, in test_accessors() 147 let mut rbuf = vec![0; 4]; in test_aio_suspend() localVariable 148 let rlen = rbuf.len(); in test_aio_suspend() 161 &mut rbuf, in test_aio_suspend() 193 let mut rbuf = vec![0; 4]; in test_read() localVariable 200 &mut rbuf, in test_read() 211 assert_eq!(EXPECT, rbuf.deref().deref()); in test_read() 222 let mut rbuf = vec![0; 4]; in test_read_error() localVariable 227 &mut rbuf, in test_read_error() [all …]
|
/external/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_c.c | 35 char rbuf[PATH_MAX]; in main() local 67 rbuf[0] = '\0'; in main() 69 snprintf(rbuf, PATH_MAX, "%s=%s", argv[5], serv_fname); in main() 81 tst_resm(TINFO, "rbuf => %s\n", rbuf); in main() 99 if ((nbyte = write(s, rbuf, strlen(rbuf))) <= 0) { in main() 106 nbyte, rbuf); in main() 109 rbuf[0] = '\0'; in main() 111 while ((nbyte = read(s, rbuf, PATH_MAX)) > 0) { in main() 113 if (write(fd, rbuf, nbyte) != nbyte) { in main()
|
D | testsf_s.c | 40 char rbuf[PATH_MAX]; in main() local 121 if ((nbytes = read(as, rbuf, PATH_MAX)) <= 0) { in main() 126 rbuf[nbytes] = '\0'; /* null terminate the info */ in main() 127 lp = &rbuf[0]; in main()
|
/external/llvm-project/compiler-rt/test/msan/Linux/ |
D | sendmsg.cpp | 39 char rbuf[kRecvBufSize]; in main() local 81 ret = recv(sockfd[1], rbuf, kRecvBufSize, 0); in main() 83 assert(__msan_test_shadow(rbuf, kRecvBufSize) == sent); in main() 91 ret = recvfrom(sockfd[1], rbuf, kRecvBufSize, 0, (struct sockaddr *)&ss, in main() 94 assert(__msan_test_shadow(rbuf, kRecvBufSize) == sent); in main() 101 struct iovec riov[2] = {{rbuf, 3}, {rbuf + 3, kRecvBufSize - 3}}; in main() 113 assert(__msan_test_shadow(rbuf, kRecvBufSize) == sent); in main() 121 struct iovec riov[2] = {{rbuf + kRecvBufSize / 2, kRecvBufSize / 2}}; in main() 131 struct iovec riov0[2] = {{rbuf, kRecvBufSize / 2}}; in main() 147 assert(__msan_test_shadow(rbuf, kRecvBufSize) == 7); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe11.c | 28 unsigned char rbuf[read_per_child]; in do_child() local 33 nread = SAFE_READ(0, fds[0], rbuf, sizeof(rbuf)); in do_child() 42 if (rbuf[i] != (i % 256)) { in do_child() 45 getpid(), i, rbuf[i], i % 256); in do_child()
|
D | pipe04.c | 84 char rbuf[BUFSIZ]; in main() local 134 bytesread = do_read(fildes[0], rbuf, sizeof(rbuf)); in main() 140 switch (rbuf[1]) { in main() 149 "character", rbuf[1]); in main()
|
/external/selinux/libselinux/src/ |
D | seusers.c | 102 char *rbuf = malloc(rbuflen); in get_default_gid() local 103 if (rbuf == NULL) return -1; in get_default_gid() 105 int retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in get_default_gid() 109 free(rbuf); in get_default_gid() 122 char *rbuf; in check_group() local 125 rbuf = malloc(rbuflen); in check_group() 126 if (rbuf == NULL) in check_group() 128 int retval = getgrnam_r(group, &gbuf, rbuf, in check_group() 132 free(rbuf); in check_group() 165 free(rbuf); in check_group()
|
/external/libevent/test/ |
D | regress_iocp.c | 211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable 218 evbuffer_commit_read_(rbuf, nbytes); in read_complete() 253 rbuf = evbuffer_overlapped_new_(data->pair[0]); in test_iocp_evbuffer() 255 evbuffer_enable_locking(rbuf, NULL); in test_iocp_evbuffer() 260 tt_assert(rbuf); in test_iocp_evbuffer() 271 evbuffer_add(rbuf, junk, sizeof(junk)); in test_iocp_evbuffer() 272 tt_assert(!evbuffer_launch_read_(rbuf, 2048, &rol)); in test_iocp_evbuffer() 273 evbuffer_add_buffer(buf, rbuf); in test_iocp_evbuffer() 277 tt_assert(!evbuffer_get_length(rbuf)); in test_iocp_evbuffer() 282 tt_int_op(evbuffer_get_length(rbuf),==,512); in test_iocp_evbuffer() [all …]
|
/external/f2fs-tools/fsck/ |
D | compress.c | 46 memset(cc->rbuf, 0, cc->cluster_size * F2FS_BLKSIZE); in reset_cc() 60 cc->rbuf = (char *) cc->private + LZO_WORK_SIZE; in lzo_compress_init() 61 cc->cbuf = (struct compress_data *)((char *) cc->rbuf + size); in lzo_compress_init() 66 int ret = lzo1x_1_15_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress() 81 cc->rbuf = (char *) cc->private + LZ4_WORK_SIZE; in lz4_compress_init() 82 cc->cbuf = (struct compress_data *)((char *) cc->rbuf + size); in lz4_compress_init() 87 cc->clen = LZ4_compress_fast_extState(cc->private, cc->rbuf, in lz4_compress()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 25 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 44 memset(rbuf, 0, BUFSIZ); in verify_write() 46 SAFE_READ(0, fd, rbuf, 100); in verify_write() 48 if (memcmp(wbuf, rbuf, 100) == 0) in verify_write()
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise08.c | 112 char rbuf[1024]; in find_sequence() local 123 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence() 125 switch (rbuf[pos]) { in find_sequence() 150 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_lib.h | 113 char buf[DATA_LEN], rbuf[DATA_LEN]; in pair_udp_send_char() local 122 if (read(fds[1], rbuf, sizeof(rbuf)) != sizeof(rbuf)) { in pair_udp_send_char() 126 if (memcmp(buf, rbuf, sizeof(buf))) { in pair_udp_send_char()
|
D | so_txtime.c | 96 char rbuf[2]; in do_recv_one() local 99 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_one() 109 rbuf[0], (long long)tstop, (long long)texpect); in do_recv_one() 111 if (rbuf[0] != ts->data) in do_recv_one() 120 char rbuf[1]; in do_recv_verify_empty() local 123 ret = recv(fdr, rbuf, sizeof(rbuf), 0); in do_recv_verify_empty()
|
D | udpgso_bench_rx.c | 249 static char rbuf[ETH_MAX_MTU]; in do_flush_udp() local 252 len = cfg_read_all ? sizeof(rbuf) : 0; in do_flush_udp() 256 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp() 258 ret = recv_msg(fd, rbuf, len, &gso_size); in do_flush_udp() 270 do_verify_udp(rbuf, ret); in do_flush_udp()
|
/external/ltp/testcases/network/lib6/ |
D | asapi_02.c | 123 static unsigned char rbuf[2048]; in ic6_recv1() local 141 struct icmp6_hdr *pic6 = (struct icmp6_hdr *)rbuf; in ic6_recv1() 152 cc = recv(sall, rbuf, sizeof(rbuf), 0); in ic6_recv1() 163 cc = recv(sf, rbuf, sizeof(rbuf), 0); in ic6_recv1()
|
/external/openssh/openbsd-compat/ |
D | port-net.c | 311 char rbuf[CHAN_RBUF]; in sys_tun_infilter() local 324 if (len <= sizeof(iph) || len > sizeof(rbuf) - 4) in sys_tun_infilter() 330 memcpy(rbuf + 4, buf, len); in sys_tun_infilter() 332 POKE_U32(rbuf, af); in sys_tun_infilter() 333 ptr = rbuf; in sys_tun_infilter()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 755 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local 795 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown() 796 if (rbuf == NULL) in wpa_tdls_send_teardown() 798 pos = rbuf; in wpa_tdls_send_teardown() 835 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown() 836 os_free(rbuf); in wpa_tdls_send_teardown() 1070 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local 1155 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1() 1156 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1() 1160 pos = rbuf; in wpa_tdls_send_tpk_m1() [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 64 char rbuf[size]; in check_file_data() local 69 SAFE_READ(1, fd, rbuf, size); in check_file_data() 71 if (memcmp(exp_buf, rbuf, size)) { in check_file_data() 74 tst_res_hexd(TINFO, rbuf, size, "but read:"); in check_file_data()
|
/external/ltp/testcases/cve/ |
D | cve-2016-7117.c | 75 static char rbuf[sizeof(MSG)]; variable 118 msghdrs[0].msg_hdr.msg_iov->iov_base = (void *)&rbuf; in run()
|
/external/ltp/lib/ |
D | random_range.c | 238 int range_min(char *rbuf, int r) in range_min() argument 240 return ((struct range *)rbuf)[r].min; in range_min() 243 int range_max(char *rbuf, int r) in range_max() argument 245 return ((struct range *)rbuf)[r].max; in range_max() 248 int range_mult(char *rbuf, int r) in range_mult() argument 250 return ((struct range *)rbuf)[r].mult; in range_mult()
|