Home
last modified time | relevance | path

Searched refs:rbuf (Results 1 – 25 of 42) sorted by relevance

12

/external/chromium_org/third_party/webrtc/modules/audio_device/mac/portaudio/
Dpa_ringbuffer.c66 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 …]
Dpa_ringbuffer.h114 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/
Dr300_screen_buffer.c56 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/
Dr300_screen_buffer.c56 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/
Dprocess_vm_readv_writev.c18 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/
Ds2_lib.c330 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()
Ds23_srvr.c592 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()
Dd1_lib.c142 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()
Ds3_both.c764 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()
Ds2_pkt.c331 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()
Dd1_pkt.c193 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 …]
Ds23_clnt.c684 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()
Ds3_pkt.c141 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/
Dmpiwrap_type_test.c126 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/
Dtdls.c727 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 …]
Dpeerkey.c69 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 …]
Dwpa.c90 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/
Dd1_pkt.c191 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 …]
Dd1_lib.c171 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()
Ds3_both.c656 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()
Ds23_srvr.c378 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()
Ds23_clnt.c556 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()
Ds3_pkt.c142 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/
Dradius_das.c190 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/
Dregress.c72 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()

12