Home
last modified time | relevance | path

Searched refs:buffer (Results 1 - 25 of 14922) sorted by relevance

12345678910>>...597

/third_party/backends/backend/
H A Dpieusb_buffer.c45 * Read buffer
58 * To accommodate all this, the buffer stores all samples as 16-bit values, even
62 * The read buffer is constructed by a call to buffer_create(), which initializes
63 * the buffer based on width, height, number of colors and depth. The buffer
68 * The buffer maintains read and write pointers.
104 static void buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment);
109 * Initialize the buffer.
112 * @param buffer the buffer t
122 sanei_pieusb_buffer_create(struct Pieusb_Read_Buffer* buffer, SANE_Int width, SANE_Int height, SANE_Byte color_spec, SANE_Byte depth) sanei_pieusb_buffer_create() argument
236 sanei_pieusb_buffer_delete(struct Pieusb_Read_Buffer* buffer) sanei_pieusb_buffer_delete() argument
272 sanei_pieusb_buffer_put_single_color_line(struct Pieusb_Read_Buffer* buffer, SANE_Byte color, void* line, SANE_Int size) sanei_pieusb_buffer_put_single_color_line() argument
382 sanei_pieusb_buffer_put_full_color_line(struct Pieusb_Read_Buffer* buffer, void* line, int size) sanei_pieusb_buffer_put_full_color_line() argument
484 sanei_pieusb_buffer_get(struct Pieusb_Read_Buffer* buffer, SANE_Byte* data, SANE_Int max_len, SANE_Int* len) sanei_pieusb_buffer_get() argument
567 buffer_update_read_index(struct Pieusb_Read_Buffer* buffer, int increment) buffer_update_read_index() argument
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-shape-complex-vowel-constraints.cc24 _output_dotted_circle (hb_buffer_t *buffer) in _output_dotted_circle() argument
26 (void) buffer->output_glyph (0x25CCu); in _output_dotted_circle()
27 _hb_glyph_info_reset_continuation (&buffer->prev()); in _output_dotted_circle()
31 _output_with_dotted_circle (hb_buffer_t *buffer) in _output_with_dotted_circle() argument
33 _output_dotted_circle (buffer); in _output_with_dotted_circle()
34 (void) buffer->next_glyph (); in _output_with_dotted_circle()
39 hb_buffer_t *buffer, in _hb_preprocess_text_vowel_constraints()
45 if (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE) in _hb_preprocess_text_vowel_constraints()
54 buffer->clear_output (); in _hb_preprocess_text_vowel_constraints()
55 unsigned int count = buffer in _hb_preprocess_text_vowel_constraints()
38 _hb_preprocess_text_vowel_constraints(const hb_ot_shape_plan_t *plan HB_UNUSED, hb_buffer_t *buffer, hb_font_t *font HB_UNUSED) _hb_preprocess_text_vowel_constraints() argument
[all...]
H A Dhb-ot-shape-normalize.cc102 output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph) in output_char() argument
105 buffer->cur().glyph_index() = glyph; in output_char()
106 (void) buffer->output_glyph (unichar); in output_char()
107 _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer); in output_char()
111 next_char (hb_buffer_t *buffer, hb_codepoint_t glyph) in next_char() argument
113 buffer->cur().glyph_index() = glyph; in next_char()
114 (void) buffer->next_glyph (); in next_char()
118 skip_char (hb_buffer_t *buffer) in skip_char() argument
120 buffer in skip_char()
128 hb_buffer_t * const buffer = c->buffer; decompose() local
170 hb_buffer_t * const buffer = c->buffer; decompose_current_character() local
226 hb_buffer_t * const buffer = c->buffer; handle_variation_selector_cluster() local
268 hb_buffer_t * const buffer = c->buffer; decompose_multi_char_cluster() local
291 _hb_ot_shape_normalize(const hb_ot_shape_plan_t *plan, hb_buffer_t *buffer, hb_font_t *font) _hb_ot_shape_normalize() argument
[all...]
/third_party/icu/vendor/double-conversion/upstream/test/cctest/
H A Dtest-fixed-dtoa.cc43 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
47 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); in TEST()
48 CHECK_EQ("1", buffer.start()); in TEST()
51 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); in TEST()
52 CHECK_EQ("1", buffer.start()); in TEST()
55 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); in TEST()
56 CHECK_EQ("1", buffer.start()); in TEST()
59 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); in TEST()
60 CHECK_EQ("4294967295", buffer.start()); in TEST()
63 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, in TEST()
[all...]
H A Dtest-bignum-dtoa.cc60 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
64 BignumDtoa(1.0, BIGNUM_DTOA_SHORTEST, 0, buffer, &length, &point); in TEST()
65 CHECK_EQ("1", buffer.start()); in TEST()
68 BignumDtoa(1.0, BIGNUM_DTOA_FIXED, 3, buffer, &length, &point); in TEST()
70 TrimRepresentation(buffer); in TEST()
71 CHECK_EQ("1", buffer.start()); in TEST()
74 BignumDtoa(1.0, BIGNUM_DTOA_PRECISION, 3, buffer, &length, &point); in TEST()
76 TrimRepresentation(buffer); in TEST()
77 CHECK_EQ("1", buffer.start()); in TEST()
80 BignumDtoa(1.5, BIGNUM_DTOA_SHORTEST, 0, buffer, in TEST()
[all...]
H A Dtest-dtoa.cc51 Vector<char> buffer, bool* sign, int* length, in DoubleToAscii()
63 buffer.start(), buffer.length(), in DoubleToAscii()
83 Vector<char> buffer(buffer_container, kBufferSize); in TEST()
88 DoubleToAscii(0.0, SHORTEST, 0, buffer, &sign, &length, &point); in TEST()
89 CHECK_EQ("0", buffer.start()); in TEST()
92 DoubleToAscii(0.0f, SHORTEST_SINGLE, 0, buffer, &sign, &length, &point); in TEST()
93 CHECK_EQ("0", buffer.start()); in TEST()
96 DoubleToAscii(0.0, FIXED, 2, buffer, &sign, &length, &point); in TEST()
98 CHECK_EQ("0", buffer in TEST()
50 DoubleToAscii(double v, DtoaMode test_mode, int requested_digits, Vector<char> buffer, bool* sign, int* length, int* point) DoubleToAscii() argument
[all...]
H A Dtest-bignum.cc54 char buffer[kBufferSize]; in TEST() local
58 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
59 CHECK_EQ("0", buffer); in TEST()
61 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
62 CHECK_EQ("A", buffer); in TEST()
64 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
65 CHECK_EQ("20", buffer); in TEST()
69 CHECK(bignum.ToHexString(buffer, kBufferSize)); in TEST()
70 CHECK_EQ("0", buffer); in TEST()
72 CHECK(bignum.ToHexString(buffer, kBufferSiz in TEST()
123 char buffer[kBufferSize]; TEST() local
161 char buffer[kBufferSize]; TEST() local
260 char buffer[kBufferSize]; TEST() local
354 char buffer[kBufferSize]; TEST() local
454 char buffer[kBufferSize]; TEST() local
555 char buffer[kBufferSize]; TEST() local
656 char buffer[kBufferSize]; TEST() local
986 char buffer[kBufferSize]; TEST() local
1368 char buffer[kBufferSize]; TEST() local
1399 char buffer[kBufferSize]; TEST() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dhmm-tests.c180 struct hmm_buffer *buffer, in hmm_dmirror_cmd()
187 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd()
188 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
199 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
200 buffer->faults = cmd.faults; in hmm_dmirror_cmd()
205 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument
207 if (buffer == NULL) in hmm_buffer_free()
210 if (buffer->ptr) in hmm_buffer_free()
211 munmap(buffer->ptr, buffer in hmm_buffer_free()
178 hmm_dmirror_cmd(int fd, unsigned long request, struct hmm_buffer *buffer, unsigned long npages) hmm_dmirror_cmd() argument
268 hmm_migrate_sys_to_dev(int fd, struct hmm_buffer *buffer, unsigned long npages) hmm_migrate_sys_to_dev() argument
275 hmm_migrate_dev_to_sys(int fd, struct hmm_buffer *buffer, unsigned long npages) hmm_migrate_dev_to_sys() argument
294 struct hmm_buffer *buffer; TEST_F() local
358 struct hmm_buffer *buffer; TEST_F() local
417 struct hmm_buffer *buffer; TEST_F() local
465 struct hmm_buffer *buffer; TEST_F() local
531 struct hmm_buffer *buffer; TEST_F() local
609 struct hmm_buffer *buffer; TEST_F() local
686 struct hmm_buffer *buffer; TEST_F() local
790 struct hmm_buffer *buffer; TEST_F() local
847 struct hmm_buffer *buffer; TEST_F() local
902 struct hmm_buffer *buffer; TEST_F() local
960 struct hmm_buffer *buffer; TEST_F() local
1008 struct hmm_buffer *buffer; TEST_F() local
1064 struct hmm_buffer *buffer; TEST_F() local
1116 struct hmm_buffer *buffer; TEST_F() local
1151 struct hmm_buffer *buffer; TEST_F() local
1243 struct hmm_buffer *buffer; TEST_F() local
1302 struct hmm_buffer *buffer; TEST_F() local
1350 struct hmm_buffer *buffer = p; unmap_buffer() local
1376 struct hmm_buffer *buffer; TEST_F() local
1426 struct hmm_buffer *buffer; TEST_F() local
1468 struct hmm_buffer *buffer; TEST_F() local
1570 struct hmm_buffer *buffer; TEST_F() local
1645 struct hmm_buffer *buffer; TEST_F() local
1720 struct hmm_buffer *buffer; TEST_F() local
1774 struct hmm_buffer *buffer; TEST_F() local
1827 struct hmm_buffer *buffer; TEST_F() local
1900 struct hmm_buffer *buffer; TEST_F() local
1989 struct hmm_buffer *buffer; TEST_F() local
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DWritingPrimitives.cs56 public static void WriteDouble(ref Span<byte> buffer, ref WriterInternalState state, double value) in WriteDouble() argument
58 WriteRawLittleEndian64(ref buffer, ref state, (ulong)BitConverter.DoubleToInt64Bits(value)); in WriteDouble()
64 public static unsafe void WriteFloat(ref Span<byte> buffer, ref WriterInternalState state, float value) in WriteFloat() argument
67 if (buffer.Length - state.position >= length) in WriteFloat()
69 // if there's enough space in the buffer, write the float directly into the buffer in WriteFloat()
70 var floatSpan = buffer.Slice(state.position, length); in WriteFloat()
81 WriteFloatSlowPath(ref buffer, ref state, value); in WriteFloat()
86 private static unsafe void WriteFloatSlowPath(ref Span<byte> buffer, ref WriterInternalState state, float value) in WriteFloatSlowPath() argument
98 WriteRawByte(ref buffer, re in WriteFloatSlowPath()
107 WriteUInt64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) WriteUInt64() argument
115 WriteInt64(ref Span<byte> buffer, ref WriterInternalState state, long value) WriteInt64() argument
123 WriteInt32(ref Span<byte> buffer, ref WriterInternalState state, int value) WriteInt32() argument
139 WriteFixed64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) WriteFixed64() argument
147 WriteFixed32(ref Span<byte> buffer, ref WriterInternalState state, uint value) WriteFixed32() argument
155 WriteBool(ref Span<byte> buffer, ref WriterInternalState state, bool value) WriteBool() argument
164 WriteString(ref Span<byte> buffer, ref WriterInternalState state, string value) WriteString() argument
216 WriteBytes(ref Span<byte> buffer, ref WriterInternalState state, ByteString value) WriteBytes() argument
225 WriteUInt32(ref Span<byte> buffer, ref WriterInternalState state, uint value) WriteUInt32() argument
233 WriteEnum(ref Span<byte> buffer, ref WriterInternalState state, int value) WriteEnum() argument
241 WriteSFixed32(ref Span<byte> buffer, ref WriterInternalState state, int value) WriteSFixed32() argument
249 WriteSFixed64(ref Span<byte> buffer, ref WriterInternalState state, long value) WriteSFixed64() argument
257 WriteSInt32(ref Span<byte> buffer, ref WriterInternalState state, int value) WriteSInt32() argument
265 WriteSInt64(ref Span<byte> buffer, ref WriterInternalState state, long value) WriteSInt64() argument
276 WriteLength(ref Span<byte> buffer, ref WriterInternalState state, int length) WriteLength() argument
289 WriteRawVarint32(ref Span<byte> buffer, ref WriterInternalState state, uint value) WriteRawVarint32() argument
322 WriteRawVarint64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) WriteRawVarint64() argument
355 WriteRawLittleEndian32(ref Span<byte> buffer, ref WriterInternalState state, uint value) WriteRawLittleEndian32() argument
370 WriteRawLittleEndian32SlowPath(ref Span<byte> buffer, ref WriterInternalState state, uint value) WriteRawLittleEndian32SlowPath() argument
378 WriteRawLittleEndian64(ref Span<byte> buffer, ref WriterInternalState state, ulong value) WriteRawLittleEndian64() argument
393 WriteRawLittleEndian64SlowPath(ref Span<byte> buffer, ref WriterInternalState state, ulong value) WriteRawLittleEndian64SlowPath() argument
405 WriteRawByte(ref Span<byte> buffer, ref WriterInternalState state, byte value) WriteRawByte() argument
418 WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, byte[] value) WriteRawBytes() argument
426 WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, byte[] value, int offset, int length) WriteRawBytes() argument
434 WriteRawBytes(ref Span<byte> buffer, ref WriterInternalState state, ReadOnlySpan<byte> value) WriteRawBytes() argument
472 WriteTag(ref Span<byte> buffer, ref WriterInternalState state, int fieldNumber, WireFormat.WireType type) WriteTag() argument
480 WriteTag(ref Span<byte> buffer, ref WriterInternalState state, uint tag) WriteTag() argument
488 WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1) WriteRawTag() argument
496 WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2) WriteRawTag() argument
510 WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2) WriteRawTagSlowPath() argument
519 WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3) WriteRawTag() argument
534 WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3) WriteRawTagSlowPath() argument
544 WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3, byte b4) WriteRawTag() argument
561 WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3, byte b4) WriteRawTagSlowPath() argument
572 WriteRawTag(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3, byte b4, byte b5) WriteRawTag() argument
589 WriteRawTagSlowPath(ref Span<byte> buffer, ref WriterInternalState state, byte b1, byte b2, byte b3, byte b4, byte b5) WriteRawTagSlowPath() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dsclp_rw.c42 * Setup a sclp write buffer. Gets a page as input (4K) and returns
44 * end of the input page. This reduces the buffer space by a few
50 struct sclp_buffer *buffer; in sclp_make_buffer() local
58 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer()
59 buffer->sccb = sccb; in sclp_make_buffer()
60 buffer->retry_count = 0; in sclp_make_buffer()
61 buffer->messages = 0; in sclp_make_buffer()
62 buffer->char_sum = 0; in sclp_make_buffer()
63 buffer->current_line = NULL; in sclp_make_buffer()
64 buffer in sclp_make_buffer()
80 sclp_unmake_buffer(struct sclp_buffer *buffer) sclp_unmake_buffer() argument
90 sclp_initialize_mto(struct sclp_buffer *buffer, int max_len) sclp_initialize_mto() argument
140 sclp_finalize_mto(struct sclp_buffer *buffer) sclp_finalize_mto() argument
177 sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) sclp_write() argument
313 sclp_buffer_space(struct sclp_buffer *buffer) sclp_buffer_space() argument
329 sclp_chars_in_buffer(struct sclp_buffer *buffer) sclp_chars_in_buffer() argument
367 struct sclp_buffer *buffer; sclp_writedata_callback() local
432 sclp_emit_buffer(struct sclp_buffer *buffer, void (*callback)(struct sclp_buffer *, int)) sclp_emit_buffer() argument
[all...]
/kernel/linux/linux-6.6/drivers/s390/char/
H A Dsclp_rw.c35 * Setup a sclp write buffer. Gets a page as input (4K) and returns
37 * end of the input page. This reduces the buffer space by a few
43 struct sclp_buffer *buffer; in sclp_make_buffer() local
51 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer()
52 buffer->sccb = sccb; in sclp_make_buffer()
53 buffer->retry_count = 0; in sclp_make_buffer()
54 buffer->messages = 0; in sclp_make_buffer()
55 buffer->char_sum = 0; in sclp_make_buffer()
56 buffer->current_line = NULL; in sclp_make_buffer()
57 buffer in sclp_make_buffer()
73 sclp_unmake_buffer(struct sclp_buffer *buffer) sclp_unmake_buffer() argument
83 sclp_initialize_mto(struct sclp_buffer *buffer, int max_len) sclp_initialize_mto() argument
133 sclp_finalize_mto(struct sclp_buffer *buffer) sclp_finalize_mto() argument
170 sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) sclp_write() argument
306 sclp_buffer_space(struct sclp_buffer *buffer) sclp_buffer_space() argument
322 sclp_chars_in_buffer(struct sclp_buffer *buffer) sclp_chars_in_buffer() argument
360 struct sclp_buffer *buffer; sclp_writedata_callback() local
425 sclp_emit_buffer(struct sclp_buffer *buffer, void (*callback)(struct sclp_buffer *, int)) sclp_emit_buffer() argument
[all...]
/third_party/mbedtls/programs/psa/
H A Dpsa_constant_names_generated.c90 static int psa_snprint_key_type(char *buffer, size_t buffer_size, in psa_snprint_key_type() argument
95 case PSA_KEY_TYPE_AES: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_AES", 16); break; in psa_snprint_key_type()
96 case PSA_KEY_TYPE_ARIA: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_ARIA", 17); break; in psa_snprint_key_type()
97 case PSA_KEY_TYPE_CAMELLIA: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CAMELLIA", 21); break; in psa_snprint_key_type()
98 case PSA_KEY_TYPE_CATEGORY_FLAG_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGORY_FLAG_PAIR", 31); break; in psa_snprint_key_type()
99 case PSA_KEY_TYPE_CATEGORY_KEY_PAIR: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGORY_KEY_PAIR", 30); break; in psa_snprint_key_type()
100 case PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGORY_PUBLIC_KEY", 32); break; in psa_snprint_key_type()
101 case PSA_KEY_TYPE_CATEGORY_RAW: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGORY_RAW", 25); break; in psa_snprint_key_type()
102 case PSA_KEY_TYPE_CATEGORY_SYMMETRIC: append(&buffer, buffer_size, &required_size, "PSA_KEY_TYPE_CATEGORY_SYMMETRIC", 31); break; in psa_snprint_key_type()
103 case PSA_KEY_TYPE_CHACHA20: append(&buffer, buffer_siz in psa_snprint_key_type()
148 psa_snprint_algorithm(char *buffer, size_t buffer_size, psa_algorithm_t alg) psa_snprint_algorithm() argument
379 psa_snprint_key_usage(char *buffer, size_t buffer_size, psa_key_usage_t usage) psa_snprint_key_usage() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_buffer.c25 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
27 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
29 BUG_ON(buffer->user_size >= buffer->size); in OUT()
31 vaddr[buffer->user_size / 4] = data; in OUT()
32 buffer->user_size += 4; in OUT()
35 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
43 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STAT in CMD_LOAD_STATE()
49 CMD_END(struct etnaviv_cmdbuf *buffer) CMD_END() argument
56 CMD_WAIT(struct etnaviv_cmdbuf *buffer) CMD_WAIT() argument
63 CMD_LINK(struct etnaviv_cmdbuf *buffer, u16 prefetch, u32 address) CMD_LINK() argument
73 CMD_STALL(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_STALL() argument
82 CMD_SEM(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_SEM() argument
89 etnaviv_cmd_select_pipe(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, u8 pipe) etnaviv_cmd_select_pipe() argument
136 etnaviv_buffer_replace_wait(struct etnaviv_cmdbuf *buffer, unsigned int wl_offset, u32 cmd, u32 arg) etnaviv_buffer_replace_wait() argument
151 etnaviv_buffer_reserve(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, unsigned int cmd_dwords) etnaviv_buffer_reserve() argument
164 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_init() local
181 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_mmuv2() local
216 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_pta() local
234 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_end() local
302 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_sync_point_queue() local
343 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_queue() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_buffer.c25 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument
27 u32 *vaddr = (u32 *)buffer->vaddr; in OUT()
29 BUG_ON(buffer->user_size >= buffer->size); in OUT()
31 vaddr[buffer->user_size / 4] = data; in OUT()
32 buffer->user_size += 4; in OUT()
35 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument
40 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE()
43 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STAT in CMD_LOAD_STATE()
49 CMD_END(struct etnaviv_cmdbuf *buffer) CMD_END() argument
56 CMD_WAIT(struct etnaviv_cmdbuf *buffer, unsigned int waitcycles) CMD_WAIT() argument
64 CMD_LINK(struct etnaviv_cmdbuf *buffer, u16 prefetch, u32 address) CMD_LINK() argument
74 CMD_STALL(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_STALL() argument
83 CMD_SEM(struct etnaviv_cmdbuf *buffer, u32 from, u32 to) CMD_SEM() argument
90 etnaviv_cmd_select_pipe(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, u8 pipe) etnaviv_cmd_select_pipe() argument
137 etnaviv_buffer_replace_wait(struct etnaviv_cmdbuf *buffer, unsigned int wl_offset, u32 cmd, u32 arg) etnaviv_buffer_replace_wait() argument
152 etnaviv_buffer_reserve(struct etnaviv_gpu *gpu, struct etnaviv_cmdbuf *buffer, unsigned int cmd_dwords) etnaviv_buffer_reserve() argument
165 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_init() local
182 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_mmuv2() local
217 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_config_pta() local
235 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_end() local
303 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_sync_point_queue() local
344 struct etnaviv_cmdbuf *buffer = &gpu->buffer; etnaviv_buffer_queue() local
[all...]
/kernel/linux/linux-5.10/sound/pci/ca0106/
H A Dca0106_proc.c15 * Use separate card based DMA buffer for periods table list.
84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
95 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
100 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
105 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
108 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
111 snd_iprintf(buffer, "3200 in snd_ca0106_proc_dump_iec958()
258 snd_ca0106_proc_iec958(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_iec958() argument
280 snd_ca0106_proc_reg_write32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write32() argument
298 snd_ca0106_proc_reg_read32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read32() argument
314 snd_ca0106_proc_reg_read16(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read16() argument
330 snd_ca0106_proc_reg_read8(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read8() argument
346 snd_ca0106_proc_reg_read1(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read1() argument
364 snd_ca0106_proc_reg_read2(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read2() argument
382 snd_ca0106_proc_reg_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write() argument
396 snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_i2c_write() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/ca0106/
H A Dca0106_proc.c15 * Use separate card based DMA buffer for periods table list.
84 static void snd_ca0106_proc_dump_iec958( struct snd_info_buffer *buffer, u32 value) in snd_ca0106_proc_dump_iec958() argument
95 snd_iprintf(buffer, "Mode: consumer\n"); in snd_ca0106_proc_dump_iec958()
96 snd_iprintf(buffer, "Data: "); in snd_ca0106_proc_dump_iec958()
98 snd_iprintf(buffer, "audio\n"); in snd_ca0106_proc_dump_iec958()
100 snd_iprintf(buffer, "non-audio\n"); in snd_ca0106_proc_dump_iec958()
102 snd_iprintf(buffer, "Rate: "); in snd_ca0106_proc_dump_iec958()
105 snd_iprintf(buffer, "44100 Hz\n"); in snd_ca0106_proc_dump_iec958()
108 snd_iprintf(buffer, "48000 Hz\n"); in snd_ca0106_proc_dump_iec958()
111 snd_iprintf(buffer, "3200 in snd_ca0106_proc_dump_iec958()
258 snd_ca0106_proc_iec958(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_iec958() argument
280 snd_ca0106_proc_reg_write32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write32() argument
298 snd_ca0106_proc_reg_read32(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read32() argument
314 snd_ca0106_proc_reg_read16(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read16() argument
330 snd_ca0106_proc_reg_read8(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read8() argument
346 snd_ca0106_proc_reg_read1(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read1() argument
364 snd_ca0106_proc_reg_read2(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_read2() argument
382 snd_ca0106_proc_reg_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_reg_write() argument
396 snd_ca0106_proc_i2c_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_ca0106_proc_i2c_write() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dhmm-tests.c122 struct hmm_buffer *buffer, in hmm_dmirror_cmd()
129 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd()
130 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
141 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
142 buffer->faults = cmd.faults; in hmm_dmirror_cmd()
147 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument
149 if (buffer == NULL) in hmm_buffer_free()
152 if (buffer->ptr) in hmm_buffer_free()
153 munmap(buffer->ptr, buffer in hmm_buffer_free()
120 hmm_dmirror_cmd(int fd, unsigned long request, struct hmm_buffer *buffer, unsigned long npages) hmm_dmirror_cmd() argument
222 struct hmm_buffer *buffer; TEST_F() local
286 struct hmm_buffer *buffer; TEST_F() local
345 struct hmm_buffer *buffer; TEST_F() local
393 struct hmm_buffer *buffer; TEST_F() local
459 struct hmm_buffer *buffer; TEST_F() local
537 struct hmm_buffer *buffer; TEST_F() local
614 struct hmm_buffer *buffer; TEST_F() local
670 struct hmm_buffer *buffer; TEST_F() local
729 struct hmm_buffer *buffer; TEST_F() local
784 struct hmm_buffer *buffer; TEST_F() local
842 struct hmm_buffer *buffer; TEST_F() local
890 struct hmm_buffer *buffer; TEST_F() local
949 struct hmm_buffer *buffer; TEST_F() local
984 struct hmm_buffer *buffer; TEST_F() local
1072 struct hmm_buffer *buffer; TEST_F() local
1126 struct hmm_buffer *buffer; TEST_F() local
1174 struct hmm_buffer *buffer = p; unmap_buffer() local
1200 struct hmm_buffer *buffer; TEST_F() local
1250 struct hmm_buffer *buffer; TEST_F() local
1292 struct hmm_buffer *buffer; TEST_F() local
1387 struct hmm_buffer *buffer; TEST_F() local
1462 struct hmm_buffer *buffer; TEST_F() local
[all...]
/kernel/linux/linux-6.6/sound/pci/hda/
H A Dhda_proc.c47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
58 snd_iprintf(buffer, in print_nid_array()
63 snd_iprintf(buffer, in print_nid_array()
74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
145 snd_iprintf(buffer, " ["); in print_amp_vals()
161 print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_rates() argument
177 print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_bits() argument
186 print_pcm_formats(struct snd_info_buffer *buffer, unsigned int streams) print_pcm_formats() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument
598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_dpmst_connections(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dev_num) print_dpmst_connections() argument
714 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
748 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
774 print_codec_info(struct snd_info_entry *entry, struct snd_info_buffer *buffer) print_codec_info() argument
[all...]
/third_party/backends/lib/
H A Dsnprintf.c12 snprintf( char *buffer, int len, const char *format,...)
13 plp_unsafe_snprintf( char *buffer, int len, const char *format,...)
27 against this, all printing was done via a buffer, generous enough
32 SPRINTFing to a buffer on a stack... The rest, of course, is
33 well known, as buffer overruns in the stack are a common way to
539 static char * plp_Errormsg ( int err, char *buffer );
540 static void dopr( int visible_control, char **buffer, int *left,
542 static void fmtstr( int visible_control, char **buffer, int *left,
544 static void fmtnum( char **buffer, int *left,
548 static void fmtquad( char **buffer, in
566 char *buffer; plp_vsnprintf() local
592 char *buffer; plp_unsafe_vsnprintf() local
658 dopr( int visible_control, char **buffer, int *left, const char *format, va_list args ) dopr() argument
801 fmtstr( int visible_control, char **buffer, int *left, char *value, int ljust, int len, int zpad, int precision ) fmtstr() argument
841 fmtnum( char **buffer, int *left, union value *value, int base, int dosign, int ljust, int len, int zpad, int precision ) fmtnum() argument
907 fmtquad( char **buffer, int *left, union value *value, int base, int dosign, int ljust, int len, int zpad, int precision ) fmtquad() argument
979 fmtdouble( char **buffer, int *left, int fmt, double value, int ljust, int len, int zpad, int precision ) fmtdouble() argument
1010 dostr( char **buffer, int *left, char *str ) dostr() argument
1015 dopr_outch( char **buffer, int *left, int c ) dopr_outch() argument
1075 char buffer[128]; main() local
[all...]
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_proc.c47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument
58 snd_iprintf(buffer, in print_nid_array()
63 snd_iprintf(buffer, in print_nid_array()
74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument
84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms()
93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument
100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps()
103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps()
133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument
145 snd_iprintf(buffer, " ["); in print_amp_vals()
161 print_pcm_rates(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_rates() argument
177 print_pcm_bits(struct snd_info_buffer *buffer, unsigned int pcm) print_pcm_bits() argument
186 print_pcm_formats(struct snd_info_buffer *buffer, unsigned int streams) print_pcm_formats() argument
199 print_pcm_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_pcm_caps() argument
304 print_pin_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int *supports_vref) print_pin_caps() argument
400 print_pin_ctls(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int supports_vref) print_pin_ctls() argument
438 print_vol_knob(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_vol_knob() argument
450 print_audio_io(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type) print_audio_io() argument
468 print_digital_conv(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_digital_conv() argument
512 print_power_state(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_power_state() argument
553 print_unsol_cap(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_unsol_cap() argument
573 print_proc_caps(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_proc_caps() argument
598 print_conn_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, unsigned int wid_type, hda_nid_t *conn, int conn_len) print_conn_list() argument
638 print_gpio(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_gpio() argument
682 print_device_list(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid) print_device_list() argument
712 print_codec_core_info(struct hdac_device *codec, struct snd_info_buffer *buffer) print_codec_core_info() argument
738 print_codec_info(struct snd_info_entry *entry, struct snd_info_buffer *buffer) print_codec_info() argument
[all...]
/kernel/linux/linux-5.10/fs/configfs/
H A Dfile.c58 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
63 if (!buffer->page) in fill_read_buffer()
64 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
65 if (!buffer->page) in fill_read_buffer()
70 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
77 buffer->needs_read_fill = 0; in fill_read_buffer()
78 buffer->count = count; in fill_read_buffer()
85 * @buf: buffer t
104 struct configfs_buffer *buffer = file->private_data; configfs_read_file() local
147 struct configfs_buffer *buffer = file->private_data; configfs_read_bin_file() local
224 fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count) fill_write_buffer() argument
244 flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count) flush_write_buffer() argument
277 struct configfs_buffer *buffer = file->private_data; configfs_write_file() local
307 struct configfs_buffer *buffer = file->private_data; configfs_write_bin_file() local
361 struct configfs_buffer *buffer; __configfs_open_file() local
447 struct configfs_buffer *buffer = filp->private_data; configfs_release() local
469 struct configfs_buffer *buffer = file->private_data; configfs_release_bin_file() local
[all...]
/foundation/multimedia/media_foundation/services/media_monitor/buffer/src/
H A Ddump_buffer_manager.cpp33 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(); in DumpBufferNew() local
34 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "new AVBuffer failed"); in DumpBufferNew()
35 struct DumpBuffer *buf = new (std::nothrow) DumpBuffer(buffer); in DumpBufferNew()
36 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "failed to new DumpBuffer"); in DumpBufferNew()
47 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(avBufferConfig); in DumpBufferCreate() local
48 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "create AVBuffer failed"); in DumpBufferCreate()
49 FALSE_RETURN_V_MSG_E(buffer->memory_ != nullptr, nullptr, "memory is nullptr"); in DumpBufferCreate()
50 FALSE_RETURN_V_MSG_E(buffer->memory_->GetAddr() != nullptr, nullptr, "memory's addr is nullptr"); in DumpBufferCreate()
52 struct DumpBuffer *buf = new (std::nothrow) DumpBuffer(buffer); in DumpBufferCreate()
53 FALSE_RETURN_V_MSG_E(buffer ! in DumpBufferCreate()
57 DumpBufferDestroy(struct DumpBuffer *buffer) DumpBufferDestroy() argument
64 DumpBufferGetAddr(DumpBuffer *buffer) DumpBufferGetAddr() argument
72 DumpBufferGetCapacity(DumpBuffer *buffer) DumpBufferGetCapacity() argument
80 DumpBufferGetSize(DumpBuffer *buffer) DumpBufferGetSize() argument
88 DumpBufferSetSize(DumpBuffer *buffer, int32_t size) DumpBufferSetSize() argument
97 DumpBufferWrite(DumpBuffer *buffer, const uint8_t *in, int32_t writeSize) DumpBufferWrite() argument
105 DumpBufferGetUniqueId(DumpBuffer *buffer) DumpBufferGetUniqueId() argument
113 DumpBufferReadFromParcel(DumpBuffer *buffer, void *parcel) DumpBufferReadFromParcel() argument
124 DumpBufferWriteToParcel(DumpBuffer *buffer, void *parcel) DumpBufferWriteToParcel() argument
[all...]
/kernel/linux/linux-6.6/fs/configfs/
H A Dfile.c56 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument
61 if (!buffer->page) in fill_read_buffer()
62 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer()
63 if (!buffer->page) in fill_read_buffer()
68 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer()
75 buffer->needs_read_fill = 0; in fill_read_buffer()
76 buffer->count = count; in fill_read_buffer()
83 struct configfs_buffer *buffer in configfs_read_iter() local
110 struct configfs_buffer *buffer = file->private_data; configfs_bin_read_iter() local
181 fill_write_buffer(struct configfs_buffer *buffer, struct iov_iter *from) fill_write_buffer() argument
200 flush_write_buffer(struct file *file, struct configfs_buffer *buffer, size_t count) flush_write_buffer() argument
223 struct configfs_buffer *buffer = file->private_data; configfs_write_iter() local
240 struct configfs_buffer *buffer = file->private_data; configfs_bin_write_iter() local
295 struct configfs_buffer *buffer; __configfs_open_file() local
381 struct configfs_buffer *buffer = filp->private_data; configfs_release() local
403 struct configfs_buffer *buffer = file->private_data; configfs_release_bin_file() local
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dring_buffer.h22 * enum ring_buffer_type - internal ring buffer types
64 u64 ring_buffer_event_time_stamp(struct trace_buffer *buffer,
71 * will try to remove the event from the ring buffer completely
77 * ring_buffer_discard_commit(buffer, event);
79 * ring_buffer_unlock_commit(buffer, event);
81 void ring_buffer_discard_commit(struct trace_buffer *buffer,
85 * size is in bytes for each per CPU buffer.
91 * Because the ring buffer is generic, if other users of the ring buffer get
93 * ring buffer'
[all...]
/foundation/multimedia/media_foundation/src/capi/
H A Dnative_avbuffer.cpp36 std::shared_ptr<AVBuffer> buffer = AVBuffer::CreateAVBuffer(allocator, capacity); in OH_AVBuffer_Create() local
37 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "create OH_AVBuffer failed"); in OH_AVBuffer_Create()
38 FALSE_RETURN_V_MSG_E(buffer->memory_ != nullptr, nullptr, "memory is nullptr"); in OH_AVBuffer_Create()
39 FALSE_RETURN_V_MSG_E(buffer->memory_->GetAddr() != nullptr, nullptr, "memory's addr is nullptr"); in OH_AVBuffer_Create()
41 struct OH_AVBuffer *buf = new (std::nothrow) OH_AVBuffer(buffer); in OH_AVBuffer_Create()
42 FALSE_RETURN_V_MSG_E(buffer != nullptr, nullptr, "failed to new OH_AVBuffer"); in OH_AVBuffer_Create()
47 OH_AVErrCode OH_AVBuffer_Destroy(struct OH_AVBuffer *buffer) in OH_AVBuffer_Destroy() argument
49 FALSE_RETURN_V_MSG_E(buffer != nullptr, AV_ERR_INVALID_VAL, "input buffer is nullptr!"); in OH_AVBuffer_Destroy()
50 FALSE_RETURN_V_MSG_E(buffer in OH_AVBuffer_Destroy()
56 OH_AVBuffer_GetBufferAttr(OH_AVBuffer *buffer, OH_AVCodecBufferAttr *attr) OH_AVBuffer_GetBufferAttr() argument
74 OH_AVBuffer_SetBufferAttr(OH_AVBuffer *buffer, const OH_AVCodecBufferAttr *attr) OH_AVBuffer_SetBufferAttr() argument
93 OH_AVBuffer_GetParameter(OH_AVBuffer *buffer) OH_AVBuffer_GetParameter() argument
109 OH_AVBuffer_SetParameter(OH_AVBuffer *buffer, const OH_AVFormat *format) OH_AVBuffer_SetParameter() argument
125 OH_AVBuffer_GetAddr(OH_AVBuffer *buffer) OH_AVBuffer_GetAddr() argument
134 OH_AVBuffer_GetCapacity(OH_AVBuffer *buffer) OH_AVBuffer_GetCapacity() argument
143 OH_AVBuffer_GetNativeBuffer(OH_AVBuffer *buffer) OH_AVBuffer_GetNativeBuffer() argument
[all...]

Completed in 13 milliseconds

12345678910>>...597