Home
last modified time | relevance | path

Searched refs:buffer (Results 1226 - 1250 of 15320) sorted by relevance

1...<<41424344454647484950>>...613

/third_party/vulkan-loader/loader/
H A Dvk_loader_platform.h274 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument
275 ssize_t count = readlink("/proc/self/exe", buffer, size); in loader_platform_executable_path()
278 buffer[count] = '\0'; in loader_platform_executable_path()
279 return buffer; in loader_platform_executable_path()
285 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument
287 buffer[0] = '\0'; in loader_platform_executable_path()
288 return buffer; in loader_platform_executable_path()
293 static inline char *loader_platform_executable_path(char *buffer, size_t size) { in loader_platform_executable_path() argument
294 // proc_pidpath takes a uint32_t for the buffer size in loader_platform_executable_path()
299 int ret = proc_pidpath(pid, buffer, (uint32_ in loader_platform_executable_path()
309 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument
329 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument
337 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument
515 loader_platform_executable_path(char *buffer, size_t size) loader_platform_executable_path() argument
[all...]
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/unittests/
H A Dtest_wasm.cpp89 static void ReadBinaryFile(const char *path, std::vector<uint8_t> &buffer) in ReadBinaryFile() argument
97 buffer.resize(size); in ReadBinaryFile()
98 infile.read(reinterpret_cast<char *>(&buffer[0]), size); in ReadBinaryFile()
108 buffer.swap(newBuffer); in ReadBinaryFile()
112 static void ReadBinaryFile(const std::string &path, std::vector<uint8_t> &buffer) in ReadBinaryFile() argument
114 ReadBinaryFile(path.c_str(), buffer); in ReadBinaryFile()
139 std::vector<uint8_t> buffer; in CompileWasmModule() local
140 ReadBinaryFile(path, buffer); in CompileWasmModule()
141 CHECK(buffer.size() > 0); in CompileWasmModule()
143 JSVMTEST_CALL(OH_JSVM_CompileWasmModule(jsvm_env, buffer in CompileWasmModule()
196 std::vector<uint8_t> buffer; WebAssemblyDemo() local
317 std::vector<uint8_t> buffer; global() local
372 std::vector<uint8_t> buffer; global() local
530 TestCacheAndRelocInfoStep1(JSVM_Env env, const std::vector<uint8_t> &buffer, const uint8_t *&cacheData, size_t &cacheSize) global() argument
563 TestCacheAndRelocInfoStep2(JSVM_Env env, const std::vector<uint8_t> &buffer, const uint8_t *cacheData, size_t cacheSize, JSVM_Value exports) global() argument
612 std::vector<uint8_t> buffer; global() local
715 std::vector<uint8_t> buffer; global() local
881 std::vector<uint8_t> buffer; global() local
[all...]
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A Dpngimage.c368 struct buffer_list *next; /* next buffer in list */
369 png_byte buffer[1024]; /* the actual buffer */ member
372 struct buffer struct
374 struct buffer_list *last; /* last buffer in use */
375 size_t end_count; /* bytes in the last buffer */
376 struct buffer_list *current; /* current buffer being read */
378 struct buffer_list first; /* the very first buffer */
382 buffer_init(struct buffer *buffer) in buffer_init() argument
402 buffer_destroy(struct buffer *buffer) buffer_destroy() argument
411 buffer_start_write(struct buffer *buffer) buffer_start_write() argument
420 buffer_start_read(struct buffer *buffer) buffer_start_read() argument
459 buffer_from_file(struct buffer *buffer, FILE *fp) buffer_from_file() argument
1269 buffer_write(struct display *dp, struct buffer *buffer, png_bytep data, size_t size) buffer_write() argument
[all...]
/third_party/python/Modules/
H A Dzlibmodule.c12 // Blocks output buffer wrappers
22 OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, in OutputBuffer_InitAndGrow() argument
28 buffer, max_length, (void**) next_out); in OutputBuffer_InitAndGrow()
36 OutputBuffer_Grow(_BlocksOutputBuffer *buffer, in OutputBuffer_Grow() argument
42 buffer, (void**) next_out, (Py_ssize_t) *avail_out); in OutputBuffer_Grow()
48 OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_GetDataSize() argument
50 return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out); in OutputBuffer_GetDataSize()
54 OutputBuffer_Finish(_BlocksOutputBuffer *buffer, uint32_t avail_out) in OutputBuffer_Finish() argument
56 return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out); in OutputBuffer_Finish()
60 OutputBuffer_OnError(_BlocksOutputBuffer *buffer) in OutputBuffer_OnError() argument
90 OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *window, Py_ssize_t init_size, Bytef **next_out, uint32_t *avail_out) OutputBuffer_WindowInitWithSize() argument
113 OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, Bytef **next_out, uint32_t *avail_out) OutputBuffer_WindowGrow() argument
152 OutputBuffer_WindowFinish(_BlocksOutputBuffer *buffer, _Uint32Window *window, uint32_t avail_out) OutputBuffer_WindowFinish() argument
160 OutputBuffer_WindowOnError(_BlocksOutputBuffer *buffer, _Uint32Window *window) OutputBuffer_WindowOnError() argument
326 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_compress_impl() local
427 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_decompress_impl() local
758 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Compress_compress_impl() local
879 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Decompress_decompress_impl() local
989 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Compress_flush_impl() local
1257 _BlocksOutputBuffer buffer = {.list = NULL}; zlib_Decompress_flush_impl() local
[all...]
/foundation/multimedia/av_codec/services/media_engine/modules/demuxer/
H A Dstream_demuxer.cpp27 #include "buffer/avallocator.h"
217 auto buffer = Buffer::CreateDefaultBuffer(bufferPtr->GetMemory()->GetSize()); in PullDataWithoutCache() local
218 if (buffer != nullptr && buffer->GetMemory() != nullptr) { in PullDataWithoutCache()
219 buffer->GetMemory()->Write(bufferPtr->GetMemory()->GetReadOnlyData(), in PullDataWithoutCache()
221 cacheDataMap_[streamID].Init(buffer, offset); in PullDataWithoutCache()
344 Status StreamDemuxer::HandleReadHeader(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, in HandleReadHeader() argument
352 Status ret = getRange_(streamID, static_cast<uint64_t>(offset), expectedLen, buffer); in HandleReadHeader()
354 Status result = CheckChangeStreamID(streamID, buffer); in HandleReadHeader()
356 DUMP_BUFFER2FILE(DEMUXER_INPUT_PEEK, buffer); in HandleReadHeader()
366 CheckChangeStreamID(int32_t streamID, std::shared_ptr<Buffer>& buffer) CheckChangeStreamID() argument
385 HandleReadPacket(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) HandleReadPacket() argument
407 CallbackReadAt(int32_t streamID, int64_t offset, std::shared_ptr<Buffer>& buffer, size_t expectedLen) CallbackReadAt() argument
[all...]
/foundation/graphic/graphic_2d/rosen/modules/effect/test/unittest/
H A Dcolor_picker_unittest.cpp40 uint8_t *buffer = GetJpgBuffer(bufferSize); in CreateColorPicker() local
41 if (buffer == nullptr) { in CreateColorPicker()
49 ImageSource::CreateImageSource(buffer, bufferSize, opts, errorCode); in CreateColorPicker()
101 uint8_t *buffer = GetPngBuffer(bufferSize); in HWTEST_F() local
102 ASSERT_NE(buffer, nullptr); in HWTEST_F()
111 ImageSource::CreateImageSource(buffer, bufferSize, opts, errorCode); in HWTEST_F()
224 uint8_t *buffer = GetJpgBuffer(bufferSize); in HWTEST_F() local
225 ASSERT_NE(buffer, nullptr); in HWTEST_F()
235 ImageSource::CreateImageSource(buffer, bufferSize, opts, errorCode); in HWTEST_F()
279 uint8_t *buffer in HWTEST_F() local
372 uint8_t *buffer = GetJpgBuffer(bufferSize); HWTEST_F() local
413 uint8_t *buffer = GetJpgBuffer(bufferSize); HWTEST_F() local
454 uint8_t *buffer = GetJpgBuffer(bufferSize); HWTEST_F() local
495 uint8_t *buffer = GetJpgBuffer(bufferSize); HWTEST_F() local
532 uint8_t *buffer = GetJpgBuffer(bufferSize); HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_uni_render_processor.cpp59 // just pass the buffer to composer straightly. in Init()
73 // just pass the buffer to composer straightly. in InitForRenderThread()
91 auto buffer = surfaceHandler->GetBuffer(); in CreateLayer() local
92 if (buffer == nullptr || surfaceHandler->GetConsumer() == nullptr) { in CreateLayer()
99 "buffer:[%d, %d] alpha:[%f] type:[%d]", in CreateLayer()
104 buffer->GetSurfaceBufferWidth(), buffer->GetSurfaceBufferHeight(), layerInfo.alpha, layerInfo.layerType); in CreateLayer()
108 "buffer:[%{public}d, %{public}d] alpha:[%{public}f]", in CreateLayer()
113 buffer->GetSurfaceBufferWidth(), buffer in CreateLayer()
137 auto buffer = params.GetBuffer(); CreateLayerForRenderThread() local
180 auto buffer = surfaceHandler->GetBuffer(); CreateUIFirstLayer() local
229 GetLayerInfo(RSSurfaceRenderParams& params, sptr<SurfaceBuffer>& buffer, sptr<SurfaceBuffer>& preBuffer, const sptr<IConsumerSurface>& consumer, const sptr<SyncFence>& acquireFence) GetLayerInfo() argument
292 ProcessLayerSetCropRect(LayerInfoPtr& layerInfoPtr, RSLayerInfo& layerInfo, sptr<SurfaceBuffer> buffer) ProcessLayerSetCropRect() argument
[all...]
/test/xts/device_attest_lite/services/core/network/
H A Dattest_coap.c36 ATTEST_LOG_ERROR("[CoapCreateHead] Header overruns the buffer"); in CoapCreateHead()
69 if (pkt == NULL || token == NULL || ((token->len != 0) && token->buffer == NULL) || in CoapAddToken()
81 ATTEST_LOG_ERROR("[CoapAddToken] Symbol overruns the buffer"); in CoapAddToken()
87 pkt->tok.buffer = (const uint8_t*)&buf->rwBuffer[buf->len]; in CoapAddToken()
93 if (memcpy_s(&buf->rwBuffer[buf->len], pkt->hdr.tkl, token->buffer, token->len) != 0) { in CoapAddToken()
149 ATTEST_LOG_ERROR("[CoapEncodeExtensionMsg] Extension msg overruns the buffer size"); in CoapEncodeExtensionMsg()
155 ATTEST_LOG_ERROR("[CoapEncodeExtensionMsg] Extension msg overruns the buffer size"); in CoapEncodeExtensionMsg()
224 ATTEST_LOG_ERROR("[CheckOptionParameter] Option overruns the buffer size"); in CheckOptionParameter()
249 ATTEST_LOG_ERROR("[CoapAddOption] Option overruns the buffer size"); in CoapAddOption()
305 if ((buf->rwBuffer == NULL) || ((payload->len != 0) && (payload->buffer in CoapAddData()
565 CoapParseOptionAndPayload(CoapOption* options, uint8_t* numOptions, CoapBuffer* payload, const CoapHead* hdr, CoapBuffer *buffer) CoapParseOptionAndPayload() argument
641 CoapBuffer buffer; CoapDecode() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmovtextenc.c81 AVBPrint buffer; member
113 av_bprint_append_any(&s->buffer, buf, 10); in encode_styl()
125 av_bprint_append_any(&s->buffer, buf, 12); in encode_styl()
141 av_bprint_append_any(&s->buffer, buf, 12); in encode_hlit()
154 av_bprint_append_any(&s->buffer, buf, 12); in encode_hclr()
173 av_bprint_finalize(&s->buffer, NULL); in mov_text_encode_close()
256 av_bprint_append_any(&s->buffer, buf, 30); in encode_sample_description()
293 av_bprint_append_any(&s->buffer, buf, 10); in encode_sample_description()
302 av_bprint_append_any(&s->buffer, buf, 3); in encode_sample_description()
303 av_bprint_append_any(&s->buffer, in encode_sample_description()
[all...]
/third_party/skia/src/core/
H A DSkColorFilter.cpp196 void flatten(SkWriteBuffer& buffer) const override {
197 buffer.writeFlattenable(fOuter.get());
198 buffer.writeFlattenable(fInner.get());
215 sk_sp<SkFlattenable> SkComposeColorFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument
216 sk_sp<SkColorFilter> outer(buffer.readColorFilter()); in CreateProc()
217 sk_sp<SkColorFilter> inner(buffer.readColorFilter()); in CreateProc()
291 void flatten(SkWriteBuffer& buffer) const override {
292 buffer.write32(static_cast<uint32_t>(fDir));
303 sk_sp<SkFlattenable> SkSRGBGammaColorFilter::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument
304 uint32_t dir = buffer in CreateProc()
425 CreateProc(SkReadBuffer& buffer) CreateProc() argument
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DBindGroupLayout.cpp75 if (entry.buffer.type != wgpu::BufferBindingType::Undefined) { in ValidateBindGroupLayoutEntry()
78 const BufferBindingLayout& buffer = entry.buffer; in ValidateBindGroupLayoutEntry() local
82 if (buffer.type == kInternalStorageBufferBinding) { in ValidateBindGroupLayoutEntry()
85 DAWN_TRY(ValidateBufferBindingType(buffer.type)); in ValidateBindGroupLayoutEntry()
88 if (buffer.type == wgpu::BufferBindingType::Storage || in ValidateBindGroupLayoutEntry()
89 buffer.type == kInternalStorageBufferBinding) { in ValidateBindGroupLayoutEntry()
142 "BindGroupLayoutEntry had more than one of buffer, sampler, texture, " in ValidateBindGroupLayoutEntry()
193 return a.buffer.type != b.buffer in operator !=()
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-uniscribe.cc586 hb_buffer_t *buffer, in _hb_uniscribe_shape()
606 hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size); in _hb_uniscribe_shape()
619 ALLOCATE_ARRAY (WCHAR, pchars, buffer->len * 2); in _hb_uniscribe_shape()
622 for (unsigned int i = 0; i < buffer->len; i++) in _hb_uniscribe_shape()
624 hb_codepoint_t c = buffer->info[i].codepoint; in _hb_uniscribe_shape()
625 buffer->info[i].utf16_index() = chars_len; in _hb_uniscribe_shape()
643 for (unsigned int i = 0; i < buffer->len; i++) in _hb_uniscribe_shape()
645 hb_codepoint_t c = buffer->info[i].codepoint; in _hb_uniscribe_shape()
646 unsigned int cluster = buffer->info[i].cluster; in _hb_uniscribe_shape()
670 * implementations of Shape and Place functions use that buffer in _hb_uniscribe_shape()
584 _hb_uniscribe_shape(hb_shape_plan_t *shape_plan, hb_font_t *font, hb_buffer_t *buffer, const hb_feature_t *features, unsigned int num_features) _hb_uniscribe_shape() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_descriptors.c66 /* NULL image and buffer descriptor for textures (alpha = 1) and images
75 * This is the only reason why the buffer descriptor must be in words [4:7].
79 /* the rest must contain zeros, which is also used by the buffer
85 /* the rest must contain zeros, which is also used by the buffer
124 si_resource_reference(&desc->buffer, NULL); in si_release_descriptors()
146 /* The buffer is already in the buffer list. */ in si_upload_descriptors()
147 si_resource_reference(&desc->buffer, NULL); in si_upload_descriptors()
157 (struct pipe_resource **)&desc->buffer, (void **)&ptr); in si_upload_descriptors()
158 if (!desc->buffer) { in si_upload_descriptors()
1222 struct pipe_resource *buffer = NULL; si_set_constant_buffer() local
1480 si_set_ring_buffer(struct si_context *sctx, uint slot, struct pipe_resource *buffer, unsigned stride, unsigned num_records, bool add_tid, bool swizzle, unsigned element_size, unsigned index_stride, uint64_t offset) si_set_ring_buffer() argument
1668 struct pipe_resource *buffer = buffers->buffers[i]; si_reset_buffer_resources() local
1692 struct si_resource *buffer = si_resource(buf); si_rebind_buffer() local
1726 struct pipe_resource *buffer = buffers->buffers[i]; si_rebind_buffer() local
1782 struct pipe_resource *buffer = samplers->views[i]->texture; si_rebind_buffer() local
1809 struct pipe_resource *buffer = images->views[i].resource; si_rebind_buffer() local
1839 struct pipe_resource *buffer = view->texture; si_rebind_buffer() local
1861 struct pipe_resource *buffer = view->resource; si_rebind_buffer() local
[all...]
/foundation/distributedhardware/distributed_camera/services/channel/src/
H A Ddcamera_softbus_adapter.cpp274 int32_t DCameraSoftbusAdapter::SendSofbusBytes(int32_t socket, std::shared_ptr<DataBuffer>& buffer) in SendSofbusBytes() argument
276 CHECK_AND_RETURN_RET_LOG(buffer == nullptr, DCAMERA_BAD_VALUE, "Data buffer is null"); in SendSofbusBytes()
277 return SendBytes(socket, buffer->Data(), buffer->Size()); in SendSofbusBytes()
280 int32_t DCameraSoftbusAdapter::SendSofbusStream(int32_t socket, std::shared_ptr<DataBuffer>& buffer) in SendSofbusStream() argument
282 CHECK_AND_RETURN_RET_LOG(buffer == nullptr, DCAMERA_BAD_VALUE, "Data buffer is null"); in SendSofbusStream()
283 StreamData streamData = { reinterpret_cast<char *>(buffer->Data()), buffer in SendSofbusStream()
382 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(dataLen); SourceOnBytes() local
421 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(data->bufLen); SourceOnStream() local
435 HandleSourceStreamExt(std::shared_ptr<DataBuffer>& buffer, const StreamData *ext) HandleSourceStreamExt() argument
596 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(dataLen); SinkOnBytes() local
631 std::shared_ptr<DataBuffer> buffer = std::make_shared<DataBuffer>(data->bufLen); SinkOnStream() local
[all...]
/kernel/linux/linux-5.10/drivers/scsi/
H A Dppa.c122 static inline int ppa_write_info(struct Scsi_Host *host, char *buffer, int length) in ppa_write_info() argument
127 if ((length > 5) && (strncmp(buffer, "mode=", 5) == 0)) { in ppa_write_info()
128 x = simple_strtoul(buffer + 5, NULL, 0); in ppa_write_info()
132 if ((length > 10) && (strncmp(buffer, "recon_tmo=", 10) == 0)) { in ppa_write_info()
133 x = simple_strtoul(buffer + 10, NULL, 0); in ppa_write_info()
240 static int ppa_byte_out(unsigned short base, const char *buffer, int len) in ppa_byte_out() argument
245 w_dtr(base, *buffer++); in ppa_byte_out()
252 static int ppa_byte_in(unsigned short base, char *buffer, int len) in ppa_byte_in() argument
257 *buffer++ = r_dtr(base); in ppa_byte_in()
264 static int ppa_nibble_in(unsigned short base, char *buffer, in argument
277 ppa_out(ppa_struct *dev, char *buffer, int len) ppa_out() argument
322 ppa_in(ppa_struct *dev, char *buffer, int len) ppa_in() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dppa.c132 static inline int ppa_write_info(struct Scsi_Host *host, char *buffer, int length) in ppa_write_info() argument
137 if ((length > 5) && (strncmp(buffer, "mode=", 5) == 0)) { in ppa_write_info()
138 x = simple_strtoul(buffer + 5, NULL, 0); in ppa_write_info()
142 if ((length > 10) && (strncmp(buffer, "recon_tmo=", 10) == 0)) { in ppa_write_info()
143 x = simple_strtoul(buffer + 10, NULL, 0); in ppa_write_info()
250 static int ppa_byte_out(unsigned short base, const char *buffer, int len) in ppa_byte_out() argument
255 w_dtr(base, *buffer++); in ppa_byte_out()
262 static int ppa_byte_in(unsigned short base, char *buffer, int len) in ppa_byte_in() argument
267 *buffer++ = r_dtr(base); in ppa_byte_in()
274 static int ppa_nibble_in(unsigned short base, char *buffer, in argument
287 ppa_out(ppa_struct *dev, char *buffer, int len) ppa_out() argument
329 ppa_in(ppa_struct *dev, char *buffer, int len) ppa_in() argument
[all...]
/third_party/icu/icu4c/source/common/
H A Dlocdispnames.cpp51 * buffer size. For all the following getDisplay functions we first attempt
52 * to fill up a stack allocated buffer. If it is to small we heap allocated
53 * the exact buffer we need copy it to the UnicodeString and delete it*/
58 UChar *buffer; in getDisplayLanguage() local
62 buffer=result.getBuffer(ULOC_FULLNAME_CAPACITY); in getDisplayLanguage()
63 if(buffer==0) { in getDisplayLanguage()
69 buffer, result.getCapacity(), in getDisplayLanguage()
74 buffer=result.getBuffer(length); in getDisplayLanguage()
75 if(buffer==0) { in getDisplayLanguage()
81 buffer, resul in getDisplayLanguage()
98 UChar *buffer; getDisplayScript() local
138 UChar *buffer; getDisplayCountry() local
178 UChar *buffer; getDisplayVariant() local
218 UChar *buffer; getDisplayName() local
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dlocdispnames.cpp51 * buffer size. For all the following getDisplay functions we first attempt
52 * to fill up a stack allocated buffer. If it is to small we heap allocated
53 * the exact buffer we need copy it to the UnicodeString and delete it*/
58 char16_t *buffer; in getDisplayLanguage() local
62 buffer=result.getBuffer(ULOC_FULLNAME_CAPACITY); in getDisplayLanguage()
63 if(buffer==0) { in getDisplayLanguage()
69 buffer, result.getCapacity(), in getDisplayLanguage()
74 buffer=result.getBuffer(length); in getDisplayLanguage()
75 if(buffer==0) { in getDisplayLanguage()
81 buffer, resul in getDisplayLanguage()
98 char16_t *buffer; getDisplayScript() local
138 char16_t *buffer; getDisplayCountry() local
178 char16_t *buffer; getDisplayVariant() local
218 char16_t *buffer; getDisplayName() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_mc.c558 vl_mc_init_buffer(struct vl_mc *renderer, struct vl_mc_buffer *buffer) in vl_mc_init_buffer() argument
560 assert(renderer && buffer); in vl_mc_init_buffer()
562 buffer->viewport.scale[2] = 1; in vl_mc_init_buffer()
563 buffer->viewport.translate[0] = 0; in vl_mc_init_buffer()
564 buffer->viewport.translate[1] = 0; in vl_mc_init_buffer()
565 buffer->viewport.translate[2] = 0; in vl_mc_init_buffer()
566 buffer->viewport.swizzle_x = PIPE_VIEWPORT_SWIZZLE_POSITIVE_X; in vl_mc_init_buffer()
567 buffer->viewport.swizzle_y = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Y; in vl_mc_init_buffer()
568 buffer->viewport.swizzle_z = PIPE_VIEWPORT_SWIZZLE_POSITIVE_Z; in vl_mc_init_buffer()
569 buffer in vl_mc_init_buffer()
578 vl_mc_cleanup_buffer(struct vl_mc_buffer *buffer) vl_mc_cleanup_buffer() argument
584 vl_mc_set_surface(struct vl_mc_buffer *buffer, struct pipe_surface *surface) vl_mc_set_surface() argument
599 prepare_pipe_4_rendering(struct vl_mc *renderer, struct vl_mc_buffer *buffer, unsigned mask) prepare_pipe_4_rendering() argument
615 vl_mc_render_ref(struct vl_mc *renderer, struct vl_mc_buffer *buffer, struct pipe_sampler_view *ref) vl_mc_render_ref() argument
637 vl_mc_render_ycbcr(struct vl_mc *renderer, struct vl_mc_buffer *buffer, unsigned component, unsigned num_instances) vl_mc_render_ycbcr() argument
[all...]
/third_party/vulkan-loader/tests/framework/
H A Dtest_util.h791 std::string buffer;
792 buffer.resize(1024);
793 ssize_t count = readlink("/proc/self/exe", &buffer[0], buffer.size());
796 buffer[count] = '\0';
797 buffer.resize(count);
798 return buffer;
803 std::string buffer;
804 buffer.resize(1024);
806 int ret = proc_pidpath(pid, &buffer[
[all...]
/foundation/ai/neural_network_runtime/test/unittest/components/memory_manager/
H A Dmemory_manager_test.cpp159 void* buffer = memoryManager->MapMemory(fd, length); in HWTEST_F() local
160 memoryManager->UnMapMemory(buffer); in HWTEST_F()
172 void* buffer = nullptr; in HWTEST_F() local
174 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory); in HWTEST_F()
186 void* buffer = malloc(10); in HWTEST_F() local
188 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory); in HWTEST_F()
190 free(buffer); in HWTEST_F()
214 void* buffer = memoryManager->MapMemory(fd, length); in HWTEST_F() local
218 OH_NN_ReturnCode result = memoryManager->GetMemory(buffer, memory); in HWTEST_F()
227 memoryManager->UnMapMemory(buffer); in HWTEST_F()
[all...]
/foundation/multimedia/media_foundation/test/scenetest/helper/
H A Dlite_stream_player.cpp85 std::shared_ptr<DataBuffer> buffer; in DataProcessThread() local
86 (void) stream->GetEmptyBuffer(buffer); in DataProcessThread()
87 if (buffer == nullptr) { in DataProcessThread()
88 MEDIA_LOG_E("buffer null error."); in DataProcessThread()
96 (void) memcpy_s(buffer->GetAddress(), buffer->GetCapacity(), sourceData, realGetSize); in DataProcessThread()
97 buffer->SetSize(realGetSize); in DataProcessThread()
100 buffer->SetSize(0); in DataProcessThread()
103 buffer->SetEos(true); in DataProcessThread()
104 stream->QueueDataBuffer(buffer); in DataProcessThread()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/daudio_input/
H A Ddaudio_input_plugin.cpp122 Status DaudioInputPlugin::PushData(const std::string &inPort, std::shared_ptr<Plugin::Buffer> buffer, int32_t offset) in PushData() argument
125 TRUE_RETURN_V(buffer == nullptr, Status::ERROR_NULL_POINTER); in PushData()
126 if (buffer->IsEmpty()) { in PushData()
131 auto bufferMeta = buffer->GetBufferMeta(); in PushData()
139 buffer->pts = GetCurrentTime(); in PushData()
140 bufferMeta->SetMeta(Tag::USER_FRAME_PTS, buffer->pts); in PushData()
142 AVTRANS_LOGI("Push audio buffer pts: %{public}ld, bufferLen: %{public}d, indexNumber: %{public}u.", in PushData()
143 buffer->pts, buffer->GetMemory()->GetSize(), in PushData()
144 Plugin::AnyCast<uint32_t>(buffer in PushData()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c13 static ssize_t ixgbe_dbg_common_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_common_ops_read() argument
35 len = simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf)); in ixgbe_dbg_common_ops_read()
44 * @buffer: where to write the data for the user to read
45 * @count: the size of the user's buffer
48 static ssize_t ixgbe_dbg_reg_ops_read(struct file *filp, char __user *buffer, in ixgbe_dbg_reg_ops_read() argument
51 return ixgbe_dbg_common_ops_read(filp, buffer, count, ppos, in ixgbe_dbg_reg_ops_read()
58 * @buffer: where to find the user's data
63 const char __user *buffer, in ixgbe_dbg_reg_ops_write()
78 buffer, in ixgbe_dbg_reg_ops_write()
127 * @buffer
62 ixgbe_dbg_reg_ops_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) ixgbe_dbg_reg_ops_write() argument
131 ixgbe_dbg_netdev_ops_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) ixgbe_dbg_netdev_ops_read() argument
145 ixgbe_dbg_netdev_ops_write(struct file *filp, const char __user *buffer, size_t count, loff_t *ppos) ixgbe_dbg_netdev_ops_write() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/net/
H A Dsmsgiucv.c56 unsigned char *buffer; in smsg_message_pending() local
60 buffer = kmalloc(msg->length + 1, GFP_ATOMIC | GFP_DMA); in smsg_message_pending()
61 if (!buffer) { in smsg_message_pending()
65 rc = iucv_message_receive(path, msg, 0, buffer, msg->length, NULL); in smsg_message_pending()
67 buffer[msg->length] = 0; in smsg_message_pending()
68 EBCASC(buffer, msg->length); in smsg_message_pending()
69 memcpy(sender, buffer, 8); in smsg_message_pending()
79 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) { in smsg_message_pending()
80 cb->callback(sender, buffer + 8); in smsg_message_pending()
85 kfree(buffer); in smsg_message_pending()
[all...]

Completed in 25 milliseconds

1...<<41424344454647484950>>...613