/external/chromium_org/third_party/webrtc/modules/audio_device/mac/portaudio/ |
D | pa_ringbuffer.c | 66 ring_buffer_size_t PaUtil_InitializeRingBuffer( PaUtilRingBuffer *rbuf, ring_buffer_size_t elementS… in PaUtil_InitializeRingBuffer() argument 69 rbuf->bufferSize = elementCount; in PaUtil_InitializeRingBuffer() 70 rbuf->buffer = (char *)dataPtr; in PaUtil_InitializeRingBuffer() 71 PaUtil_FlushRingBuffer( rbuf ); in PaUtil_InitializeRingBuffer() 72 rbuf->bigMask = (elementCount*2)-1; in PaUtil_InitializeRingBuffer() 73 rbuf->smallMask = (elementCount)-1; in PaUtil_InitializeRingBuffer() 74 rbuf->elementSizeBytes = elementSizeBytes; in PaUtil_InitializeRingBuffer() 80 ring_buffer_size_t PaUtil_GetRingBufferReadAvailable( PaUtilRingBuffer *rbuf ) in PaUtil_GetRingBufferReadAvailable() argument 83 return ( (rbuf->writeIndex - rbuf->readIndex) & rbuf->bigMask ); in PaUtil_GetRingBufferReadAvailable() 87 ring_buffer_size_t PaUtil_GetRingBufferWriteAvailable( PaUtilRingBuffer *rbuf ) in PaUtil_GetRingBufferWriteAvailable() argument [all …]
|
D | pa_ringbuffer.h | 114 ring_buffer_size_t PaUtil_InitializeRingBuffer( PaUtilRingBuffer *rbuf, ring_buffer_size_t elementS… 120 void PaUtil_FlushRingBuffer( PaUtilRingBuffer *rbuf ); 128 ring_buffer_size_t PaUtil_GetRingBufferWriteAvailable( PaUtilRingBuffer *rbuf ); 136 ring_buffer_size_t PaUtil_GetRingBufferReadAvailable( PaUtilRingBuffer *rbuf ); 148 ring_buffer_size_t PaUtil_WriteRingBuffer( PaUtilRingBuffer *rbuf, const void *data, ring_buffer_si… 160 ring_buffer_size_t PaUtil_ReadRingBuffer( PaUtilRingBuffer *rbuf, void *data, ring_buffer_size_t el… 182 ring_buffer_size_t PaUtil_GetRingBufferWriteRegions( PaUtilRingBuffer *rbuf, ring_buffer_size_t ele… 194 ring_buffer_size_t PaUtil_AdvanceRingBufferWriteIndex( PaUtilRingBuffer *rbuf, ring_buffer_size_t e… 216 ring_buffer_size_t PaUtil_GetRingBufferReadRegions( PaUtilRingBuffer *rbuf, ring_buffer_size_t elem… 228 ring_buffer_size_t PaUtil_AdvanceRingBufferReadIndex( PaUtilRingBuffer *rbuf, ring_buffer_size_t el…
|
/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 if (rbuf->malloced_buffer) in r300_buffer_destroy() 59 FREE(rbuf->malloced_buffer); in r300_buffer_destroy() 61 if (rbuf->buf) in r300_buffer_destroy() 62 pb_reference(&rbuf->buf, NULL); in r300_buffer_destroy() 64 FREE(rbuf); in r300_buffer_destroy() 106 struct r300_resource *rbuf = r300_resource(transfer->resource); in r300_buffer_transfer_map() local 110 if (rbuf->malloced_buffer) in r300_buffer_transfer_map() 111 return (uint8_t *) rbuf->malloced_buffer + transfer->box.x; in r300_buffer_transfer_map() 120 map = rws->buffer_map(rbuf->cs_buf, r300->cs, usage); in r300_buffer_transfer_map() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
D | r300_screen_buffer.c | 56 struct r300_resource *rbuf = r300_resource(buf); in r300_buffer_destroy() local 58 if (rbuf->malloced_buffer) in r300_buffer_destroy() 59 FREE(rbuf->malloced_buffer); in r300_buffer_destroy() 61 if (rbuf->buf) in r300_buffer_destroy() 62 pb_reference(&rbuf->buf, NULL); in r300_buffer_destroy() 64 FREE(rbuf); in r300_buffer_destroy() 106 struct r300_resource *rbuf = r300_resource(transfer->resource); in r300_buffer_transfer_map() local 110 if (rbuf->malloced_buffer) in r300_buffer_transfer_map() 111 return (uint8_t *) rbuf->malloced_buffer + transfer->box.x; in r300_buffer_transfer_map() 120 map = rws->buffer_map(rbuf->cs_buf, r300->cs, usage); in r300_buffer_transfer_map() [all …]
|
/external/valgrind/main/none/tests/ |
D | process_vm_readv_writev.c | 18 char rbuf[] = "ABCDEF"; in test_process_vm_readv() local 28 rvec[0].iov_base = rbuf + 1; in test_process_vm_readv() 30 rvec[1].iov_base = rbuf + 4; in test_process_vm_readv() 54 char rbuf[] = "ABCDEF"; in test_process_vm_writev() local 64 rvec[0].iov_base = rbuf + 1; in test_process_vm_writev() 66 rvec[1].iov_base = rbuf + 4; in test_process_vm_writev() 77 if (strcmp(rbuf, "A24D5F") != 0) { in test_process_vm_writev() 78 fprintf(stderr, "Expected: \"A24D5F\"; Got: \"%s\"\n", rbuf); in test_process_vm_writev()
|
/external/openssl/ssl/ |
D | s2_lib.c | 330 if ((s2->rbuf=OPENSSL_malloc( in ssl2_new() 344 if (s2->rbuf != NULL) OPENSSL_free(s2->rbuf); in ssl2_new() 358 if (s2->rbuf != NULL) OPENSSL_free(s2->rbuf); in ssl2_free() 368 unsigned char *rbuf,*wbuf; in ssl2_clear() local 372 rbuf=s2->rbuf; in ssl2_clear() 377 s2->rbuf=rbuf; in ssl2_clear() 380 s->packet=s2->rbuf; in ssl2_clear()
|
D | s23_srvr.c | 592 s->packet= &(s->s2->rbuf[0]); in ssl23_get_client_hello() 623 if (s->s3->rbuf.buf == NULL) in ssl23_get_client_hello() 627 s->packet= &(s->s3->rbuf.buf[0]); in ssl23_get_client_hello() 629 s->s3->rbuf.left=n; in ssl23_get_client_hello() 630 s->s3->rbuf.offset=0; in ssl23_get_client_hello() 635 s->s3->rbuf.left=0; in ssl23_get_client_hello() 636 s->s3->rbuf.offset=0; in ssl23_get_client_hello()
|
D | d1_lib.c | 142 if (rdata->rbuf.buf) in dtls1_clear_queues() 144 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues() 153 if (rdata->rbuf.buf) in dtls1_clear_queues() 155 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues() 180 if (rdata->rbuf.buf) in dtls1_clear_queues() 182 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues()
|
D | s3_both.c | 764 if (s->s3->rbuf.buf == NULL) in ssl3_setup_read_buffer() 780 s->s3->rbuf.buf = p; in ssl3_setup_read_buffer() 781 s->s3->rbuf.len = len; in ssl3_setup_read_buffer() 784 s->packet= &(s->s3->rbuf.buf[0]); in ssl3_setup_read_buffer() 854 if (s->s3->rbuf.buf != NULL) in ssl3_release_read_buffer() 856 freelist_insert(s->ctx, 1, s->s3->rbuf.len, s->s3->rbuf.buf); in ssl3_release_read_buffer() 857 s->s3->rbuf.buf = NULL; in ssl3_release_read_buffer()
|
D | s2_pkt.c | 331 s->packet= &(s->s2->rbuf[s->s2->rbuf_offs]); in read_n() 353 if (s->packet != s->s2->rbuf) in read_n() 354 memcpy(s->s2->rbuf,s->packet, in read_n() 359 memcpy(s->s2->rbuf,&(s->s2->rbuf[s->s2->rbuf_offs]), in read_n() 372 s->packet=s->s2->rbuf; in read_n() 379 i=BIO_read(s->rbio,(char *)&(s->s2->rbuf[off+newb]), in read_n()
|
D | d1_pkt.c | 193 if (s->s3->rbuf.buf != NULL) in dtls1_copy_record() 194 OPENSSL_free(s->s3->rbuf.buf); in dtls1_copy_record() 198 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record() 231 memcpy(&(rdata->rbuf), &(s->s3->rbuf), sizeof(SSL3_BUFFER)); in dtls1_buffer_record() 246 memset(&(s->s3->rbuf), 0, sizeof(SSL3_BUFFER)); in dtls1_buffer_record() 358 if (s->s3->rbuf.buf != NULL) 359 OPENSSL_free(s->s3->rbuf.buf); 363 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); 580 n=ssl3_read_n(s, DTLS1_RT_HEADER_LENGTH, s->s3->rbuf.len, 0); in dtls1_get_record() 758 if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ in dtls1_read_bytes() [all …]
|
D | s23_clnt.c | 684 s->packet= &(s->s2->rbuf[0]); in ssl23_get_server_hello() 783 if (s->s3->rbuf.buf == NULL) in ssl23_get_server_hello() 786 s->packet= &(s->s3->rbuf.buf[0]); in ssl23_get_server_hello() 788 s->s3->rbuf.left=n; in ssl23_get_server_hello() 789 s->s3->rbuf.offset=0; in ssl23_get_server_hello()
|
D | s3_pkt.c | 141 rb = &(s->s3->rbuf); in ssl3_read_n() 324 n=ssl3_read_n(s, SSL3_RT_HEADER_LENGTH, s->s3->rbuf.len, 0); in ssl3_get_record() 360 if (rr->length > s->s3->rbuf.len - SSL3_RT_HEADER_LENGTH) in ssl3_get_record() 995 if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ in ssl3_read_bytes() 1105 if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0) in ssl3_read_bytes() 1209 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in ssl3_read_bytes() 1396 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in ssl3_read_bytes()
|
/external/valgrind/main/mpi/ |
D | mpiwrap_type_test.c | 126 char* rbuf; in sendToMyself() local 166 rbuf = malloc(ub); in sendToMyself() 167 assert(rbuf); in sendToMyself() 169 rbuf[i] = 0xFF; in sendToMyself() 171 r = MPI_Recv( rbuf,1,*tyP, 0,99,MPI_COMM_WORLD, &status); in sendToMyself() 193 if (rbuf_walk[i] == rbuf[i]) in sendToMyself() 211 printf("%c", characterise(rbuf[i])); in sendToMyself() 215 free(rbuf); in sendToMyself()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 727 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local 760 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown() 761 if (rbuf == NULL) in wpa_tdls_send_teardown() 763 pos = rbuf; in wpa_tdls_send_teardown() 800 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown() 801 os_free(rbuf); in wpa_tdls_send_teardown() 1028 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local 1113 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1() 1114 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1() 1118 pos = rbuf; in wpa_tdls_send_tpk_m1() [all …]
|
D | peerkey.c | 69 u8 *rbuf, *pos; in wpa_supplicant_send_smk_error() local 77 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, in wpa_supplicant_send_smk_error() 80 if (rbuf == NULL) in wpa_supplicant_send_smk_error() 116 rbuf, rlen, err->key_mic); in wpa_supplicant_send_smk_error() 129 u8 *rbuf, *pos; in wpa_supplicant_send_smk_m3() local 138 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, in wpa_supplicant_send_smk_m3() 141 if (rbuf == NULL) in wpa_supplicant_send_smk_m3() 168 rbuf, rlen, reply->key_mic); in wpa_supplicant_send_smk_m3() 983 u8 bssid[ETH_ALEN], *rbuf, *pos, *count_pos; in wpa_sm_stkstart() local 1049 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, NULL, in wpa_sm_stkstart() [all …]
|
D | wpa.c | 90 u8 bssid[ETH_ALEN], *rbuf; in wpa_sm_key_request() local 108 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, NULL, in wpa_sm_key_request() 110 if (rbuf == NULL) in wpa_sm_key_request() 136 rbuf, rlen, key_info & WPA_KEY_INFO_MIC ? in wpa_sm_key_request() 283 u8 *rbuf; in wpa_supplicant_send_2_of_4() local 325 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, in wpa_supplicant_send_2_of_4() 328 if (rbuf == NULL) { in wpa_supplicant_send_2_of_4() 355 rbuf, rlen, reply->key_mic); in wpa_supplicant_send_2_of_4() 1040 u8 *rbuf; in wpa_supplicant_send_4_of_4() local 1042 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, NULL, in wpa_supplicant_send_4_of_4() [all …]
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | d1_pkt.c | 191 if (s->s3->rbuf.buf != NULL) in dtls1_copy_record() 192 OPENSSL_free(s->s3->rbuf.buf); in dtls1_copy_record() 196 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record() 229 memcpy(&(rdata->rbuf), &(s->s3->rbuf), sizeof(SSL3_BUFFER)); in dtls1_buffer_record() 236 memset(&(s->s3->rbuf), 0, sizeof(SSL3_BUFFER)); in dtls1_buffer_record() 348 if (s->s3->rbuf.buf != NULL) 349 OPENSSL_free(s->s3->rbuf.buf); 353 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); 553 n=ssl3_read_n(s, DTLS1_RT_HEADER_LENGTH, s->s3->rbuf.len, 0); in dtls1_get_record() 726 if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ in dtls1_read_bytes() [all …]
|
D | d1_lib.c | 171 if (rdata->rbuf.buf) in dtls1_clear_queues() 173 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues() 182 if (rdata->rbuf.buf) in dtls1_clear_queues() 184 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues() 209 if (rdata->rbuf.buf) in dtls1_clear_queues() 211 OPENSSL_free(rdata->rbuf.buf); in dtls1_clear_queues()
|
D | s3_both.c | 656 if (s->s3->rbuf.buf == NULL) in ssl3_setup_read_buffer() 668 s->s3->rbuf.buf = p; in ssl3_setup_read_buffer() 669 s->s3->rbuf.len = len; in ssl3_setup_read_buffer() 672 s->packet= &(s->s3->rbuf.buf[0]); in ssl3_setup_read_buffer() 739 if (s->s3->rbuf.buf != NULL) in ssl3_release_read_buffer() 741 OPENSSL_free(s->s3->rbuf.buf); in ssl3_release_read_buffer() 742 s->s3->rbuf.buf = NULL; in ssl3_release_read_buffer()
|
D | s23_srvr.c | 378 s->s3->rbuf.left = s->packet_length; in ssl23_get_client_hello() 379 s->s3->rbuf.offset = 0; in ssl23_get_client_hello() 517 s->s3->rbuf.left = 0; in ssl23_get_v2_client_hello() 518 s->s3->rbuf.offset = 0; in ssl23_get_v2_client_hello()
|
D | s23_clnt.c | 556 if (s->s3->rbuf.buf == NULL) in ssl23_get_server_hello() 559 s->packet= &(s->s3->rbuf.buf[0]); in ssl23_get_server_hello() 561 s->s3->rbuf.left=n; in ssl23_get_server_hello() 562 s->s3->rbuf.offset=0; in ssl23_get_server_hello()
|
D | s3_pkt.c | 142 rb = &(s->s3->rbuf); in ssl3_read_n() 325 n=ssl3_read_n(s, SSL3_RT_HEADER_LENGTH, s->s3->rbuf.len, 0); in ssl3_get_record() 363 if (rr->length > s->s3->rbuf.len - SSL3_RT_HEADER_LENGTH) in ssl3_get_record() 948 if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ in ssl3_read_bytes() 1066 if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0) in ssl3_read_bytes() 1157 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in ssl3_read_bytes() 1344 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in ssl3_read_bytes()
|
/external/wpa_supplicant_8/src/radius/ |
D | radius_das.c | 190 struct wpabuf *rbuf; in radius_das_receive() local 297 rbuf = radius_msg_get_buf(reply); in radius_das_receive() 298 res = sendto(das->sock, wpabuf_head(rbuf), in radius_das_receive() 299 wpabuf_len(rbuf), 0, in radius_das_receive()
|
/external/chromium_org/third_party/libevent/test/ |
D | regress.c | 72 static char rbuf[4096]; variable 168 len = read(fd, rbuf + roff, sizeof(rbuf) - roff); in multiple_read_cb() 408 memset(rbuf, 0, sizeof(rbuf)); in test_multiple() 424 test_ok = memcmp(rbuf, wbuf, sizeof(wbuf)) == 0; in test_multiple() 437 memset(rbuf, 0, sizeof(rbuf)); in test_persistent() 453 test_ok = memcmp(rbuf, wbuf, sizeof(wbuf)) == 0; in test_persistent()
|