Home
last modified time | relevance | path

Searched refs:buffer (Results 7751 - 7775 of 15492) sorted by relevance

1...<<311312313314315316317318319320>>...620

/kernel/linux/linux-6.6/tools/perf/jvmti/
H A Dlibjvmti.c166 get_source_filename(jvmtiEnv *jvmti, jmethodID methodID, char ** buffer) in get_source_filename() argument
195 *buffer = malloc((len + 1) * sizeof(char)); in get_source_filename()
196 if (!*buffer) { in get_source_filename()
201 strcpy(*buffer, fn); in get_source_filename()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dexpr.c344 YY_BUFFER_STATE buffer; in __expr__parse() local
354 buffer = expr__scan_string(expr, scanner); in __expr__parse()
363 expr__flush_buffer(buffer, scanner); in __expr__parse()
364 expr__delete_buffer(buffer, scanner); in __expr__parse()
/kernel/linux/linux-6.6/tools/thermal/tmon/
H A Dtui.c604 char buffer[512]; in show_sensors_w() local
611 memset(buffer, 0, sizeof(buffer)); in show_sensors_w()
616 mvwprintw(tz_sensor_window, 1, TZ_LEFT_ALIGN, "%s", buffer); in show_sensors_w()
/kernel/linux/linux-6.6/sound/core/seq/
H A Dseq_timer.c477 struct snd_info_buffer *buffer) in snd_seq_info_timer_read()
496 snd_iprintf(buffer, "Timer for queue %i : %s\n", q->queue, ti->timer->name); in snd_seq_info_timer_read()
498 snd_iprintf(buffer, " Period time : %lu.%09lu\n", resolution / 1000000000, resolution % 1000000000); in snd_seq_info_timer_read()
499 snd_iprintf(buffer, " Skew : %u / %u\n", tmr->skew, tmr->skew_base); in snd_seq_info_timer_read()
476 snd_seq_info_timer_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_seq_info_timer_read() argument
/kernel/linux/linux-6.6/security/keys/trusted-keys/
H A Dtrusted_tpm2.c72 "BUG: scratch buffer is too small")) in tpm2_key_encode()
153 char buffer[50]; in tpm2_key_type() local
155 sprint_oid(value, vlen, buffer, sizeof(buffer)); in tpm2_key_type()
157 buffer); in tpm2_key_type()
189 * tpm2_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer.
/kernel/linux/linux-6.6/mm/kasan/
H A Dreport.c440 char buffer[4 + (BITS_PER_LONG / 8) * 2]; in print_memory_metadata() local
443 snprintf(buffer, sizeof(buffer), in print_memory_metadata()
453 print_hex_dump(KERN_ERR, buffer, in print_memory_metadata()
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dipc3-pcm.c60 pcm.params.buffer.pages = PFN_UP(runtime->dma_bytes); in sof_ipc3_pcm_hw_params()
67 pcm.params.buffer.phy_addr = spcm->stream[substream->stream].page_table.addr; in sof_ipc3_pcm_hw_params()
68 pcm.params.buffer.size = runtime->dma_bytes; in sof_ipc3_pcm_hw_params()
104 pcm.params.buffer.phy_addr = platform_params->phy_addr; in sof_ipc3_pcm_hw_params()
H A Dipc4-mtrace.c36 * Log buffer slots have the following layout:
39 * u8 buffer[];
41 * The two pointers are offsets within the buffer.
187 static ssize_t sof_ipc4_mtrace_dfs_read(struct file *file, char __user *buffer, in sof_ipc4_mtrace_dfs_read() argument
209 if (copy_to_user(buffer, &avail, sizeof(avail))) in sof_ipc4_mtrace_dfs_read()
218 /* The log data buffer starts after the two pointer in the slot */ in sof_ipc4_mtrace_dfs_read()
261 ret = copy_to_user(buffer, &avail, sizeof(avail)); in sof_ipc4_mtrace_dfs_read()
266 ret = copy_to_user(buffer + sizeof(avail), log_buffer, avail); in sof_ipc4_mtrace_dfs_read()
281 * Ask for a new buffer from user space for the next chunk, not in sof_ipc4_mtrace_dfs_read()
659 * messages anymore, so check the log buffer statu in ipc4_mtrace_fw_crashed()
[all...]
H A Ddebug.c22 static ssize_t sof_dfsentry_write(struct file *file, const char __user *buffer, in sof_dfsentry_write() argument
33 size = simple_write_to_buffer(string, count, ppos, buffer, count); in sof_dfsentry_write()
40 static ssize_t sof_dfsentry_read(struct file *file, char __user *buffer, in sof_dfsentry_read() argument
65 /* intermediate buffer size must be u32 multiple */ in sof_dfsentry_read()
85 * - Otherwise, copy from cached buffer. in sof_dfsentry_read()
112 size_ret = copy_to_user(buffer, buf + skip, count); in sof_dfsentry_read()
155 * allocate cache buffer that will be used to save the mem window in snd_sof_debugfs_io_item()
294 /* allocate buffer memory only in first open run, to save memory when unused */ in memory_info_open()
319 /* don't allocate buffer before first usage, to save memory when unused */ in snd_sof_dbg_memory_info_init()
H A Dcompress.c212 pcm->params.buffer.pages = PFN_UP(crtd->dma_bytes); in sof_compr_set_params()
218 pcm->params.buffer.phy_addr = spcm->stream[cstream->direction].page_table.addr; in sof_compr_set_params()
219 pcm->params.buffer.size = crtd->dma_bytes; in sof_compr_set_params()
227 pcm->params.host_period_bytes = params->buffer.fragment_size; in sof_compr_set_params()
/kernel/linux/linux-6.6/tools/arch/x86/kcpuid/
H A Dkcpuid.c300 char buffer[512]; in parse_line() local
321 strncpy(buffer, line, 511); in parse_line()
322 buffer[511] = 0; in parse_line()
323 str = buffer; in parse_line()
/kernel/linux/linux-6.6/samples/mei/
H A Dmei-amt-version.c154 static ssize_t mei_recv_msg(struct mei *me, unsigned char *buffer, in mei_recv_msg() argument
182 rc = read(me->fd, buffer, len); in mei_recv_msg()
198 static ssize_t mei_send_msg(struct mei *me, const unsigned char *buffer, in mei_send_msg() argument
206 written = write(me->fd, buffer, len); in mei_send_msg()
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/
H A Djsvm_utils.cpp212 char *buffer = new char[capacity]; in ToString() local
214 JSVMTEST_CALL(OH_JSVM_GetValueStringUtf8(jsvm_env, js_string, buffer, capacity, &copy_length)); in ToString()
215 std::string str(buffer); in ToString()
216 delete[] buffer; in ToString()
/test/xts/acts/multimedia/photoAccess/photoAccess/entry/src/main/cpp/napi/
H A DmediaAssetManager.cpp165 std::vector<char> buffer(bufferSize); in GetUtf8String()
166 napi_get_value_string_utf8(env, root, &(buffer[NUM0]), bufferSize, &resultSize); in GetUtf8String()
167 res.assign(buffer.begin(), buffer.end()); in GetUtf8String()
/third_party/ffmpeg/libavcodec/
H A Ddxva2_hevc.c257 /* Create an annex B bitstream buffer with only slice NAL and finalize slice */ in commit_bitstream_and_slice_buffer()
359 av_unused const uint8_t *buffer, in dxva2_hevc_start_frame()
383 const uint8_t *buffer, in dxva2_hevc_decode_slice()
395 ctx_pic->bitstream = buffer; in dxva2_hevc_decode_slice()
398 position = buffer - ctx_pic->bitstream; in dxva2_hevc_decode_slice()
358 dxva2_hevc_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) dxva2_hevc_start_frame() argument
382 dxva2_hevc_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) dxva2_hevc_decode_slice() argument
H A Ddxva2_vp9.c255 av_unused const uint8_t *buffer, in dxva2_vp9_start_frame()
276 const uint8_t *buffer, in dxva2_vp9_decode_slice()
284 ctx_pic->bitstream = buffer; in dxva2_vp9_decode_slice()
287 position = buffer - ctx_pic->bitstream; in dxva2_vp9_decode_slice()
254 dxva2_vp9_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) dxva2_vp9_start_frame() argument
275 dxva2_vp9_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) dxva2_vp9_decode_slice() argument
H A Dlibvorbisenc.c51 AVFifo *pkt_fifo; /**< output packet buffer */
183 /* How many bytes are needed for a buffer of length 'l' */
298 float **buffer; in libvorbis_encode_frame() local
301 buffer = vorbis_analysis_buffer(&s->vd, samples); in libvorbis_encode_frame()
305 memcpy(buffer[c], frame->extended_data[co], in libvorbis_encode_frame()
306 samples * sizeof(*buffer[c])); in libvorbis_encode_frame()
330 /* add any available packets to the output packet buffer */ in libvorbis_encode_frame()
333 av_log(avctx, AV_LOG_ERROR, "packet buffer is too small\n"); in libvorbis_encode_frame()
H A Dnvdec_av1.c40 static int nvdec_av1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) in nvdec_av1_start_frame() argument
287 static int nvdec_av1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) in nvdec_av1_decode_slice() argument
303 /* Shortcut if all tiles are in the same buffer */ in nvdec_av1_decode_slice()
305 ctx->bitstream = (uint8_t*)buffer; in nvdec_av1_decode_slice()
323 memcpy(ctx->bitstream + ctx->bitstream_len, buffer, size); in nvdec_av1_decode_slice()
/third_party/elfio/c_wrapper/
H A Delfio_c_wrapper.cpp137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument
139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name()
142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name()
144 psection->set_name( buffer ); in elfio_section_set_name()
/third_party/elfio/examples/c_wrapper/
H A Delfio_c_wrapper.cpp137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument
139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name()
142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name()
144 psection->set_name( buffer ); in elfio_section_set_name()
/third_party/ffmpeg/libavfilter/
H A Dvf_convolution_opencl.c106 cl_mem buffer; in convolution_opencl_make_filter_params() local
156 buffer = clCreateBuffer(ctx->ocf.hwctx->context, in convolution_opencl_make_filter_params()
161 if (!buffer) { in convolution_opencl_make_filter_params()
162 av_log(avctx, AV_LOG_ERROR, "Failed to create matrix buffer: " in convolution_opencl_make_filter_params()
167 ctx->matrix[j] = buffer; in convolution_opencl_make_filter_params()
/third_party/curl/src/
H A Dtool_doswin.c675 char *path; /* points to stack allocated buffer */ in GetLoadedModulePaths()
681 char buffer[sizeof(mod.szExePath) * 2]; in GetLoadedModulePaths() local
683 buffer, sizeof(buffer), NULL, NULL)) in GetLoadedModulePaths()
685 path = buffer; in GetLoadedModulePaths()
/third_party/backends/backend/
H A Du12-if.c442 * one more to avoid a buffer overflow, then allocate it... in u12if_getCaps()
569 void *buffer; in u12if_SetupBuffer() local
572 buffer = malloc(_SIZE_TOTAL_BUF_TPA); in u12if_SetupBuffer()
573 if( buffer == NULL ) in u12if_SetupBuffer()
577 dev->bufs.b1.pReadBuf = buffer; in u12if_SetupBuffer()
/third_party/cups-filters/filter/
H A Dsys5ippprinter.c94 char buffer[8192]; /* Copy buffer */ in main() local
181 while ((bytes = fread(buffer, 1, sizeof(buffer), stdin)) > 0) in main()
182 bytes = write(fd, buffer, bytes); in main()
210 /* We copy the contents of argv[5] into a somewhat larger buffer so that in main()
873 int buflen, /* I - Length of buffer */ in set_option_in_str()
/third_party/cups-filters/cupsfilters/
H A Dpdftoippprinter.c83 int buflen, /* I - Length of buffer */ in set_option_in_str()
138 char buffer[8192]; /* Copy buffer */ in apply_filters() local
224 while ((bytes = fread(buffer, 1, sizeof(buffer), stdin)) > 0) in apply_filters()
225 bytes = write(fd, buffer, bytes); in apply_filters()
251 /* We copy the contents of argv[5] into a somewhat larger buffer so that in apply_filters()

Completed in 25 milliseconds

1...<<311312313314315316317318319320>>...620