| /third_party/skia/src/gpu/gradients/ |
| H A D | GrGradientBitmapCache.cpp | 26 Entry(const void* buffer, size_t size, const SkBitmap& bm) in Entry() 32 memcpy(fBuffer, buffer, size); in Entry() 37 bool equals(const void* buffer, size_t size) const { in equals() 38 return (fSize == size) && !memcmp(fBuffer, buffer, size); in equals() 91 bool GrGradientBitmapCache::find(const void* buffer, size_t size, SkBitmap* bm) const { in find() argument 96 if (entry->equals(buffer, size)) { in find() 110 void GrGradientBitmapCache::add(const void* buffer, size_t len, const SkBitmap& bm) { in add() argument 119 Entry* entry = new Entry(buffer, len, bm); in add() 184 int32_t* buffer = storage.get(); in getGradient() local 186 *buffer in getGradient() [all...] |
| /third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
| H A D | randen_engine.h | 72 // Returns random bits from the buffer in units of result_type. 74 // Refill the buffer if needed (unlikely). in operator ()() 111 alignas(16) sequence_result_type buffer[kBufferSize]; in reseed() local 122 std::fill(std::begin(buffer) + requested_entropy, std::end(buffer), 0); in reseed() 123 seq.generate(std::begin(buffer), std::begin(buffer) + requested_entropy); in reseed() 128 // buffer is 32-bit values, we swap the corresponding buffer positions in in reseed() 136 std::swap(buffer[ in reseed() [all...] |
| /third_party/mesa3d/src/gallium/drivers/r600/ |
| H A D | r600_query.c | 43 /* Queries without buffer handling or suspend/resume. */ 486 struct r600_query_buffer *prev = query->buffer.previous; in r600_query_hw_destroy() 496 r600_resource_reference(&query->buffer.buf, NULL); in r600_query_hw_destroy() 526 struct r600_resource *buffer) in r600_query_hw_prepare_buffer() 528 /* Callers ensure that the buffer is currently unused by the GPU. */ in r600_query_hw_prepare_buffer() 529 uint32_t *results = rscreen->ws->buffer_map(rscreen->ws, buffer->buf, NULL, in r600_query_hw_prepare_buffer() 535 memset(results, 0, buffer->b.b.width0); in r600_query_hw_prepare_buffer() 546 num_results = buffer->b.b.width0 / query->result_size; in r600_query_hw_prepare_buffer() 579 struct r600_resource *buffer, 583 struct r600_resource *buffer, 524 r600_query_hw_prepare_buffer(struct r600_common_screen *rscreen, struct r600_query_hw *query, struct r600_resource *buffer) r600_query_hw_prepare_buffer() argument 726 r600_query_hw_do_emit_start(struct r600_common_context *ctx, struct r600_query_hw *query, struct r600_resource *buffer, uint64_t va) r600_query_hw_do_emit_start() argument 806 r600_query_hw_do_emit_stop(struct r600_common_context *ctx, struct r600_query_hw *query, struct r600_resource *buffer, uint64_t va) r600_query_hw_do_emit_stop() argument 1171 r600_query_hw_add_result(struct r600_common_screen *rscreen, struct r600_query_hw *query, void *buffer, union pipe_query_result *result) r600_query_hw_add_result() argument 1835 struct r600_resource *buffer; r600_query_fix_enabled_rb_mask() local [all...] |
| /third_party/skia/third_party/externals/harfbuzz/src/ |
| H A D | hb-ot-layout.cc | 127 hb_buffer_t *buffer) in hb_ot_layout_kern() 132 AAT::hb_aat_apply_context_t c (plan, font, buffer, blob); in hb_ot_layout_kern() 134 if (!buffer->message (font, "start table kern")) return; in hb_ot_layout_kern() 136 (void) buffer->message (font, "end table kern"); in hb_ot_layout_kern() 251 hb_buffer_t *buffer) in _hb_ot_layout_set_glyph_props() 253 _hb_buffer_assert_gsubgpos_vars (buffer); in _hb_ot_layout_set_glyph_props() 256 unsigned int count = buffer->len; in _hb_ot_layout_set_glyph_props() 259 _hb_glyph_info_set_glyph_props (&buffer->info[i], gdef.get_glyph_props (buffer->info[i].codepoint)); in _hb_ot_layout_set_glyph_props() 260 _hb_glyph_info_clear_lig_props (&buffer in _hb_ot_layout_set_glyph_props() 125 hb_ot_layout_kern(const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) hb_ot_layout_kern() argument 250 _hb_ot_layout_set_glyph_props(hb_font_t *font, hb_buffer_t *buffer) _hb_ot_layout_set_glyph_props() argument 1422 hb_ot_layout_substitute_start(hb_font_t *font, hb_buffer_t *buffer) hb_ot_layout_substitute_start() argument 1429 hb_ot_layout_delete_glyphs_inplace(hb_buffer_t *buffer, bool (*filter) (const hb_glyph_info_t *info)) hb_ot_layout_delete_glyphs_inplace() argument 1581 hb_ot_layout_position_start(hb_font_t *font, hb_buffer_t *buffer) hb_ot_layout_position_start() argument 1596 hb_ot_layout_position_finish_advances(hb_font_t *font, hb_buffer_t *buffer) hb_ot_layout_position_finish_advances() argument 1610 hb_ot_layout_position_finish_offsets(hb_font_t *font, hb_buffer_t *buffer) hb_ot_layout_position_finish_offsets() argument 1829 hb_buffer_t *buffer = c->buffer; apply_forward() local 1853 hb_buffer_t *buffer = c->buffer; apply_backward() local 1875 hb_buffer_t *buffer = c->buffer; apply_string() local [all...] |
| /kernel/linux/linux-5.10/tools/perf/util/ |
| H A D | s390-cpumsf.c | 12 * Records that new data landed in the AUX buffer part. 24 * Indicates an error during AUXTRACE collection such as buffer overflow. 62 * control many auxtrace_buffers and each buffer can be quite large, the 63 * auxtrace buffer might be processed only partially. In this case the 184 struct auxtrace_buffer *buffer; member 429 /* Dump an auxiliary buffer. These buffers are multiple of 581 * (see buffer->use_data and buffer->use_size). 602 unsigned char *buf = sfq->buffer->use_data; in s390_cpumsf_samples() 603 size_t len = sfq->buffer in s390_cpumsf_samples() 696 struct auxtrace_buffer *buffer; s390_cpumsf_run_decoder() local 969 struct auxtrace_buffer *buffer; s390_cpumsf_process_auxtrace_event() local [all...] |
| /kernel/linux/linux-6.6/tools/perf/util/ |
| H A D | s390-cpumsf.c | 12 * Records that new data landed in the AUX buffer part. 24 * Indicates an error during AUXTRACE collection such as buffer overflow. 62 * control many auxtrace_buffers and each buffer can be quite large, the 63 * auxtrace buffer might be processed only partially. In this case the 185 struct auxtrace_buffer *buffer; member 430 /* Dump an auxiliary buffer. These buffers are multiple of 582 * (see buffer->use_data and buffer->use_size). 603 unsigned char *buf = sfq->buffer->use_data; in s390_cpumsf_samples() 604 size_t len = sfq->buffer in s390_cpumsf_samples() 697 struct auxtrace_buffer *buffer; s390_cpumsf_run_decoder() local 970 struct auxtrace_buffer *buffer; s390_cpumsf_process_auxtrace_event() local [all...] |
| /third_party/elfutils/libdwfl/ |
| H A D | link_map.c | 132 void *buffer; 137 void **buffer, size_t *buffer_available, in integrated_memory_callback() 147 if (info->buffer != NULL) in integrated_memory_callback() 149 /* The last probe buffer came from the underlying callback. in integrated_memory_callback() 151 assert (*buffer == info->buffer); /* XXX */ in integrated_memory_callback() 152 *buffer = info->buffer; in integrated_memory_callback() 153 info->buffer = NULL; in integrated_memory_callback() 154 return (*info->memory_callback) (dwfl, ndx, buffer, buffer_availabl in integrated_memory_callback() 131 void *buffer; global() member 135 integrated_memory_callback(Dwfl *dwfl, int ndx, void **buffer, size_t *buffer_available, GElf_Addr vaddr, size_t minread, void *arg) integrated_memory_callback() argument 235 release_buffer(struct memory_closure *closure, void **buffer, size_t *buffer_available, int result) release_buffer() argument 239 (*closure->callback) (closure->dwfl, -1, buffer, buffer_available, 0, 0, release_buffer() local 246 read_addrs(struct memory_closure *closure, uint_fast8_t elfclass, uint_fast8_t elfdata, void **buffer, size_t *buffer_available, GElf_Addr vaddr, GElf_Addr *read_vaddr, size_t n, GElf_Addr *addrs ) read_addrs() argument 318 void *buffer = NULL; report_r_debug() local 650 void *buffer = NULL; consider_executable() local [all...] |
| /foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
| H A D | native_image_test.cpp | 47 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local 49 NativeImage image(buffer, releaser); in HWTEST_F() 66 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local 68 NativeImage image(buffer, releaser); in HWTEST_F() 84 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local 86 NativeImage image(buffer, releaser); in HWTEST_F() 102 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local 104 NativeImage image(buffer, releaser); in HWTEST_F() 120 sptr<SurfaceBuffer> buffer = nullptr; in HWTEST_F() local 122 NativeImage image(buffer, release in HWTEST_F() 137 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 152 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 169 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 198 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 218 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 235 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 262 sptr<SurfaceBuffer> buffer = creator->DequeueImage(); HWTEST_F() local 326 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 351 sptr<SurfaceBuffer> buffer = nullptr; HWTEST_F() local 379 sptr<SurfaceBuffer> buffer = creator->DequeueImage(); HWTEST_F() local [all...] |
| /kernel/linux/linux-5.10/drivers/platform/x86/ |
| H A D | lg-laptop.c | 91 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in ggov() local 106 status = acpi_evaluate_object(handle, NULL, &arg, &buffer); in ggov() 112 r = buffer.pointer; in ggov() 130 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in lg_wmab() local 148 status = acpi_evaluate_object(handle, NULL, &arg, &buffer); in lg_wmab() 154 return buffer.pointer; in lg_wmab() 163 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in lg_wmbb() local 174 args[2].buffer.length = 32; in lg_wmbb() 175 args[2].buffer.pointer = buf; in lg_wmbb() 186 status = acpi_evaluate_object(handle, NULL, &arg, &buffer); in lg_wmbb() 272 fan_mode_store(struct device *dev, struct device_attribute *attr, const char *buffer, size_t count) fan_mode_store() argument 304 fan_mode_show(struct device *dev, struct device_attribute *attr, char *buffer) fan_mode_show() argument 325 usb_charge_store(struct device *dev, struct device_attribute *attr, const char *buffer, size_t count) usb_charge_store() argument 345 usb_charge_show(struct device *dev, struct device_attribute *attr, char *buffer) usb_charge_show() argument 367 reader_mode_store(struct device *dev, struct device_attribute *attr, const char *buffer, size_t count) reader_mode_store() argument 387 reader_mode_show(struct device *dev, struct device_attribute *attr, char *buffer) reader_mode_show() argument 409 fn_lock_store(struct device *dev, struct device_attribute *attr, const char *buffer, size_t count) fn_lock_store() argument 429 fn_lock_show(struct device *dev, struct device_attribute *attr, char *buffer) fn_lock_show() argument 450 battery_care_limit_store(struct device *dev, struct device_attribute *attr, const char *buffer, size_t count) battery_care_limit_store() argument 475 battery_care_limit_show(struct device *dev, struct device_attribute *attr, char *buffer) battery_care_limit_show() argument [all...] |
| /kernel/liteos_m/testsuites/unittest/posix/src/time/ |
| H A D | time_func_test_01.c | 488 char buffer[80]; variable 493 ftime = strftime(buffer, 80, "%y-%m-%d %H:%M:%S", localtime(&mtime)); 495 ICUNIT_ASSERT_STRING_EQUAL("38-01-19 11:14:07", buffer, 0); 496 LOG("\nresult: %s, expected : %s", buffer, "38-01-19 11:14:07"); 499 ftime = strftime(buffer, 80, "%Y-%m-%d %H:%M:%S", localtime(&mtime)); 501 ICUNIT_ASSERT_STRING_EQUAL("1901-12-14 04:45:52", buffer, 0); 502 LOG("\nresult: %s, expected : %s", buffer, "1901-12-14 04:45:52"); 505 ftime = strftime(buffer, 80, "%F %T", localtime(&mtime)); 507 ICUNIT_ASSERT_STRING_EQUAL("1970-01-01 13:14:40", buffer, 0); 508 LOG("\nresult: %s, expected : %s", buffer, "197 525 char buffer[80]; global() variable 554 char buffer[80]; global() variable [all...] |
| /third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
| H A D | VertexDataManager.cpp | 83 gl::Buffer *buffer = binding.getBuffer().get(); in DirectStoragePossible() local 84 if (!buffer) in DirectStoragePossible() 89 BufferD3D *bufferD3D = GetImplAs<BufferD3D>(buffer); in DirectStoragePossible() 174 gl::Buffer *buffer = binding.getBuffer().get(); in ClassifyAttributeStorage() local 175 if (!buffer) in ClassifyAttributeStorage() 180 // Check if the buffer supports direct storage. in ClassifyAttributeStorage() 187 BufferD3D *bufferD3D = GetImplAs<BufferD3D>(buffer); in ClassifyAttributeStorage() 202 : buffer(new StreamingVertexBufferInterface(factory)), offset(0) in CurrentValueState() 213 std::swap(buffer, other.buffer); in CurrentValueState() 330 gl::Buffer *buffer = binding.getBuffer().get(); StoreDirectAttrib() local 354 gl::Buffer *buffer = binding.getBuffer().get(); StoreStaticAttrib() local 472 gl::Buffer *buffer = binding.getBuffer().get(); PromoteDynamicAttribs() local 496 gl::Buffer *buffer = binding.getBuffer().get(); reserveSpaceForAttrib() local 536 gl::Buffer *buffer = binding.getBuffer().get(); storeDynamicAttrib() local 591 StreamingVertexBufferInterface &buffer = *cachedState->buffer; storeCurrentValue() local [all...] |
| /third_party/skia/third_party/externals/icu/source/common/ |
| H A D | locdispnames.cpp | 51 * 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...] |
| /third_party/mesa3d/src/gallium/auxiliary/vl/ |
| H A D | vl_idct.c | 590 init_source(struct vl_idct *idct, struct vl_idct_buffer *buffer) in init_source() argument 595 assert(idct && buffer); in init_source() 597 tex = buffer->sampler_views.individual.source->texture; in init_source() 599 buffer->fb_state_mismatch.width = tex->width0; in init_source() 600 buffer->fb_state_mismatch.height = tex->height0; in init_source() 601 buffer->fb_state_mismatch.nr_cbufs = 1; in init_source() 607 buffer->fb_state_mismatch.cbufs[0] = idct->pipe->create_surface(idct->pipe, tex, &surf_templ); in init_source() 609 buffer->viewport_mismatch.scale[0] = tex->width0; in init_source() 610 buffer->viewport_mismatch.scale[1] = tex->height0; in init_source() 611 buffer in init_source() 621 cleanup_source(struct vl_idct_buffer *buffer) cleanup_source() argument 631 init_intermediate(struct vl_idct *idct, struct vl_idct_buffer *buffer) init_intermediate() argument 674 cleanup_intermediate(struct vl_idct_buffer *buffer) cleanup_intermediate() argument 792 vl_idct_init_buffer(struct vl_idct *idct, struct vl_idct_buffer *buffer, struct pipe_sampler_view *source, struct pipe_sampler_view *intermediate) vl_idct_init_buffer() argument 816 vl_idct_cleanup_buffer(struct vl_idct_buffer *buffer) vl_idct_cleanup_buffer() argument 828 vl_idct_flush(struct vl_idct *idct, struct vl_idct_buffer *buffer, unsigned num_instances) vl_idct_flush() argument 857 vl_idct_prepare_stage2(struct vl_idct *idct, struct vl_idct_buffer *buffer) vl_idct_prepare_stage2() argument [all...] |
| /foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/ |
| H A D | cj_ability_stage.cpp | 61 CurrentHapModuleInfo* buffer = static_cast<CurrentHapModuleInfo*>(malloc(sizeof(CurrentHapModuleInfo))); in FFICJCurrentHapModuleInfo() local 63 if (buffer == nullptr) { in FFICJCurrentHapModuleInfo() 68 buffer->name = CreateCStringFromString(hapInfo->name); in FFICJCurrentHapModuleInfo() 69 buffer->icon = CreateCStringFromString(hapInfo->iconPath); in FFICJCurrentHapModuleInfo() 70 buffer->iconId = hapInfo->iconId; in FFICJCurrentHapModuleInfo() 71 buffer->label = CreateCStringFromString(hapInfo->label); in FFICJCurrentHapModuleInfo() 72 buffer->labelId = hapInfo->labelId; in FFICJCurrentHapModuleInfo() 73 buffer->description = CreateCStringFromString(hapInfo->description); in FFICJCurrentHapModuleInfo() 74 buffer->descriptionId = hapInfo->descriptionId; in FFICJCurrentHapModuleInfo() 75 buffer in FFICJCurrentHapModuleInfo() [all...] |
| /foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
| H A D | format_agent_plugin_src_test.cpp | 101 void *buffer = malloc(4); in HWTEST_F() local 105 bool res = heifFormatAgent.IsHeif64(buffer, bytesRead, offset, chunkSize); in HWTEST_F() 107 free(buffer); in HWTEST_F() 108 buffer = nullptr; in HWTEST_F() 121 void *buffer = malloc(4); in HWTEST_F() local 125 bool res = heifFormatAgent.IsHeif64(buffer, bytesRead, offset, chunkSize); in HWTEST_F() 128 res = heifFormatAgent.IsHeif64(buffer, bytesRead, offset, chunkSize); in HWTEST_F() 130 free(buffer); in HWTEST_F() 131 buffer = nullptr; in HWTEST_F() 181 void *buffer in HWTEST_F() local [all...] |
| /kernel/linux/linux-5.10/tools/lib/traceevent/ |
| H A D | trace-seq.c | 24 if (WARN_ONCE((s)->buffer == TRACE_SEQ_POISON, \ 48 s->buffer = malloc(s->buffer_size); in trace_seq_init() 49 if (s->buffer != NULL) in trace_seq_init() 70 * @s: a pointer to the trace_seq to free the buffer 72 * Only frees the buffer, not the trace_seq struct itself. 79 free(s->buffer); in trace_seq_destroy() 80 s->buffer = TRACE_SEQ_POISON; in trace_seq_destroy() 87 buf = realloc(s->buffer, s->buffer_size + TRACE_SEQ_BUF_SIZE); in expand_buffer() 88 if (WARN_ONCE(!buf, "Can't allocate trace_seq buffer memory")) { in expand_buffer() 93 s->buffer in expand_buffer() [all...] |
| /kernel/linux/linux-6.6/drivers/acpi/acpica/ |
| H A D | exserial.c | 24 * buffer - Where the return data is returned 32 acpi_status acpi_ex_read_gpio(union acpi_operand_object *obj_desc, void *buffer) in acpi_ex_read_gpio() argument 55 status = acpi_ex_access_region(obj_desc, 0, (u64 *)buffer, ACPI_READ); in acpi_ex_read_gpio() 83 void *buffer; in acpi_ex_write_gpio() local 107 buffer = &source_desc->integer.value; in acpi_ex_write_gpio() 115 status = acpi_ex_access_region(obj_desc, 0, (u64 *)buffer, ACPI_WRITE); in acpi_ex_write_gpio() 147 * This is an SMBus, GSBus or IPMI read. We must create a buffer to in acpi_ex_read_serial_bus() 153 * Common buffer format: in acpi_ex_read_serial_bus() 154 * Status; (Byte 0 of the data buffer) in acpi_ex_read_serial_bus() 155 * Length; (Byte 1 of the data buffer) in acpi_ex_read_serial_bus() 254 void *buffer; acpi_ex_write_serial_bus() local [all...] |
| /third_party/libsnd/tests/ |
| H A D | headerless_test.c | 58 { static short buffer [BUFFER_SIZE] ; in headerless_test() local 68 buffer [k] = k ; in headerless_test() 77 if ((k = (int) sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE) in headerless_test() 86 memset (buffer, 0, sizeof (buffer)) ; in headerless_test() 118 { static short buffer [BUFFER_SIZE] ; in old_test() local 127 buffer [k] = k ; in old_test() 138 if ((k = (int) sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE) in old_test() 147 memset (buffer, 0, sizeof (buffer)) ; in old_test() [all...] |
| /third_party/skia/src/shaders/ |
| H A D | SkColorShader.cpp | 24 sk_sp<SkFlattenable> SkColorShader::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 25 return sk_make_sp<SkColorShader>(buffer.readColor()); in CreateProc() 28 void SkColorShader::flatten(SkWriteBuffer& buffer) const { in flatten() 29 buffer.writeColor(fColor); in flatten() 48 sk_sp<SkFlattenable> SkColor4Shader::CreateProc(SkReadBuffer& buffer) { in CreateProc() argument 51 buffer.readColor4f(&color); in CreateProc() 52 if (buffer.readBool()) { in CreateProc() 53 sk_sp<SkData> data = buffer.readByteArrayAsData(); in CreateProc() 59 void SkColor4Shader::flatten(SkWriteBuffer& buffer) const { in flatten() 60 buffer in flatten() [all...] |
| /device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/ |
| H A D | vpu_mem_legacy.c | 59 MppBuffer buffer = NULL; in get_free_memory_vpumem() local 66 ret = (*(mRKMppApi.HdiMppBufferGetWithTag))(p_mempool->group, &buffer, p_mempool->size, MODULE_TAG, __FUNCTION__); in get_free_memory_vpumem() 71 dmabuf->phy_addr = (RK_U32)(*(mRKMppApi.HdiMppBufferGetFdWithCaller))(buffer, __FUNCTION__); in get_free_memory_vpumem() 72 dmabuf->vir_addr = (RK_U32*)(*(mRKMppApi.HdiMppBufferGetPtrWithCaller))(buffer, __FUNCTION__); in get_free_memory_vpumem() 74 dmabuf->offset = (RK_U32*)buffer; in get_free_memory_vpumem() 75 HDF_LOGD("out pool %p ret %p fd %d size %d buffer %p", p, dmabuf, \ in get_free_memory_vpumem() 76 dmabuf->phy_addr, dmabuf->size, buffer); in get_free_memory_vpumem() 83 MppBuffer buffer = (MppBuffer)dmabuf->offset; in inc_used_memory_handle_ref() local 84 HDF_LOGD("pool %p hnd %p buffer %p", p, hdl, buffer); in inc_used_memory_handle_ref() 228 MppBuffer buffer = NULL; VPUMallocLinear() local 274 MppBuffer buffer = (MppBuffer)src->offset; VPUMemDuplicate() local 312 MppBuffer buffer = (MppBuffer)p->offset; VPUMemGetFD() local [all...] |
| /foundation/graphic/surface_lite/frameworks/ |
| H A D | buffer_client_producer.cpp | 56 SurfaceBufferImpl* buffer = new SurfaceBufferImpl(); in RequestBuffer() local 57 if (buffer == nullptr) { in RequestBuffer() 58 GRAPHIC_LOGW("SurfaceBufferImpl buffer is null"); in RequestBuffer() 62 buffer->ReadFromIpcIo(reply); in RequestBuffer() 65 GRAPHIC_LOGW("BufferManager is null, usage(%d)", buffer->GetUsage()); in RequestBuffer() 66 delete buffer; in RequestBuffer() 71 if (!manager->MapBuffer(*buffer)) { in RequestBuffer() 72 Cancel(buffer); in RequestBuffer() 77 return buffer; in RequestBuffer() 80 int32_t BufferClientProducer::FlushBuffer(SurfaceBufferImpl* buffer) in FlushBuffer() argument 117 Cancel(SurfaceBufferImpl* buffer) Cancel() argument [all...] |
| /foundation/graphic/graphic_surface/interfaces/inner_api/surface/ |
| H A D | surface.h | 39 virtual GSError RequestBuffer(sptr<SurfaceBuffer>& buffer, 45 virtual GSError CancelBuffer(sptr<SurfaceBuffer>& buffer) = 0; 47 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, 50 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, int32_t &fence, 52 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, int32_t fence) = 0; 54 virtual GSError RequestBuffer(sptr<SurfaceBuffer>& buffer, 56 virtual GSError FlushBuffer(sptr<SurfaceBuffer>& buffer, 58 virtual GSError AcquireBuffer(sptr<SurfaceBuffer>& buffer, sptr<SyncFence>& fence, 60 virtual GSError ReleaseBuffer(sptr<SurfaceBuffer>& buffer, const sptr<SyncFence>& fence) = 0; 62 virtual GSError AttachBuffer(sptr<SurfaceBuffer>& buffer) 195 AcquireLastFlushedBuffer(sptr<SurfaceBuffer> &buffer, sptr<SyncFence> &fence, float matrix[16], uint32_t matrixSize, bool isUseNewMatrix) AcquireLastFlushedBuffer() argument 205 ReleaseLastFlushedBuffer(sptr<SurfaceBuffer> buffer) ReleaseLastFlushedBuffer() argument [all...] |
| /foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
| H A D | frame_combiner.cpp | 55 delete eachFrame.second.buffer; in Finalize() 56 eachFrame.second.buffer = nullptr; in Finalize() 79 SerialBuffer *outFrame = combineWorkPool_[sourceId][frameId].buffer; in AssembleFrameFragment() 113 delete eachFrame.second.buffer; in PeriodicalSurveillance() 114 eachFrame.second.buffer = nullptr; in PeriodicalSurveillance() 138 int errCode = ProtocolProto::CombinePacketIntoFrame(oriWork.buffer, bytes, length, fragOffset, fragLength); in ContinueExistCombineWork() 173 work.buffer = CreateNewFrameBuffer(inPacketInfo); in CreateNewCombineWork() 174 if (work.buffer == nullptr) { in CreateNewCombineWork() 180 errCode = ProtocolProto::CombinePacketIntoFrame(work.buffer, bytes, length, fragOffset, fragLength); in CreateNewCombineWork() 182 delete work.buffer; in CreateNewCombineWork() 241 SerialBuffer *buffer = new (std::nothrow) SerialBuffer(); CreateNewFrameBuffer() local [all...] |
| /foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_output/daudio_output/ |
| H A D | daudio_output_plugin.cpp | 235 Status DaudioOutputPlugin::PushData(const std::string &inPort, std::shared_ptr<Plugin::Buffer> buffer, int32_t offset) in PushData() argument 237 if (buffer == nullptr || buffer->IsEmpty() || (buffer->GetBufferMeta() == nullptr)) { in PushData() 238 AVTRANS_LOGE("input buffer is nullptr, push data failed."); in PushData() 242 auto bufferMeta = buffer->GetBufferMeta(); in PushData() 246 AVTRANS_LOGI("Push audio buffer, bufferLen: %{public}zu, frameNum: %{public}u, pts: %{public}ld", in PushData() 247 buffer->GetMemory()->GetSize(), frameNum, pts); in PushData() 249 AVTRANS_LOGI("Push audio buffer, bufferLen: %{public}zu, not contains metadata.", in PushData() 250 buffer in PushData() 269 std::shared_ptr<Plugin::Buffer> buffer; HandleData() local 290 WriteMasterClockToMemory(const std::shared_ptr<Plugin::Buffer> &buffer) WriteMasterClockToMemory() argument [all...] |
| /kernel/linux/linux-5.10/drivers/staging/android/ion/ |
| H A D | ion_system_heap.c | 48 struct ion_buffer *buffer, in alloc_buffer_page() 57 struct ion_buffer *buffer, struct page *page) in free_buffer_page() 63 if (buffer->private_flags & ION_PRIV_FLAG_SHRINKER_FREE) { in free_buffer_page() 74 struct ion_buffer *buffer, in alloc_largest_available() 87 page = alloc_buffer_page(heap, buffer, orders[i]); in alloc_largest_available() 98 struct ion_buffer *buffer, in ion_system_heap_allocate() 118 page = alloc_largest_available(sys_heap, buffer, size_remaining, in ion_system_heap_allocate() 141 buffer->sg_table = table; in ion_system_heap_allocate() 148 free_buffer_page(sys_heap, buffer, page); in ion_system_heap_allocate() 152 static void ion_system_heap_free(struct ion_buffer *buffer) in ion_system_heap_free() argument 47 alloc_buffer_page(struct ion_system_heap *heap, struct ion_buffer *buffer, unsigned long order) alloc_buffer_page() argument 56 free_buffer_page(struct ion_system_heap *heap, struct ion_buffer *buffer, struct page *page) free_buffer_page() argument 73 alloc_largest_available(struct ion_system_heap *heap, struct ion_buffer *buffer, unsigned long size, unsigned int max_order) alloc_largest_available() argument 97 ion_system_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long size, unsigned long flags) ion_system_heap_allocate() argument 284 ion_system_contig_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long len, unsigned long flags) ion_system_contig_heap_allocate() argument 330 ion_system_contig_heap_free(struct ion_buffer *buffer) ion_system_contig_heap_free() argument [all...] |