Home
last modified time | relevance | path

Searched refs:buffer (Results 301 - 325 of 13521) sorted by relevance

1...<<11121314151617181920>>...541

/third_party/node/test/cctest/
H A Dtest_base64.cc14 char* const buffer = new char[len + 1]; in TEST()
15 buffer[len] = 0; in TEST()
16 base64_encode(string, strlen(string), buffer, len); in TEST()
17 EXPECT_STREQ(base64_string, buffer); in TEST()
18 delete[] buffer; in TEST()
50 char* const buffer = new char[len + 1]; in TEST()
51 buffer[len] = 0; in TEST()
52 base64_encode(string, strlen(string), buffer, len, node::Base64Mode::URL); in TEST()
53 EXPECT_STREQ(base64_string, buffer); in TEST()
54 delete[] buffer; in TEST()
[all...]
/third_party/ltp/testcases/kernel/syscalls/readlink/
H A Dreadlink03.c12 * 2) readlink(2) returns -1 and sets errno to EINVAL if the buffer size
47 static char buffer[256]; variable
55 {SYM_FILE1, buffer, sizeof(buffer), EACCES},
56 {SYM_FILE2, buffer, 0, EINVAL},
57 {TEST_FILE2, buffer, sizeof(buffer), EINVAL},
58 {longpathname, buffer, sizeof(buffer), ENAMETOOLONG},
59 {"", buffer, sizeo
[all...]
/base/security/device_security_level/baselib/utils/src/
H A Dutils_tlv.c26 static uint8_t *GetNextTlv(const uint8_t *buffer) in GetNextTlv() argument
28 return (uint8_t *)buffer + ((TlvCommon *)buffer)->len + TLV_TLV_HEAD_LEN; in GetNextTlv()
31 static uint8_t *ParseTlv(const uint8_t *buffer, TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode) in ParseTlv() argument
33 if (buffer + TLV_TLV_HEAD_LEN > boundary) { in ParseTlv()
37 if (GetNextTlv(buffer) > boundary) { in ParseTlv()
41 tlv->tag = ((TlvCommon *)buffer)->tag; in ParseTlv()
42 tlv->len = ((TlvCommon *)buffer)->len; in ParseTlv()
43 tlv->value = (uint8_t *)buffer + TLV_TLV_HEAD_LEN; in ParseTlv()
45 return GetNextTlv(buffer); in ParseTlv()
48 AppendTlv(uint8_t *buffer, const TlvCommon *tlv, const uint8_t *boundary, uint32_t *retCode) AppendTlv() argument
[all...]
/device/soc/rockchip/rk3568/hardware/codec/jpeg/include/
H A Dcodec_jpeg_helper.h39 int32_t JpegAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t fd);
41 bool DessambleJpeg(int8_t *buffer, size_t bufferLen, struct CodecJpegDecInfo &decInfo,
47 int32_t JpegDqtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
49 int32_t JpegDriAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
51 int32_t JpegDhtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
54 const std::vector<CodecJpegHuffTable> &table, int8_t *buffer, int32_t curPos, bool dc = true);
56 int32_t JpegSofAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
58 int32_t JpegSosAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
60 int32_t JpegDataAssemble(int8_t *buffer, int32_t curPos, int32_t fd);
62 int32_t DessambleSof(int8_t *buffer, struc
[all...]
/device/soc/rockchip/rk3588/hardware/codec/jpeg/include/
H A Dcodec_jpeg_helper.h39 int32_t JpegAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t fd);
41 bool DessambleJpeg(int8_t *buffer, size_t bufferLen, struct CodecJpegDecInfo &decInfo,
47 int32_t JpegDqtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
49 int32_t JpegDriAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
51 int32_t JpegDhtAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
54 const std::vector<CodecJpegHuffTable> &table, int8_t *buffer, int32_t curPos, bool dc = true);
56 int32_t JpegSofAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
58 int32_t JpegSosAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32_t curPos);
60 int32_t JpegDataAssemble(int8_t *buffer, int32_t curPos, int32_t fd);
62 int32_t DessambleSof(int8_t *buffer, struc
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dutbuffer.c20 * PARAMETERS: buffer - Buffer to dump
27 * base_offset - Beginning buffer offset (display only)
31 * DESCRIPTION: Generic dump buffer in both hex and ascii.
34 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument
43 if (!buffer) { in acpi_ut_dump_buffer()
52 /* Nasty little dump buffer routine! */ in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_siz in acpi_ut_dump_buffer()
170 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) acpi_ut_debug_dump_buffer() argument
205 acpi_ut_dump_buffer_to_file(ACPI_FILE file, u8 *buffer, u32 count, u32 display, u32 base_offset) acpi_ut_dump_buffer_to_file() argument
[all...]
H A Dexconcat.c56 char *buffer; in acpi_ex_do_concatenate() local
190 /* Need enough buffer space for two integers */ in acpi_ex_do_concatenate()
200 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
204 memcpy(buffer, &operand0->integer.value, in acpi_ex_do_concatenate()
209 memcpy(buffer + acpi_gbl_integer_byte_width, in acpi_ex_do_concatenate()
228 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate()
232 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate()
233 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate()
241 operand0->buffer in acpi_ex_do_concatenate()
[all...]
/kernel/linux/linux-5.10/drivers/usb/storage/
H A Doption_ms.c37 char *buffer; in option_rezero() local
42 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
43 if (buffer == NULL) in option_rezero()
46 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); in option_rezero()
49 buffer, sizeof(rezero_msg), NULL); in option_rezero()
61 buffer, RESPONSE_LEN, NULL); in option_rezero()
66 buffer, 13, NULL); in option_rezero()
71 kfree(buffer); in option_rezero()
83 char *buffer; in option_inquiry() local
88 buffer in option_inquiry()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dutbuffer.c20 * PARAMETERS: buffer - Buffer to dump
27 * base_offset - Beginning buffer offset (display only)
31 * DESCRIPTION: Generic dump buffer in both hex and ascii.
34 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument
43 if (!buffer) { in acpi_ut_dump_buffer()
52 /* Nasty little dump buffer routine! */ in acpi_ut_dump_buffer()
79 buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
85 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
92 &buffer[(acpi_size)i + j]); in acpi_ut_dump_buffer()
99 &buffer[(acpi_siz in acpi_ut_dump_buffer()
170 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) acpi_ut_debug_dump_buffer() argument
205 acpi_ut_dump_buffer_to_file(ACPI_FILE file, u8 *buffer, u32 count, u32 display, u32 base_offset) acpi_ut_dump_buffer_to_file() argument
[all...]
H A Dexconcat.c56 char *buffer; in acpi_ex_do_concatenate() local
190 /* Need enough buffer space for two integers */ in acpi_ex_do_concatenate()
200 buffer = (char *)return_desc->buffer.pointer; in acpi_ex_do_concatenate()
204 memcpy(buffer, &operand0->integer.value, in acpi_ex_do_concatenate()
209 memcpy(buffer + acpi_gbl_integer_byte_width, in acpi_ex_do_concatenate()
228 buffer = return_desc->string.pointer; in acpi_ex_do_concatenate()
232 strcpy(buffer, local_operand0->string.pointer); in acpi_ex_do_concatenate()
233 strcat(buffer, local_operand1->string.pointer); in acpi_ex_do_concatenate()
241 operand0->buffer in acpi_ex_do_concatenate()
[all...]
/kernel/linux/linux-6.6/drivers/usb/storage/
H A Doption_ms.c37 char *buffer; in option_rezero() local
42 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
43 if (buffer == NULL) in option_rezero()
46 memcpy(buffer, rezero_msg, sizeof(rezero_msg)); in option_rezero()
49 buffer, sizeof(rezero_msg), NULL); in option_rezero()
61 buffer, RESPONSE_LEN, NULL); in option_rezero()
66 buffer, 13, NULL); in option_rezero()
71 kfree(buffer); in option_rezero()
83 char *buffer; in option_inquiry() local
88 buffer in option_inquiry()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmediacodec.c88 int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render) in av_mediacodec_release_buffer() argument
90 MediaCodecDecContext *ctx = buffer->ctx; in av_mediacodec_release_buffer()
91 int released = atomic_fetch_add(&buffer->released, 1); in av_mediacodec_release_buffer()
93 if (!released && (ctx->delay_flush || buffer->serial == atomic_load(&ctx->serial))) { in av_mediacodec_release_buffer()
96 "Releasing output buffer %zd (%p) ts=%"PRId64" with render=%d [%d pending]\n", in av_mediacodec_release_buffer()
97 buffer->index, buffer, buffer->pts, render, atomic_load(&ctx->hw_buffer_count)); in av_mediacodec_release_buffer()
98 return ff_AMediaCodec_releaseOutputBuffer(ctx->codec, buffer->index, render); in av_mediacodec_release_buffer()
104 int av_mediacodec_render_buffer_at_time(AVMediaCodecBuffer *buffer, int64_ argument
138 av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render) av_mediacodec_release_buffer() argument
143 av_mediacodec_render_buffer_at_time(AVMediaCodecBuffer *buffer, int64_t time) av_mediacodec_render_buffer_at_time() argument
[all...]
/third_party/libcoap/include/oscore/
H A Doscore_cbor.h74 size_t oscore_cbor_put_nil(uint8_t **buffer, size_t *buf_size);
76 size_t oscore_cbor_put_true(uint8_t **buffer, size_t *buf_size);
78 size_t oscore_cbor_put_false(uint8_t **buffer, size_t *buf_size);
80 size_t oscore_cbor_put_text(uint8_t **buffer,
85 size_t oscore_cbor_put_array(uint8_t **buffer, size_t *buf_size, size_t elements);
87 size_t oscore_cbor_put_bytes(uint8_t **buffer,
92 size_t oscore_cbor_put_map(uint8_t **buffer, size_t *buf_size, size_t elements);
94 size_t oscore_cbor_put_number(uint8_t **buffer, size_t *buf_size, int64_t value);
96 size_t oscore_cbor_put_simple_value(uint8_t **buffer, size_t *buf_size, uint8_t value);
98 size_t oscore_cbor_put_unsigned(uint8_t **buffer, size_
[all...]
/third_party/mesa3d/src/freedreno/decode/
H A Dbuffers.c35 struct buffer { struct
42 * into buffer of which modes it has already been dumped;
56 const struct buffer *buf1 = (const struct buffer *)n1; in buffer_insert_cmp()
57 const struct buffer *buf2 = (const struct buffer *)n2; in buffer_insert_cmp()
69 const struct buffer *buf = (const struct buffer *)node; in buffer_search_cmp()
78 static struct buffer *
83 return (struct buffer *)rb_tree_searc in get_buffer()
96 rb_tree_foreach(struct buffer, buf, &buffers, node) gpuaddr() argument
172 rb_tree_foreach_safe(struct buffer, buf, &buffers, node) reset_buffers() argument
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dframebuffer.h46 _mesa_destroy_framebuffer(struct gl_framebuffer *buffer);
49 _mesa_free_framebuffer_data(struct gl_framebuffer *buffer);
76 _mesa_geometric_width(const struct gl_framebuffer *buffer) in _mesa_geometric_width() argument
78 return buffer->_HasAttachments ? in _mesa_geometric_width()
79 buffer->Width : buffer->DefaultGeometry.Width; in _mesa_geometric_width()
83 _mesa_geometric_height(const struct gl_framebuffer *buffer) in _mesa_geometric_height() argument
85 return buffer->_HasAttachments ? in _mesa_geometric_height()
86 buffer->Height : buffer in _mesa_geometric_height()
90 _mesa_geometric_samples(const struct gl_framebuffer *buffer) _mesa_geometric_samples() argument
98 _mesa_geometric_layers(const struct gl_framebuffer *buffer) _mesa_geometric_layers() argument
[all...]
/third_party/node/deps/npm/node_modules/jsonparse/
H A Djsonparse.js88 proto.charError = function (buffer, i) {
90 this.onError(new Error("Unexpected " + JSON.stringify(String.fromCharCode(buffer[i])) + " at position " + i + " in state " + Parser.toknam(this.tState)));
127 proto.write = function (buffer) {
128 if (typeof buffer === "string") buffer = new Buffer(buffer);
130 for (var i = 0, l = buffer.length; i < l; i++) {
132 n = buffer[i];
154 return this.charError(buffer, i);
158 n = buffer[
[all...]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_cksum.h8 * Calculate the intermediate checksum for a buffer that has the CRC field
10 * cksum_offset parameter. We do not modify the buffer during verification,
14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe()
26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe()
31 * Fast CRC method where the buffer is modified. Callers must have exclusive
32 * access to the buffer while the calculation takes place.
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update()
40 /* single pass CRC calculation for the entire buffer */ in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_update_cksum() argument
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_verify_cksum() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_cksum.h8 * Calculate the intermediate checksum for a buffer that has the CRC field
10 * cksum_offset parameter. We do not modify the buffer during verification,
14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument
20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe()
26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe()
31 * Fast CRC method where the buffer is modified. Callers must have exclusive
32 * access to the buffer while the calculation takes place.
35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument
38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update()
40 /* single pass CRC calculation for the entire buffer */ in xfs_start_cksum_update()
64 xfs_update_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_update_cksum() argument
75 xfs_verify_cksum(char *buffer, size_t length, unsigned long cksum_offset) xfs_verify_cksum() argument
[all...]
/third_party/icu/tools/colprobe/
H A Dlongname.cpp19 char buffer[256]; in main() local
23 bufLen = ucnv_fromUChars(conv, buffer, 256, UBuffer, uBufLen, &status); in main()
24 //u_UCharsToChars(UBuffer, buffer, uBufLen); in main()
25 buffer[bufLen] = 0; in main()
26 printf("%s", buffer); in main()
28 if(hasCountry = uloc_getCountry(loc, buffer, 256, &status)) { in main()
30 bufLen = ucnv_fromUChars(conv, buffer, 256, UBuffer, uBufLen, &status); in main()
31 //u_UCharsToChars(UBuffer, buffer, uBufLen); in main()
32 buffer[bufLen] = 0; in main()
33 printf("_%s", buffer); in main()
[all...]
/base/telephony/sms_mms/services/sms/include/gsm/
H A Dgsm_sms_tpdu_encode.h29 bool EncodeSubmitPdu(SmsWriteBuffer &buffer, const struct SmsSubmit *pSubmit);
30 void EncodeSubmitTpduType(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit);
31 bool EncodeDeliverPdu(SmsWriteBuffer &buffer, const struct SmsDeliver *pDeliver);
32 bool EncodeDeliverReportPdu(SmsWriteBuffer &buffer, const struct SmsDeliverReport *pDeliverRep);
33 bool EncodeStatusReportPdu(SmsWriteBuffer &buffer, const struct SmsStatusReport *pStatusRep);
36 bool EncodeSubmitPduPartData(SmsWriteBuffer &buffer, const struct SmsSubmit *pSubmit);
37 void EncodeSubmitTypePartData(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit);
38 void EncodeSubmitTypeData(SmsWriteBuffer &buffer, const struct SmsSubmit &pSubmit);
39 bool EncodeDeliverPartData(SmsWriteBuffer &buffer, const struct SmsDeliver *pDeliver);
40 bool EncodeDeliverData(SmsWriteBuffer &buffer, cons
[all...]
/kernel/linux/linux-5.10/kernel/
H A Dsysctl-test.c36 * proc_dointvec expects a buffer in user space, so we allocate one. We in sysctl_test_api_dointvec_null_tbl_data()
39 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() local
50 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
59 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
85 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() local
91 * As before, we don't care what buffer length is because proc_dointvec in sysctl_test_api_dointvec_table_maxlen_unset()
92 * cannot do anything because its internal .data buffer has zero length. in sysctl_test_api_dointvec_table_maxlen_unset()
96 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
105 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
112 * it using a buffer o
128 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_len_is_zero() local
162 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_read_but_position_set() local
199 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_positive() local
230 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_negative() local
260 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_positive() local
290 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_negative() local
321 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_less_int_min() local
359 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_greater_int_max() local
[all...]
/kernel/linux/linux-6.6/kernel/
H A Dsysctl-test.c33 * proc_dointvec expects a buffer in user space, so we allocate one. We in sysctl_test_api_dointvec_null_tbl_data()
36 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data() local
47 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
56 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_null_tbl_data()
82 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset() local
88 * As before, we don't care what buffer length is because proc_dointvec in sysctl_test_api_dointvec_table_maxlen_unset()
89 * cannot do anything because its internal .data buffer has zero length. in sysctl_test_api_dointvec_table_maxlen_unset()
93 KUNIT_PROC_READ, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
102 KUNIT_PROC_WRITE, buffer, &len, in sysctl_test_api_dointvec_table_maxlen_unset()
109 * it using a buffer o
125 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_len_is_zero() local
159 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), sysctl_test_api_dointvec_table_read_but_position_set() local
196 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_positive() local
227 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_read_happy_single_negative() local
257 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_positive() local
287 char *buffer = kunit_kzalloc(test, len, GFP_USER); sysctl_test_dointvec_write_happy_single_negative() local
318 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_less_int_min() local
356 char *buffer = kunit_kzalloc(test, max_len, GFP_USER); sysctl_test_api_dointvec_write_single_greater_int_max() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_winsys_dri3.c99 struct vl_dri3_buffer *buffer) in dri3_free_front_buffer()
101 xcb_sync_destroy_fence(scrn->conn, buffer->sync_fence); in dri3_free_front_buffer()
102 xshmfence_unmap_shm(buffer->shm_fence); in dri3_free_front_buffer()
103 pipe_resource_reference(&buffer->texture, NULL); in dri3_free_front_buffer()
104 FREE(buffer); in dri3_free_front_buffer()
109 struct vl_dri3_buffer *buffer) in dri3_free_back_buffer()
111 if (buffer->region) in dri3_free_back_buffer()
112 xcb_xfixes_destroy_region(scrn->conn, buffer->region); in dri3_free_back_buffer()
113 xcb_free_pixmap(scrn->conn, buffer->pixmap); in dri3_free_back_buffer()
114 xcb_sync_destroy_fence(scrn->conn, buffer in dri3_free_back_buffer()
98 dri3_free_front_buffer(struct vl_dri3_screen *scrn, struct vl_dri3_buffer *buffer) dri3_free_front_buffer() argument
108 dri3_free_back_buffer(struct vl_dri3_screen *scrn, struct vl_dri3_buffer *buffer) dri3_free_back_buffer() argument
209 struct vl_dri3_buffer *buffer = scrn->back_buffers[id]; dri3_find_back() local
222 struct vl_dri3_buffer *buffer; dri3_alloc_back_buffer() local
320 struct vl_dri3_buffer *buffer; dri3_get_back_buffer() local
624 struct vl_dri3_buffer *buffer; vl_dri3_screen_texture_from_drawable() local
698 vl_dri3_screen_set_back_texture_from_output(struct vl_screen *vscreen, struct pipe_resource *buffer, uint32_t width, uint32_t height) vl_dri3_screen_set_back_texture_from_output() argument
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dzero_copy_stream_unittest.cc209 std::unique_ptr<char[]> buffer(new char[str.size() + 1]); in ReadString()
210 buffer[str.size()] = '\0'; in ReadString()
211 EXPECT_EQ(ReadFromInput(input, buffer.get(), str.size()), str.size()); in ReadString()
212 EXPECT_STREQ(str.c_str(), buffer.get()); in ReadString()
282 uint8 buffer[kBufferSize]; in TEST_F() local
288 ArrayOutputStream output(buffer, kBufferSize, kBlockSizes[i]); in TEST_F()
292 ArrayInputStream input(buffer, size, kBlockSizes[j]); in TEST_F()
305 uint8* buffer = new uint8[kBufferSize]; in TEST_F() local
311 new ArrayOutputStream(buffer, kBufferSize, kBlockSizes[i]); in TEST_F()
318 output = new ArrayOutputStream(buffer in TEST_F()
353 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
384 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
419 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
447 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
475 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
506 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
555 const void* buffer; Uncompress() local
605 uint8* buffer = new uint8[kBufferSize]; TEST_F() local
670 const void* buffer; TEST_F() local
690 const void* buffer; TEST_F() local
820 const void* buffer; TEST_F() local
833 void* buffer; TEST_F() local
918 uint8 buffer[kBufferSize]; TEST_F() local
951 uint8 buffer[kBufferSize]; TEST_F() local
969 uint8 buffer[kBufferSize]; TEST_F() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/util/
H A Du_upload_mgr.c44 unsigned default_size; /* Minimum size of the upload buffer, in bytes. */
51 struct pipe_resource *buffer; /* Upload buffer. */ member
52 struct pipe_transfer *transfer; /* Transfer object for the upload buffer. */
53 uint8_t *map; /* Pointer to the mapped upload buffer. */
54 unsigned buffer_size; /* Same as buffer->width0. */
55 unsigned offset; /* Aligned offset to the upload buffer, pointing
153 /* Unmap and unreference the upload buffer. */ in u_upload_release_buffer()
157 * the buffer. The mega comment below explains it. in u_upload_release_buffer()
160 p_atomic_add(&upload->buffer in u_upload_release_buffer()
181 struct pipe_resource buffer; u_upload_alloc_buffer() local
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...541