/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageLoadStoreTests.cpp | 388 void commandBufferWriteBarrierBeforeHostRead (Context& context, const VkCommandBuffer cmdBuffer, const VkBuffer buffer, const VkDeviceSize bufferSizeBytes) in commandBufferWriteBarrierBeforeHostRead() argument 394 buffer, 0ull, bufferSizeBytes); in commandBufferWriteBarrierBeforeHostRead() 399 //! Copy all layers of an image to a buffer. 403 const VkBuffer buffer, in commandCopyImageToBuffer() 419 buffer, 0ull, bufferSizeBytes); in commandCopyImageToBuffer() 422 vk.cmdCopyImageToBuffer(cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, buffer, 1u, ©Region); in commandCopyImageToBuffer() 426 //! Copy all layers of a mipmap image to a buffer. 431 const VkBuffer buffer, in commandCopyMipmapImageToBuffer() 462 buffer, 0ull, bufferSizeBytes); in commandCopyMipmapImageToBuffer() 465 vk.cmdCopyImageToBuffer(cmdBuffer, image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, buffer, (deUint3 in commandCopyMipmapImageToBuffer() 400 commandCopyImageToBuffer(Context& context, const VkCommandBuffer cmdBuffer, const VkImage image, const VkBuffer buffer, const VkDeviceSize bufferSizeBytes, const Texture& texture) commandCopyImageToBuffer() argument 427 commandCopyMipmapImageToBuffer(Context& context, const VkCommandBuffer cmdBuffer, const VkImage image, const VkFormat imageFormat, const VkBuffer buffer, const VkDeviceSize bufferSizeBytes, const Texture& texture) commandCopyMipmapImageToBuffer() argument [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fSynchronizationTests.cpp | 235 m_testCtx.getLog() << tcu::TestLog::Message << "Allocating zero-filled buffer for storage, size " << bufferElements << " elements, " << bufferSize << " bytes." << tcu::TestLog::EndMessage; 275 m_testCtx.getLog() << tcu::TestLog::Message << "Allocating -1 filled buffer for results, size " << bufferElements << " elements, " << bufferSize << " bytes." << tcu::TestLog::EndMessage; 313 // Verify buffer contents 317 m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, (std::string((m_storage == STORAGE_BUFFER) ? ("buffer") : ("image")) + " content verification failed").c_str()); 353 m_testCtx.getLog() << tcu::TestLog::Message << "Binding same buffer object to buffer storages." << tcu::TestLog::EndMessage; 393 GLU_EXPECT_NO_ERROR(gl.getError(), "map buffer"); 409 m_testCtx.getLog() << tcu::TestLog::Message << "Result buffer failed, got unexpected values.\n" << tcu::TestLog::EndMessage; 422 m_testCtx.getLog() << tcu::TestLog::Message << "Result buffer ok." << tcu::TestLog::EndMessage; 432 // Wait until all invocations in this work group have their texture/buffer rea [all...] |
/third_party/vulkan-headers/include/vulkan/ |
H A D | vulkan_funcs.hpp | 1061 VULKAN_HPP_NODISCARD VULKAN_HPP_INLINE Result Device::bindBufferMemory( VULKAN_HPP_NAMESPACE::Buffer buffer, 1068 d.vkBindBufferMemory( m_device, static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) ); 1073 VULKAN_HPP_NAMESPACE::Buffer buffer, VULKAN_HPP_NAMESPACE::DeviceMemory memory, VULKAN_HPP_NAMESPACE::DeviceSize memoryOffset, Dispatch const & d ) const in bindBufferMemory() 1078 d.vkBindBufferMemory( m_device, static_cast<VkBuffer>( buffer ), static_cast<VkDeviceMemory>( memory ), static_cast<VkDeviceSize>( memoryOffset ) ) ); in bindBufferMemory() 1112 VULKAN_HPP_INLINE void Device::getBufferMemoryRequirements( VULKAN_HPP_NAMESPACE::Buffer buffer, 1117 d.vkGetBufferMemoryRequirements( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( pMemoryRequirements ) ); 1123 Device::getBufferMemoryRequirements( VULKAN_HPP_NAMESPACE::Buffer buffer, Dispatch const & d ) const VULKAN_HPP_NOEXCEPT 1128 d.vkGetBufferMemoryRequirements( m_device, static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); 1990 VULKAN_HPP_NAMESPACE::Buffer buffer; in createBuffer() local 1995 reinterpret_cast<VkBuffer *>( &buffer ) ) ); in createBuffer() 1072 bindBufferMemory( VULKAN_HPP_NAMESPACE::Buffer buffer, VULKAN_HPP_NAMESPACE::DeviceMemory memory, VULKAN_HPP_NAMESPACE::DeviceSize memoryOffset, Dispatch const & d ) const bindBufferMemory() argument 2008 VULKAN_HPP_NAMESPACE::Buffer buffer; createBufferUnique() local 13655 getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const & d ) const getAndroidHardwareBufferPropertiesANDROID() argument 13669 getAndroidHardwareBufferPropertiesANDROID( const struct AHardwareBuffer & buffer, Dispatch const & d ) const getAndroidHardwareBufferPropertiesANDROID() argument 13702 struct AHardwareBuffer * buffer; getMemoryAndroidHardwareBufferANDROID() local 23490 getScreenBufferPropertiesQNX( const struct _screen_buffer & buffer, Dispatch const & d ) const getScreenBufferPropertiesQNX() argument 23504 getScreenBufferPropertiesQNX( const struct _screen_buffer & buffer, Dispatch const & d ) const getScreenBufferPropertiesQNX() argument [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/utils/ |
H A D | napi_utils.cpp | 132 std::unique_ptr<char[]> buffer = std::make_unique<char[]>(valueLen); in NapiStringToString() local 133 napi_get_value_string_utf8(env, value, buffer.get(), valueLen, &ret); in NapiStringToString() 134 retStr = buffer.get(); in NapiStringToString()
|
/foundation/arkui/napi/module_manager/ |
H A D | native_module_manager.cpp | 944 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(len); in GetFileBuffer() local 946 inFile.read(reinterpret_cast<char*>(buffer.get()), len); in GetFileBuffer() 948 lib = buffer.release(); in GetFileBuffer() 1128 HILOG_INFO("Register by buffer success. module name is '%{public}s'", tailNativeModule_->moduleName); in RegisterByBuffer()
|
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | decoder_surface_filter.cpp | 105 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override 109 void OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override 113 decoderSurfaceFilter->DrainOutputBuffer(index, buffer);
|
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/heif_impl/ |
H A D | HeifDecoderImpl.cpp | 103 IMAGE_LOGE("planesInfo is invalid for yuv buffer"); in FillFrameInfoForPixelConvert() 880 static bool IsEmptyBuffer(uint8_t *buffer, uint32_t width, uint32_t height, uint32_t bpp, uint32_t rowStride) in IsEmptyBuffer() argument 882 if (buffer == nullptr) { in IsEmptyBuffer() 885 uint8_t *bufferRowStart = buffer; in IsEmptyBuffer() 1003 IMAGE_LOGE("find to get src buffer planes info"); in ConvertHwBufferPixelFormat() 1011 IMAGE_LOGE("fail to get dst buffer planes info"); in ConvertHwBufferPixelFormat()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | image_pixel_map_switch_test.cpp | 645 void *buffer = malloc(bufferSize);
in HWTEST_F() local 646 EXPECT_NE(buffer, nullptr);
in HWTEST_F() 647 pixelMap.SetPixelsAddr(buffer, nullptr, bufferSize, AllocatorType::SHARE_MEM_ALLOC, nullptr);
in HWTEST_F()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/ |
H A D | video_output_napi.cpp | 387 char buffer[PATH_MAX]; in AttachMetaSurface() local 389 napi_get_value_string_utf8(env, argv[PARAM0], buffer, PATH_MAX, &surfaceId); in AttachMetaSurface() 394 std::istringstream iss((std::string(buffer))); in AttachMetaSurface()
|
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_scheduler_service.cpp | 305 char buffer[MAX_BUFFER]; in GetJsonFromFile() local 307 while (fin.getline(buffer, MAX_BUFFER)) { in GetJsonFromFile() 308 os << buffer; in GetJsonFromFile() local
|
/foundation/communication/nfc/frameworks/js/napi/common/ |
H A D | nfc_napi_common_utils.cpp | 216 DebugLog("arraybuffer size is %{public}zu,buffer is %{public}d", size, (*data)[0]); in ParseArrayBuffer() 238 napi_value buffer = nullptr; in ConvertStringVector() local 240 NAPI_CALL_BASE(env, napi_get_typedarray_info(env, jsValue, &type, &length, nullptr, &buffer, &offset), {}); in ConvertStringVector() 247 NAPI_CALL_BASE(env, napi_get_arraybuffer_info(env, buffer, reinterpret_cast<void **>(&data), &total), {}); in ConvertStringVector()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
H A D | ethernet_configuration.cpp | 452 std::stringstream buffer; in ReadFile() local 453 buffer << file.rdbuf(); in ReadFile() 454 fileContent = buffer.str(); in ReadFile()
|
/kernel/linux/linux-5.10/drivers/net/caif/ |
H A D | caif_hsi.c | 165 char buffer[32]; /* Any reasonable value */ in cfhsi_flush_fifo() local 184 fifo_occupancy = min(sizeof(buffer), fifo_occupancy); in cfhsi_flush_fifo() 186 ret = cfhsi->ops->cfhsi_rx(buffer, fifo_occupancy, in cfhsi_flush_fifo() 1131 * Allocate a TX buffer with the size of a HSI packet descriptors in cfhsi_open() 1141 * Allocate a RX buffer with the size of two HSI packet descriptors and in cfhsi_open()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/ |
H A D | sun3_82586.c | 599 p->xmit_buffs[i]->buffer = make24((p->xmit_cbuffs[i])); in init586() 667 rbd[i].buffer = make24(ptr); in alloc_rfa() 777 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int() 786 skb_copy_to_linear_data(skb,(char *) p->base+swab32((unsigned long) rbd->buffer),totlen); in sun3_82586_rcv_int()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_common.c | 255 * @buffer: pointer to command buffer 256 * @buf_len: max length of buffer 261 void *buffer, u16 buf_len) in iavf_debug_aq() 264 u8 *buf = (u8 *)buffer; in iavf_debug_aq() 285 if (buffer && aq_desc->datalen) { in iavf_debug_aq() 351 * @lut: pointer to the lut buffer provided by the caller 352 * @lut_size: size of the lut buffer 405 * @lut: pointer to the lut buffer provided by the caller 406 * @lut_size: size of the lut buffer 260 iavf_debug_aq(struct iavf_hw *hw, enum iavf_debug_mask mask, void *desc, void *buffer, u16 buf_len) iavf_debug_aq() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/ |
H A D | joydev.c | 59 struct js_event buffer[JOYDEV_BUFFER_SIZE]; member 63 spinlock_t buffer_lock; /* protects access to buffer, head and tail */ 99 client->buffer[client->head] = *event; in joydev_pass_event() 329 *event = client->buffer[client->tail++]; in joydev_fetch_next_event()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | mlx5_ib.h | 1160 int mlx5_ib_read_wqe_sq(struct mlx5_ib_qp *qp, int wqe_index, void *buffer, 1162 int mlx5_ib_read_wqe_rq(struct mlx5_ib_qp *qp, int wqe_index, void *buffer, 1164 int mlx5_ib_read_wqe_srq(struct mlx5_ib_srq *srq, int wqe_index, void *buffer,
|
/kernel/linux/linux-5.10/drivers/media/platform/atmel/ |
H A D | atmel-isi.c | 42 /* Frame buffer descriptor */ 44 /* Physical address of the frame buffer */ 63 /* Frame buffer data */ 102 /* Allocate descriptors for dma buffer use */ 359 static void start_dma(struct atmel_isi *isi, struct frame_buffer *buffer) in start_dma() argument 376 (u32)buffer->p_dma_desc->fbd_phys); in start_dma() 382 (u32)buffer->p_dma_desc->fbd_phys); in start_dma() 474 /* abort streaming and wait for last buffer */ 1244 /* buffer queue */ in atmel_isi_probe()
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/ |
H A D | saa7164-encoder.c | 96 /* Dynamic buffer switch at encoder start time */ 146 printk(KERN_ERR "%s() failed (errno = %d), unable to allocate buffer\n", in saa7164_encoder_buffers_alloc() 604 /* Reset the state of any allocated buffer resources */ in saa7164_encoder_stop_streaming() 607 /* Reset the hard and soft buffer state */ in saa7164_encoder_stop_streaming() 639 /* allocate all of the PCIe DMA buffer resources on the fly, in saa7164_encoder_start_streaming() 788 static ssize_t fops_read(struct file *file, char __user *buffer, in fops_read() argument 825 /* blocking wait for buffer */ in fops_read() 834 /* Pull the first buffer from the used list */ in fops_read() 849 if (copy_to_user(buffer, p, cnt)) { in fops_read() 860 buffer in fops_read() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
H A D | fw_common.c | 50 enum version_8192c version, u8 *buffer, u32 size) in _rtl92c_write_fw() 55 u8 *bufferptr = (u8 *)buffer; in _rtl92c_write_fw() 85 rtl_fw_block_write(hw, buffer, size); in _rtl92c_write_fw() 49 _rtl92c_write_fw(struct ieee80211_hw *hw, enum version_8192c version, u8 *buffer, u32 size) _rtl92c_write_fw() argument
|
/kernel/linux/linux-5.10/net/xdp/ |
H A D | xsk.c | 116 /* The buffer pool is stored both in the _rx struct and the _tx struct as we do 394 char *buffer; in xsk_generic_xmit() local 412 buffer = xsk_buff_raw_get_data(xs->pool, addr); in xsk_generic_xmit() 413 err = skb_store_bits(skb, 0, buffer, len); in xsk_generic_xmit() 759 /* Share the buffer pool with the other socket. */ in xsk_bind() 793 /* FQ and CQ are now owned by the buffer pool and cleaned up with it. */ in xsk_bind()
|
/kernel/linux/linux-5.10/sound/pci/ |
H A D | via82xx_modem.c | 316 flag = VIA_TBL_BIT_EOL; /* buffer boundary */ in build_via_table() 548 * calculate the linear position at the given sg-buffer index and the rest count 589 * when end of buffer is reached in calc_linear_pos() 638 * allocate the buffer and build up the buffer description table 661 * clean up the buffer description table and release the buffer 904 static void snd_via82xx_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in snd_via82xx_proc_read() argument 909 snd_iprintf(buffer, "%s\n\n", chip->card->longname); in snd_via82xx_proc_read() 911 snd_iprintf(buffer, " in snd_via82xx_proc_read() [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | relay.c | 88 * relay_mmap_buf: - mmap channel buffer to process address space 89 * @buf: relay channel buffer 116 * relay_alloc_buf - allocate a channel buffer 117 * @buf: the buffer struct 118 * @size: total size of the buffer 120 * Returns a pointer to the resulting buffer, %NULL if unsuccessful. The 157 * relay_create_buf - allocate and initialize a channel buffer 160 * Returns channel buffer if successful, %NULL otherwise. 205 * relay_destroy_buf - destroy an rchan_buf struct and associated buffer 206 * @buf: the buffer struc 1121 relay_file_read(struct file *filp, char __user *buffer, size_t count, loff_t *ppos) relay_file_read() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/hdpvr/ |
H A D | hdpvr-video.c | 31 "%s:%d buffer stat: %d free, %d proc\n", \ 74 /* marking buffer as received and wake waiting */ in hdpvr_read_bulk_callback() 80 /* buffer bits */ 147 v4l2_err(&dev->v4l2_dev, "cannot allocate buffer\n"); in hdpvr_alloc_buffers() 161 "cannot allocate usb transfer buffer\n"); in hdpvr_alloc_buffers() 200 "buffer not marked as available\n"); in hdpvr_submit_buffers() 334 v4l2_err(&dev->v4l2_dev, "failed to allocate temporary buffer for emptying the internal device buffer. Next capture start will be slow\n"); in hdpvr_stop_streaming() 349 /* emptying the device buffer beforeshutting it down */ in hdpvr_stop_streaming() 406 static ssize_t hdpvr_read(struct file *file, char __user *buffer, size_ argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_video.c | 304 * vsp1_video_complete_buffer - Complete the current buffer 307 * This function completes the current buffer by filling its sequence number, 310 * Return the next queued buffer or NULL if the queue is empty. 837 struct vsp1_vb2_buffer *buffer; in vsp1_video_release_buffers() local 842 list_for_each_entry(buffer, &video->irqqueue, queue) in vsp1_video_release_buffers() 843 vb2_buffer_done(&buffer->buf.vb2_buf, VB2_BUF_STATE_ERROR); in vsp1_video_release_buffers()
|