Home
last modified time | relevance | path

Searched refs:buffer (Results 1201 - 1225 of 13863) sorted by relevance

1...<<41424344454647484950>>...555

/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/debug/backend/
H A Dmali_kbase_debug_ktrace_csf.c28 void kbasep_ktrace_backend_format_header(char *buffer, int sz, s32 *written) in kbasep_ktrace_backend_format_header() argument
30 *written += MAX(snprintf(buffer + *written, MAX(sz - *written, 0), in kbasep_ktrace_backend_format_header()
35 char *buffer, int sz, s32 *written) in kbasep_ktrace_backend_format_msg()
46 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
52 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
57 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
62 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
69 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
74 *written += MAX(snprintf(buffer + *written, in kbasep_ktrace_backend_format_msg()
80 *written += MAX(snprintf(buffer in kbasep_ktrace_backend_format_msg()
34 kbasep_ktrace_backend_format_msg(struct kbase_ktrace_msg *trace_msg, char *buffer, int sz, s32 *written) kbasep_ktrace_backend_format_msg() argument
[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...]
/kernel/linux/linux-6.6/drivers/accel/ivpu/
H A Divpu_fw_log.c62 static void buffer_print(char *buffer, u32 size, struct drm_printer *p) in buffer_print() argument
67 if (!size || !buffer) in buffer_print()
71 if (*buffer == '\n' || *buffer == 0) { in buffer_print()
76 buffer++; in buffer_print()
84 if (*buffer != '\r' && (isprint(*buffer) || iscntrl(*buffer))) in buffer_print()
85 line[index++] = *buffer; in buffer_print()
86 buffer in buffer_print()
[all...]
/kernel/linux/linux-6.6/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-6.6/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...]
/third_party/libsnd/programs/
H A Dsndfile-salvage.c233 { char buffer [8192], *cptr ; in find_data_offset() local
261 if ((rlen = read (fd, buffer, sizeof (buffer))) < 0) in find_data_offset()
266 cptr = memchr (buffer, target [0], rlen - slen) ; in find_data_offset()
268 offset = cptr - buffer ; in find_data_offset()
279 { static char * buffer ; in copy_data() local
284 buffer = malloc (bufferlen) ; in copy_data()
286 while (NOT (done) && (readlen = read (fd, buffer, bufferlen)) >= 0) in copy_data()
292 if ((count = sf_write_raw (sndfile, buffer, readlen)) != readlen) in copy_data()
298 free (buffer) ; in copy_data()
[all...]
/third_party/libuv/test/
H A Dtest-poll-oob.c69 char buffer[5]; in poll_cb() local
74 memset(buffer, 0, 5); in poll_cb()
78 n = recv(client_fd, &buffer, 5, MSG_OOB); in poll_cb()
90 n = recv(client_fd, &buffer, 5, 0); in poll_cb()
94 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb()
100 ASSERT_OK(strncmp(buffer, "hello", n)); in poll_cb()
104 n = recv(server_fd, &buffer, 5, 0); in poll_cb()
108 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb()
118 n = recv(server_fd, &buffer, 3, 0); in poll_cb()
122 ASSERT_OK(strncmp(buffer, "fo in poll_cb()
[all...]
/third_party/libcoap/include/oscore/
H A Doscore_cose.h170 const char *cose_get_curve_name(cose_curve_t id, char *buffer, size_t buflen);
173 const char *cose_get_alg_name(cose_alg_t id, char *buffer, size_t buflen);
176 const char *cose_get_hkdf_alg_name(cose_hkdf_alg_t id, char *buffer,
214 size_t cose_encrypt0_encode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size);
217 int cose_encrypt0_decode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size);
224 void cose_encrypt0_set_plaintext(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size);
227 uint8_t *buffer,
231 int cose_encrypt0_get_plaintext(cose_encrypt0_t *ptr, uint8_t **buffer);
241 size_t cose_encrypt0_get_key_id(cose_encrypt0_t *ptr, const uint8_t **buffer);
250 const uint8_t **buffer);
[all...]
/third_party/node/test/fixtures/wpt/wasm/jsapi/module/
H A DcustomSections.any.js4 function assert_ArrayBuffer(buffer, expected) {
5 assert_equals(Object.getPrototypeOf(buffer), ArrayBuffer.prototype, "Prototype");
6 assert_true(Object.isExtensible(buffer), "isExtensible");
7 assert_array_equals(new Uint8Array(buffer), expected);
88 const buffer = builder.toBuffer()
89 const module = new WebAssembly.Module(buffer);
112 const buffer = builder.toBuffer();
113 const module = new WebAssembly.Module(buffer);
127 const buffer = builder.toBuffer();
128 const module = new WebAssembly.Module(buffer);
[all...]
/third_party/node/test/parallel/
H A Dtest-fs-promises-file-handle-read.js16 async function read(fileHandle, buffer, offset, length, position, options) {
18 fileHandle.read({ buffer, offset, length, position }) :
19 fileHandle.read(buffer, offset, length, position);
24 const buffer = Buffer.from(data, 'utf8');
30 fs.writeSync(fd, buffer, 0, buffer.length);
38 assert.deepStrictEqual(buffer, readAsyncHandle.buffer);
45 assert.deepStrictEqual(buffer, streamData);
47 assert.deepStrictEqual(streamData, readAsyncHandle.buffer);
[all...]
/third_party/libdrm/tegra/
H A Dpushbuf.c54 * drm_tegra_pushbuf_begin() - prepare push buffer for a series of pushes
55 * @pushbuf: push buffer
129 struct drm_tegra_submit_buf *buffers, *buffer; in drm_tegra_pushbuf_relocate() local
133 size = (job->num_buffers + 1) * sizeof(*buffer); in drm_tegra_pushbuf_relocate()
139 buffer = &buffers[job->num_buffers]; in drm_tegra_pushbuf_relocate()
141 memset(buffer, 0, sizeof(*buffer)); in drm_tegra_pushbuf_relocate()
142 buffer->mapping = target->id; in drm_tegra_pushbuf_relocate()
143 buffer->flags = flags; in drm_tegra_pushbuf_relocate()
144 buffer in drm_tegra_pushbuf_relocate()
[all...]
/third_party/mesa3d/src/gallium/drivers/lima/
H A Dlima_disk_cache.c110 void *buffer = disk_cache_get(cache, cache_key, &size); in lima_vs_disk_cache_retrieve() local
113 fprintf(stderr, "%s\n", buffer ? "found" : "missing"); in lima_vs_disk_cache_retrieve()
115 if (!buffer) in lima_vs_disk_cache_retrieve()
123 blob_reader_init(&blob, buffer, size); in lima_vs_disk_cache_retrieve()
135 free(buffer); in lima_vs_disk_cache_retrieve()
162 void *buffer = disk_cache_get(cache, cache_key, &size); in lima_fs_disk_cache_retrieve() local
165 fprintf(stderr, "%s\n", buffer ? "found" : "missing"); in lima_fs_disk_cache_retrieve()
167 if (!buffer) in lima_fs_disk_cache_retrieve()
175 blob_reader_init(&blob, buffer, size); in lima_fs_disk_cache_retrieve()
183 free(buffer); in lima_fs_disk_cache_retrieve()
[all...]
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/
H A DEncoder.java21 private ByteBuffer buffer; field in Encoder
67 * @param inputBufferSize read buffer size
72 throw new IllegalArgumentException("buffer size must be positive"); in Encoder()
96 while (buffer != null) { in pushOutput()
97 if (buffer.hasRemaining()) { in pushOutput()
98 destination.write(buffer); in pushOutput()
100 if (!buffer.hasRemaining()) { in pushOutput()
101 buffer = null; in pushOutput()
126 buffer = encoder.pull(); in encode()
157 * Encodes the given data buffer
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DProgrammableEncoder.cpp136 // BGL creation sorts bindings such that the dynamic buffer bindings are first. in ValidateSetBindGroup()
139 ASSERT(bindingInfo.buffer.hasDynamicOffset); in ValidateSetBindGroup()
142 switch (bindingInfo.buffer.type) { in ValidateSetBindGroup()
162 // <= buffer size. in ValidateSetBindGroup()
163 ASSERT(bufferBinding.buffer->GetSize() >= bufferBinding.size); in ValidateSetBindGroup()
164 ASSERT(bufferBinding.buffer->GetSize() - bufferBinding.size >= bufferBinding.offset); in ValidateSetBindGroup()
167 bufferBinding.buffer->GetSize() - bufferBinding.offset - bufferBinding.size)) { in ValidateSetBindGroup()
169 (bufferBinding.buffer->GetSize() - bufferBinding.offset) == bufferBinding.size, in ValidateSetBindGroup()
171 "range of (offset: %u, size: %u). The binding goes to the end of the buffer " in ValidateSetBindGroup()
174 static_cast<uint32_t>(i), dynamicOffsets[i], bufferBinding.buffer, in ValidateSetBindGroup()
[all...]
/third_party/skia/third_party/externals/harfbuzz/util/
H A Dshape-format.hh37 void serialize (hb_buffer_t *buffer,
44 void serialize_buffer_of_text (hb_buffer_t *buffer,
54 void serialize_buffer_of_glyphs (hb_buffer_t *buffer,
100 shape_format_options_t::serialize (hb_buffer_t *buffer, in serialize() argument
106 unsigned int num_glyphs = hb_buffer_get_length (buffer); in serialize()
113 start += hb_buffer_serialize (buffer, start, num_glyphs, in serialize()
130 shape_format_options_t::serialize_buffer_of_text (hb_buffer_t *buffer, in serialize_buffer_of_text() argument
149 serialize (buffer, font, HB_BUFFER_SERIALIZE_FORMAT_TEXT, HB_BUFFER_SERIALIZE_FLAG_DEFAULT, gs); in serialize_buffer_of_text()
164 shape_format_options_t::serialize_buffer_of_glyphs (hb_buffer_t *buffer, in serialize_buffer_of_glyphs() argument
174 serialize (buffer, fon in serialize_buffer_of_glyphs()
[all...]
/third_party/skia/third_party/externals/dng_sdk/source/
H A Ddng_image.h76 dng_tile_buffer (const dng_tile_buffer &buffer);
78 dng_tile_buffer & operator= (const dng_tile_buffer &buffer);
250 /// Get a pixel buffer of data on image with proper edge padding.
251 /// \param buffer Receives resulting pixel buffer.
258 void Get (dng_pixel_buffer &buffer,
263 /// Put a pixel buffer into image.
264 /// \param buffer Pixel buffer to copy from.
266 void Put (const dng_pixel_buffer &buffer);
[all...]
/third_party/rust/crates/clap/clap_complete/src/shells/
H A Dfish.rs23 let mut buffer = String::new(); in generate() variables
24 gen_fish_inner(bin_name, &[], cmd, &mut buffer); in generate()
25 w!(buf, buffer.as_bytes()); in generate()
43 buffer: &mut String, in gen_fish_inner()
107 buffer.push_str(template.as_str()); in gen_fish_inner()
108 buffer.push('\n'); in gen_fish_inner()
131 buffer.push_str(template.as_str()); in gen_fish_inner()
132 buffer.push('\n'); in gen_fish_inner()
145 buffer.push_str(template.as_str()); in gen_fish_inner()
146 buffer in gen_fish_inner()
[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...]

Completed in 13 milliseconds

1...<<41424344454647484950>>...555