Home
last modified time | relevance | path

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

12

/external/webrtc/webrtc/modules/audio_device/mac/portaudio/
Dpa_ringbuffer.c66 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 …]
Dpa_ringbuffer.h114 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/
Dr300_screen_buffer.c56 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/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c35 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()
Dtestsf_s.c40 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/valgrind/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/selinux/libselinux/src/
Dseusers.c102 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/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c127 char rbuf[1024]; in find_sequence() local
138 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
140 switch (rbuf[pos]) { in find_sequence()
165 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_lib.h127 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()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe04.c83 char rbuf[BUFSIZ]; in main() local
135 bytesread = do_read(fildes[0], rbuf, sizeof(rbuf)); in main()
141 switch (rbuf[1]) { in main()
150 "character", rbuf[1]); in main()
/external/valgrind/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/ltp/testcases/network/lib6/
Dasapi_02.c123 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/valgrind/memcheck/tests/solaris/
Ddoor_data.c133 params.rbuf = buf; in client_main()
146 printf("CLIENT: %.*s\n", (int)params.rsize, params.rbuf); in client_main()
151 if (params.rbuf != buf) in client_main()
152 if (munmap(params.rbuf, params.rsize) != 0) { in client_main()
Dname_service_door.c36 if (params->rbuf != buf) { in handle_rbuf()
37 if (munmap(params->rbuf, params->rsize) != 0) { in handle_rbuf()
62 params.rbuf = buf; in test_app_small_request()
99 params.rbuf = buf; in test_app_uninitialized_request()
166 params.rbuf = buf; in test_app_proto_icmp()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite03.c73 char wbuf[BUFSIZ], rbuf[BUFSIZ]; in main() local
115 if (read(fd, rbuf, 100) == -1) { in main()
120 if (memcmp(wbuf, rbuf, 100) == 0) { in main()
/external/wpa_supplicant_8/src/rsn_supp/
Dtdls.c756 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local
796 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown()
797 if (rbuf == NULL) in wpa_tdls_send_teardown()
799 pos = rbuf; in wpa_tdls_send_teardown()
836 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown()
837 os_free(rbuf); in wpa_tdls_send_teardown()
1071 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local
1156 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1()
1157 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1()
1161 pos = rbuf; in wpa_tdls_send_tpk_m1()
[all …]
Dpeerkey.c69 u8 *rbuf, *pos, *mic; 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 wpa_eapol_key_send(sm, &sm->ptk, ver, dst, ETH_P_EAPOL, rbuf, rlen, in wpa_supplicant_send_smk_error()
130 u8 *rbuf, *pos, *mic; in wpa_supplicant_send_smk_m3() local
139 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, in wpa_supplicant_send_smk_m3()
142 if (rbuf == NULL) in wpa_supplicant_send_smk_m3()
169 wpa_eapol_key_send(sm, &sm->ptk, ver, src_addr, ETH_P_EAPOL, rbuf, rlen, in wpa_supplicant_send_smk_m3()
992 u8 bssid[ETH_ALEN], *rbuf, *pos, *count_pos, *mic; in wpa_sm_stkstart() local
1056 rbuf = wpa_sm_alloc_eapol(sm, IEEE802_1X_TYPE_EAPOL_KEY, NULL, in wpa_sm_stkstart()
[all …]
/external/ltp/testcases/kernel/syscalls/exit/
Dexit02.c70 char wbuf[BUFSIZ], rbuf[BUFSIZ]; in main() local
157 rlen = read(filed, rbuf, len); in main()
162 } else if (strncmp(rbuf, wbuf, len) != 0) { in main()
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate04.c105 char rbuf[size]; in check_file_data() local
110 SAFE_READ(cleanup, 1, fd, rbuf, size); in check_file_data()
112 if (memcmp(exp_buf, rbuf, size)) { in check_file_data()
115 tst_resm_hexd(TINFO, rbuf, size, "but read:"); in check_file_data()
/external/ltp/lib/
Drandom_range.c238 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/
Dport-tun.c209 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/selinux/libsemanage/src/
Dgenhomedircon.c293 char *rbuf = NULL; in get_home_dirs() local
368 rbuf = malloc(rbuflen); in get_home_dirs()
369 if (rbuf == NULL) in get_home_dirs()
372 while ((retval = getpwent_r(&pwstorage, rbuf, rbuflen, &pwbuf)) == 0) { in get_home_dirs()
425 free(rbuf); in get_home_dirs()
432 free(rbuf); in get_home_dirs()
975 char *rbuf = NULL; in add_user() local
988 rbuf = malloc(rbuflen); in add_user()
989 if (rbuf == NULL) in add_user()
1008 retval = getpwnam_r(name, &pwstorage, rbuf, rbuflen, &pwent); in add_user()
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius_das.c204 struct wpabuf *rbuf; in radius_das_receive() local
313 rbuf = radius_msg_get_buf(reply); in radius_das_receive()
314 res = sendto(das->sock, wpabuf_head(rbuf), in radius_das_receive()
315 wpabuf_len(rbuf), 0, in radius_das_receive()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile05.c124 char rbuf[4096]; in do_child() local
128 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, in do_child()
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c480 char rbuf[1024]; in do_child() local
482 cc = read(fd, rbuf, sizeof(rbuf)); in do_child()
483 if (cc && rbuf[0] == 'R') in do_child()

12