Home
last modified time | relevance | path

Searched refs:buffer (Results 8501 - 8525 of 15799) sorted by relevance

1...<<341342343344345346347348349350>>...632

/third_party/node/deps/openssl/openssl/providers/implementations/rands/
H A Ddrbg.c151 unsigned char *buffer; in ossl_drbg_get_seed() local
161 buffer = OPENSSL_secure_malloc(bytes_needed); in ossl_drbg_get_seed()
162 if (buffer == NULL) { in ossl_drbg_get_seed()
176 if (!ossl_prov_drbg_generate(drbg, buffer, bytes_needed, in ossl_drbg_get_seed()
179 OPENSSL_secure_clear_free(buffer, bytes_needed); in ossl_drbg_get_seed()
183 *pout = buffer; in ossl_drbg_get_seed()
606 * Generate |outlen| bytes into the buffer at |out|. Reseed if we need
700 * Optionally, a |buffer| of |len| random bytes can be passed,
703 * If |entropy| > 0, the buffer content is used as entropy input.
705 * If |entropy| == 0, the buffer conten
[all...]
/third_party/skia/src/codec/
H A DSkCodec.cpp107 char buffer[bytesToRead]; in MakeFromStream() local
108 size_t bytesRead = stream->peek(buffer, bytesToRead); in MakeFromStream()
114 // It also is possible the stream uses too small a buffer for peeking, but in MakeFromStream()
115 // we trust the caller to use a large enough buffer. in MakeFromStream()
125 bytesRead = stream->read(buffer, bytesToRead); in MakeFromStream()
136 if (SkPngCodec::IsPng(buffer, bytesRead)) { in MakeFromStream()
142 if (proc.IsFormat(buffer, bytesRead)) { in MakeFromStream()
149 if (SkHeifCodec::IsSupported(buffer, bytesRead, &format)) { in MakeFromStream()
841 // require first preparing the pixel buffer based on another frame. Instead,
842 // drawing can start from an uninitialized pixel buffer
[all...]
/third_party/openssl/providers/implementations/rands/
H A Ddrbg.c151 unsigned char *buffer; in ossl_drbg_get_seed() local
161 buffer = OPENSSL_secure_malloc(bytes_needed); in ossl_drbg_get_seed()
162 if (buffer == NULL) { in ossl_drbg_get_seed()
176 if (!ossl_prov_drbg_generate(drbg, buffer, bytes_needed, in ossl_drbg_get_seed()
179 OPENSSL_secure_clear_free(buffer, bytes_needed); in ossl_drbg_get_seed()
183 *pout = buffer; in ossl_drbg_get_seed()
606 * Generate |outlen| bytes into the buffer at |out|. Reseed if we need
700 * Optionally, a |buffer| of |len| random bytes can be passed,
703 * If |entropy| > 0, the buffer content is used as entropy input.
705 * If |entropy| == 0, the buffer conten
[all...]
/third_party/skia/third_party/externals/icu/source/extra/uconv/
H A Duconv.cpp512 char buffer[20]; in cnvSigType() local
516 out = buffer; in cnvSigType()
519 &out, buffer + sizeof(buffer), in cnvSigType()
524 if (NULL != ucnv_detectUnicodeSignature(buffer, (int32_t)(out - buffer), NULL, &err) && in cnvSigType()
547 // +1 for an added U+FEFF in the intermediate Unicode buffer in setBufferSize()
738 // input file offset at the beginning of the next buffer in convertFile()
749 // Convert the read buffer into the new encoding via Unicode. in convertFile()
783 // - the target buffer i in convertFile()
[all...]
/third_party/skia/third_party/externals/freetype/builds/mac/
H A Dftmac.c457 unsigned char* buffer, in ft_FSp_stream_io()
467 return (unsigned long)ft_fread( buffer, 1, count, file ); in ft_FSp_stream_io()
958 return a PFB buffer. This is somewhat convoluted because the FT2
970 unsigned char *buffer, *p, *size_p = NULL; in read_lwfn() local
981 /* the output buffer. */ in read_lwfn()
1014 if ( FT_QALLOC( buffer, (FT_Long)total_size ) ) in read_lwfn()
1017 /* Second pass: append all POST data to the buffer, add PFB fields. */ in read_lwfn()
1019 p = buffer; in read_lwfn()
1069 *pfb_data = buffer; in read_lwfn()
455 ft_FSp_stream_io( FT_Stream stream, unsigned long offset, unsigned char* buffer, unsigned long count ) ft_FSp_stream_io() argument
/third_party/python/Objects/
H A Dbytearrayobject.c119 /* Prevent buffer overflow when setting alloc to size+1. */ in PyByteArray_FromStringAndSize()
193 /* Current buffer is large enough to host the requested size, in PyByteArray_Resize()
445 /* Shrink the buffer by advancing its logical start */ in bytearray_setslice_linear()
829 /* Use the buffer API */ in bytearray___init___impl()
946 char *buffer; in bytearray_repr() local
956 buffer = PyObject_Malloc(newsize); in bytearray_repr()
957 if (buffer == NULL) { in bytearray_repr()
974 p = buffer; in bytearray_repr()
985 assert(newsize - (p - buffer) >= 5); in bytearray_repr()
1006 assert(newsize - (p - buffer) > in bytearray_repr()
[all...]
/third_party/mesa3d/src/imgui/
H A Dimstb_truetype.h105 // "Load" a font file from a memory buffer (you have to keep the buffer loaded)
236 // a temp buffer and allocate from the temp buffer (without freeing),
373 char buffer[24<<20];
383 fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb"));
384 stbtt_InitFont(&font, buffer, 0);
398 // a sequence of characters, you really need to render each bitmap to a temp buffer, then
399 // "alpha blend" that into the working buffer
3854 unsigned char buffer[STBTT_MAX_OVERSAMPL
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dfbobject.c177 /* Name exists but buffer is not initialized */ in _mesa_lookup_framebuffer_dsa()
258 * the depth buffer attachment point.
354 * allocation hasn't happened yet. In such case, use the back buffer, in get_fb0_attachment()
387 * identifying a color buffer; DEPTH, identifying the depth buffer; or in get_fb0_attachment()
388 * STENCIL, identifying the stencil buffer." in get_fb0_attachment()
396 * DEPTH_BUFFER, or STENCIL_BUFFER, identifying a color buffer, the in get_fb0_attachment()
397 * depth buffer, or the stencil buffer, and <pname> may be in get_fb0_attachment()
453 /* Invalidate buffer stat in render_texture()
3464 _mesa_check_framebuffer_status(struct gl_context *ctx, struct gl_framebuffer *buffer) _mesa_check_framebuffer_status() argument
4555 get_framebuffer_attachment_parameter(struct gl_context *ctx, struct gl_framebuffer *buffer, GLenum attachment, GLenum pname, GLint *params, const char *caller) get_framebuffer_attachment_parameter() argument
4909 struct gl_framebuffer *buffer; _mesa_GetFramebufferAttachmentParameteriv() local
4931 struct gl_framebuffer *buffer; _mesa_GetNamedFramebufferAttachmentParameteriv() local
4961 struct gl_framebuffer *buffer; _mesa_GetNamedFramebufferAttachmentParameterivEXT() local
5100 unsigned buffer = pname - GL_DRAW_BUFFER0; _mesa_GetFramebufferParameterivEXT() local
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimstb_truetype.h105 // "Load" a font file from a memory buffer (you have to keep the buffer loaded)
236 // a temp buffer and allocate from the temp buffer (without freeing),
373 char buffer[24<<20];
383 fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb"));
384 stbtt_InitFont(&font, buffer, 0);
398 // a sequence of characters, you really need to render each bitmap to a temp buffer, then
399 // "alpha blend" that into the working buffer
3854 unsigned char buffer[STBTT_MAX_OVERSAMPL
[all...]
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/
H A Dvideodec_hevcdec_unit_test.cpp68 void InBufferVoid(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in InBufferVoid() argument
72 (void)buffer; in InBufferVoid()
75 void OutBufferVoid(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OutBufferVoid() argument
79 (void)buffer; in OutBufferVoid()
158 void InBufferHandle(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in InBufferHandle() argument
164 vdec->HandleInputFrame(buffer); in InBufferHandle()
168 void OutBufferHandle(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OutBufferHandle() argument
174 vdec->HandleOutputFrame(buffer); in OutBufferHandle()
178 void InBufferOperate(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in InBufferOperate() argument
189 vdec->HandleInputFrame(buffer); in InBufferOperate()
193 OutBufferOperate(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferOperate() argument
208 InBufferQueue(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) InBufferQueue() argument
219 OutBufferQueue(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) OutBufferQueue() argument
[all...]
/foundation/multimedia/av_codec/test/unittest/audio_test/
H A Daudio_encoder_avbuffer_capi_unit_test.cpp135 static void OnInputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnInputBufferAvailable() argument
141 signal->inBufferQueue_.push(buffer); in OnInputBufferAvailable()
145 static void OnOutputBufferAvailable(OH_AVCodec *codec, uint32_t index, OH_AVBuffer *buffer, void *userData) in OnOutputBufferAvailable() argument
151 signal->outBufferQueue_.push(buffer); in OnOutputBufferAvailable()
152 if (buffer) { in OnOutputBufferAvailable()
153 cout << "OnOutputBufferAvailable received, index:" << index << ", size:" << buffer->buffer_->memory_->GetSize() in OnOutputBufferAvailable()
154 << ", flags:" << buffer->buffer_->flag_ << ", pts: " << buffer->buffer_->pts_ << endl; in OnOutputBufferAvailable()
248 std::cout << "end buffer\n"; in HandleEOS()
266 auto buffer in InputFunc() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/
H A Dfile.c190 spufs_mem_read(struct file *file, char __user *buffer, in spufs_mem_read() argument
199 ret = simple_read_from_buffer(buffer, size, pos, ctx->ops->get_ls(ctx), in spufs_mem_read()
207 spufs_mem_write(struct file *file, const char __user *buffer, in spufs_mem_write() argument
223 size = simple_write_to_buffer(local_store, LS_SIZE, ppos, buffer, size); in spufs_mem_write()
476 spufs_regs_read(struct file *file, char __user *buffer, in spufs_regs_read() argument
490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read()
497 spufs_regs_write(struct file *file, const char __user *buffer, in spufs_regs_write() argument
512 buffer, size); in spufs_regs_write()
533 spufs_fpcr_read(struct file *file, char __user * buffer, in spufs_fpcr_read() argument
542 ret = simple_read_from_buffer(buffer, siz in spufs_fpcr_read()
549 spufs_fpcr_write(struct file *file, const char __user * buffer, size_t size, loff_t * pos) spufs_fpcr_write() argument
1494 spufs_mfc_read(struct file *file, char __user *buffer, size_t size, loff_t *pos) spufs_mfc_read() argument
1620 spufs_mfc_write(struct file *file, const char __user *buffer, size_t size, loff_t *pos) spufs_mfc_write() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/
H A Dfile.c190 spufs_mem_read(struct file *file, char __user *buffer, in spufs_mem_read() argument
199 ret = simple_read_from_buffer(buffer, size, pos, ctx->ops->get_ls(ctx), in spufs_mem_read()
207 spufs_mem_write(struct file *file, const char __user *buffer, in spufs_mem_write() argument
223 size = simple_write_to_buffer(local_store, LS_SIZE, ppos, buffer, size); in spufs_mem_write()
476 spufs_regs_read(struct file *file, char __user *buffer, in spufs_regs_read() argument
490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read()
497 spufs_regs_write(struct file *file, const char __user *buffer, in spufs_regs_write() argument
512 buffer, size); in spufs_regs_write()
533 spufs_fpcr_read(struct file *file, char __user * buffer, in spufs_fpcr_read() argument
542 ret = simple_read_from_buffer(buffer, siz in spufs_fpcr_read()
549 spufs_fpcr_write(struct file *file, const char __user * buffer, size_t size, loff_t * pos) spufs_fpcr_write() argument
1494 spufs_mfc_read(struct file *file, char __user *buffer, size_t size, loff_t *pos) spufs_mfc_read() argument
1620 spufs_mfc_write(struct file *file, const char __user *buffer, size_t size, loff_t *pos) spufs_mfc_write() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/riptide/
H A Driptide.c1356 ("pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n", in snd_riptide_pointer()
1888 struct snd_info_buffer *buffer) in snd_riptide_proc_read()
1901 snd_iprintf(buffer, "%s\n\n", chip->card->longname); in snd_riptide_proc_read()
1902 snd_iprintf(buffer, "Device ID: 0x%x\nReceived IRQs: (%ld)%ld\nPorts:", in snd_riptide_proc_read()
1905 snd_iprintf(buffer, "%c%02x: %08x", in snd_riptide_proc_read()
1908 snd_iprintf(buffer, in snd_riptide_proc_read()
1914 snd_iprintf(buffer, "\nDigital mixer:"); in snd_riptide_proc_read()
1917 snd_iprintf(buffer, "\n %d: %d %d", i, rval, lval); in snd_riptide_proc_read()
1919 snd_iprintf(buffer, in snd_riptide_proc_read()
1924 snd_iprintf(buffer, "\nOpe in snd_riptide_proc_read()
1887 snd_riptide_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_riptide_proc_read() argument
[all...]
/kernel/linux/linux-5.10/drivers/rapidio/devices/
H A Drio_mport_cdev.c101 * An internal DMA coherent buffer
151 * @buf_mutex lock for buffer handling
263 u32 *buffer; in rio_mport_maint_rd() local
276 buffer = vmalloc(maint_io.length); in rio_mport_maint_rd()
277 if (buffer == NULL) in rio_mport_maint_rd()
285 offset, &buffer[i]); in rio_mport_maint_rd()
288 maint_io.hopcount, offset, &buffer[i]); in rio_mport_maint_rd()
295 if (unlikely(copy_to_user((void __user *)(uintptr_t)maint_io.buffer, in rio_mport_maint_rd()
296 buffer, maint_io.length))) in rio_mport_maint_rd()
299 vfree(buffer); in rio_mport_maint_rd()
308 u32 *buffer; rio_mport_maint_wr() local
[all...]
/kernel/linux/linux-6.6/drivers/rapidio/devices/
H A Drio_mport_cdev.c101 * An internal DMA coherent buffer
151 * @buf_mutex lock for buffer handling
263 u32 *buffer; in rio_mport_maint_rd() local
276 buffer = vmalloc(maint_io.length); in rio_mport_maint_rd()
277 if (buffer == NULL) in rio_mport_maint_rd()
285 offset, &buffer[i]); in rio_mport_maint_rd()
288 maint_io.hopcount, offset, &buffer[i]); in rio_mport_maint_rd()
295 if (unlikely(copy_to_user((void __user *)(uintptr_t)maint_io.buffer, in rio_mport_maint_rd()
296 buffer, maint_io.length))) in rio_mport_maint_rd()
299 vfree(buffer); in rio_mport_maint_rd()
308 u32 *buffer; rio_mport_maint_wr() local
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dcs-etm.c62 * everything in a buffer comes from the same process regardless of
64 * taken from the auxtrace buffer.
103 struct auxtrace_buffer *buffer; member
737 struct auxtrace_buffer *buffer) in cs_etm__dump_event()
746 cs_etm_decoder__get_name(etmq->decoder), buffer->size); in cs_etm__dump_event()
752 etmq->decoder, buffer->offset, in cs_etm__dump_event()
753 &((u8 *)buffer->data)[buffer_used], in cs_etm__dump_event()
754 buffer->size - buffer_used, &consumed); in cs_etm__dump_event()
759 } while (buffer_used < buffer->size); in cs_etm__dump_event()
944 u64 address, size_t size, u8 *buffer, in cs_etm__mem_access()
736 cs_etm__dump_event(struct cs_etm_queue *etmq, struct auxtrace_buffer *buffer) cs_etm__dump_event() argument
943 cs_etm__mem_access(struct cs_etm_queue *etmq, u8 trace_chan_id, u64 address, size_t size, u8 *buffer, const ocsd_mem_space_acc_t mem_space) cs_etm__mem_access() argument
2792 struct auxtrace_buffer *buffer; cs_etm__process_auxtrace_event() local
[all...]
/kernel/linux/linux-6.6/sound/pci/riptide/
H A Driptide.c1361 ("pointer stream %d position 0x%x(0x%x in buffer) bytes 0x%lx(0x%lx in period) frames\n", in snd_riptide_pointer()
1865 struct snd_info_buffer *buffer) in snd_riptide_proc_read()
1878 snd_iprintf(buffer, "%s\n\n", chip->card->longname); in snd_riptide_proc_read()
1879 snd_iprintf(buffer, "Device ID: 0x%x\nReceived IRQs: (%ld)%ld\nPorts:", in snd_riptide_proc_read()
1882 snd_iprintf(buffer, "%c%02x: %08x", in snd_riptide_proc_read()
1886 snd_iprintf(buffer, in snd_riptide_proc_read()
1892 snd_iprintf(buffer, "\nDigital mixer:"); in snd_riptide_proc_read()
1895 snd_iprintf(buffer, "\n %d: %d %d", i, rval, lval); in snd_riptide_proc_read()
1897 snd_iprintf(buffer, in snd_riptide_proc_read()
1902 snd_iprintf(buffer, "\nOpe in snd_riptide_proc_read()
1864 snd_riptide_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) snd_riptide_proc_read() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
H A Dipc3-topology.c328 * sof_comp_alloc - allocate and initialize buffer for a new component
563 struct sof_ipc_buffer *buffer; in sof_ipc3_widget_setup_comp_buffer() local
566 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in sof_ipc3_widget_setup_comp_buffer()
567 if (!buffer) in sof_ipc3_widget_setup_comp_buffer()
570 swidget->private = buffer; in sof_ipc3_widget_setup_comp_buffer()
573 buffer->comp.hdr.size = sizeof(*buffer); in sof_ipc3_widget_setup_comp_buffer()
574 buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW; in sof_ipc3_widget_setup_comp_buffer()
575 buffer in sof_ipc3_widget_setup_comp_buffer()
[all...]
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_device.c752 /* depth/stencil format shouldn't advertise buffer features */ in dzn_physical_device_get_format_properties()
2039 /* For secondary command buffer support, overwrite any command entrypoints in dzn_device_create()
2257 const struct dzn_buffer *buffer = NULL; in dzn_device_memory_create() local
2274 buffer = dzn_buffer_from_handle(dedicated->buffer); in dzn_device_memory_create()
2276 assert(!buffer || !image); in dzn_device_memory_create()
2291 if (buffer) { in dzn_device_memory_create()
2625 VkBuffer buffer, in dzn_DestroyBuffer()
2628 dzn_buffer_destroy(dzn_buffer_from_handle(buffer), pAllocator); in dzn_DestroyBuffer()
2637 VK_FROM_HANDLE(dzn_buffer, buffer, pInf in dzn_GetBufferMemoryRequirements2()
2624 dzn_DestroyBuffer(VkDevice device, VkBuffer buffer, const VkAllocationCallbacks *pAllocator) dzn_DestroyBuffer() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A Dentry_points.cpp43 GL_APICALL void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) in glBindBuffer() argument
45 return gl::BindBuffer(target, buffer); in glBindBuffer()
585 GL_APICALL GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) in glIsBuffer() argument
587 return gl::IsBuffer(buffer); in glIsBuffer()
1190 GL_APICALL void GL_APIENTRY glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) in glBindBufferRange() argument
1192 return gl::BindBufferRange(target, index, buffer, offset, size); in glBindBufferRange()
1195 GL_APICALL void GL_APIENTRY glBindBufferBase(GLenum target, GLuint index, GLuint buffer) in glBindBufferBase() argument
1197 return gl::BindBufferBase(target, index, buffer); in glBindBufferBase()
1295 GL_APICALL void GL_APIENTRY glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) in glClearBufferiv() argument
1297 return gl::ClearBufferiv(buffer, drawbuffe in glClearBufferiv()
1300 glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) glClearBufferuiv() argument
1305 glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) glClearBufferfv() argument
1310 glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) glClearBufferfi() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/serializer/
H A Dbase_deserializer.h166 void *buffer = bufferPointer_; in GetAndResetBufferPointer() local
168 return buffer; in GetAndResetBufferPointer()
/arkcompiler/runtime_core/libpandafile/
H A Dfile_writer.h141 explicit MemoryBufferWriter(uint8_t *buffer, size_t size) : sp_(buffer, size) {} in MemoryBufferWriter() argument
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Ddtoa_helper.h31 explicit DtoaHelper(char *buffer) : buffer_(buffer) {} in DtoaHelper() argument
/arkcompiler/ets_runtime/ecmascript/extractortool/src/
H A Dzip_file.h309 * @param buffer Indicates the buffer to read.
314 bool ReadZStream(const BytePtr &buffer, z_stream &zstream, uint32_t &remainCompressedSize, size_t &startPos) const;
319 bool ReadZStreamFromMMap(const BytePtr &buffer, void* &dataPtr,

Completed in 66 milliseconds

1...<<341342343344345346347348349350>>...632