/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | radeon_video.c | 63 /* create a buffer in the winsys */ 64 bool rvid_create_buffer(struct pipe_screen *screen, struct rvid_buffer *buffer, in rvid_create_buffer() argument 67 memset(buffer, 0, sizeof(*buffer)); in rvid_create_buffer() 68 buffer->usage = usage; in rvid_create_buffer() 70 /* Hardware buffer placement restrictions require the kernel to be in rvid_create_buffer() 72 * non-sub-allocated buffer. in rvid_create_buffer() 74 buffer->res = (struct r600_resource *) in rvid_create_buffer() 78 return buffer->res != NULL; in rvid_create_buffer() 81 /* destroy a buffer */ 82 rvid_destroy_buffer(struct rvid_buffer *buffer) rvid_destroy_buffer() argument 130 rvid_clear_buffer(struct pipe_context *context, struct rvid_buffer* buffer) rvid_clear_buffer() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_video_buffer.cpp | 37 * creates a video buffer 114 * destroy this video buffer 117 d3d12_video_buffer_destroy(struct pipe_video_buffer *buffer) in d3d12_video_buffer_destroy() argument 119 struct d3d12_video_buffer *pD3D12VideoBuffer = (struct d3d12_video_buffer *) buffer; in d3d12_video_buffer_destroy() 173 d3d12_video_buffer_get_surfaces(struct pipe_video_buffer *buffer) in d3d12_video_buffer_get_surfaces() argument 175 assert(buffer); in d3d12_video_buffer_get_surfaces() 176 struct d3d12_video_buffer *pD3D12VideoBuffer = (struct d3d12_video_buffer *) buffer; in d3d12_video_buffer_get_surfaces() 221 d3d12_video_buffer_get_sampler_view_planes(struct pipe_video_buffer *buffer) in d3d12_video_buffer_get_sampler_view_planes() argument 223 assert(buffer); in d3d12_video_buffer_get_sampler_view_planes() 224 struct d3d12_video_buffer *pD3D12VideoBuffer = (struct d3d12_video_buffer *) buffer; in d3d12_video_buffer_get_sampler_view_planes() 272 d3d12_video_buffer_get_sampler_view_components(struct pipe_video_buffer *buffer) d3d12_video_buffer_get_sampler_view_components() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/ |
H A D | provider_conf.c | 93 char buffer[512]; in provider_conf_params_internal() local 118 OPENSSL_strlcpy(buffer, name, sizeof(buffer)); in provider_conf_params_internal() 119 OPENSSL_strlcat(buffer, ".", sizeof(buffer)); in provider_conf_params_internal() 120 buffer_len = strlen(buffer); in provider_conf_params_internal() 126 if (buffer_len + strlen(sectconf->name) >= sizeof(buffer)) { in provider_conf_params_internal() 130 buffer[buffer_len] = '\0'; in provider_conf_params_internal() 131 OPENSSL_strlcat(buffer, sectconf->name, sizeof(buffer)); in provider_conf_params_internal() [all...] |
/third_party/openssl/crypto/ |
H A D | provider_conf.c | 93 char buffer[512]; in provider_conf_params_internal() local 118 OPENSSL_strlcpy(buffer, name, sizeof(buffer)); in provider_conf_params_internal() 119 OPENSSL_strlcat(buffer, ".", sizeof(buffer)); in provider_conf_params_internal() 120 buffer_len = strlen(buffer); in provider_conf_params_internal() 126 if (buffer_len + strlen(sectconf->name) >= sizeof(buffer)) { in provider_conf_params_internal() 130 buffer[buffer_len] = '\0'; in provider_conf_params_internal() 131 OPENSSL_strlcat(buffer, sectconf->name, sizeof(buffer)); in provider_conf_params_internal() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/ |
H A D | vktSSBOCornerCase.cpp | 71 "layout(std430, buffer_reference) buffer BlockA\n" in useCornerCaseShader() 76 "layout(std140, binding = 0) buffer AcBlock { highp uint ac_numIrrelevant; };\n" in useCornerCaseShader() 109 deUint32 buffer; member 112 Buffer (deUint32 buffer_, int size_) : buffer(buffer_), size(size_) {} in Buffer() 113 Buffer (void) : buffer(0), size(0) {} in Buffer() 116 de::MovePtr<vk::Allocation> allocateAndBindMemory (Context &context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs, vk::VkDeviceSize* allocationSize = DE_NULL) in allocateAndBindMemory() argument 119 const vk::VkMemoryRequirements bufReqs = vk::getBufferMemoryRequirements(vkd, context.getDevice(), buffer); in allocateAndBindMemory() 122 vkd.bindBufferMemory(context.getDevice(), buffer, memory->getMemory(), memory->getOffset()); in allocateAndBindMemory() 177 vk::Move<vk::VkBuffer> buffer; in iterate() local 230 buffer in iterate() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cMapBufferAlignmentTests.cpp | 77 * - prepare buffer filled with specific content; 78 * - map buffer with MapBuffer; 79 * - verify that returned data match contents of the buffer; 80 * - unmap buffer; 81 * - map buffer with MapBufferRange; 82 * - verify that returned data match contents of the buffer; 83 * - unmap buffer; 88 * - <buffer> values; 241 const BufferEnums& buffer = buffers[buffer_idx]; in iterate() local 246 if (0 != buffer in iterate() [all...] |
/third_party/skia/third_party/externals/freetype/src/bzip2/ |
H A D | ftbzip2.c | 103 FT_Byte input[FT_BZIP2_BUFFER_SIZE]; /* input read buffer */ 105 FT_Byte buffer[FT_BZIP2_BUFFER_SIZE]; /* output buffer */ member 153 zip->limit = zip->buffer + FT_BZIP2_BUFFER_SIZE; in ft_bzip2_file_init() 175 bzstream->next_in = (char*)zip->buffer; in ft_bzip2_file_init() 226 bzstream->next_out = (char*)zip->buffer; in ft_bzip2_file_reset() 228 zip->limit = zip->buffer + FT_BZIP2_BUFFER_SIZE; in ft_bzip2_file_reset() 287 zip->cursor = zip->buffer; in ft_bzip2_file_fill_output() 324 /* fill output buffer; `count' must be <= FT_BZIP2_BUFFER_SIZE */ 359 FT_Byte* buffer, in ft_bzip2_file_io() 357 ft_bzip2_file_io( FT_BZip2File zip, FT_ULong pos, FT_Byte* buffer, FT_ULong count ) ft_bzip2_file_io() argument 444 ft_bzip2_stream_io( FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count ) ft_bzip2_stream_io() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/ |
H A D | vktSSBOCornerCase.cpp | 71 "layout(std430, buffer_reference) buffer BlockA\n" in useCornerCaseShader() 76 "layout(std140, binding = 0) buffer AcBlock { highp uint ac_numIrrelevant; };\n" in useCornerCaseShader() 109 deUint32 buffer; member 112 Buffer (deUint32 buffer_, int size_) : buffer(buffer_), size(size_) {} in Buffer() 113 Buffer (void) : buffer(0), size(0) {} in Buffer() 116 de::MovePtr<vk::Allocation> allocateAndBindMemory (Context &context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs, vk::VkDeviceSize* allocationSize = DE_NULL) in allocateAndBindMemory() argument 119 const vk::VkMemoryRequirements bufReqs = vk::getBufferMemoryRequirements(vkd, context.getDevice(), buffer); in allocateAndBindMemory() 122 vkd.bindBufferMemory(context.getDevice(), buffer, memory->getMemory(), memory->getOffset()); in allocateAndBindMemory() 177 vk::Move<vk::VkBuffer> buffer; in iterate() local 230 buffer in iterate() [all...] |
/third_party/node/deps/v8/src/profiler/ |
H A D | heap-snapshot-generator.cc | 24 #include "src/objects/js-array-buffer-inl.h" 1208 SetInternalReference(entry, "buffer", view.buffer(), in ExtractJSObjectReferences() 1607 JSArrayBuffer buffer) { in ExtractJSArrayBufferReferences() 1609 if (!buffer.backing_store()) return; in ExtractJSArrayBufferReferences() 1610 size_t data_size = buffer.byte_length(); in ExtractJSArrayBufferReferences() 1613 generator_->FindOrAddEntry(buffer.backing_store(), &allocator); in ExtractJSArrayBufferReferences() 1651 base::Vector<char> buffer(arr, arraysize(arr)); in ExtractNumberReference() 1656 string = IntToCString(int_value, buffer); in ExtractNumberReference() 1659 string = DoubleToCString(double_value, buffer); in ExtractNumberReference() 1606 ExtractJSArrayBufferReferences(HeapEntry* entry, JSArrayBuffer buffer) ExtractJSArrayBufferReferences() argument 2786 utoa_impl(T value, const base::Vector<char>& buffer, int buffer_pos) utoa_impl() argument 2806 utoa(T value, const base::Vector<char>& buffer, int buffer_pos) utoa() argument 2817 base::EmbeddedVector<char, kBufferSize> buffer; SerializeEdge() local 2852 base::EmbeddedVector<char, kBufferSize> buffer; SerializeNode() local 2999 base::EmbeddedVector<char, kBufferSize> buffer; SerializeTraceNode() local 3025 SerializePosition(int position, const base::Vector<char>& buffer, int buffer_pos) SerializePosition() argument 3042 base::EmbeddedVector<char, kBufferSize> buffer; SerializeTraceNodeInfos() local 3079 base::EmbeddedVector<char, kBufferSize> buffer; SerializeSamples() local 3168 base::EmbeddedVector<char, kBufferSize> buffer; SerializeLocation() local [all...] |
/foundation/multimedia/av_codec/test/unittest/dash_test/ |
H A D | dash_segment_downloader_unit_test.cpp | 179 unsigned char buffer[1024]; in HWTEST_F() local 186 DashReadRet result = segmentDownloader->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 191 result = segmentDownloader->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 358 unsigned char buffer[1024]; in HWTEST_F() local 365 DashReadRet result = segmentDownloaderSp->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 367 result = segmentDownloaderSp->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 371 result = segmentDownloaderSp->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 414 unsigned char buffer[1024]; in HWTEST_F() local 421 DashReadRet result = segmentDownloaderSp->Read(buffer, readDataInfo, isInterruptNeeded); in HWTEST_F() 423 result = segmentDownloaderSp->Read(buffer, readDataInf in HWTEST_F() 453 unsigned char buffer[1024]; HWTEST_F() local 491 unsigned char buffer[1024]; HWTEST_F() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/ |
H A D | videodec_ndk_inner_sample.cpp | 85 sptr<SurfaceBuffer> buffer; variable 87 cs->AcquireBuffer(buffer, flushFence, timestamp, damage); 88 cs->ReleaseBuffer(buffer, -1); 110 void VDecInnerCallback::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) in OnInputBufferAvailable() argument 114 std::cout << "buffer is null 1" << endl; in OnInputBufferAvailable() 120 innersignal_->inBufferQueue_.push(buffer); in OnInputBufferAvailable() 125 AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) in OnOutputBufferAvailable() 132 innersignal_->outBufferQueue_.push(buffer); in OnOutputBufferAvailable() 352 int32_t VDecNdkInnerSample::ReadData(std::shared_ptr<AVSharedMemory> buffer, uint32_t index) in ReadData() argument 382 return SendData(bufferSize, index, buffer); in ReadData() 124 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) OnOutputBufferAvailable() argument 385 SendData(uint32_t bufferSize, uint32_t index, std::shared_ptr<AVSharedMemory> buffer) SendData() argument 557 auto buffer = signal_->inBufferQueue_.front(); InputFunc() local 600 std::shared_ptr<AVSharedMemory> buffer = signal_->outBufferQueue_.front(); OutputFunc() local 636 ProcessOutputData(uint32_t index, AVCodecBufferInfo info, std::shared_ptr<AVSharedMemory> buffer, FILE *file) ProcessOutputData() argument 714 MdCompare(unsigned char *buffer, int len, const char *source[]) MdCompare() argument [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | sht3x.c | 292 char buffer[SHT3X_RESPONSE_LENGTH]; in limits_update() local 299 commands->read_command, buffer, in limits_update() 305 raw = be16_to_cpup((__be16 *)buffer); in limits_update() 346 char buffer[SHT3X_CMD_LENGTH + SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; in limit_store() local 347 char *position = buffer; in limit_store() 375 ret = i2c_master_send(client, buffer, sizeof(buffer)); in limit_store() 378 if (ret != sizeof(buffer)) in limit_store() 462 char *buffer, int length) in status_register_read() 469 buffer, lengt in status_register_read() 460 status_register_read(struct device *dev, struct device_attribute *attr, char *buffer, int length) status_register_read() argument 478 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; temp1_alarm_show() local 493 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; humidity1_alarm_show() local 508 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; heater_enable_show() local [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hidraw.c | 41 static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) in hidraw_read() argument 82 len = list->buffer[list->tail].len > count ? in hidraw_read() 83 count : list->buffer[list->tail].len; in hidraw_read() 85 if (list->buffer[list->tail].value) { in hidraw_read() 86 if (copy_to_user(buffer, list->buffer[list->tail].value, len)) { in hidraw_read() 93 kfree(list->buffer[list->tail].value); in hidraw_read() 94 list->buffer[list->tail].value = NULL; in hidraw_read() 103 * The first byte of the report buffer is expected to be a report number. 105 static ssize_t hidraw_send_report(struct file *file, const char __user *buffer, size_ argument 162 hidraw_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) hidraw_write() argument 179 hidraw_get_report(struct file *file, char __user *buffer, size_t count, unsigned char report_type) hidraw_get_report() argument [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | sht3x.c | 321 char buffer[SHT3X_RESPONSE_LENGTH]; in limits_update() local 328 commands->read_command, buffer, in limits_update() 334 raw = be16_to_cpup((__be16 *)buffer); in limits_update() 366 char buffer[SHT3X_CMD_LENGTH + SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; in limit_write() local 367 char *position = buffer; in limit_write() 395 ret = i2c_master_send(client, buffer, sizeof(buffer)); in limit_write() 398 if (ret != sizeof(buffer)) in limit_write() 462 char *buffer, int length) in status_register_read() 469 buffer, lengt in status_register_read() 461 status_register_read(struct device *dev, char *buffer, int length) status_register_read() argument 476 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; temp1_alarm_read() local 489 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; humidity1_alarm_read() local 504 char buffer[SHT3X_WORD_LEN + SHT3X_CRC8_LEN]; heater_enable_show() local [all...] |
/third_party/libcoap/src/oscore/ |
H A D | oscore_context.c | 54 compose_info(uint8_t *buffer, in compose_info() argument 64 ret += oscore_cbor_put_array(&buffer, &rem_size, 5); in compose_info() 65 ret += oscore_cbor_put_bytes(&buffer, in compose_info() 70 ret += oscore_cbor_put_bytes(&buffer, in compose_info() 75 ret += oscore_cbor_put_nil(&buffer, &rem_size); in compose_info() 77 ret += oscore_cbor_put_unsigned(&buffer, &rem_size, alg); in compose_info() 78 ret += oscore_cbor_put_text(&buffer, in compose_info() 82 ret += oscore_cbor_put_unsigned(&buffer, &rem_size, out_len); in compose_info() 347 char buffer[30]; in oscore_log_context() 353 cose_get_alg_name(osc_ctx->aead_alg, buffer, in oscore_log_context() [all...] |
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
H A D | tarith.c | 113 char buffer[64]; in validation_ascii_to_fp() local 123 /* Check for overflow in the buffer by setting a marker. */ in validation_ascii_to_fp() 124 memset(buffer, 71, sizeof buffer); in validation_ascii_to_fp() 126 png_ascii_from_fp(0, buffer, precision+10, test, precision); in validation_ascii_to_fp() 131 if (buffer[precision+7] != 71) in validation_ascii_to_fp() 133 fprintf(stderr, "%g[%d] -> '%s'[%lu] buffer overflow\n", test, in validation_ascii_to_fp() 134 precision, buffer, (unsigned long)strlen(buffer)); in validation_ascii_to_fp() 146 if (test >= 0 && strcmp(buffer, "in in validation_ascii_to_fp() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/test/unittest/renderer_test/src/ |
H A D | audio_renderer_unit_test.cpp | 128 uint8_t *&buffer, uint8_t *&metaBuffer, size_t &bufferLen) in GetBuffersAndLen() 132 buffer = new uint8_t[bufferLen]; in GetBuffersAndLen() 133 ASSERT_NE(nullptr, buffer); in GetBuffersAndLen() 139 void AudioRendererUnitTest::ReleaseBufferAndFiles(uint8_t* &buffer, uint8_t* &metaBuffer, in ReleaseBufferAndFiles() argument 142 delete []buffer; in ReleaseBufferAndFiles() 158 auto buffer = std::make_unique<uint8_t[]>(bufferLen); in StartRenderThread() local 159 ASSERT_NE(nullptr, buffer); in StartRenderThread() 168 bytesToWrite = fread(buffer.get(), 1, bufferLen, wavFile); in StartRenderThread() 172 bytesWritten += audioRenderer->Write(buffer.get() + static_cast<size_t>(bytesWritten), in StartRenderThread() 1767 uint8_t *buffer in HWTEST() local 127 GetBuffersAndLen(unique_ptr<AudioRenderer> &audioRenderer, uint8_t *&buffer, uint8_t *&metaBuffer, size_t &bufferLen) GetBuffersAndLen() argument 1820 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 1852 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 1886 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 1924 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 1963 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 2003 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 2041 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 2111 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 2148 uint8_t *buffer; HWTEST() local 2195 uint8_t *buffer; HWTEST() local 2235 uint8_t *buffer; HWTEST() local 2275 uint8_t *buffer = new uint8_t[bufferLen]; HWTEST() local 2319 uint8_t *buffer = new uint8_t[bufferLen]; HWTEST() local 2360 uint8_t *buffer; HWTEST() local 2401 uint8_t *buffer; HWTEST() local 2442 uint8_t *buffer; HWTEST() local 2484 uint8_t *buffer; HWTEST() local 2526 uint8_t *buffer; HWTEST() local 2594 uint8_t *buffer; HWTEST() local 2637 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 2847 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3030 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3070 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3225 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3373 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3554 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3615 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 3764 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 4032 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 5715 auto buffer = std::make_unique<uint8_t[]>(bufferSize); HWTEST() local 6301 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 6361 uint8_t *buffer = nullptr; HWTEST() local 6419 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local 6568 uint8_t *buffer = (uint8_t *) malloc(bufferLen); HWTEST() local [all...] |
/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cloctst.c | 642 const int32_t limit = len<0 ? buflen : len; /* buflen is long enough to hit the buffer limit */ in UCharsToEscapedAscii() 701 UChar buffer[100]; in TestDisplayNames() local 717 length=uloc_getDisplayLanguage(NULL, NULL, buffer, UPRV_LENGTHOF(buffer), &errorCode); in TestDisplayNames() 719 if(U_FAILURE(errorCode) || (length<=3 && buffer[0]<=0x7f)) { in TestDisplayNames() 735 length=uloc_getDisplayLanguage("qq", "rr", buffer, UPRV_LENGTHOF(buffer), &errorCode); in TestDisplayNames() 736 if(errorCode!=U_USING_DEFAULT_WARNING || length!=2 || buffer[0]!=0x71 || buffer[1]!=0x71) { in TestDisplayNames() 742 length=uloc_getDisplayName("qq_US_POSIX", "en_US", buffer, UPRV_LENGTHO in TestDisplayNames() 1935 char buffer[256]; TestKeywordVariants() local 2049 char buffer[256]; TestKeywordVariantParsing() local 2163 char buffer[1024]; TestKeywordSet() local 2226 char buffer[1024]; TestKeywordSetError() local 2419 char buffer[256]; TestCanonicalization() local 2467 char buffer[256]; TestCanonicalizationBuffer() local 2503 char buffer[256]; TestCanonicalization21749StackUseAfterScope() local 2762 UChar buffer[128]; /* sufficient for this test */ TestTrailingNull() local 5987 char buffer[ULOC_FULLNAME_CAPACITY + ULOC_KEYWORD_AND_VALUES_CAPACITY + 1]; TestLikelySubtags() local [all...] |
/foundation/multimedia/av_codec/test/moduletest/vcodec/encoder/src/ |
H A D | videoenc_api11_sample.cpp | 82 static void onEncInputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in onEncInputBufferAvailable() argument 87 signal->inBufferQueue_.push(buffer); in onEncInputBufferAvailable() 91 static void onEncOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in onEncOutputBufferAvailable() argument 96 signal->outBufferQueue_.push(buffer); in onEncOutputBufferAvailable() 142 void VEncAPI11Sample::DumpLtrInfo(OH_AVBuffer *buffer) in DumpLtrInfo() argument 144 OH_AVFormat *format = OH_AVBuffer_GetParameter(buffer); in DumpLtrInfo() 151 void VEncAPI11Sample::DumpQPInfo(OH_AVBuffer *buffer) in DumpQPInfo() argument 153 OH_AVFormat *format = OH_AVBuffer_GetParameter(buffer); in DumpQPInfo() 160 void VEncAPI11Sample::DumpInfo(OH_AVCodecBufferAttr attr, OH_AVBuffer *buffer) in DumpInfo() argument 163 DumpLtrInfo(buffer); in DumpInfo() 321 OH_AVBuffer *buffer = signal_->inBufferQueue_.front(); state_EOS() local 835 SetEOS(uint32_t index, OH_AVBuffer *buffer) SetEOS() argument 858 SetLTRParameter(OH_AVBuffer *buffer) SetLTRParameter() argument 897 SetBufferParameter(OH_AVBuffer *buffer) SetBufferParameter() argument 925 PushData(OH_AVBuffer *buffer, uint32_t index, int32_t &result) PushData() argument 1009 auto buffer = signal_->inBufferQueue_.front(); InputFunc() local 1086 OH_AVBuffer *buffer = signal_->outBufferQueue_.front(); OutputFunc() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsi_transport_spi.c | 109 void *buffer, unsigned bufflen, in spi_execute() 124 result = scsi_execute(sdev, cmd, dir, buffer, bufflen, sense, in spi_execute() 625 * an echo buffer, we do read/write tests to it */ 627 spi_dv_device_echo_buffer(struct scsi_device *sdev, u8 *buffer, in spi_dv_device_echo_buffer() argument 630 int len = ptr - buffer; in spi_dv_device_echo_buffer() 642 /* set up the pattern buffer. Doesn't matter if we spill in spi_dv_device_echo_buffer() 643 * slightly beyond since that's where the read buffer is */ in spi_dv_device_echo_buffer() 646 /* fill the buffer with counting (test a) */ in spi_dv_device_echo_buffer() 648 buffer[j] = j; in spi_dv_device_echo_buffer() 650 /* fill the buffer wit in spi_dv_device_echo_buffer() 107 spi_execute(struct scsi_device *sdev, const void *cmd, enum dma_data_direction dir, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr) spi_execute() argument 713 spi_dv_device_compare_inquiry(struct scsi_device *sdev, u8 *buffer, u8 *ptr, const int retries) spi_dv_device_compare_inquiry() argument 749 spi_dv_retrain(struct scsi_device *sdev, u8 *buffer, u8 *ptr, enum spi_compare_returns (*compare_fn)(struct scsi_device *, u8 *, u8 *, int)) spi_dv_retrain() argument 807 spi_dv_device_get_echo_buffer(struct scsi_device *sdev, u8 *buffer) spi_dv_device_get_echo_buffer() argument 854 spi_dv_device_internal(struct scsi_device *sdev, u8 *buffer) spi_dv_device_internal() argument 1001 u8 *buffer; spi_dv_device() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsi_transport_spi.c | 108 enum req_op op, void *buffer, unsigned int bufflen, in spi_execute() 127 result = scsi_execute_cmd(sdev, cmd, opf, buffer, bufflen, in spi_execute() 624 * an echo buffer, we do read/write tests to it */ 626 spi_dv_device_echo_buffer(struct scsi_device *sdev, u8 *buffer, in spi_dv_device_echo_buffer() argument 629 int len = ptr - buffer; in spi_dv_device_echo_buffer() 641 /* set up the pattern buffer. Doesn't matter if we spill in spi_dv_device_echo_buffer() 642 * slightly beyond since that's where the read buffer is */ in spi_dv_device_echo_buffer() 645 /* fill the buffer with counting (test a) */ in spi_dv_device_echo_buffer() 647 buffer[j] = j; in spi_dv_device_echo_buffer() 649 /* fill the buffer wit in spi_dv_device_echo_buffer() 107 spi_execute(struct scsi_device *sdev, const void *cmd, enum req_op op, void *buffer, unsigned int bufflen, struct scsi_sense_hdr *sshdr) spi_execute() argument 712 spi_dv_device_compare_inquiry(struct scsi_device *sdev, u8 *buffer, u8 *ptr, const int retries) spi_dv_device_compare_inquiry() argument 748 spi_dv_retrain(struct scsi_device *sdev, u8 *buffer, u8 *ptr, enum spi_compare_returns (*compare_fn)(struct scsi_device *, u8 *, u8 *, int)) spi_dv_retrain() argument 806 spi_dv_device_get_echo_buffer(struct scsi_device *sdev, u8 *buffer) spi_dv_device_get_echo_buffer() argument 853 spi_dv_device_internal(struct scsi_device *sdev, u8 *buffer) spi_dv_device_internal() argument 1002 u8 *buffer; spi_dv_device() local [all...] |
/third_party/python/Modules/_io/ |
H A D | textio.c | 46 "Separate the underlying buffer from the TextIOBase and return it.\n" 48 "After the underlying buffer has been detached, the TextIO is in an\n" 61 "Read from underlying buffer until we have n characters or we hit EOF.\n" 509 PyObject *buffer; in _io_IncrementalNewlineDecoder_getstate_impl() local 526 &buffer, &flag)) in _io_IncrementalNewlineDecoder_getstate_impl() 531 Py_INCREF(buffer); in _io_IncrementalNewlineDecoder_getstate_impl() 535 buffer = PyBytes_FromString(""); in _io_IncrementalNewlineDecoder_getstate_impl() 541 return Py_BuildValue("NK", buffer, flag); in _io_IncrementalNewlineDecoder_getstate_impl() 555 PyObject *buffer; in _io_IncrementalNewlineDecoder_setstate() local 565 &buffer, in _io_IncrementalNewlineDecoder_setstate() 637 PyObject *buffer; global() member 1064 _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer, const char *encoding, PyObject *errors, const char *newline, int line_buffering, int write_through) _io_TextIOWrapper___init___impl() argument 1491 PyObject *buffer, *res; _io_TextIOWrapper_detach_impl() local 2328 unsigned char buffer[COOKIE_BUF_LEN]; textiowrapper_parse_cookie() local 2352 unsigned char buffer[COOKIE_BUF_LEN]; textiowrapper_build_cookie() local [all...] |
/kernel/linux/linux-5.10/drivers/message/fusion/ |
H A D | mptsas.c | 657 pRaidVolumePage0_t buffer = NULL; in mptsas_add_device_component_starget_ir() local 677 buffer = pci_alloc_consistent(ioc->pcidev, hdr.PageLength * 4, in mptsas_add_device_component_starget_ir() 680 if (!buffer) in mptsas_add_device_component_starget_ir() 689 if (!buffer->NumPhysDisks) in mptsas_add_device_component_starget_ir() 695 for (i = 0; i < buffer->NumPhysDisks; i++) { in mptsas_add_device_component_starget_ir() 698 buffer->PhysDisk[i].PhysDiskNum, &phys_disk) != 0) in mptsas_add_device_component_starget_ir() 743 if (buffer) in mptsas_add_device_component_starget_ir() 744 pci_free_consistent(ioc->pcidev, hdr.PageLength * 4, buffer, in mptsas_add_device_component_starget_ir() 1348 SasEnclosurePage0_t *buffer; in mptsas_sas_enclosure_pg0() local 1374 buffer in mptsas_sas_enclosure_pg0() 2004 SasPhyPage1_t *buffer; mptsas_get_linkerrors() local 2360 SasIOUnitPage0_t *buffer; mptsas_sas_io_unit_pg0() local 2438 SasIOUnitPage1_t *buffer; mptsas_sas_io_unit_pg1() local 2496 SasPhyPage0_t *buffer; mptsas_sas_phy_pg0() local 2560 SasDevicePage0_t *buffer; mptsas_sas_device_pg0() local 2641 SasExpanderPage0_t *buffer; mptsas_sas_expander_pg0() local 2724 SasExpanderPage1_t *buffer; mptsas_sas_expander_pg1() local 3515 struct mptsas_portinfo buffer; mptsas_expander_delete() local 3647 struct mptsas_portinfo buffer, *port_info; mptsas_expander_add() local 3772 struct mptsas_portinfo buffer, *port_info; mptsas_not_responding_devices() local 3898 struct mptsas_portinfo buffer, *port_info; mptsas_probe_expanders() local 4227 pRaidVolumePage0_t buffer = NULL; mptsas_adding_inactive_raid_components() local [all...] |
/kernel/linux/linux-6.6/drivers/message/fusion/ |
H A D | mptsas.c | 685 pRaidVolumePage0_t buffer = NULL; in mptsas_add_device_component_starget_ir() local 705 buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4, in mptsas_add_device_component_starget_ir() 708 if (!buffer) in mptsas_add_device_component_starget_ir() 717 if (!buffer->NumPhysDisks) in mptsas_add_device_component_starget_ir() 723 for (i = 0; i < buffer->NumPhysDisks; i++) { in mptsas_add_device_component_starget_ir() 726 buffer->PhysDisk[i].PhysDiskNum, &phys_disk) != 0) in mptsas_add_device_component_starget_ir() 771 if (buffer) in mptsas_add_device_component_starget_ir() 773 buffer, dma_handle); in mptsas_add_device_component_starget_ir() 1376 SasEnclosurePage0_t *buffer; in mptsas_sas_enclosure_pg0() local 1402 buffer in mptsas_sas_enclosure_pg0() 2032 SasPhyPage1_t *buffer; mptsas_get_linkerrors() local 2388 SasIOUnitPage0_t *buffer; mptsas_sas_io_unit_pg0() local 2466 SasIOUnitPage1_t *buffer; mptsas_sas_io_unit_pg1() local 2524 SasPhyPage0_t *buffer; mptsas_sas_phy_pg0() local 2588 SasDevicePage0_t *buffer; mptsas_sas_device_pg0() local 2669 SasExpanderPage0_t *buffer; mptsas_sas_expander_pg0() local 2752 SasExpanderPage1_t *buffer; mptsas_sas_expander_pg1() local 3544 struct mptsas_portinfo buffer; mptsas_expander_delete() local 3675 struct mptsas_portinfo buffer, *port_info; mptsas_expander_add() local 3800 struct mptsas_portinfo buffer, *port_info; mptsas_not_responding_devices() local 3926 struct mptsas_portinfo buffer, *port_info; mptsas_probe_expanders() local 4256 pRaidVolumePage0_t buffer = NULL; mptsas_adding_inactive_raid_components() local [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/ |
H A D | hdi_device_test.cpp | 39 const OHOS::HDI::Nnrt::V1_0::SharedBuffer& buffer) in MindIR_LiteGraph_To_Model() 64 void GetBuffer(void*& buffer, size_t length); 68 void HDIDeviceTest::GetBuffer(void*& buffer, size_t length) in GetBuffer() argument 82 buffer = memoryManager->MapMemory(fd, length); in GetBuffer() 83 EXPECT_NE(buffer, nullptr); in GetBuffer() 85 const char* result = static_cast<const char*>(buffer); in GetBuffer() 103 V1_0::SharedBuffer buffer {1, 1, 0, 1}; in PrepareModel() 105 .WillRepeatedly(::testing::DoAll(::testing::SetArgReferee<1>(buffer), ::testing::Return(allocBufferType))); in PrepareModel() 482 V1_0::SharedBuffer buffer {1, 1, 0, 1}; in HWTEST_F() 484 .WillRepeatedly(::testing::DoAll(::testing::SetArgReferee<1>(buffer), in HWTEST_F() 38 MindIR_LiteGraph_To_Model(const LiteGraph* lite_graph, const OHOS::HDI::Nnrt::V1_0::SharedBuffer& buffer) MindIR_LiteGraph_To_Model() argument 845 void *buffer = nullptr; HWTEST_F() local 879 void *buffer = nullptr; HWTEST_F() local 934 void *buffer = nullptr; HWTEST_F() local 972 void *buffer = nullptr; HWTEST_F() local 1010 void *buffer = nullptr; HWTEST_F() local 1048 void *buffer = nullptr; HWTEST_F() local 1087 V1_0::SharedBuffer buffer; HWTEST_F() local 1198 void *buffer = nullptr; HWTEST_F() local 1232 void *buffer = hdiDevice->AllocateBuffer(length); HWTEST_F() local 1247 void *buffer = nullptr; HWTEST_F() local 1259 auto* buffer = new(std::nothrow) char[length]; HWTEST_F() local 1277 void *buffer = nullptr; HWTEST_F() local [all...] |