/external/webrtc/webrtc/modules/audio_device/mac/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, PaRingBufferSize elementSizeB… 120 void PaUtil_FlushRingBuffer( PaUtilRingBuffer *rbuf ); 128 PaRingBufferSize PaUtil_GetRingBufferWriteAvailable( PaUtilRingBuffer *rbuf ); 136 PaRingBufferSize PaUtil_GetRingBufferReadAvailable( PaUtilRingBuffer *rbuf ); 148 PaRingBufferSize PaUtil_WriteRingBuffer( PaUtilRingBuffer *rbuf, const void *data, PaRingBufferSize… 160 PaRingBufferSize PaUtil_ReadRingBuffer( PaUtilRingBuffer *rbuf, void *data, PaRingBufferSize elemen… 182 PaRingBufferSize PaUtil_GetRingBufferWriteRegions( PaUtilRingBuffer *rbuf, PaRingBufferSize element… 194 PaRingBufferSize PaUtil_AdvanceRingBufferWriteIndex( PaUtilRingBuffer *rbuf, PaRingBufferSize eleme… 216 PaRingBufferSize PaUtil_GetRingBufferReadRegions( PaUtilRingBuffer *rbuf, PaRingBufferSize elementC… 228 PaRingBufferSize PaUtil_AdvanceRingBufferReadIndex( PaUtilRingBuffer *rbuf, PaRingBufferSize elemen…
|
/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 | 76 void CheckedMemcpy(BufferedFrameDeserializer::ReceiveBuffer rbuf, in CheckedMemcpy() argument 79 ASSERT_GE(rbuf.size, encoded_frame.size() + offset); in CheckedMemcpy() 80 memcpy(rbuf.data + offset, encoded_frame.data(), encoded_frame.size()); in CheckedMemcpy() 101 BufferedFrameDeserializer::ReceiveBuffer rbuf = bfd.BeginReceive(); in TEST() local 103 ASSERT_NE(nullptr, rbuf.data); in TEST() 105 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 | 31 auto rbuf = bfd.BeginReceive(); in LLVMFuzzerTestOneInput() local 32 size_t chunk_size = std::min(available_size, rbuf.size); in LLVMFuzzerTestOneInput() 33 memcpy(rbuf.data, data, chunk_size); in LLVMFuzzerTestOneInput()
|
/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/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/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe11.c | 41 unsigned char rbuf[read_per_child]; in do_child() local 46 nread = SAFE_READ(0, fds[0], rbuf, sizeof(rbuf)); in do_child() 55 if (rbuf[i] != (i % 256)) { in do_child() 58 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/honggfuzz/examples/glibc/ |
D | resolver.c | 38 static const char *rbuf = NULL; variable 82 *((uint16_t *)rbuf) = htons(rlen - 2); in getdata() 84 memcpy((char *)&rbuf[2], &b[2], 2); in getdata() 86 if (send(nfd, rbuf, rlen, MSG_NOSIGNAL) == -1) { in getdata() 131 rbuf = NULL; in main() 144 rbuf = &buf[tmplen]; in main()
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise08.c | 128 char rbuf[1024]; in find_sequence() local 139 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence() 141 switch (rbuf[pos]) { in find_sequence() 166 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 38 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 57 memset(rbuf, 0, BUFSIZ); in verify_write() 59 SAFE_READ(0, fd, rbuf, 100); in verify_write() 61 if (memcmp(wbuf, rbuf, 100) == 0) in verify_write()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_lib.h | 127 char buf[DATA_LEN], rbuf[DATA_LEN]; in pair_udp_send_char() local 136 if (read(fds[1], rbuf, sizeof(rbuf)) != sizeof(rbuf)) { in pair_udp_send_char() 140 if (memcmp(buf, rbuf, sizeof(buf))) { in pair_udp_send_char()
|
D | udpgso_bench_rx.c | 170 static char rbuf[ETH_DATA_LEN]; in do_flush_udp() local 173 len = cfg_verify ? sizeof(rbuf) : 0; in do_flush_udp() 176 ret = recv(fd, rbuf, len, MSG_TRUNC | MSG_DONTWAIT); in do_flush_udp() 185 do_verify_udp(rbuf, ret); in do_flush_udp()
|
D | psock_snd.c | 52 static char tbuf[TEST_SZ], rbuf[TEST_SZ]; variable 278 ret = recv(fd, rbuf, sizeof(rbuf), 0); in do_rx() 284 if (memcmp(rbuf, expected, ret)) in do_rx()
|
/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/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 754 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local 794 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown() 795 if (rbuf == NULL) in wpa_tdls_send_teardown() 797 pos = rbuf; in wpa_tdls_send_teardown() 834 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown() 835 os_free(rbuf); in wpa_tdls_send_teardown() 1069 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local 1154 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1() 1155 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1() 1159 pos = rbuf; in wpa_tdls_send_tpk_m1() [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 78 char rbuf[size]; in check_file_data() local 83 SAFE_READ(1, fd, rbuf, size); in check_file_data() 85 if (memcmp(exp_buf, rbuf, size)) { in check_file_data() 88 tst_res_hexd(TINFO, rbuf, size, "but read:"); in check_file_data()
|
/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()
|
/external/openssh/openbsd-compat/ |
D | port-tun.c | 209 char rbuf[CHAN_RBUF]; in sys_tun_infilter() local 217 if (len <= 0 || len > (int)(sizeof(rbuf) - sizeof(*af))) in sys_tun_infilter() 219 ptr = (char *)&rbuf[0]; in sys_tun_infilter()
|
/external/honggfuzz/examples/bind/ |
D | bind-9.13.5-W1.patch | 46 +static const uint8_t* rbuf = NULL; 103 + uint8_t qr = rbuf[0] | 0x80; 120 + .iov_base = (void*)&rbuf[1], 185 + rbuf = NULL; 199 + rbuf = &buf[tmplen]; 212 + HF_ITER(&rbuf, &rlen);
|
/external/ltp/testcases/cve/ |
D | cve-2016-7117.c | 93 static char rbuf[sizeof(MSG)]; variable 136 msghdrs[0].msg_hdr.msg_iov->iov_base = (void *)&rbuf; in run()
|
/external/u-boot/arch/x86/lib/ |
D | scu.c | 30 u32 rbuf[4]; member 98 *out++ = readl(®s->rbuf[i]); in scu_ipc_cmd()
|