Home
last modified time | relevance | path

Searched refs:buffer (Results 8701 - 8725 of 15492) sorted by relevance

1...<<341342343344345346347348349350>>...620

/foundation/multimedia/av_codec/frameworks/native/capi/avcodec/
H A Dnative_audio_decoder.cpp22 #include "buffer/avsharedmemory.h"
77 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) override
85 AVCODEC_LOGD("At flush, eos or stop, no buffer available");
89 OH_AVMemory *data = GetInputData(codec_, index, buffer);
95 std::shared_ptr<AVSharedMemory> buffer) override
112 OH_AVMemory *data = GetOutputData(codec_, index, buffer);
131 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get input buffer is nullptr!"); in GetInputData()
157 CHECK_AND_RETURN_RET_LOG(memory != nullptr, nullptr, "get output buffer is nullptr!"); in GetOutputData()
376 CHECK_AND_RETURN_RET_LOG(attr.size >= 0, AV_ERR_INVALID_VAL, "Invalid buffer size!"); in OH_AudioDecoder_PushInputData()
/foundation/multimedia/audio_framework/frameworks/native/audioutils/include/
H A Daudio_utils.h212 static void WriteDumpFile(FILE *dumpFile, void *buffer, size_t bufferSize);
332 bool CheckAudioData(uint8_t *buffer, size_t bufferLen);
333 bool DetectSignalData(int32_t *buffer, size_t bufferLen);
361 bool MockPcmData(uint8_t *buffer, size_t bufferLen); // mute data and insert signal data
/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/
H A Davdemuxer_demo_runner.cpp27 #include "buffer/avsharedmemorybase.h"
89 char* buffer = new char[length]; in AVSourceReadAt() local
90 infile.read(buffer, length); in AVSourceReadAt()
94 OH_AVBuffer_GetCapacity(data), buffer, length); in AVSourceReadAt()
95 delete[] buffer; in AVSourceReadAt()
/foundation/multimedia/av_codec/test/moduletest/audio_encoder/InnerAPI/
H A DInnerParamCheckTest.cpp451 std::shared_ptr<AVSharedMemory> buffer = signal_->inInnerBufQueue_.front(); in HWTEST_F() local
452 ASSERT_NE(nullptr, buffer); in HWTEST_F()
504 std::shared_ptr<AVSharedMemory> buffer = signal_->inInnerBufQueue_.front(); in HWTEST_F() local
505 ASSERT_NE(nullptr, buffer); in HWTEST_F()
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/post_processor/
H A Dvideo_post_processor.cpp447 struct stat buffer; in copyFileByFd() local
448 DP_CHECK_ERROR_RETURN_LOG(fstat(srcFd, &buffer) == -1, in copyFileByFd()
453 while (offset < buffer.st_size) { in copyFileByFd()
454 bytesSent = sendfile(dstFd, srcFd, &offset, buffer.st_size - offset); in copyFileByFd()
/foundation/communication/netstack/frameworks/native/websocket_client/
H A Dwebsocket_client.cpp157 auto buffer = std::make_unique<unsigned char[]>(LWS_PRE + messageLen); in LwsCallbackClientWritable() local
158 if (buffer == nullptr) { in LwsCallbackClientWritable()
161 int result = memcpy_s(buffer.get() + LWS_PRE, LWS_PRE + messageLen, message, messageLen); in LwsCallbackClientWritable()
166 int bytesSent = lws_write(wsi, buffer.get() + LWS_PRE, messageLen, sendData.protocol); in LwsCallbackClientWritable()
/foundation/distributeddatamgr/pasteboard/framework/test/src/
H A Dconvert_utils_test.cpp84 std::vector<std::uint8_t> buffer; in TlvData() local
85 data->Init(buffer); in TlvData()
86 data->Encode(buffer); in TlvData()
88 decodePasteData.Decode(buffer); in TlvData()
/kernel/linux/linux-5.10/arch/x86/platform/uv/
H A Duv_nmi.c100 * Default is all stack dumps go to the console and buffer.
101 * Lower level to send to log buffer only.
110 static int param_get_local64(char *buffer, const struct kernel_param *kp) in param_get_local64() argument
112 return sprintf(buffer, "%lu\n", local64_read((local64_t *)kp->arg)); in param_get_local64()
193 static int param_get_action(char *buffer, const struct kernel_param *kp) in param_get_action() argument
195 return sprintf(buffer, "%s\n", uv_nmi_action); in param_get_action()
407 * from RX buffer (default)
427 * = 0 # Enable the input buffer (active low enable)
430 * = 1 # Disable the output buffer; i.e. Hi-Z
/kernel/linux/linux-5.10/drivers/crypto/qce/
H A Dsha.c155 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export()
171 const u32 *state, const u8 *buffer, bool hmac) in qce_import_common()
181 memcpy(rctx->buf, buffer, blocksize); in qce_import_common()
224 state->buffer, hmac); in qce_ahash_import()
250 /* check for buffer from previous updates and append it */ in qce_ahash_update()
265 * if we have data from previous update copy them on buffer. The old in qce_ahash_update()
170 qce_import_common(struct ahash_request *req, u64 in_count, const u32 *state, const u8 *buffer, bool hmac) qce_import_common() argument
/kernel/linux/linux-5.10/drivers/char/hw_random/
H A Dn2-drv.c429 *data = np->buffer; in n2rng_data_read()
435 np->buffer = np->test_data >> 32; in n2rng_data_read()
464 u64 *buffer, unsigned long buf_len, in n2rng_entropy_diag_read()
469 unsigned long buffer_ra = __pa(buffer); in n2rng_entropy_diag_read()
517 dev_err(&np->op->dev, "Test buffer slot %d [0x%016llx]\n", in n2rng_dump_test_buffer()
462 n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, u64 *pre_control, u64 pre_state, u64 *buffer, unsigned long buf_len, u64 *post_control, u64 post_state) n2rng_entropy_diag_read() argument
/kernel/linux/linux-5.10/drivers/acpi/
H A Dtables.c481 static u8 __init acpi_table_checksum(u8 *buffer, u32 length) in acpi_table_checksum() argument
484 u8 *end = buffer + length; in acpi_table_checksum()
486 while (buffer < end) in acpi_table_checksum()
487 sum = (u8) (sum + *(buffer++)); in acpi_table_checksum()
H A Dpci_link.c285 struct acpi_buffer buffer = { 0, NULL }; in acpi_pci_link_set() local
294 buffer.length = sizeof(*resource) + 1; in acpi_pci_link_set()
295 buffer.pointer = resource; in acpi_pci_link_set()
341 status = acpi_set_current_resources(link->device->handle, &buffer); in acpi_pci_link_set()
H A Dacpi_tad.c89 args[0].buffer.pointer = (u8 *)rt; in acpi_tad_set_real_time()
90 args[0].buffer.length = sizeof(*rt); in acpi_tad_set_real_time()
126 if (out_obj->buffer.length != sizeof(*rt)) in acpi_tad_get_real_time()
129 data = (struct acpi_tad_rt *)(out_obj->buffer.pointer); in acpi_tad_get_real_time()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
H A Dhypervisor.h114 * ARG0: buffer
123 * Copy the most current machine description into the buffer indicated
124 * by the real address in ARG0. The buffer provided must be 16 byte
128 * Note: A method of determining the appropriate buffer size for the
129 * machine description is to first call this service with a buffer
844 * ARG1: buffer pointer
847 * ERRORS: EINVAL Supplied buffer is too small
848 * EBADALIGN The buffer pointer is badly aligned
849 * ENORADDR Invalid real address for buffer pointer
852 * into the provided buffer
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dmpc5121_nfc.c394 u8 *buffer, uint size, int wr) in mpc5121_nfc_copy_spare()
404 * first (spare_size / num_of_chunks) bytes of the buffer. in mpc5121_nfc_copy_spare()
408 * buffer is rounded down to the nearest even number of bytes, in mpc5121_nfc_copy_spare()
415 /* Calculate number of valid bytes in each spare buffer */ in mpc5121_nfc_copy_spare()
419 /* Calculate spare buffer number */ in mpc5121_nfc_copy_spare()
426 * buffer and its size. in mpc5121_nfc_copy_spare()
433 buffer, blksize); in mpc5121_nfc_copy_spare()
435 memcpy_fromio(buffer, in mpc5121_nfc_copy_spare()
438 buffer += blksize; in mpc5121_nfc_copy_spare()
393 mpc5121_nfc_copy_spare(struct mtd_info *mtd, uint offset, u8 *buffer, uint size, int wr) mpc5121_nfc_copy_spare() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.c347 dev_info(priv->dev, "RX buffer length: %u\n", kinfo->rx_buf_len); in hns3_dbg_dev_specs()
354 static ssize_t hns3_dbg_cmd_read(struct file *filp, char __user *buffer, in hns3_dbg_cmd_read() argument
373 uncopy_bytes = copy_to_user(buffer, buf, len); in hns3_dbg_cmd_read()
383 static ssize_t hns3_dbg_cmd_write(struct file *filp, const char __user *buffer, in hns3_dbg_cmd_write() argument
407 uncopied_bytes = copy_from_user(cmd_buf, buffer, count); in hns3_dbg_cmd_write()
/kernel/linux/linux-5.10/tools/usb/
H A Dffs-test.c85 char buffer[128]; in _msg() local
86 strerror_r(_errno, buffer, sizeof buffer); in _msg()
87 fprintf(stderr, ": (-%d) %s\n", _errno, buffer); in _msg()
494 /******************** Empty/Fill buffer routines ****************************/
/kernel/linux/linux-6.6/arch/sparc/include/asm/
H A Dhypervisor.h114 * ARG0: buffer
123 * Copy the most current machine description into the buffer indicated
124 * by the real address in ARG0. The buffer provided must be 16 byte
128 * Note: A method of determining the appropriate buffer size for the
129 * machine description is to first call this service with a buffer
844 * ARG1: buffer pointer
847 * ERRORS: EINVAL Supplied buffer is too small
848 * EBADALIGN The buffer pointer is badly aligned
849 * ENORADDR Invalid real address for buffer pointer
852 * into the provided buffer
[all...]
/kernel/linux/linux-5.10/drivers/iio/chemical/
H A Datlas-sensor.c21 #include <linux/iio/buffer.h>
95 __be32 buffer[6] __aligned(8);
463 &data->buffer, sizeof(__be32) * channels); in atlas_trigger_handler()
466 iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, in atlas_trigger_handler()
/kernel/linux/linux-5.10/drivers/iio/proximity/
H A Disl29501.c20 #include <linux/iio/buffer.h>
941 u32 buffer[4] __aligned(8) = {}; /* 1x16-bit + naturally aligned ts */ in isl29501_trigger_handler()
944 isl29501_register_read(isl29501, REG_DISTANCE, buffer); in isl29501_trigger_handler()
946 iio_push_to_buffers_with_timestamp(indio_dev, buffer, pf->timestamp); in isl29501_trigger_handler()
985 dev_err(&client->dev, "unable to setup iio triggered buffer\n"); in isl29501_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-common.c336 unsigned char buffer[128]; in xlgmac_print_pkt() local
352 buffer, sizeof(buffer), false); in xlgmac_print_pkt()
353 netdev_dbg(netdev, " %#06x: %s\n", i, buffer); in xlgmac_print_pkt()
/kernel/linux/linux-5.10/drivers/pci/
H A Dp2pdma.c535 if (!acs_list.buffer) in upstream_bridge_distance_warn()
544 acs_list.buffer[acs_list.len-1] = 0; in upstream_bridge_distance_warn()
546 acs_list.buffer); in upstream_bridge_distance_warn()
554 kfree(acs_list.buffer); in upstream_bridge_distance_warn()
/kernel/linux/linux-5.10/drivers/usb/dwc2/
H A Dcore.h52 * - trace_printk: Print this info to trace buffer (good for verbose logging)
115 * @map_dir: Set to the value of dir_in when the DMA buffer is mapped.
148 * buffer than a fifo)
1242 void *buffer, unsigned int count) in dwc2_readl_rep()
1245 u32 *buf = buffer; in dwc2_readl_rep()
1255 const void *buffer, unsigned int count) in dwc2_writel_rep()
1258 const u32 *buf = buffer; in dwc2_writel_rep()
1241 dwc2_readl_rep(struct dwc2_hsotg *hsotg, u32 offset, void *buffer, unsigned int count) dwc2_readl_rep() argument
1254 dwc2_writel_rep(struct dwc2_hsotg *hsotg, u32 offset, const void *buffer, unsigned int count) dwc2_writel_rep() argument
/kernel/linux/linux-5.10/sound/oss/dmasound/
H A Ddmasound_paula.c14 * [0.3] - put in constraint on state buffer usage.
123 static int AmiStateInfo(char *buffer, size_t space);
131 * from user space into our buffer at the right frequency. They take care about
132 * how much data there's actually to read, how much buffer space there is and
654 static int AmiStateInfo(char *buffer, size_t space) in AmiStateInfo() argument
657 len += sprintf(buffer+len, "\tsound.volume_left = %d [0...64]\n", in AmiStateInfo()
659 len += sprintf(buffer+len, "\tsound.volume_right = %d [0...64]\n", in AmiStateInfo()
662 printk(KERN_ERR "dmasound_paula: overflowed state buffer alloc.\n") ; in AmiStateInfo()
/kernel/linux/linux-5.10/security/tomoyo/
H A Dnetwork.c83 * @buffer: Buffer to write to.
84 * @buffer_len: Size of @buffer.
90 static void tomoyo_print_ipv4(char *buffer, const unsigned int buffer_len, in tomoyo_print_ipv4() argument
93 snprintf(buffer, buffer_len, "%pI4%c%pI4", min_ip, in tomoyo_print_ipv4()
100 * @buffer: Buffer to write to.
101 * @buffer_len: Size of @buffer.
107 static void tomoyo_print_ipv6(char *buffer, const unsigned int buffer_len, in tomoyo_print_ipv6() argument
111 snprintf(buffer, buffer_len, "%pI6c%c%pI6c", min_ip, in tomoyo_print_ipv6()

Completed in 40 milliseconds

1...<<341342343344345346347348349350>>...620