/third_party/skia/experimental/ffmpeg/ |
H A D | SkVideoEncoder.cpp | 26 size_t size() const { return fStorage.size(); } in size() function in SkRandomAccessWStream 29 size_t len = fStorage.size(); in write() 45 SkASSERT(fPos <= fStorage.size()); in write() 49 SkASSERT(pos <= fStorage.size()); in seek() 55 return SkData::MakeWithCopy(fStorage.begin(), fStorage.size()); in detachAsData() 85 static int sk_write_packet(void* ctx, uint8_t* buffer, int size) { in sk_write_packet() argument 87 stream->write(buffer, size); in sk_write_packet() 88 return size; in sk_write_packet() 100 pos = (int64_t)stream->size() in sk_seek_packet() [all...] |
/third_party/skia/experimental/sktext/editor/ |
H A D | Editor.cpp | 10 std::unique_ptr<Editor> Editor::Make(std::u16string text, SkSize size) { in Make() argument 11 return std::make_unique<Editor>(text, size); in Make() 14 Editor::Editor(std::u16string text, SkSize size) in Editor() argument 24 static FontBlock textBlock(text.size(), sk_make_sp<TrivialFontChain>("Roboto", 40, SkFontStyle::Normal())); in Editor() 25 static DecoratedBlock textDecor(text.size(), foreground, background); in Editor() 26 auto textSize = SkSize::Make(size.width(), size.height() - DEFAULT_STATUS_HEIGHT); in Editor() 36 static FontBlock statusBlock(status.size(), sk_make_sp<TrivialFontChain>("Roboto", 20, SkFontStyle::Normal())); in Editor() 37 static DecoratedBlock statusDecor(status.size(), foreground, background); in Editor() 38 auto statusPoint = SkPoint::Make(0, size in Editor() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/cert_mgr_deps/src/ |
H A D | cm_ipc_client.c | 33 outBlob->size = buffSize; in GetAppCertInitBlob() 47 if (memcpy_s(certificateInfo->type, MAX_LEN_SUBJECT_NAME, blob.data, blob.size) != EOK) { in CmGetAppCertFromBuffer() 57 if (memcpy_s(certificateInfo->keyUri, MAX_LEN_URI, blob.data, blob.size) != EOK) { in CmGetAppCertFromBuffer() 67 if (memcpy_s(certificateInfo->alias, MAX_LEN_CERT_ALIAS, blob.data, blob.size) != EOK) { in CmGetAppCertFromBuffer() 115 if ((blob.size > certificateInfo->credData.size) || memcpy_s(certificateInfo->credData.data, in CmAppCertInfoUnpackFromService() 116 certificateInfo->credData.size, blob.data, blob.size) != EOK) { in CmAppCertInfoUnpackFromService() 120 certificateInfo->credData.size = blob.size; in CmAppCertInfoUnpackFromService() [all...] |
/drivers/peripheral/usb/ddk/host/src/ |
H A D | usb_raw_api_library.c | 162 static int32_t GetInterfaceNumber(const uint8_t *buffer, size_t size, uint8_t nIntf[], uint8_t nAlts[]) in GetInterfaceNumber() argument 169 for ((buffer2 = buffer, size2 = size); size2 > 0; (buffer2 += header->bLength, size2 -= header->bLength)) { in GetInterfaceNumber() 189 static int32_t FindNextDescriptor(const uint8_t *buffer, size_t size) in FindNextDescriptor() argument 194 while (size > 0) { in FindNextDescriptor() 200 size -= h->bLength; in FindNextDescriptor() 205 static int32_t GetConfigDescriptor(const struct UsbDevice *dev, uint8_t configIdx, uint8_t *buffer, size_t size) in GetConfigDescriptor() argument 220 ret = osAdapterOps->getConfigDescriptor(dev, configIdx, buffer, size); in GetConfigDescriptor() 229 } else if (ret != (int)size) { in GetConfigDescriptor() 230 HDF_LOGE("%{public}s: short config descriptor read size = %{public}zu, ret = %{public}d", __func__, size, re in GetConfigDescriptor() 309 ParseEndpoint(struct UsbRawEndpointDescriptor *endPoint, const uint8_t *buffer, int32_t size) ParseEndpoint() argument 405 RawParseDescriptor(int32_t size, const uint8_t *buffer, enum UsbRawDescriptorType bDescriptorType, const struct UsbRawInterfaceDescriptor *ifp) RawParseDescriptor() argument 447 ParseInterfaceEndpoint(struct UsbRawInterfaceDescriptor *ifp, const uint8_t **buffer, int32_t *size) ParseInterfaceEndpoint() argument 476 ParseInterface(struct UsbRawInterface *usbInterface, const uint8_t *buffer, int32_t size) ParseInterface() argument 535 ParseConfigurationDes(struct UsbRawConfigDescriptor *config, const uint8_t *buffer, int32_t size, struct UsbRawInterface *usbInterface, const uint8_t *nIntf) ParseConfigurationDes() argument 586 ParseConfiguration(struct UsbRawConfigDescriptor *config, const uint8_t *buffer, int32_t size) ParseConfiguration() argument 631 DescToConfig(const uint8_t *buf, int32_t size, struct UsbRawConfigDescriptor ** const config) DescToConfig() argument 1629 RawUsbMemAlloc(size_t size) RawUsbMemAlloc() argument 1634 RawUsbMemCalloc(size_t size) RawUsbMemCalloc() argument [all...] |
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_descriptor_set.c | 51 * of size 16, with padding for smaller descriptors like uniform storage in descriptor_size() 53 * and samplers are actually two descriptors, so they have size 2. in descriptor_size() 84 uint32_t size = descriptor_size(dev, list->pDescriptorTypes[i]); in mutable_descriptor_size() local 85 max_size = MAX2(max_size, size); in mutable_descriptor_size() 138 uint32_t size = samplers_offset + in tu_CreateDescriptorSetLayout() local 142 set_layout = vk_object_zalloc(&device->vk, NULL, size, in tu_CreateDescriptorSetLayout() 166 set_layout->size = 0; in tu_CreateDescriptorSetLayout() 176 set_layout->binding[b].offset = set_layout->size; in tu_CreateDescriptorSetLayout() 181 /* For mutable descriptor types we must allocate a size that fits the in tu_CreateDescriptorSetLayout() 184 set_layout->binding[b].size in tu_CreateDescriptorSetLayout() 310 uint64_t size = 0; tu_GetDescriptorSetLayoutSupport() local 649 uint64_t size = sizeof(struct tu_descriptor_pool); tu_CreateDescriptorPool() local 1142 const size_t size = tu_CreateDescriptorUpdateTemplate() local [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/ |
H A D | DawnTest.cpp | 587 if (GetEnabledToggles().size() > 0) { in PrintTestConfigurationAndAdapterInfo() 597 if (GetDisabledToggles().size() > 0) { in PrintTestConfigurationAndAdapterInfo() 1002 for (size_t i = 0; i < mReadbackSlots.size(); ++i) { 1060 uint64_t size, 1062 auto readback = ReserveReadback(size); 1067 encoder.CopyBufferToBuffer(buffer, offset, readback.buffer, readback.offset, size); 1077 deferred.size = size; 1078 deferred.rowBytes = size; 1079 deferred.bytesPerRow = size; [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | select_strategy.cpp | 77 if (overplayWindowBoundsVec_.size() == 0) { in CalcWidgetVisibleBounds() 173 if (visitWidgets.size() > MAX_TRAVEL_TIMES) { 210 if (visitWidgets.size() > MAX_TRAVEL_TIMES) { in LocateNodeAfterAnchor() 226 targetWidgets.emplace_back(visitWidgets.size() - 1); in LocateNodeAfterAnchor() 268 if (visitWidgets.size() > MAX_TRAVEL_TIMES) { 295 if (targetWidgets.size() > 0) { in LocateNodeAfterBeforeAnchor() 296 index = targetWidgets[targetWidgets.size() - 1] + 1; in LocateNodeAfterBeforeAnchor() 298 for (; index < visitWidgets.size() - 1; ++index) { in LocateNodeAfterBeforeAnchor() 348 if (visitWidgets.size() > MAX_TRAVEL_TIMES) { 391 if (visitWidgets.size() > MAX_TRAVEL_TIME in LocateNodeWithInAnchor() [all...] |
/third_party/json/tests/thirdparty/Fuzzer/ |
H A D | FuzzerLoop.cpp | 141 void MallocHook(const volatile void *ptr, size_t size) { in MallocHook() argument 143 F->HandleMalloc(size); in MallocHook() 145 Printf("MALLOC[%zd] %p %zd\n", N, ptr, size); in MallocHook() 338 MaxCoverage.CallerCalleeCoverage, Corpus.size(), ExecPerSec, Where); in PrintStats() 436 Printf("Reload: read %zd new units.\n", AdditionalCorpus.size()); in RereadOutputCorpus() 439 if (U.size() > MaxSize) in RereadOutputCorpus() 457 return A.size() < B.size(); in ShuffleCorpus() 462 Printf("#0\tREAD units: %zd\n", InitialCorpus->size()); in ShuffleAndMinimize() 475 Printf("NEW0: %zd L %zd\n", MaxCoverage.BlockCoverage, U.size()); in ShuffleAndMinimize() [all...] |
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/ |
H A D | virgl_vtest_winsys.c | 85 uint32_t size; in virgl_vtest_transfer_put() local 89 size = vtest_get_transfer_size(res, box, stride, layer_stride, level, in virgl_vtest_transfer_put() 94 box, size, buf_offset); in virgl_vtest_transfer_put() 100 virgl_vtest_send_transfer_put_data(vtws, ptr + buf_offset, size); in virgl_vtest_transfer_put() 114 uint32_t size; in virgl_vtest_transfer_get_internal() local 118 size = vtest_get_transfer_size(res, box, stride, layer_stride, level, in virgl_vtest_transfer_get_internal() 122 box, size, buf_offset); in virgl_vtest_transfer_get_internal() 154 virgl_vtest_recv_transfer_get_data(vtws, ptr + buf_offset, size, in virgl_vtest_transfer_get_internal() 182 os_munmap(res->ptr, res->size); in virgl_hw_res_destroy() 236 uint32_t size) in virgl_vtest_winsys_resource_create() 225 virgl_vtest_winsys_resource_create(struct virgl_winsys *vws, enum pipe_texture_target target, const void *map_front_private, uint32_t format, uint32_t bind, uint32_t width, uint32_t height, uint32_t depth, uint32_t array_size, uint32_t last_level, uint32_t nr_samples, uint32_t size) virgl_vtest_winsys_resource_create() argument 365 virgl_vtest_winsys_resource_cache_create(struct virgl_winsys *vws, enum pipe_texture_target target, const void *map_front_private, uint32_t format, uint32_t bind, uint32_t width, uint32_t height, uint32_t depth, uint32_t array_size, uint32_t last_level, uint32_t nr_samples, uint32_t flags, uint32_t size) virgl_vtest_winsys_resource_cache_create() argument 479 virgl_vtest_cmd_buf_create(struct virgl_winsys *vws, uint32_t size) virgl_vtest_cmd_buf_create() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_texture.c | 88 swap_size = desc->is_array ? desc->channel[0].size : desc->block.bits; in r300_get_endian_swap() 318 /* See whether the components are of the same size. */ in r300_translate_texformat() 320 uniform = uniform && desc->channel[0].size == desc->channel[i].size; in r300_translate_texformat() 327 if (desc->channel[0].size == 5 && in r300_translate_texformat() 328 desc->channel[1].size == 6 && in r300_translate_texformat() 329 desc->channel[2].size == 5) { in r300_translate_texformat() 332 if (desc->channel[0].size == 5 && in r300_translate_texformat() 333 desc->channel[1].size == 5 && in r300_translate_texformat() 334 desc->channel[2].size in r300_translate_texformat() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | FastVector.h | 7 // A vector class with a initial fixed size and variable growth. 69 size_type size() const; 109 return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin()); in operator ==() 282 ANGLE_INLINE typename FastVector<T, N, Storage>::size_type FastVector<T, N, Storage>::size() const 397 ensure_capacity(init.size()); in assign_from_initializer_list() 398 mSize = init.size(); in assign_from_initializer_list() 468 for (size_t index = 0; index < mData.size(); ++index) in contains() 480 for (size_t index = 0; index < mData.size(); ++index) in get() 493 size_t size() cons in empty() function in angle::final 542 ensureCapacity(size_t size) ensureCapacity() argument 594 ANGLE_INLINE size_t size() const size() function in angle::final 630 ensureCapacity(size_t size) ensureCapacity() argument 670 ANGLE_INLINE size_t size() const { return mKeySet.size(); } size() function in angle::final 675 ensureCapacityImpl(size_t size) ensureCapacityImpl() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
H A D | Texture.cpp | 112 DAWN_INVALID_IF(descriptor->size.depthOrArrayLayers > 1, in ValidateSampleCount() 114 descriptor->size.depthOrArrayLayers); in ValidateSampleCount() 179 ASSERT(descriptor->size.width != 0 && descriptor->size.height != 0 && in ValidateTextureSize() 180 descriptor->size.depthOrArrayLayers != 0); in ValidateTextureSize() 196 DAWN_INVALID_IF(descriptor->size.width > maxExtent.width || in ValidateTextureSize() 197 descriptor->size.height > maxExtent.height || in ValidateTextureSize() 198 descriptor->size.depthOrArrayLayers > maxExtent.depthOrArrayLayers, in ValidateTextureSize() 199 "Texture size (%s) exceeded maximum texture size ( in ValidateTextureSize() [all...] |
/third_party/skia/third_party/externals/freetype/src/winfonts/ |
H A D | winfnt.c | 135 FT_FRAME_ULONG_LE( size ), 214 FT_UInt size; in fnt_font_load() local 236 size = new_format ? 148 : 118; in fnt_font_load() 238 if ( header->file_size < size ) in fnt_font_load() 376 /* use this as a rough measure to check the expected font size */ in fnt_face_get_dll_font() 377 if ( font_count * 118UL > stream->size ) in fnt_face_get_dll_font() 457 FT_TRACE2(( "name %.8s, va %04lx, size %04lx, offset %04lx\n", in fnt_face_get_dll_font() 550 "size %04lx, cp %lu\n", in fnt_face_get_dll_font() 555 data_entry.size, data_entry.code_page )); in fnt_face_get_dll_font() 565 face->font->fnt_size = data_entry.size; in fnt_face_get_dll_font() 937 FNT_Size_Select( FT_Size size, FT_ULong strike_index ) FNT_Size_Select() argument 958 FNT_Size_Request( FT_Size size, FT_Size_Request req ) FNT_Size_Request() argument 996 FNT_Load_Glyph( FT_GlyphSlot slot, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags ) FNT_Load_Glyph() argument [all...] |
/third_party/python/Objects/ |
H A D | tupleobject.c | 29 this function must not be called with size == 0 (unless from PyTuple_New() 33 tuple_alloc(Py_ssize_t size) in tuple_alloc() argument 35 if (size < 0) { in tuple_alloc() 40 assert(size != 0); // The empty tuple is statically allocated. in tuple_alloc() 43 PyTupleObject *op = maybe_freelist_pop(size); in tuple_alloc() 46 if ((size_t)size > ((size_t)PY_SSIZE_T_MAX - (sizeof(PyTupleObject) - in tuple_alloc() 50 op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size); in tuple_alloc() 69 PyTuple_New(Py_ssize_t size) in PyTuple_New() argument 72 if (size == 0) { in PyTuple_New() 75 op = tuple_alloc(size); in PyTuple_New() 447 Py_ssize_t size; tupleconcat() local 498 Py_ssize_t size; tuplerepeat() local 1174 maybe_freelist_pop(Py_ssize_t size) maybe_freelist_pop() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | charconv_test.cc | 84 // each decimal mantissa size.) in TEST() 163 absl::from_chars(s.data(), s.data() + s.size(), f); in ToFloat() 169 absl::from_chars(s.data(), s.data() + s.size(), d); in ToDouble() 275 low_rep[low_rep.size() - 1] -= 1; in TestHalfwayValue() 279 absl::from_chars(low_rep.data(), low_rep.data() + low_rep.size(), actual_low); in TestHalfwayValue() 285 absl::from_chars(high_rep.data(), high_rep.data() + high_rep.size(), in TestHalfwayValue() 291 absl::from_chars(halfway_rep.data(), halfway_rep.data() + halfway_rep.size(), in TestHalfwayValue() 443 const char* end = begin + negative_underflow.size(); in TEST() 459 end = begin + positive_underflow.size(); in TEST() 483 const char* end = begin + negative_overflow.size(); in TEST() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/ |
H A D | rga_dma_buf.c | 50 uint32_t h, unsigned long *StartAddr, unsigned long *size) in rga_buf_size_cal() 214 if (size != NULL) in rga_buf_size_cal() 215 *size = size_yrgb + size_uv + size_v; in rga_buf_size_cal() 364 size_t size, u64 dma_limit, in rga_iommu_dma_alloc_iova() 372 iova_len = size >> shift; in rga_iommu_dma_alloc_iova() 377 * order of the unadjusted size will still match upon freeing. in rga_iommu_dma_alloc_iova() 393 dma_addr_t iova, size_t size) in rga_iommu_dma_free_iova() 398 size >> iova_shift(iovad)); in rga_iommu_dma_free_iova() 412 iommu_unmap(buffer->domain, buffer->iova, buffer->size); in rga_viraddr_put_channel_info() 413 rga_iommu_dma_free_iova(buffer->cookie, buffer->iova, buffer->size); in rga_viraddr_put_channel_info() 48 rga_buf_size_cal(unsigned long yrgb_addr, unsigned long uv_addr, unsigned long v_addr, int format, uint32_t w, uint32_t h, unsigned long *StartAddr, unsigned long *size) rga_buf_size_cal() argument 363 rga_iommu_dma_alloc_iova(struct iommu_domain *domain, size_t size, u64 dma_limit, struct device *dev) rga_iommu_dma_alloc_iova() argument 392 rga_iommu_dma_free_iova(struct rga_iommu_dma_cookie *cookie, dma_addr_t iova, size_t size) rga_iommu_dma_free_iova() argument 436 unsigned long size; rga_iommu_map_virt_addr() local 497 unsigned long size; rga_viraddr_get_channel_info() local [all...] |
/third_party/libcoap/src/ |
H A D | coap_tinydtls.c | 227 a->size = (socklen_t)sizeof(a->addr.sin6); in get_session_addr() 235 a->size = (socklen_t)sizeof(a->addr.sin); in get_session_addr() 242 a->size = (socklen_t)sizeof(a->addr.sin6); in get_session_addr() 245 a->size = (socklen_t)sizeof(a->addr.sin); in get_session_addr() 248 a->size = (socklen_t)s->size; in get_session_addr() 257 s->size = (unsigned char)sizeof(s->addr); in put_session_addr() 262 s->size = (socklen_t)sizeof(s->addr.ipv6); in put_session_addr() 269 s->size = (socklen_t)sizeof(s->addr.ipv4); in put_session_addr() 277 s->size in put_session_addr() 966 pem_base64_decode(const uint8_t *data, size_t size) pem_base64_decode() argument 1026 asn1_verify_privkey(const uint8_t *data, size_t size) asn1_verify_privkey() argument 1042 asn1_verify_pubkey(const uint8_t *data, size_t size) asn1_verify_pubkey() argument 1054 asn1_verify_curve(const uint8_t *data, size_t size) asn1_verify_curve() argument 1068 asn1_verify_pkcs8_version(const uint8_t *data, size_t size) asn1_verify_pkcs8_version() argument 1077 asn1_verify_ec_identifier(const uint8_t *data, size_t size) asn1_verify_ec_identifier() argument 1091 asn1_verify_ec_key(const uint8_t *data, size_t size) asn1_verify_ec_key() argument [all...] |
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitNativeX86_32.c | 46 static sljit_u8* emit_x86_instruction(struct sljit_compiler *compiler, sljit_uw size, in emit_x86_instruction() argument 55 sljit_uw flags = size; in emit_x86_instruction() 62 /* Both size flags cannot be switched on. */ in emit_x86_instruction() 70 size &= 0xf; in emit_x86_instruction() 71 inst_size = size; in emit_x86_instruction() 78 /* Calculate size of b. */ in emit_x86_instruction() 107 /* Calculate size of a. */ in emit_x86_instruction() 144 buf_ptr = inst + size; in emit_x86_instruction() 267 sljit_s32 size, args_size, types, status; in sljit_emit_enter() local 344 size in sljit_emit_enter() 535 sljit_uw size; emit_stack_frame_release() local 1284 sljit_sw size; skip_frames_before_return() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/ |
H A D | vktDynamicStateInheritanceTests.cpp | 473 deUint32 size = kMaxViewports + 1; in createImageView() local 474 m_rectanglePipelines.reserve(size); in createImageView() 475 for (deUint32 i = 0; i < size; ++i) in createImageView() 508 DE_ASSERT(geometry.viewports.size() > 0); in startRenderCmds() 509 DE_ASSERT(geometry.viewports.size() <= kMaxViewports); in startRenderCmds() 510 DE_ASSERT(geometry.viewports.size() == geometry.scissors.size()); in startRenderCmds() 513 DE_ASSERT(kMaxRectangles >= geometry.rectangles.size()); in startRenderCmds() 515 for (size_t i = 0; i < geometry.rectangles.size(); ++i) in startRenderCmds() 546 m_vk.cmdSetViewport(m_setStateCmdBuffer.get(), 0, deUint32(geometry.viewports.size()), in startRenderCmds() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
H A D | SmallVector.h | 50 /// This returns size()*sizeof(T). 135 size_type size() const { return end()-begin(); } in size() function in llvm::SmallVectorTemplateCommon 148 assert(idx < size()); in operator []() 153 assert(idx < size()); 206 /// the size of the allocated memory. Guarantees space for at least one more 235 size_t CurSize = this->size(); in grow() 299 /// Double the size of the allocated memory, guaranteeing space for at 353 if (N < this->size()) { in resize() 356 } else if (N > this->size()) { in resize() 366 if (N < this->size()) { in resize() [all...] |
/third_party/vulkan-loader/tests/framework/layer/ |
H A D | test_layer.cpp | 143 if (*pPropertyCount < layer.injected_instance_extensions.size()) { 146 for (size_t i = 0; i < layer.injected_instance_extensions.size(); i++) { 149 *pPropertyCount = static_cast<uint32_t>(layer.injected_instance_extensions.size()); 151 *pPropertyCount = static_cast<uint32_t>(layer.injected_instance_extensions.size()); 158 hardware_prop_count = *pPropertyCount - static_cast<uint32_t>(layer.injected_instance_extensions.size()); 168 *pPropertyCount = hardware_prop_count + static_cast<uint32_t>(layer.injected_instance_extensions.size()); 170 if (hardware_prop_count + layer.injected_instance_extensions.size() > *pPropertyCount) { 174 for (size_t i = 0; i < layer.injected_instance_extensions.size(); i++) { 177 *pPropertyCount = hardware_prop_count + static_cast<uint32_t>(layer.injected_instance_extensions.size()); 195 if (*pPropertyCount < static_cast<uint32_t>(layer.injected_device_extensions.size())) { [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/osal/ |
H A D | drv_osal_sys_linux.c | 72 static hi_s32 cipher_dma_alloc_coherent(crypto_mem *mem, hi_u32 type, const hi_char *name, hi_u32 size) in cipher_dma_alloc_coherent() argument 86 if (size > DMA_ALLOC_MAX_SIZE) { in cipher_dma_alloc_coherent() 87 hi_log_error("dma alloc coherent with invalid size(0x%x).\n", size); in cipher_dma_alloc_coherent() 103 mem->dma_size = size; in cipher_dma_alloc_coherent() 178 static hi_s32 hash_mem_alloc_remap(crypto_mem *mem, hi_u32 type, const char *name, hi_u32 size) in hash_mem_alloc_remap() argument 187 hi_log_debug("mem_alloc_remap()- name %s, size 0x%x\n", name, size); in hash_mem_alloc_remap() 189 mem->dma_size = size; in hash_mem_alloc_remap() 190 mem->dma_virt = kzalloc(size, GFP_KERNE in hash_mem_alloc_remap() 252 crypto_mem_alloc_remap(crypto_mem *mem, hi_u32 type, const hi_char *name, hi_u32 size) crypto_mem_alloc_remap() argument 328 crypto_mem_create(crypto_mem *mem, hi_u32 type, const char *name, hi_u32 size) crypto_mem_create() argument 342 hash_mem_create(crypto_mem *mem, hi_u32 type, const char *name, hi_u32 size) hash_mem_create() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | xxan.c | 131 int size; in xan_unpack() local 144 size = opcode & 3; in xan_unpack() 148 size = bytestream2_peek_byte(&s->gb) >> 6; in xan_unpack() 152 size = opcode & 3; in xan_unpack() 155 if (size + size2 > dest_end - dest) in xan_unpack() 158 if (dest + size + size2 > dest_end || in xan_unpack() 159 dest - orig_dest + size < back) in xan_unpack() 161 bytestream2_get_buffer(&s->gb, dest, size); in xan_unpack() 162 dest += size; in xan_unpack() 168 size in xan_unpack() [all...] |
H A D | qdrw.c | 82 int size, left, code, pix; in decode_rle_bpp2() local 86 /* size of packed line */ in decode_rle_bpp2() 88 size = left = bytestream2_get_be16(gbc); in decode_rle_bpp2() 90 size = left = bytestream2_get_byte(gbc); in decode_rle_bpp2() 91 if (bytestream2_get_bytes_left(gbc) < size) in decode_rle_bpp2() 137 int size, left, code, pix; in decode_rle_bpp4() local 141 /* size of packed line */ in decode_rle_bpp4() 142 size = left = bytestream2_get_be16(gbc); in decode_rle_bpp4() 143 if (bytestream2_get_bytes_left(gbc) < size) in decode_rle_bpp4() 181 int size, lef in decode_rle16() local 225 int size, left, code, pix; decode_rle() local [all...] |
/third_party/ffmpeg/libavdevice/ |
H A D | lavfi.c | 372 if ((ret = av_new_packet(&lavfi->subcc_packet, sd->size)) < 0) in create_subcc_packet() 374 memcpy(lavfi->subcc_packet.data, sd->data, sd->size); in create_subcc_packet() 389 int size = 0; in lavfi_read_packet() local 392 if (lavfi->subcc_packet.size) { in lavfi_read_packet() 394 return pkt->size; in lavfi_read_packet() 434 size = av_image_get_buffer_size(frame->format, frame->width, frame->height, 1); in lavfi_read_packet() 435 if ((ret = av_new_packet(pkt, size)) < 0) in lavfi_read_packet() 438 av_image_copy_to_buffer(pkt->data, size, (const uint8_t **)frame->data, frame->linesize, in lavfi_read_packet() 441 size = frame->nb_samples * av_get_bytes_per_sample(frame->format) * in lavfi_read_packet() 443 if ((ret = av_new_packet(pkt, size)) < in lavfi_read_packet() 450 size_t size; lavfi_read_packet() local [all...] |