Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/gallium/drivers/r300/
Dr300_screen_buffer.c57 struct r300_resource *rbuf = r300_resource(buf); in r300_resource_destroy() local
59 align_free(rbuf->malloced_buffer); in r300_resource_destroy()
61 if (rbuf->buf) in r300_resource_destroy()
62 pb_reference(&rbuf->buf, NULL); in r300_resource_destroy()
64 FREE(rbuf); in r300_resource_destroy()
91 struct r300_resource *rbuf = r300_resource(resource); in r300_buffer_transfer_map() local
103 if (rbuf->malloced_buffer) { in r300_buffer_transfer_map()
105 return rbuf->malloced_buffer + box->x; in r300_buffer_transfer_map()
113 if (r300->rws->cs_is_buffer_referenced(&r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map()
114 !r300->rws->buffer_wait(r300->rws, rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map()
[all …]
/third_party/curl/src/
Dtool_cb_wrt.c241 unsigned char *rbuf = (unsigned char *)buffer; in tool_write_cb() local
252 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
259 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
263 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
271 outs->utf8seq[1] = *rbuf++; in tool_write_cb()
275 outs->utf8seq[2] = *rbuf++; in tool_write_cb()
279 outs->utf8seq[3] = *rbuf++; in tool_write_cb()
308 if(!outs->utf8seq[0] && rlen && (rbuf[rlen - 1] & 0x80)) { in tool_write_cb()
310 if(0xC0 <= rbuf[rlen - 1] && rbuf[rlen - 1] < 0xF8) { in tool_write_cb()
311 outs->utf8seq[0] = rbuf[rlen - 1]; in tool_write_cb()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dreadlinkat.c79 char rbuf[BUFSIZ] = {0}; in readlinkat_0100() local
80 ssize_t bytes = readlinkat(fd, linkpath, rbuf, sizeof(rbuf)); in readlinkat_0100()
81 if (bytes != strlen(rbuf)) { in readlinkat_0100()
85 if (strcmp(rbuf, path)) { in readlinkat_0100()
86 t_error("%s failed: rbuf = %s\n", __func__, rbuf); in readlinkat_0100()
131 char rbuf[BUFSIZ] = {0}; in readlinkat_0200() local
132 ssize_t bytes = readlinkat(fd, linkfilename, rbuf, sizeof(rbuf)); in readlinkat_0200()
133 if (bytes != strlen(rbuf)) { in readlinkat_0200()
137 if (strcmp(rbuf, filename)) { in readlinkat_0200()
138 t_error("%s failed: rbuf = %s\n", __func__, rbuf); in readlinkat_0200()
/third_party/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()
/third_party/rust/crates/nix/test/sys/
Dtest_aio.rs115 let mut rbuf = vec![0; 4]; in test_accessors() localVariable
119 &mut rbuf, in test_accessors()
142 let mut rbuf = vec![0; 4]; in cancel() localVariable
147 Box::pin(AioRead::new(fd, 2, &mut rbuf, 0, SigevNotify::SigevNone)); in cancel()
165 let mut rbuf = vec![0; 4]; in error() localVariable
171 &mut rbuf, in error()
184 let mut rbuf = vec![0; 4]; in ok() localVariable
193 &mut rbuf, in ok()
203 assert_eq!(EXPECT, rbuf.deref().deref()); in ok()
211 let mut rbuf = vec![0; 4]; in on_stack() localVariable
[all …]
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe11.c28 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()
Dpipe04.c84 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()
/third_party/f2fs-tools/fsck/
Dcompress.c46 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()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise08.c107 char rbuf[1024]; in find_sequence() local
118 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
120 switch (rbuf[pos]) { in find_sequence()
145 read = SAFE_READ(0, dfd, &rbuf, sizeof(rbuf)); in find_sequence()
/third_party/pulseaudio/src/pulsecore/
Dioline.c53 char *rbuf; member
80 l->rbuf = NULL; in pa_ioline_new()
112 pa_xfree(l->rbuf); in ioline_free()
230 char *p = pa_xstrndup(l->rbuf+l->rbuf_index, l->rbuf_valid_length); in failure()
253 if (!(e = memchr(l->rbuf + l->rbuf_index + skip, '\n', l->rbuf_valid_length - skip))) in scan_for_lines()
258 p = l->rbuf + l->rbuf_index; in scan_for_lines()
301 memmove(l->rbuf, l->rbuf+l->rbuf_index, l->rbuf_valid_length); in do_read()
306 memcpy(new, l->rbuf+l->rbuf_index, l->rbuf_valid_length); in do_read()
307 pa_xfree(l->rbuf); in do_read()
308 l->rbuf = new; in do_read()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate06.c61 static char *wbuf, *rbuf; variable
128 rbuf = SAFE_MALLOC(rbuf_size); in setup()
228 SAFE_READ(1, fd, rbuf, rbuf_size); in run()
231 if (rbuf[i]) { in run()
237 err = err || memcmp(rbuf, wbuf, offset); in run()
240 err = err || memcmp(rbuf + offset, wbuf + offset, size); in run()
256 free(rbuf); in cleanup()
/third_party/openssl/crypto/err/
Derr_blocks.c64 char *rbuf = NULL; in ERR_vset_error() local
84 && (rbuf = OPENSSL_realloc(buf, ERR_MAX_DATA_SIZE)) != NULL) { in ERR_vset_error()
85 buf = rbuf; in ERR_vset_error()
103 if ((rbuf = OPENSSL_realloc(buf, printed_len + 1)) != NULL) { in ERR_vset_error()
104 buf = rbuf; in ERR_vset_error()
/third_party/node/deps/openssl/openssl/crypto/err/
Derr_blocks.c64 char *rbuf = NULL; in ERR_vset_error() local
84 && (rbuf = OPENSSL_realloc(buf, ERR_MAX_DATA_SIZE)) != NULL) { in ERR_vset_error()
85 buf = rbuf; in ERR_vset_error()
103 if ((rbuf = OPENSSL_realloc(buf, printed_len + 1)) != NULL) { in ERR_vset_error()
104 buf = rbuf; in ERR_vset_error()
/third_party/ltp/testcases/kernel/syscalls/write/
Dwrite03.c25 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()
/third_party/node/deps/openssl/openssl/ssl/record/
Drec_layer_d1.c73 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
81 OPENSSL_cleanse(rdata->rbuf.buf, rdata->rbuf.len); in DTLS_RECORD_LAYER_clear()
82 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
90 OPENSSL_cleanse(rdata->rbuf.buf, rdata->rbuf.len); in DTLS_RECORD_LAYER_clear()
91 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
133 SSL3_BUFFER_release(&s->rlayer.rbuf); in dtls1_copy_record()
137 memcpy(&s->rlayer.rbuf, &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record()
166 memcpy(&(rdata->rbuf), &s->rlayer.rbuf, sizeof(SSL3_BUFFER)); in dtls1_buffer_record()
183 memset(&s->rlayer.rbuf, 0, sizeof(s->rlayer.rbuf)); in dtls1_buffer_record()
188 OPENSSL_free(rdata->rbuf.buf); in dtls1_buffer_record()
[all …]
/third_party/openssl/ssl/record/
Drec_layer_d1.c73 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
81 OPENSSL_cleanse(rdata->rbuf.buf, rdata->rbuf.len); in DTLS_RECORD_LAYER_clear()
82 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
90 OPENSSL_cleanse(rdata->rbuf.buf, rdata->rbuf.len); in DTLS_RECORD_LAYER_clear()
91 OPENSSL_free(rdata->rbuf.buf); in DTLS_RECORD_LAYER_clear()
133 SSL3_BUFFER_release(&s->rlayer.rbuf); in dtls1_copy_record()
137 memcpy(&s->rlayer.rbuf, &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record()
166 memcpy(&(rdata->rbuf), &s->rlayer.rbuf, sizeof(SSL3_BUFFER)); in dtls1_buffer_record()
183 memset(&s->rlayer.rbuf, 0, sizeof(s->rlayer.rbuf)); in dtls1_buffer_record()
188 OPENSSL_free(rdata->rbuf.buf); in dtls1_buffer_record()
[all …]
/third_party/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()
/third_party/ffmpeg/libavformat/
Drtspdec.c71 static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize, in read_line() argument
80 ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1); in read_line()
83 if (rbuf[idx] == '\r') { in read_line()
85 } else if (rbuf[idx] == '\n') { in read_line()
86 rbuf[idx] = '\0'; in read_line()
146 char rbuf[MAX_URL_SIZE]; in rtsp_read_request() local
149 ret = read_line(s, rbuf, sizeof(rbuf), &rbuflen); in rtsp_read_request()
153 av_log(s, AV_LOG_TRACE, "Parsing[%d]: %s\n", rbuflen, rbuf); in rtsp_read_request()
154 ff_rtsp_parse_line(s, request, rbuf, rt, method); in rtsp_read_request()
477 unsigned char rbuf[MAX_URL_SIZE]; in ff_rtsp_parse_streaming_commands() local
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
Dtdls.c754 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 …]
/third_party/nghttp2/src/
Dshrpx_connection.cc123 tls.rbuf.reset(); in disconnect()
218 auto &rbuf = conn->tls.rbuf; in shrpx_bio_read() local
222 if (conn->tls.initial_handshake_done && rbuf.rleft() == 0) { in shrpx_bio_read()
234 if (rbuf.rleft() == 0) { in shrpx_bio_read()
239 return rbuf.remove(buf, len); in shrpx_bio_read()
334 bool read_buffer_full(DefaultPeekMemchunks &rbuf) { in read_buffer_full() argument
335 return rbuf.rleft_buffered() >= 20_k; in read_buffer_full()
359 tls.rbuf.append(buf.data(), nread); in tls_handshake()
360 if (read_buffer_full(tls.rbuf)) { in tls_handshake()
378 tls.rbuf.disable_peek(false); in tls_handshake()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
Dtdls.c762 u8 *rbuf, *pos; in wpa_tdls_send_teardown() local
802 rbuf = os_zalloc(ielen + 1); in wpa_tdls_send_teardown()
803 if (rbuf == NULL) in wpa_tdls_send_teardown()
805 pos = rbuf; in wpa_tdls_send_teardown()
842 reason_code, 0, peer->initiator, rbuf, pos - rbuf); in wpa_tdls_send_teardown()
843 os_free(rbuf); in wpa_tdls_send_teardown()
1077 u8 *rbuf, *pos, *count_pos; in wpa_tdls_send_tpk_m1() local
1162 rbuf = os_zalloc(buf_len + 1); in wpa_tdls_send_tpk_m1()
1163 if (rbuf == NULL) { in wpa_tdls_send_tpk_m1()
1167 pos = rbuf; in wpa_tdls_send_tpk_m1()
[all …]
/third_party/gstreamer/gstplugins_base/ext/libvisual/
Dvisual.c222 VisBuffer *lbuf, *rbuf; in gst_visual_render() local
237 rbuf = visual_buffer_new_with_buffer (rdata, sizeof (rdata), NULL); in gst_visual_render()
276 visual_object_unref (VISUAL_OBJECT (rbuf)); in gst_visual_render()
286 visual_audio_samplepool_input_channel (visual->audio->samplepool, rbuf, in gst_visual_render()
291 visual_object_unref (VISUAL_OBJECT (rbuf)); in gst_visual_render()
/third_party/node/deps/ngtcp2/nghttp3/lib/
Dnghttp3_qpack.h294 nghttp3_buf *rbuf, nghttp3_buf *ebuf,
358 nghttp3_buf *rbuf,
373 nghttp3_buf *rbuf,
389 nghttp3_qpack_encoder *encoder, nghttp3_buf *rbuf, uint64_t absidx,
405 nghttp3_qpack_encoder *encoder, nghttp3_buf *rbuf, uint64_t absidx,
419 nghttp3_buf *rbuf,

123