/kernel/linux/linux-6.6/drivers/soc/apple/ |
H A D | rtkit.c | 256 struct apple_rtkit_shmem *buffer, in apple_rtkit_common_rx_get_buffer() 263 buffer->buffer = NULL; in apple_rtkit_common_rx_get_buffer() 264 buffer->iomem = NULL; in apple_rtkit_common_rx_get_buffer() 265 buffer->is_mapped = false; in apple_rtkit_common_rx_get_buffer() 266 buffer->iova = FIELD_GET(APPLE_RTKIT_BUFFER_REQUEST_IOVA, msg); in apple_rtkit_common_rx_get_buffer() 267 buffer->size = n_4kpages << 12; in apple_rtkit_common_rx_get_buffer() 269 dev_dbg(rtk->dev, "RTKit: buffer request for 0x%zx bytes at %pad\n", in apple_rtkit_common_rx_get_buffer() 270 buffer->size, &buffer in apple_rtkit_common_rx_get_buffer() 255 apple_rtkit_common_rx_get_buffer(struct apple_rtkit *rtk, struct apple_rtkit_shmem *buffer, u8 ep, u64 msg) apple_rtkit_common_rx_get_buffer() argument [all...] |
/third_party/node/src/ |
H A D | inspector_socket.cc | 29 int WriteRaw(const std::vector<char>& buffer, uv_write_cb write_cb); 50 std::vector<char> buffer; member in node::inspector::TcpHolder 73 int WriteRaw(const std::vector<char>& buffer, uv_write_cb write_cb); 110 WriteRequest(ProtocolHandler* handler, const std::vector<char>& buffer) in WriteRequest() argument 112 , storage(buffer) in WriteRequest() 134 static void remove_from_beginning(std::vector<char>* buffer, size_t count) { in remove_from_beginning() argument 135 buffer->erase(buffer->begin(), buffer->begin() + count); in remove_from_beginning() 145 char (*buffer)[ACCEPT_KEY_LENGT in generate_accept_string() 144 generate_accept_string(const std::string& client_key, char (*buffer)[ACCEPT_KEY_LENGTH]) generate_accept_string() argument 284 decode_frame_hybi17(const std::vector<char>& buffer, bool client_frame, int* bytes_consumed, std::vector<char>* output, bool* compressed) decode_frame_hybi17() argument 440 ParseWsFrames(const std::vector<char>& buffer) ParseWsFrames() argument 660 WriteRaw(const std::vector<char>& buffer, uv_write_cb write_cb) WriteRaw() argument 721 WriteRaw(const std::vector<char>& buffer, uv_write_cb write_cb) WriteRaw() argument [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | strtest.cpp | 595 char buffer[20]; in TestByteSink() local 596 buffer[4] = '!'; in TestByteSink() 597 SimpleByteSink sink(buffer); in TestByteSink() 600 if(!(sink.length() == 4 && 0 == memcmp("abcz", buffer, 4) && buffer[4] == '!')) { in TestByteSink() 618 errln("ByteSink.GetAppendBuffer() did not properly return the scratch buffer"); in TestByteSink() 624 char buffer[20]; // < 26 for the test code to work in TestCheckedArrayByteSink() local 625 buffer[3] = '!'; in TestCheckedArrayByteSink() 626 CheckedArrayByteSink sink(buffer, (int32_t)sizeof(buffer)); in TestCheckedArrayByteSink() 772 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode); TestCharString() local 820 char buffer[10]; TestCharString() local [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jchuff.c | 105 } put_buffer; /* current bit accumulation buffer */ 114 savable_state saved; /* Bit buffer & DC state at start of MCU */ 139 JOCTET *next_output_byte; /* => next byte to write in buffer */ 140 size_t free_in_buffer; /* # of byte spaces remaining in buffer */ 141 savable_state cur; /* Current bit buffer & DC state */ 221 /* Initialize bit buffer to empty */ in start_pass_huff() 350 /* Empty the output buffer; return TRUE if successful, FALSE if must suspend */ in LOCAL() 356 /* After a successful buffer dump, must reset buffer pointers */ in LOCAL() 366 * encoded as 0xFF 0x00, so the output buffer pointe 498 JOCTET _buffer[BUFSIZE], *buffer, temp; LOCAL() local 550 JOCTET _buffer[BUFSIZE], *buffer; LOCAL() local 569 JOCTET _buffer[BUFSIZE], *buffer; LOCAL() local [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | file.c | 156 const struct path *path, int flags, char *buffer, in path_name() 163 error = aa_path_name(path, flags, buffer, name, &info, in path_name() 283 const struct path *path, char *buffer, u32 request, in profile_path_perm() 294 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm() 319 char *buffer = NULL; in aa_path_perm() local 324 buffer = aa_get_buffer(false); in aa_path_perm() 325 if (!buffer) in aa_path_perm() 328 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm() 331 aa_put_buffer(buffer); in aa_path_perm() 357 const struct path *link, char *buffer, in profile_path_link() 155 path_name(const char *op, struct aa_label *label, const struct path *path, int flags, char *buffer, const char **name, struct path_cond *cond, u32 request) path_name() argument 282 profile_path_perm(const char *op, struct aa_profile *profile, const struct path *path, char *buffer, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) profile_path_perm() argument 356 profile_path_link(struct aa_profile *profile, const struct path *link, char *buffer, const struct path *target, char *buffer2, struct path_cond *cond) profile_path_link() argument 464 char *buffer = NULL, *buffer2 = NULL; aa_path_link() local 515 char *buffer; __file_path_perm() local [all...] |
/kernel/linux/linux-6.6/drivers/firmware/arm_ffa/ |
H A D | driver.c | 49 * Keeping RX TX buffer size as 4K for now 81 struct mutex rx_lock; /* lock to protect Rx buffer */ 82 struct mutex tx_lock; /* lock to protect Tx buffer */ 188 /* buffer must be sizeof(struct ffa_partition_info) * num_partitions */ 191 struct ffa_partition_info *buffer, int num_partitions) in __ffa_partition_info_get() 197 (!buffer || !num_partitions)) /* Just get the count for now */ in __ffa_partition_info_get() 216 if (sz > sizeof(*buffer)) in __ffa_partition_info_get() 217 buf_sz = sizeof(*buffer); in __ffa_partition_info_get() 223 if (buffer && count <= num_partitions) in __ffa_partition_info_get() 225 memcpy(buffer in __ffa_partition_info_get() 190 __ffa_partition_info_get(u32 uuid0, u32 uuid1, u32 uuid2, u32 uuid3, struct ffa_partition_info *buffer, int num_partitions) __ffa_partition_info_get() argument 237 ffa_partition_probe(const uuid_t *uuid, struct ffa_partition_info **buffer) ffa_partition_probe() argument 414 ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize, struct ffa_mem_ops_args *args) ffa_setup_and_transmit() argument 494 void *buffer; ffa_memory_ops() local 569 ffa_partition_info_get(const char *uuid_str, struct ffa_partition_info *buffer) ffa_partition_info_get() argument [all...] |
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | file.c | 162 const struct path *path, int flags, char *buffer, in path_name() 169 error = aa_path_name(path, flags, buffer, name, &info, in path_name() 251 const struct path *path, char *buffer, u32 request, in profile_path_perm() 262 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm() 289 char *buffer = NULL; in aa_path_perm() local 294 buffer = aa_get_buffer(false); in aa_path_perm() 295 if (!buffer) in aa_path_perm() 298 profile_path_perm(op, subj_cred, profile, path, buffer, in aa_path_perm() 301 aa_put_buffer(buffer); in aa_path_perm() 328 const struct path *link, char *buffer, in profile_path_link() 160 path_name(const char *op, const struct cred *subj_cred, struct aa_label *label, const struct path *path, int flags, char *buffer, const char **name, struct path_cond *cond, u32 request) path_name() argument 249 profile_path_perm(const char *op, const struct cred *subj_cred, struct aa_profile *profile, const struct path *path, char *buffer, u32 request, struct path_cond *cond, int flags, struct aa_perms *perms) profile_path_perm() argument 326 profile_path_link(const struct cred *subj_cred, struct aa_profile *profile, const struct path *link, char *buffer, const struct path *target, char *buffer2, struct path_cond *cond) profile_path_link() argument 443 char *buffer = NULL, *buffer2 = NULL; aa_path_link() local 497 char *buffer; __file_path_perm() local [all...] |
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
H A D | pb_buffer_simple_fenced.c | 76 * Fenced buffer list. 91 * Fenced buffer. 93 * Wrapper around a pipe buffer which adds fencing and reference counting. 113 struct pb_buffer *buffer; member 118 * buffer usage. 156 * Dump the fenced buffer list. 169 "buffer", "size", "refcount", "storage", "fence", "signalled"); in fenced_manager_dump_locked() 180 fenced_buf->buffer ? "gpu" : "none"); in fenced_manager_dump_locked() 190 assert(fenced_buf->buffer); in fenced_manager_dump_locked() 228 * Add the buffer t [all...] |
/third_party/mesa3d/src/gallium/frontends/va/ |
H A D | postproc.c | 222 dst = context->target = surf->buffer; in vlVaPostProcBlit() 343 if (!vl_deint_filter_check_buffers(context->deint, prevprev->buffer, in vlVaApplyDeint() 344 prev->buffer, current, next->buffer)) in vlVaApplyDeint() 347 vl_deint_filter_render(context->deint, prevprev->buffer, prev->buffer, in vlVaApplyDeint() 348 current, next->buffer, field); in vlVaApplyDeint() 380 if (src_surface->buffer->buffer_format != dst_surface->buffer->buffer_format && in vlVaHandleVAProcPipelineParameterBufferType() 381 !src_surface->buffer in vlVaHandleVAProcPipelineParameterBufferType() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | image.c | 394 * \param destBuffer start of dest buffer 395 * \param destStride row stride in dest buffer 486 const struct gl_framebuffer *buffer = ctx->DrawBuffer; in _mesa_clip_drawpixels() local 496 if (*destX < buffer->_Xmin) { in _mesa_clip_drawpixels() 497 unpack->SkipPixels += (buffer->_Xmin - *destX); in _mesa_clip_drawpixels() 498 *width -= (buffer->_Xmin - *destX); in _mesa_clip_drawpixels() 499 *destX = buffer->_Xmin; in _mesa_clip_drawpixels() 502 if (*destX + *width > buffer->_Xmax) in _mesa_clip_drawpixels() 503 *width -= (*destX + *width - buffer->_Xmax); in _mesa_clip_drawpixels() 510 if (*destY < buffer in _mesa_clip_drawpixels() 557 const struct gl_framebuffer *buffer = ctx->ReadBuffer; _mesa_clip_readpixels() local [all...] |
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-aat-layout-common.hh | 743 buffer (buffer_), in StateTableDriver() 750 buffer->clear_output (); in drive() 753 for (buffer->idx = 0; buffer->successful;) in drive() 755 unsigned int klass = buffer->idx < buffer->len ? in drive() 756 machine.get_class (buffer->info[buffer->idx].codepoint, num_glyphs) : in drive() 758 DEBUG_MSG (APPLY, nullptr, "c%u at %u", klass, buffer->idx); in drive() 826 if (!safe_to_break && buffer in drive() 847 hb_buffer_t *buffer; global() member 866 hb_buffer_t *buffer; global() member [all...] |
/third_party/curl/tests/libtest/ |
H A D | lib1911.c | 34 static char buffer[MAX_INPUT_LENGTH + 2]; variable 51 memset(buffer, 'A', MAX_INPUT_LENGTH + 1); in test() 52 buffer[MAX_INPUT_LENGTH + 1] = 0; in test() 54 printf("string length: %d\n", (int)strlen(buffer)); in test() 79 result = curl_easy_setopt(easy, o->id, buffer); in test()
|
/third_party/libuv/docs/code/idle-compute/ |
H A D | main.c | 8 char buffer[1024]; variable 22 buffer[stdin_watcher.result] = '\0'; in on_type() 23 printf("Typed %s\n", buffer); in on_type() 25 uv_buf_t buf = uv_buf_init(buffer, 1024); in on_type() 39 uv_buf_t buf = uv_buf_init(buffer, 1024); in main()
|
/third_party/node/test/parallel/ |
H A D | test-dgram-send-cb-quelches-error.js | 9 const buffer = Buffer.from('gary busey'); 20 socket.send(buffer, 0, buffer.length, 100, 27 socket.send(buffer, 0, buffer.length, 100, 'dne.invalid');
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_zscan.h | 87 vl_zscan_init_buffer(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, 91 vl_zscan_cleanup_buffer(struct vl_zscan_buffer *buffer); 94 vl_zscan_set_layout(struct vl_zscan_buffer *buffer, struct pipe_sampler_view *layout); 97 vl_zscan_upload_quant(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, 101 vl_zscan_render(struct vl_zscan *zscan, struct vl_zscan_buffer *buffer, unsigned num_instances);
|
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
H A D | buffer_backed_descriptor.h | 25 #include "src/buffer.h" 36 BufferBackedDescriptor(Buffer* buffer, 47 Buffer* buffer, 52 Buffer* buffer); 57 void AddAmberBuffer(Buffer* buffer) { amber_buffers_.push_back(buffer); } in AddAmberBuffer() argument
|
/kernel/linux/linux-5.10/drivers/cdrom/ |
H A D | cdrom.c | 169 we didn't free the buffer before returning the error). 210 DVD_HOST_SEND_RPC_STATE did not set buffer size in cdb, and 212 did not clear a 0 sized buffer. 427 char buffer[16]; in cdrom_mrw_probe_pc() local 429 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_mrw_probe_pc() 449 unsigned char buffer[16]; in cdrom_is_mrw() local 454 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_is_mrw() 458 cgc.cmd[8] = sizeof(buffer); in cdrom_is_mrw() 480 unsigned char buffer[12]; cdrom_mrw_bgformat() local 561 char buffer[16]; cdrom_mrw_set_lba_space() local 665 unsigned char buffer[8]; cdrom_get_media_event() local 692 char buffer[24]; cdrom_get_random_writable() local 712 char buffer[16]; cdrom_has_defect_mgt() local 820 char buffer[255]; mo_open_write() local 866 char buffer[32]; cdrom_mmc3_profile() local 2019 char buffer[32]; cdrom_read_subchannel() local 3133 unsigned char buffer[32]; mmc_ioctl_cdrom_volume() local 3519 cdrom_sysctl_info(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) cdrom_sysctl_info() argument 3632 cdrom_sysctl_handler(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) cdrom_sysctl_handler() argument [all...] |
/kernel/linux/linux-6.6/drivers/cdrom/ |
H A D | cdrom.c | 160 we didn't free the buffer before returning the error). 201 DVD_HOST_SEND_RPC_STATE did not set buffer size in cdb, and 203 did not clear a 0 sized buffer. 424 char buffer[16]; in cdrom_mrw_probe_pc() local 426 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_mrw_probe_pc() 446 unsigned char buffer[16]; in cdrom_is_mrw() local 451 init_cdrom_command(&cgc, buffer, sizeof(buffer), CGC_DATA_READ); in cdrom_is_mrw() 455 cgc.cmd[8] = sizeof(buffer); in cdrom_is_mrw() 477 unsigned char buffer[12]; cdrom_mrw_bgformat() local 558 char buffer[16]; cdrom_mrw_set_lba_space() local 665 unsigned char buffer[8]; cdrom_get_media_event() local 693 char buffer[24]; cdrom_get_random_writable() local 713 char buffer[16]; cdrom_has_defect_mgt() local 821 char buffer[255]; mo_open_write() local 867 char buffer[32]; cdrom_mmc3_profile() local 2006 char buffer[32]; cdrom_read_subchannel() local 3106 unsigned char buffer[32]; mmc_ioctl_cdrom_volume() local 3476 cdrom_sysctl_info(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) cdrom_sysctl_info() argument 3589 cdrom_sysctl_handler(struct ctl_table *ctl, int write, void *buffer, size_t *lenp, loff_t *ppos) cdrom_sysctl_handler() argument [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace.c | 3 * ring buffer based function tracer 57 * On boot up, the ring buffer is set to the minimum size, so that 64 * A selftest will lurk into the ring-buffer to count the 66 * insertions into the ring-buffer such as trace_printk could occurred 121 * ftrace_dump_on_oops - variable to dump ftrace buffer on oops 133 * Set 2 if you want to dump the buffer of the CPU that triggered oops 179 struct trace_buffer *buffer, 225 /* We also need the main ring buffer expanded */ in boot_alloc_snapshot() 497 struct trace_buffer *buffer, in call_filter_check_discard() 502 __trace_event_discard_commit(buffer, even in call_filter_check_discard() 496 call_filter_check_discard(struct trace_event_call *call, void *rec, struct trace_buffer *buffer, struct ring_buffer_event *event) call_filter_check_discard() argument 921 __ftrace_trace_stack(struct trace_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs) __ftrace_trace_stack() argument 926 ftrace_trace_stack(struct trace_array *tr, struct trace_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs) ftrace_trace_stack() argument 945 __trace_buffer_lock_reserve(struct trace_buffer *buffer, int type, unsigned long len, unsigned long flags, int pc) __trace_buffer_lock_reserve() argument 990 __buffer_unlock_commit(struct trace_buffer *buffer, struct ring_buffer_event *event) __buffer_unlock_commit() argument 1013 struct trace_buffer *buffer; __trace_puts() local 1067 struct trace_buffer *buffer; __trace_bputs() local 2163 struct trace_buffer *buffer = buf->buffer; tracing_reset_cpu() local 2179 struct trace_buffer *buffer = buf->buffer; tracing_reset_online_cpus() local 2320 struct trace_buffer *buffer; tracing_start_tr() local 2368 struct trace_buffer *buffer; tracing_stop_tr() local 2636 trace_buffer_lock_reserve(struct trace_buffer *buffer, int type, unsigned long len, unsigned long flags, int pc) trace_buffer_lock_reserve() argument 2835 tracepoint_printk_sysctl(struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) tracepoint_printk_sysctl() argument 2890 trace_buffer_unlock_commit_regs(struct trace_array *tr, struct trace_buffer *buffer, struct ring_buffer_event *event, unsigned long flags, int pc, struct pt_regs *regs) trace_buffer_unlock_commit_regs() argument 2912 trace_buffer_unlock_commit_nostack(struct trace_buffer *buffer, struct ring_buffer_event *event) trace_buffer_unlock_commit_nostack() argument 2924 struct trace_buffer *buffer = tr->array_buffer.buffer; trace_function() local 2962 __ftrace_trace_stack(struct trace_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs) __ftrace_trace_stack() argument 3031 ftrace_trace_stack(struct trace_array *tr, struct trace_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs) ftrace_trace_stack() argument 3045 struct trace_buffer *buffer = tr->array_buffer.buffer; __trace_stack() local 3092 ftrace_trace_userstack(struct trace_array *tr, struct trace_buffer *buffer, unsigned long flags, int pc) ftrace_trace_userstack() argument 3138 ftrace_trace_userstack(struct trace_array *tr, struct trace_buffer *buffer, unsigned long flags, int pc) ftrace_trace_userstack() argument 3150 char buffer[4][TRACE_BUF_SIZE]; global() member 3161 struct trace_buffer_struct *buffer = this_cpu_ptr(trace_percpu_buffer); get_trace_buf() local 3267 struct trace_buffer *buffer; trace_vbprintk() local 3327 __trace_array_vprintk(struct trace_buffer *buffer, unsigned long ip, const char *fmt, va_list args) __trace_array_vprintk() argument 3455 trace_array_printk_buf(struct trace_buffer *buffer, unsigned long ip, const char *fmt, ...) trace_array_printk_buf() argument 3515 struct trace_buffer *buffer = iter->array_buffer->buffer; __find_next_entry() local 6852 struct trace_buffer *buffer; tracing_mark_write() local 6933 struct trace_buffer *buffer; tracing_mark_raw_write() local 7656 tracing_err_log_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) tracing_err_log_write() argument 7827 struct trace_buffer *buffer; global() member 8685 struct trace_buffer *buffer = tr->array_buffer.buffer; rb_simple_write() local 9662 trace_parse_run_command(struct file *file, const char __user *buffer, size_t count, loff_t *ppos, int (*createfn)(int, char **)) trace_parse_run_command() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | videoenc_func_unit_test.cpp | 78 cb.onNeedInputBuffer = [](OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) { in GetVoidCallback() 81 (void)buffer; in GetVoidCallback() 84 cb.onNewOutputBuffer = [](OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) { in GetVoidCallback() 87 (void)buffer; in GetVoidCallback() 135 bool ReadCustomDataToAVBuffer(const std::string &fileName, std::shared_ptr<AVBuffer> buffer); 261 bool TEST_SUIT::ReadCustomDataToAVBuffer(const std::string &fileName, std::shared_ptr<AVBuffer> buffer) in ReadCustomDataToAVBuffer() argument 267 sptr<SurfaceBuffer> surfaceBuffer = buffer->memory_->GetSurfaceBuffer(); in ReadCustomDataToAVBuffer() 558 * @tc.desc: video push input buffer 573 * @tc.desc: video push input buffer 587 * @tc.desc: video push input buffer 988 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1016 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1044 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1071 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1107 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1133 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); HWTEST_P() local 1159 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); HWTEST_P() local 1184 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(10000); HWTEST_P() local 1223 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local 1262 std::shared_ptr<AVBufferMock> buffer = AVBufferMockFactory::CreateAVBuffer(avbuffer); HWTEST_P() local [all...] |
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_decoder_inner_demo.cpp | 52 char buffer[TMP_BUFFER_SIZE]; // 临时buffer,仅测试vorbis时需要 in RunCase() local 57 DEMO_CHECK_AND_RETURN_LOG(extradataSize <= TMP_BUFFER_SIZE, "Fatal: buffer not large enough"); in RunCase() 58 inputFile_.read(buffer, extradataSize); in RunCase() 60 format.PutBuffer(MediaDescriptionKey::MD_KEY_CODEC_CONFIG.data(), (uint8_t *)buffer, extradataSize); in RunCase() 159 std::cout << "end buffer\n"; in HandleInputEOS() 188 std::shared_ptr<AVSharedMemory> buffer = signal_->inBufferQueue_.front(); in InputFunc() local 189 if (buffer == nullptr) { in InputFunc() 191 std::cout << "buffer is null:" << index << "\n"; in InputFunc() 205 inputFile_.read((char *)buffer in InputFunc() 229 auto buffer = signal_->outBufferQueue_.front(); OutputFunc() local 268 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVSharedMemory> buffer) OnInputBufferAvailable() argument 277 OnOutputBufferAvailable(uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<AVSharedMemory> buffer) OnOutputBufferAvailable() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | sony-btf-mpx.c | 49 u8 buffer[5]; in mpx_write() local 52 buffer[0] = dev; in mpx_write() 53 buffer[1] = addr >> 8; in mpx_write() 54 buffer[2] = addr & 0xff; in mpx_write() 55 buffer[3] = val >> 8; in mpx_write() 56 buffer[4] = val & 0xff; in mpx_write() 60 msg.buf = buffer; in mpx_write() 161 u8 buffer[3]; in mpx_setup() local 166 buffer[0] = 0x00; in mpx_setup() 167 buffer[ in mpx_setup() [all...] |
/kernel/linux/linux-5.10/fs/squashfs/ |
H A D | cache.c | 267 ERROR("Failed to allocate %s buffer\n", name); in squashfs_cache_init() 289 * Copy up to length bytes from cache entry to buffer starting at offset bytes 293 int squashfs_copy_data(void *buffer, struct squashfs_cache_entry *entry, in squashfs_copy_data() argument 300 else if (buffer == NULL) in squashfs_copy_data() 310 memcpy(buffer, buff, remaining); in squashfs_copy_data() 315 memcpy(buffer, buff, bytes); in squashfs_copy_data() 316 buffer += bytes; in squashfs_copy_data() 331 int squashfs_read_metadata(struct super_block *sb, void *buffer, in squashfs_read_metadata() argument 353 bytes = squashfs_copy_data(buffer, entry, *offset, length); in squashfs_read_metadata() 354 if (buffer) in squashfs_read_metadata() 410 void *table, *buffer, **data; squashfs_read_table() local [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | sony-btf-mpx.c | 49 u8 buffer[5]; in mpx_write() local 52 buffer[0] = dev; in mpx_write() 53 buffer[1] = addr >> 8; in mpx_write() 54 buffer[2] = addr & 0xff; in mpx_write() 55 buffer[3] = val >> 8; in mpx_write() 56 buffer[4] = val & 0xff; in mpx_write() 60 msg.buf = buffer; in mpx_write() 161 u8 buffer[3]; in mpx_setup() local 166 buffer[0] = 0x00; in mpx_setup() 167 buffer[ in mpx_setup() [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | prmt.c | 224 * @value : it is an in/out parameter. It points to the PRM message buffer. 233 struct prm_buffer *buffer = ACPI_CAST_PTR(struct prm_buffer, value); in acpi_platformrt_space_handler() local 246 * saved in the first byte of the PRM message buffer to be used by ASL. in acpi_platformrt_space_handler() 248 switch (buffer->prm_cmd) { in acpi_platformrt_space_handler() 251 handler = find_prm_handler(&buffer->handler_guid); in acpi_platformrt_space_handler() 252 module = find_prm_module(&buffer->handler_guid); in acpi_platformrt_space_handler() 267 buffer->prm_status = PRM_HANDLER_SUCCESS; in acpi_platformrt_space_handler() 269 buffer->prm_status = PRM_HANDLER_ERROR; in acpi_platformrt_space_handler() 270 buffer->efi_status = status; in acpi_platformrt_space_handler() 276 module = find_prm_module(&buffer in acpi_platformrt_space_handler() [all...] |