Home
last modified time | relevance | path

Searched refs:buffer (Results 7001 - 7025 of 15582) sorted by relevance

1...<<281282283284285286287288289290>>...624

/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/pipeline/
H A Drs_unittest_composer_adapter_test.cpp180 auto buffer = surfaceNode->GetRSSurfaceHandler()->GetBuffer(); in HWTEST_F() local
182 layer->SetBuffer(buffer, surfaceNode->GetRSSurfaceHandler()->GetAcquireFence()); in HWTEST_F()
202 auto buffer = surfaceNode->GetRSSurfaceHandler()->GetBuffer(); in HWTEST_F() local
204 layer->SetBuffer(buffer, surfaceNode->GetRSSurfaceHandler()->GetAcquireFence()); in HWTEST_F()
212 * @tc.desc: RSComposerAdapter.LayerPresentTimestamp test with null buffer
251 * @tc.desc: CreateLayers when surfaceNode has valid buffer
531 sptr<OHOS::SurfaceBuffer> buffer = new SurfaceBufferImpl(0); in HWTEST_F() local
533 node->GetRenderDrawable())->GetRSSurfaceHandlerOnDraw()->SetBuffer(buffer, acquireFence, damage, timestamp); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/
H A Drs_composer_adapter_test.cpp169 * @tc.desc: CreateLayers when surfaceNode has valid buffer
440 sptr<OHOS::SurfaceBuffer> buffer = new SurfaceBufferImpl(0); in HWTEST_F() local
442 node->GetRenderDrawable())->GetRSSurfaceHandlerOnDraw()->SetBuffer(buffer, acquireFence, damage, timestamp); in HWTEST_F()
460 auto buffer = surfaceNode->GetRSSurfaceHandler()->GetBuffer(); in HWTEST_F() local
462 layer->SetBuffer(buffer, surfaceNode->GetRSSurfaceHandler()->GetAcquireFence()); in HWTEST_F()
482 auto buffer = surfaceNode->GetRSSurfaceHandler()->GetBuffer(); in HWTEST_F() local
484 layer->SetBuffer(buffer, surfaceNode->GetRSSurfaceHandler()->GetAcquireFence()); in HWTEST_F()
492 * @tc.desc: RSComposerAdapter.LayerPresentTimestamp test with null buffer
/foundation/multimedia/image_framework/plugins/common/libs/image/libsvgplugin/src/
H A Dsvg_decoder.cpp85 context.pixelsBuffer.buffer = ptr; in AllocShareBufferInner()
91 context.pixelsBuffer.buffer = nullptr; in AllocShareBufferInner()
112 IMAGE_LOGE("[AllocShareBuffer] pixelmap buffer size %{public}llu out of max size", in AllocShareBuffer()
130 IMAGE_LOGE("[AllocDmaBuffer] pixelmap buffer size %{public}llu out of max size", in AllocDmaBuffer()
158 context.pixelsBuffer.buffer = sb->GetVirAddr(); in AllocDmaBuffer()
178 IMAGE_LOGE("[AllocHeapBuffer] pixelmap buffer size %{public}llu out of max size", in AllocHeapBuffer()
185 IMAGE_LOGE("[AllocHeapBuffer] alloc buffer size:[%{public}llu] failed.", in AllocHeapBuffer()
191 IMAGE_LOGE("[AllocHeapBuffer] memset buffer failed."); in AllocHeapBuffer()
197 context.pixelsBuffer.buffer = outputBuffer; in AllocHeapBuffer()
409 if (context.pixelsBuffer.buffer in AllocBuffer()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dbasic_transformer.cpp141 void BasicTransformer::ReleaseBuffer(AllocatorType allocatorType, int fd, int dataSize, uint8_t *buffer) in ReleaseBuffer() argument
145 if (buffer != nullptr) { in ReleaseBuffer()
146 ::munmap(buffer, dataSize); in ReleaseBuffer()
154 if (buffer != nullptr) { in ReleaseBuffer()
155 free(buffer); in ReleaseBuffer()
156 buffer = nullptr; in ReleaseBuffer()
178 IMAGE_LOGE("[BasicTransformer]buffer size is invalid."); in TransformPixmap()
184 IMAGE_LOGE("[BasicTransformer] buffer size:%{public}llu out of range.", in TransformPixmap()
/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/
H A Dipc_invoker.c124 static int32_t IpcFreeBuffer(void *buffer) in IpcFreeBuffer() argument
126 if (buffer == NULL) { in IpcFreeBuffer()
137 .buffToFree = buffer in IpcFreeBuffer()
553 MessageOption option, uintptr_t *buffer) in IpcSendRequest()
557 if ((option.flags > TF_OP_ASYNC) || ((option.flags == TF_OP_SYNC) && (buffer == NULL))) { in IpcSendRequest()
598 *buffer = (uintptr_t)content.inMsg; in IpcSendRequest()
552 IpcSendRequest(SvcIdentity target, uint32_t code, IpcIo *data, IpcIo *reply, MessageOption option, uintptr_t *buffer) IpcSendRequest() argument
/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/multimedia_codec/encoder/
H A Dencode_data_process.cpp335 DHLOGE("EncodeNode input buffer size %{public}zu error.", inputBuffers[0]->Size()); in ProcessData()
348 DHLOGD("Feed encoder input buffer, buffer size %{public}zu.", inputBuffer->Size()); in FeedEncoderInputBuffer()
353 "Get encoder input producer surface buffer failed."); in FeedEncoderInputBuffer()
366 DHLOGD("Encoder input buffer size %{public}zu, timeStamp %{public}lld.", inputBuffer->Size(), in FeedEncoderInputBuffer()
369 DHLOGE("Surface buffer exist null extra data."); in FeedEncoderInputBuffer()
377 "Flush encoder input producer surface buffer failed."); in FeedEncoderInputBuffer()
414 DHLOGE("Request encoder input producer surface buffer failed, error code: %d.", err); in GetEncoderInputSurfaceBuffer()
451 MediaAVCodec::AVCodecBufferFlag flag, std::shared_ptr<Media::AVSharedMemory>& buffer) in GetEncoderOutputBuffer()
453 DHLOGD("Get encoder output buffer in GetEncoderOutputBuffer()
450 GetEncoderOutputBuffer(uint32_t index, MediaAVCodec::AVCodecBufferInfo info, MediaAVCodec::AVCodecBufferFlag flag, std::shared_ptr<Media::AVSharedMemory>& buffer) GetEncoderOutputBuffer() argument
526 OnInputBufferAvailable(uint32_t index, std::shared_ptr<Media::AVSharedMemory> buffer) OnInputBufferAvailable() argument
540 OnOutputBufferAvailable(uint32_t index, MediaAVCodec::AVCodecBufferInfo info, MediaAVCodec::AVCodecBufferFlag flag, std::shared_ptr<Media::AVSharedMemory> buffer) OnOutputBufferAvailable() argument
[all...]
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/
H A Duntar_file.cpp496 vector<uint8_t> buffer {}; in VerifyChecksum()
497 buffer.resize(sizeof(header)); in VerifyChecksum()
498 buffer.assign(reinterpret_cast<uint8_t *>(&header), reinterpret_cast<uint8_t *>(&header) + sizeof(header)); in VerifyChecksum()
503 sum += (buffer[index] & 0xFF); in VerifyChecksum()
509 strChksum.assign(buffer.begin(), buffer.end()); in VerifyChecksum()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igb/
H A De1000_i210.c284 * If error code is returned, data and Shadow RAM may be inconsistent - buffer
452 u32 buffer[E1000_INVM_SIZE]; in igb_read_invm_version() local
459 buffer[i] = invm_dword; in igb_read_invm_version()
464 record = &buffer[invm_blocks - i]; in igb_read_invm_version()
465 next_record = &buffer[invm_blocks - i + 1]; in igb_read_invm_version()
509 record = &buffer[invm_blocks - i]; in igb_read_invm_version()
510 next_record = &buffer[invm_blocks - i + 1]; in igb_read_invm_version()
/kernel/linux/linux-5.10/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors_core.c10 #include <linux/iio/buffer.h>
196 * Ignore samples if the buffer is not set: it is needed if the ODR is in cros_ec_sensors_push_data()
197 * set but the buffer is not enabled yet. in cros_ec_sensors_push_data()
239 * @trigger_capture: function pointer to call buffer is triggered,
333 * Create a software buffer, feed by the EC FIFO. in cros_ec_sensors_core_init()
337 struct iio_buffer *buffer; in cros_ec_sensors_core_init() local
339 buffer = devm_iio_kfifo_allocate(dev); in cros_ec_sensors_core_init()
340 if (!buffer) in cros_ec_sensors_core_init()
343 iio_device_attach_buffer(indio_dev, buffer); in cros_ec_sensors_core_init()
363 * The only way to get samples in buffer i in cros_ec_sensors_core_init()
[all...]
/kernel/linux/linux-5.10/drivers/iio/adc/
H A Dmxs-lradc-adc.c24 #include <linux/iio/buffer.h>
119 u32 buffer[10] __aligned(8);
423 adc->buffer[j] = readl(adc->base + LRADC_CH(j)); in mxs_lradc_adc_trigger_handler()
425 adc->buffer[j] &= LRADC_CH_VALUE_MASK; in mxs_lradc_adc_trigger_handler()
426 adc->buffer[j] /= LRADC_DELAY_TIMER_LOOP; in mxs_lradc_adc_trigger_handler()
430 iio_push_to_buffers_with_timestamp(iio, adc->buffer, pf->timestamp); in mxs_lradc_adc_trigger_handler()
/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Dtrace.h398 __field(u32, buffer)
407 __entry->buffer = le32_to_cpu(trb->buffer);
414 __get_str(name), __entry->trb, __entry->buffer,
446 __dynamic_array(char, buffer,
459 __get_str(buffer)))
/kernel/linux/linux-5.10/drivers/usb/misc/
H A Dlegousbtower.c24 * - make read buffer reusable and work around bytes_to_write issue between
43 * - allow increased buffer size, eliminates need for timeout on write
100 MODULE_PARM_DESC(read_buffer_size, "Read buffer size");
110 MODULE_PARM_DESC(write_buffer_size, "Write buffer size");
221 static ssize_t tower_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos);
222 static ssize_t tower_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos);
437 * with packetizing we pretend not to see any data in the read buffer
439 * dev->packet_timeout_jiffies, or until the buffer is full.
492 static ssize_t tower_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) in tower_read() argument
550 if (copy_to_user(buffer, de in tower_read()
576 tower_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) tower_write() argument
[all...]
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
H A Dsvc_rdma_sendto.c137 void *buffer; in svc_rdma_send_ctxt_alloc() local
146 buffer = kmalloc(rdma->sc_max_req_size, GFP_KERNEL); in svc_rdma_send_ctxt_alloc()
147 if (!buffer) in svc_rdma_send_ctxt_alloc()
149 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_send_ctxt_alloc()
161 ctxt->sc_xprt_buf = buffer; in svc_rdma_send_ctxt_alloc()
171 kfree(buffer); in svc_rdma_send_ctxt_alloc()
311 /* Sync the transport header buffer */ in svc_rdma_send()
349 * On success, returns length in bytes of the Reply XDR buffer
351 * %-EMSGSIZE on XDR buffer overflow
366 * On success, returns length in bytes of the Reply XDR buffer
[all...]
H A Dsvc_rdma_recvfrom.c132 void *buffer; in svc_rdma_recv_ctxt_alloc() local
137 buffer = kmalloc(rdma->sc_max_req_size, GFP_KERNEL); in svc_rdma_recv_ctxt_alloc()
138 if (!buffer) in svc_rdma_recv_ctxt_alloc()
140 addr = ib_dma_map_single(rdma->sc_pd->device, buffer, in svc_rdma_recv_ctxt_alloc()
155 ctxt->rc_recv_buf = buffer; in svc_rdma_recv_ctxt_alloc()
160 kfree(buffer); in svc_rdma_recv_ctxt_alloc()
403 * - Read list does not overflow Receive buffer.
408 * buffer. That's about 40 Read segments for a 1KB inline
453 * buffer. That's about 60 Write segments for a 1KB inline
490 * - Write list does not overflow Receive buffer
[all...]
/kernel/linux/linux-5.10/include/linux/ssb/
H A Dssb.h215 void (*block_read)(struct ssb_device *dev, void *buffer,
217 void (*block_write)(struct ssb_device *dev, const void *buffer,
600 static inline void ssb_block_read(struct ssb_device *dev, void *buffer, in ssb_block_read() argument
603 dev->ops->block_read(dev, buffer, count, offset, reg_width); in ssb_block_read()
606 static inline void ssb_block_write(struct ssb_device *dev, const void *buffer, in ssb_block_write() argument
609 dev->ops->block_write(dev, buffer, count, offset, reg_width); in ssb_block_write()
/kernel/linux/linux-5.10/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c79 * A buffer of data on the queue.
93 * request length and buffer.
111 char buffer[XENSTORE_PAYLOAD_MAX]; member
164 /* Clear out buffer if it has been consumed */ in xenbus_file_read()
183 * Add a buffer to the queue. Caller must hold the appropriate lock
454 } *msg = (void *)u->u.buffer; in xenbus_write_transaction()
502 path = u->u.buffer + sizeof(u->u.msg); in xenbus_write_watch()
562 * buffer it up. Once it is complete, we act on it. in xenbus_file_write()
568 * buffer. We don't make any attemppt to stop multiple in xenbus_file_write()
580 /* Can't write a xenbus message larger we can buffer */ in xenbus_file_write()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
H A Ddpaux.c92 static void tegra_dpaux_write_fifo(struct tegra_dpaux *dpaux, const u8 *buffer, in tegra_dpaux_write_fifo() argument
102 value |= buffer[i * 4 + j] << (j * 8); in tegra_dpaux_write_fifo()
108 static void tegra_dpaux_read_fifo(struct tegra_dpaux *dpaux, u8 *buffer, in tegra_dpaux_read_fifo() argument
120 buffer[i * 4 + j] = value >> (j * 8); in tegra_dpaux_read_fifo()
199 tegra_dpaux_write_fifo(dpaux, msg->buffer, msg->size); in tegra_dpaux_transfer()
260 tegra_dpaux_read_fifo(dpaux, msg->buffer, count); in tegra_dpaux_transfer()
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
H A Diss_ipipeif.c220 struct iss_buffer *buffer; in ipipeif_isr_buffer() local
223 * deal with it anyway). Disabling the ISIF when no buffer is available in ipipeif_isr_buffer()
231 buffer = omap4iss_video_buffer_next(&ipipeif->video_out); in ipipeif_isr_buffer()
232 if (!buffer) in ipipeif_isr_buffer()
235 ipipeif_set_outaddr(ipipeif, buffer->iss_addr); in ipipeif_isr_buffer()
261 struct iss_buffer *buffer) in ipipeif_video_queue()
269 ipipeif_set_outaddr(ipipeif, buffer->iss_addr); in ipipeif_video_queue()
272 * If streaming was enabled before there was a buffer queued in ipipeif_video_queue()
323 * When outputting to memory with no buffer available, let the in ipipeif_set_stream()
324 * buffer queu in ipipeif_set_stream()
260 ipipeif_video_queue(struct iss_video *video, struct iss_buffer *buffer) ipipeif_video_queue() argument
[all...]
H A Diss_resizer.c154 /* Program UV buffer address... Hardcoded to be contiguous! */ in resizer_set_outaddr()
265 struct iss_buffer *buffer; in resizer_isr_buffer() local
272 buffer = omap4iss_video_buffer_next(&resizer->video_out); in resizer_isr_buffer()
273 if (!buffer) in resizer_isr_buffer()
276 resizer_set_outaddr(resizer, buffer->iss_addr); in resizer_isr_buffer()
313 struct iss_buffer *buffer) in resizer_video_queue()
321 resizer_set_outaddr(resizer, buffer->iss_addr); in resizer_video_queue()
324 * If streaming was enabled before there was a buffer queued in resizer_video_queue()
380 * When outputting to memory with no buffer available, let the in resizer_set_stream()
381 * buffer queu in resizer_set_stream()
312 resizer_video_queue(struct iss_video *video, struct iss_buffer *buffer) resizer_video_queue() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/cio/
H A Ddevice_pgid.c687 u8 *buffer; in ccw_device_stlck() local
695 buffer = kzalloc(64, GFP_DMA | GFP_KERNEL); in ccw_device_stlck()
696 if (!buffer) in ccw_device_stlck()
706 ccw_device_stlck_start(cdev, &data, &buffer[0], &buffer[32]); in ccw_device_stlck()
723 kfree(buffer); in ccw_device_stlck()
/kernel/linux/linux-5.10/drivers/staging/media/allegro-dvt/
H A Dallegro-mail.c278 struct mcu_msg_push_buffers_internal_buffer *buffer; in allegro_enc_push_buffers() local
285 buffer = &msg->buffer[j]; in allegro_enc_push_buffers()
286 dst[i++] = buffer->dma_addr; in allegro_enc_push_buffers()
287 dst[i++] = buffer->mcu_addr; in allegro_enc_push_buffers()
288 dst[i++] = buffer->size; in allegro_enc_push_buffers()
/kernel/linux/linux-6.6/drivers/media/platform/allegro-dvt/
H A Dallegro-mail.c284 struct mcu_msg_push_buffers_internal_buffer *buffer; in allegro_enc_push_buffers() local
291 buffer = &msg->buffer[j]; in allegro_enc_push_buffers()
292 dst[i++] = buffer->dma_addr; in allegro_enc_push_buffers()
293 dst[i++] = buffer->mcu_addr; in allegro_enc_push_buffers()
294 dst[i++] = buffer->size; in allegro_enc_push_buffers()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_bloom_filter.c222 static u16 mlxsw_sp2_acl_bf_crc(const u8 *buffer, size_t len) in mlxsw_sp2_acl_bf_crc() argument
227 crc = mlxsw_sp2_acl_bf_crc16_byte(crc, *buffer++); in mlxsw_sp2_acl_bf_crc()
298 static u16 mlxsw_sp4_acl_bf_crc(const u8 *buffer, size_t len) in mlxsw_sp4_acl_bf_crc() argument
303 crc_row = mlxsw_sp4_acl_bf_crc10_byte(crc_row, *buffer); in mlxsw_sp4_acl_bf_crc()
304 crc_col = mlxsw_sp4_acl_bf_crc6_byte(crc_col, *buffer); in mlxsw_sp4_acl_bf_crc()
305 buffer++; in mlxsw_sp4_acl_bf_crc()
324 * but actually references a buffer that the array is shifted in right_shift_array()
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/igb/
H A De1000_i210.c284 * If error code is returned, data and Shadow RAM may be inconsistent - buffer
452 u32 buffer[E1000_INVM_SIZE]; in igb_read_invm_version() local
459 buffer[i] = invm_dword; in igb_read_invm_version()
464 record = &buffer[invm_blocks - i]; in igb_read_invm_version()
465 next_record = &buffer[invm_blocks - i + 1]; in igb_read_invm_version()
509 record = &buffer[invm_blocks - i]; in igb_read_invm_version()
510 next_record = &buffer[invm_blocks - i + 1]; in igb_read_invm_version()
/kernel/linux/linux-6.6/drivers/xen/xenbus/
H A Dxenbus_dev_frontend.c79 * A buffer of data on the queue.
93 * request length and buffer.
111 char buffer[XENSTORE_PAYLOAD_MAX]; member
164 /* Clear out buffer if it has been consumed */ in xenbus_file_read()
183 * Add a buffer to the queue. Caller must hold the appropriate lock
454 } *msg = (void *)u->u.buffer; in xenbus_write_transaction()
502 path = u->u.buffer + sizeof(u->u.msg); in xenbus_write_watch()
562 * buffer it up. Once it is complete, we act on it. in xenbus_file_write()
568 * buffer. We don't make any attemppt to stop multiple in xenbus_file_write()
580 /* Can't write a xenbus message larger we can buffer */ in xenbus_file_write()
[all...]

Completed in 31 milliseconds

1...<<281282283284285286287288289290>>...624