Home
last modified time | relevance | path

Searched refs:buffer (Results 1151 - 1175 of 16152) sorted by relevance

1...<<41424344454647484950>>...647

/kernel/linux/linux-6.6/drivers/acpi/x86/
H A Dapple.c43 if (!props->buffer.length) in acpi_extract_apple_properties()
46 if (props->buffer.pointer[0] != 3) { in acpi_extract_apple_properties()
49 props->buffer.length, props->buffer.pointer); in acpi_extract_apple_properties()
81 newsize += val->buffer.length; in acpi_extract_apple_properties()
132 newprops[v].buffer.length = val->buffer.length; in acpi_extract_apple_properties()
133 newprops[v].buffer.pointer = free_space; in acpi_extract_apple_properties()
134 memcpy(free_space, val->buffer.pointer, in acpi_extract_apple_properties()
135 val->buffer in acpi_extract_apple_properties()
[all...]
/third_party/elfutils/libelf/
H A Delf_getdata_rawchunk.c134 void *buffer; in elf_getdata_rawchunk() local
139 buffer = rawchunk; in elf_getdata_rawchunk()
145 buffer = malloc (size); in elf_getdata_rawchunk()
146 if (unlikely (buffer == NULL)) in elf_getdata_rawchunk()
151 memcpy (buffer, rawchunk, size); in elf_getdata_rawchunk()
157 buffer = rawchunk; in elf_getdata_rawchunk()
160 buffer = malloc (size); in elf_getdata_rawchunk()
161 if (unlikely (buffer == NULL)) in elf_getdata_rawchunk()
167 (*__elf_xfctstom[elf->class - 1][type])(buffer, rawchunk, size, 0); in elf_getdata_rawchunk()
170 /* Allocate the dummy container to point at this buffer in elf_getdata_rawchunk()
[all...]
/third_party/curl/lib/
H A Dcurl_trc.c119 char buffer[MAXINFO + 2]; in Curl_infof() local
121 len = mvsnprintf(buffer, MAXINFO, fmt, ap); in Curl_infof()
123 buffer[len++] = '\n'; in Curl_infof()
124 buffer[len] = '\0'; in Curl_infof()
125 Curl_debug(data, CURLINFO_TEXT, buffer, len); in Curl_infof()
136 char buffer[MAXINFO + 2]; in Curl_trc_cf_infof() local
137 len = msnprintf(buffer, MAXINFO, "[%s] ", cf->cft->name); in Curl_trc_cf_infof()
139 len += mvsnprintf(buffer + len, MAXINFO - len, fmt, ap); in Curl_trc_cf_infof()
141 buffer[len++] = '\n'; in Curl_trc_cf_infof()
142 buffer[le in Curl_trc_cf_infof()
[all...]
/third_party/astc-encoder/Source/
H A Dastcenc_diagnostic_trace.cpp80 char buffer[bufsz]; in TraceNode() local
84 vsnprintf (buffer, bufsz, format, args); in TraceNode()
88 buffer[bufsz - 1] = 0; in TraceNode()
124 out << out_indents << "[ \"node\", \"" << buffer << "\",\n"; in TraceNode() local
187 char buffer[bufsz]; in trace_add_data() local
191 vsnprintf (buffer, bufsz, format, args); in trace_add_data()
195 buffer[bufsz - 1] = 0; in trace_add_data()
197 std::string value = "\"" + std::string(buffer) + "\""; in trace_add_data()
221 char buffer[256]; in trace_add_data() local
222 sprintf(buffer, " in trace_add_data()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dbufferobj.h45 struct pipe_resource *buffer = obj->buffer; in _mesa_get_bufferobj_reference() local
47 if (unlikely(!buffer)) in _mesa_get_bufferobj_reference()
54 p_atomic_inc(&buffer->reference.count); in _mesa_get_bufferobj_reference()
55 return buffer; in _mesa_get_bufferobj_reference()
63 p_atomic_add(&buffer->reference.count, obj->private_refcount); in _mesa_get_bufferobj_reference()
66 /* Return a buffer reference while decrementing the private refcount. */ in _mesa_get_bufferobj_reference()
68 return buffer; in _mesa_get_bufferobj_reference()
109 /** Is the given buffer object currently mapped by the GL user? */
118 * Check whether the given buffer objec
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DParsingPrimitivesMessages.cs47 public static void SkipLastField(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state) in SkipLastField() argument
56 SkipGroup(ref buffer, ref state, state.lastTag); in SkipLastField()
62 ParsingPrimitives.ParseRawLittleEndian32(ref buffer, ref state); in SkipLastField()
65 ParsingPrimitives.ParseRawLittleEndian64(ref buffer, ref state); in SkipLastField()
68 var length = ParsingPrimitives.ParseLength(ref buffer, ref state); in SkipLastField()
69 ParsingPrimitives.SkipRawBytes(ref buffer, ref state, length); in SkipLastField()
72 ParsingPrimitives.ParseRawVarint32(ref buffer, ref state); in SkipLastField()
80 public static void SkipGroup(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, uint startGroupTag) in SkipGroup() argument
92 tag = ParsingPrimitives.ParseTag(ref buffer, ref state); in SkipGroup()
103 SkipLastField(ref buffer, re in SkipGroup()
[all...]
H A DSegmentedBufferHelper.cs43 /// Parsing from the buffer is a loop of reading from current buffer / refreshing the buffer once done.
91 public bool RefillBuffer(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillBuffer()
95 return RefillFromCodedInputStream(ref buffer, ref state, mustSucceed); in RefillBuffer()
99 return RefillFromReadOnlySequence(ref buffer, ref state, mustSucceed); in RefillBuffer()
161 public static bool IsAtEnd(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state) in IsAtEnd()
163 return state.bufferPos == state.bufferSize && !state.segmentedBufferHelper.RefillBuffer(ref buffer, ref state, false); in IsAtEnd()
166 private bool RefillFromReadOnlySequence(ref ReadOnlySpan<byte> buffer, ref ParserInternalState state, bool mustSucceed) in RefillFromReadOnlySequence()
189 buffer in RefillFromReadOnlySequence()
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-aat-layout-trak-table.hh170 hb_buffer_t *buffer = c->buffer; in apply() local
171 if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction)) in apply()
177 foreach_grapheme (buffer, start, end) in apply()
179 if (!(buffer->info[start].mask & trak_mask)) continue; in apply()
180 buffer->pos[start].x_advance += advance_to_add; in apply()
181 buffer->pos[start].x_offset += offset_to_add; in apply()
190 foreach_grapheme (buffer, start, end) in apply()
192 if (!(buffer->info[start].mask & trak_mask)) continue; in apply()
193 buffer in apply()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/
H A Dseed_material.cc99 reinterpret_cast<UCHAR*>(values.data()), // buffer in ReadSeedMaterialFromOSEntropyImpl()
110 auto buffer = reinterpret_cast<uint8_t*>(values.data());
113 uint8_t* output_ptr = buffer;
130 auto buffer = reinterpret_cast<uint8_t*>(values.data());
132 zx_cprng_draw(buffer, buffer_size);
143 auto buffer = reinterpret_cast<uint8_t*>(values.data());
148 int result = getentropy(buffer, to_read);
154 ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, to_read);
155 buffer += to_read;
166 auto buffer
[all...]
/foundation/multimedia/av_codec/test/nativedemo/e2e_demo/
H A Davcodec_e2e_demo.cpp67 static void OnDecInputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnDecInputBufferAvailable() argument
70 OH_AVDemuxer_ReadSampleBuffer(demo->demuxer, demo->videoTrackID, buffer); in OnDecInputBufferAvailable()
71 uint8_t *data = OH_AVBuffer_GetAddr(buffer); in OnDecInputBufferAvailable()
73 OH_AVBuffer_GetBufferAttr(buffer, &attr); in OnDecInputBufferAvailable()
81 static void OnDecOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnDecOutputBufferAvailable() argument
85 OH_AVBuffer_GetBufferAttr(buffer, &attr); in OnDecOutputBufferAvailable()
98 static void OnEncInputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnEncInputBufferAvailable() argument
102 (void)buffer; in OnEncInputBufferAvailable()
106 static void OnEncOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnEncOutputBufferAvailable() argument
110 OH_AVBuffer_GetBufferAttr(buffer, in OnEncOutputBufferAvailable()
218 OH_AVBuffer *buffer = nullptr; WriteAudioTrack() local
[all...]
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dmtp_packet_tools.h75 static uint8_t GetUInt8(const std::vector<uint8_t> &buffer, size_t &offset);
76 static uint16_t GetUInt16(const std::vector<uint8_t> &buffer, size_t &offset);
77 static uint32_t GetUInt32(const std::vector<uint8_t> &buffer, size_t &offset);
78 static std::shared_ptr<UInt16List> GetAUInt16(const std::vector<uint8_t> &buffer, size_t &offset);
79 static std::shared_ptr<UInt32List> GetAUInt32(const std::vector<uint8_t> &buffer, size_t &offset);
80 static bool GetUInt8(const std::vector<uint8_t> &buffer, size_t &offset, uint8_t &value);
81 static bool GetUInt16(const std::vector<uint8_t> &buffer, size_t &offset, uint16_t &value);
82 static bool GetUInt32(const std::vector<uint8_t> &buffer, size_t &offset, uint32_t &value);
83 static bool GetUInt64(const std::vector<uint8_t> &buffer, size_t &offset, uint64_t &value);
84 static bool GetUInt128(const std::vector<uint8_t> &buffer, size_
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dexfield.c111 void *buffer; in acpi_ex_read_data_from_field() local
151 * Allocate a buffer for the contents of the field. in acpi_ex_read_data_from_field()
158 * However, all buffer fields created by create_field operator needs to in acpi_ex_read_data_from_field()
159 * remain as a buffer to match other AML interpreter implementations. in acpi_ex_read_data_from_field()
176 buffer = buffer_desc->buffer.pointer; in acpi_ex_read_data_from_field()
186 buffer = &buffer_desc->integer.value; in acpi_ex_read_data_from_field()
195 status = acpi_ex_read_gpio(obj_desc, buffer); in acpi_ex_read_data_from_field()
208 memcpy(buffer, in acpi_ex_read_data_from_field()
220 obj_desc, obj_desc->common.type, buffer, in acpi_ex_read_data_from_field()
269 void *buffer; acpi_ex_write_data_to_field() local
[all...]
/kernel/linux/linux-5.10/sound/firewire/dice/
H A Ddice-transaction.c166 __be64 *buffer; in register_notification_address() local
172 buffer = kmalloc(2 * 8, GFP_KERNEL); in register_notification_address()
173 if (!buffer) in register_notification_address()
177 buffer[0] = cpu_to_be64(OWNER_NO_OWNER); in register_notification_address()
178 buffer[1] = cpu_to_be64( in register_notification_address()
188 buffer, 2 * 8, in register_notification_address()
193 if (buffer[0] == cpu_to_be64(OWNER_NO_OWNER)) in register_notification_address()
196 if (buffer[0] == buffer[1]) in register_notification_address()
209 kfree(buffer); in register_notification_address()
220 __be64 *buffer; unregister_notification_address() local
[all...]
/kernel/linux/linux-5.10/fs/
H A Dd_path.c11 static int prepend(char **buffer, int *buflen, const char *str, int namelen) in prepend() argument
16 *buffer -= namelen; in prepend()
17 memcpy(*buffer, str, namelen); in prepend()
22 * prepend_name - prepend a pathname in front of current buffer pointer
23 * @buffer: buffer pointer
24 * @buflen: allocated length of the buffer
33 * retry it again when a d_move() does happen. So any garbage in the buffer
38 static int prepend_name(char **buffer, int *buflen, const struct qstr *name) in prepend_name() argument
47 p = *buffer in prepend_name()
75 prepend_path(const struct path *path, const struct path *root, char **buffer, int *buflen) prepend_path() argument
231 prepend_unreachable(char **buffer, int *buflen) prepend_unreachable() argument
297 dynamic_dname(struct dentry *dentry, char *buffer, int buflen, const char *fmt, ...) dynamic_dname() argument
315 simple_dname(struct dentry *dentry, char *buffer, int buflen) simple_dname() argument
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dexfield.c111 void *buffer; in acpi_ex_read_data_from_field() local
155 * Allocate a buffer for the contents of the field. in acpi_ex_read_data_from_field()
162 * However, all buffer fields created by create_field operator needs to in acpi_ex_read_data_from_field()
163 * remain as a buffer to match other AML interpreter implementations. in acpi_ex_read_data_from_field()
180 buffer = buffer_desc->buffer.pointer; in acpi_ex_read_data_from_field()
190 buffer = &buffer_desc->integer.value; in acpi_ex_read_data_from_field()
199 status = acpi_ex_read_gpio(obj_desc, buffer); in acpi_ex_read_data_from_field()
212 memcpy(buffer, in acpi_ex_read_data_from_field()
224 obj_desc, obj_desc->common.type, buffer, in acpi_ex_read_data_from_field()
273 void *buffer; acpi_ex_write_data_to_field() local
[all...]
/kernel/linux/linux-6.6/sound/firewire/dice/
H A Ddice-transaction.c166 __be64 *buffer; in register_notification_address() local
172 buffer = kmalloc(2 * 8, GFP_KERNEL); in register_notification_address()
173 if (!buffer) in register_notification_address()
177 buffer[0] = cpu_to_be64(OWNER_NO_OWNER); in register_notification_address()
178 buffer[1] = cpu_to_be64( in register_notification_address()
188 buffer, 2 * 8, in register_notification_address()
193 if (buffer[0] == cpu_to_be64(OWNER_NO_OWNER)) in register_notification_address()
196 if (buffer[0] == buffer[1]) in register_notification_address()
209 kfree(buffer); in register_notification_address()
220 __be64 *buffer; unregister_notification_address() local
[all...]
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
H A DDetectingViewer.java190 private boolean openTag(byte[] buffer, int offset, int length, byte[] tag) in openTag() argument
197 if (buffer[b + offset] != tag[b]) { in openTag()
205 private boolean closedTag(byte[] buffer, int offset, int length, byte[] tag) in closedTag() argument
207 if (buffer[offset] != (byte) '/') { in closedTag()
211 return openTag(buffer, offset + 1, length, tag); in closedTag()
216 byte[] buffer = new byte[BUFFER_SIZE]; in filter()
224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); in filter()
243 byte b = buffer[i]; in filter()
248 if (openTag(buffer, i + 1, bufLen, scriptTag) || in filter()
249 openTag(buffer, in filter()
[all...]
/third_party/skia/src/effects/
H A DSkLayerDrawLooper.cpp199 void SkLayerDrawLooper::flatten(SkWriteBuffer& buffer) const { in flatten()
200 buffer.writeInt(fCount); in flatten()
205 buffer.writeInt(0); in flatten()
207 buffer.writeInt(rec->fInfo.fPaintBits); in flatten()
208 buffer.writeInt((int)rec->fInfo.fColorMode); in flatten()
209 buffer.writePoint(rec->fInfo.fOffset); in flatten()
210 buffer.writeBool(rec->fInfo.fPostTranslate); in flatten()
211 buffer.writePaint(rec->fPaint); in flatten()
216 sk_sp<SkFlattenable> SkLayerDrawLooper::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument
217 int count = buffer in CreateProc()
[all...]
/third_party/cJSON/
H A DcJSON.c314 /* check if the given size is left to read in a given parse buffer (starting with 1) */
315 #define can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length))
316 /* check if the buffer can be accessed at the given index (starting with 0) */
317 #define can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)
595 unsigned char *buffer; global() member
691 update_offset(printbuffer * const buffer) update_offset() argument
1281 buffer_skip_whitespace(parse_buffer * const buffer) buffer_skip_whitespace() argument
1307 skip_utf8_bom(parse_buffer * const buffer) skip_utf8_bom() argument
1340 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } }; cJSON_ParseWithLengthOpts() local
1433 printbuffer buffer[1]; print() local
[all...]
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DRawInputStream.php38 private $buffer; variable
40 public function __construct($buffer)
42 $this->buffer = $buffer; variable
47 return $this->buffer;
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_timeline_io.c30 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_pos);
46 * @rb_idx_raw: Pointer to variable where read buffer index will be placed
51 * values pointing to right stream and buffer.
66 /* Read buffer index may be updated by writer in case of in kbasep_timeline_io_packet_pending()
67 * overflow. Read and write buffer indexes must be in kbasep_timeline_io_packet_pending()
100 * @buffer: Pointer to the buffer provided by user.
101 * @size: Maximum amount of data that can be stored in the buffer.
110 static inline int copy_stream_header(char __user *buffer, size_t size, ssize_t *copy_len, const char *hdr, in copy_stream_header() argument
124 if (copy_to_user(&buffer[*copy_le in copy_stream_header()
148 kbasep_timeline_copy_headers(struct kbase_timeline *timeline, char __user *buffer, size_t size, ssize_t *copy_len) kbasep_timeline_copy_headers() argument
176 kbasep_timeline_io_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_pos) kbasep_timeline_io_read() argument
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/
H A Dmali_kbase_timeline_io.c31 static ssize_t kbasep_timeline_io_read(struct file *filp, char __user *buffer,
54 * @rb_idx_raw: Pointer to variable where read buffer index will be placed
59 * values pointing to right stream and buffer.
76 /* Read buffer index may be updated by writer in case of in kbasep_timeline_io_packet_pending()
77 * overflow. Read and write buffer indexes must be in kbasep_timeline_io_packet_pending()
110 * @buffer: Pointer to the buffer provided by user.
111 * @size: Maximum amount of data that can be stored in the buffer.
120 static inline int copy_stream_header(char __user *buffer, size_t size, in copy_stream_header() argument
133 if (copy_to_user(&buffer[*copy_le in copy_stream_header()
157 kbasep_timeline_copy_headers(struct kbase_timeline *timeline, char __user *buffer, size_t size, ssize_t *copy_len) kbasep_timeline_copy_headers() argument
188 kbasep_timeline_io_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_pos) kbasep_timeline_io_read() argument
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/
H A Ddepthwise_conv2d_native_builder.cpp72 void* buffer = tensor->GetBuffer(); in SetActivation() local
73 if (buffer == nullptr) { in SetActivation()
77 int8_t* pFuseData = static_cast<int8_t*>(buffer); in SetActivation()
112 void* buffer = tensor->GetBuffer(); in SetStrides() local
113 if (buffer == nullptr) { in SetStrides()
117 const int64_t* pStrides = reinterpret_cast<const int64_t*>(buffer); in SetStrides()
131 void* buffer = tensor->GetBuffer(); in SetDilation() local
132 if (buffer == nullptr) { in SetDilation()
136 const int64_t* pDilation = reinterpret_cast<const int64_t*>(buffer); in SetDilation()
153 void* buffer in SetPadModeOrPaddings() local
[all...]
/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dbuffer_utils_test.cpp45 static inline sptr<SurfaceBuffer> buffer = nullptr; member in OHOS::Rosen::BufferUtilsTest
54 buffer = nullptr; in SetUpTestCase()
64 buffer = nullptr; in TearDownTestCase()
84 // Alloc buffer in HWTEST_F()
85 buffer = new SurfaceBufferImpl(); in HWTEST_F()
86 buffer->Alloc(requestConfig); in HWTEST_F()
89 GSError ret = DumpToFileAsync(pid, name_, buffer); in HWTEST_F()
114 ASSERT_EQ(dumpFileSize, buffer->GetSize()); in HWTEST_F()
129 // Alloc buffer in HWTEST_F()
130 buffer in HWTEST_F()
[all...]
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-taos-evm.c37 unsigned char buffer[TAOS_BUFFER_SIZE]; member
38 unsigned int pos; /* position inside the buffer */
68 p = taos->buffer; in taos_smbus_xfer()
94 dev_dbg(&adapter->dev, "Command buffer: %s\n", taos->buffer); in taos_smbus_xfer()
95 for (p = taos->buffer; *p; p++) in taos_smbus_xfer()
112 dev_dbg(&adapter->dev, "Answer buffer: %s\n", taos->buffer); in taos_smbus_xfer()
115 p = taos->buffer + 1; in taos_smbus_xfer()
156 taos->buffer[tao in taos_interrupt()
183 taos_adapter_name(char *buffer) taos_adapter_name() argument
[all...]

Completed in 14 milliseconds

1...<<41424344454647484950>>...647