/third_party/skia/third_party/externals/freetype/src/cache/ |
H A D | ftcsbits.c | 48 FT_ULong size; in ftc_sbit_copy_bitmap() local 54 size = (FT_ULong)pitch * bitmap->rows; in ftc_sbit_copy_bitmap() 56 if ( !FT_QALLOC( sbit->buffer, size ) ) in ftc_sbit_copy_bitmap() 57 FT_MEM_COPY( sbit->buffer, bitmap->buffer, size ); in ftc_sbit_copy_bitmap() 188 /* now, compute size */ in ftc_snode_load() 292 FT_Offset size; in FT_LOCAL_DEF() local 300 size = sizeof ( *snode ); in FT_LOCAL_DEF() 310 /* add the size of a given glyph image */ in FT_LOCAL_DEF() 311 size += (FT_Offset)pitch * sbit->height; in FT_LOCAL_DEF() 315 return size; in FT_LOCAL_DEF() 387 FT_ULong size; FT_LOCAL_DEF() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.h | 84 const unsigned size; // size of the buffer in bytes member in llvm::NVPTXAsmPrinter::AggBuffer 102 AggBuffer(unsigned size, raw_ostream &O, NVPTXAsmPrinter &AP) in AggBuffer() argument 103 : size(size), buffer(size), O(O), AP(AP) { in AggBuffer() 110 assert((curpos + Num) <= size); in addBytes() 111 assert((curpos + Bytes) <= size); in addBytes() 124 assert((curpos + Num) <= size); in addZeros() 142 for (unsigned i = 0; i < size; in print() [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | wire_format.h | 89 // Compute the byte size of a tag. For groups, this includes both the start 96 // compiler to optimize for code size rather than speed, it will implement 120 // cached. However, the top-level message need not; its size is passed as 124 static void SerializeWithCachedSizes(const Message& message, int size, in SerializeWithCachedSizes() argument 126 int expected_endpoint = output->ByteCount() + size; in SerializeWithCachedSizes() 130 << ": Protocol message serialized to a size different from what was " in SerializeWithCachedSizes() 208 // Compute the size of the UnknownFieldSet on the wire. 241 // Compute size of a single field. If the field is a message type, this 243 // its size. 263 // Computes the byte size o 355 VerifyUTF8String(const char* data, int size, WireFormat::Operation op) VerifyUTF8String() argument 368 VerifyUTF8StringNamedField(const char* data, int size, WireFormat::Operation op, const char* field_name) VerifyUTF8StringNamedField() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | str_join_internal.h | 201 result.append(sep.data(), sep.size()); in JoinAlgorithm() 221 // range will be traversed twice: once to calculate the total needed size, and 231 // Sums size in JoinAlgorithm() 232 size_t result_size = start->size(); in JoinAlgorithm() 234 result_size += s.size(); in JoinAlgorithm() 235 result_size += it->size(); in JoinAlgorithm() 243 memcpy(result_buf, start->data(), start->size()); in JoinAlgorithm() 244 result_buf += start->size(); in JoinAlgorithm() 246 memcpy(result_buf, s.data(), s.size()); in JoinAlgorithm() 247 result_buf += s.size(); in JoinAlgorithm() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | escaping.cc | 73 // If 'source' is valid, stores the unescaped string and its size in 88 const char* end = p + source.size(); in CUnescapeInternal() 284 strings_internal::STLStringResizeUninitialized(dest, source.size()); in CUnescapeInternal() 384 if (escaped_len == src.size()) { in CEscapeAndAppendInternal() 385 dest->append(src.data(), src.size()); in CEscapeAndAppendInternal() 389 size_t cur_dest_len = dest->size(); in CEscapeAndAppendInternal() 774 // Determine the size of the output string. Base64 encodes every 3 bytes into in Base64UnescapeInternal() 897 return Base64UnescapeInternal(src.data(), src.size(), dest, kUnBase64); in Base64Unescape() 901 return Base64UnescapeInternal(src.data(), src.size(), dest, kUnWebSafeBase64); in WebSafeBase64Unescape() 906 reinterpret_cast<const unsigned char*>(src.data()), src.size(), des in Base64Escape() [all...] |
/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...] |
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | hi_osal.h | 26 extern void *osal_vmalloc(unsigned long size); 28 extern void *osal_kmalloc(unsigned long size, unsigned int osal_gfp_flag); 229 extern int osal_strncmp(const char *s1, const char *s2, int size); 230 extern int osal_strnicmp(const char *s1, const char *s2, int size); 239 extern int osal_strnlen(const char *s, int size); 246 extern void *osal_memscan(void *addr, int c, int size); 255 extern int osal_snprintf(char *buf, int size, const char *fmt, ...) __attribute__((format(printf, 3, 4))); 259 extern void *osal_ioremap(unsigned long phys_addr, unsigned long size); 260 extern void *osal_ioremap_nocache(unsigned long phys_addr, unsigned long size); 261 extern void *osal_ioremap_cached(unsigned long phys_addr, unsigned long size); [all...] |
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/ |
H A D | codec_jpeg_helper.cpp | 136 CODEC_LOGD("enter. curPos = %{public}d, quantTbl.size= %{public}zu", curPos, decInfo.quantTbl.size()); in JpegDqtAssemble() 149 for (size_t i = 0; i < decInfo.quantTbl.size(); i++) { in JpegDqtAssemble() 154 if (decInfo.quantTbl[i].quantVal.size() == 64) { // 64: quant table length in JpegDqtAssemble() 164 for (size_t j = 0; j < decInfo.quantTbl[i].quantVal.size(); j++) { in JpegDqtAssemble() 223 CODEC_LOGD("enter. curPos = %{public}d, table.size() = %{public}zu", curPos, table.size()); in JpegDhtAssemble() 233 for (size_t i = 0; i < table.size(); i++) { in JpegDhtAssemble() 248 auto ret = memcpy_s(buffer + curPos, table[i].bits.size(), table[i].bits.data(), table[i].bits.size()); in JpegDhtAssemble() 379 int32_t size = OHOS::AshmemGetSize(fd); JpegDataAssemble() local [all...] |
/device/soc/rockchip/rk3588/hardware/codec/jpeg/src/ |
H A D | codec_jpeg_helper.cpp | 136 CODEC_LOGI("enter. curPos = %{public}d, quantTbl.size= %{public}zu", curPos, decInfo.quantTbl.size()); in JpegDqtAssemble() 149 for (size_t i = 0; i < decInfo.quantTbl.size(); i++) { in JpegDqtAssemble() 154 if (decInfo.quantTbl[i].quantVal.size() == 64) { // 64: quant table length in JpegDqtAssemble() 164 for (size_t j = 0; j < decInfo.quantTbl[i].quantVal.size(); j++) { in JpegDqtAssemble() 223 CODEC_LOGI("enter. curPos = %{public}d, table.size() = %{public}zu", curPos, table.size()); in JpegDhtAssemble() 233 for (size_t i = 0; i < table.size(); i++) { in JpegDhtAssemble() 248 auto ret = memcpy_s(buffer + curPos, table[i].bits.size(), table[i].bits.data(), table[i].bits.size()); in JpegDhtAssemble() 379 int32_t size = OHOS::AshmemGetSize(fd); JpegDataAssemble() local [all...] |
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | util.h | 38 size_t size, used; \ 46 (heap)->size = (_size); \ 47 _bytes = (heap)->size * sizeof(*(heap)->data); \ 114 #define heap_full(h) ((h)->used == (h)->size) 118 size_t front, back, size, mask; \ 130 BUG_ON(!(fifo)->size); \ 132 _allocated_size = roundup_pow_of_two((fifo)->size + 1); \ 144 (fifo)->size = (_size); \ 150 (fifo)->size = (_size); \ 151 if ((fifo)->size > [all...] |
/kernel/linux/linux-5.10/drivers/input/tablet/ |
H A D | gtco.c | 79 /* Max size of a single report */ 208 __u8 size; in parse_hid_report_descriptor() local 235 /* Determine data size and save the data in the proper variable */ in parse_hid_report_descriptor() 236 size = (1U << PREF_SIZE(prefix)) >> 1; in parse_hid_report_descriptor() 237 if (i + size > length) { in parse_hid_report_descriptor() 240 i + size, length); in parse_hid_report_descriptor() 244 switch (size) { in parse_hid_report_descriptor() 256 /* Skip size of data */ in parse_hid_report_descriptor() 257 i += size; in parse_hid_report_descriptor() 400 switch (size) { in parse_hid_report_descriptor() [all...] |
/kernel/linux/linux-5.10/lib/pldmfw/ |
H A D | pldmfw.c | 70 if (data->fw->size < expected_size) { in pldm_check_fw_space() 71 dev_dbg(dev, "Firmware file size smaller than expected. Got %zu bytes, needed %zu bytes\n", in pldm_check_fw_space() 72 data->fw->size, expected_size); in pldm_check_fw_space() 118 * * Extract the size of the component bitmap length 150 data->total_header_size = get_unaligned_le16(&header->size); in pldm_parse_header() 192 * @size: the length from the descriptor header 199 * Returns: zero on success, or -EINVAL if the specified size of a standard 203 pldm_check_desc_tlv_len(struct pldmfw_priv *data, u16 type, u16 size) in pldm_check_desc_tlv_len() argument 238 if (size != expected_size) { in pldm_check_desc_tlv_len() 240 type, size, expected_siz in pldm_check_desc_tlv_len() 270 u16 type, size; pldm_parse_desc_tlvs() local 451 u32 offset, size; pldm_parse_components() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | taskstats.c | 66 size_t size) in prepare_reply() 74 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply() 391 size_t size; in cgroupstats_user_cmd() local 404 size = nla_total_size(sizeof(struct cgroupstats)); in cgroupstats_user_cmd() 407 size); in cgroupstats_user_cmd() 469 size_t size; in taskstats_packet_size() local 471 size = nla_total_size(sizeof(u32)) + in taskstats_packet_size() 475 return size; in taskstats_packet_size() 482 size_t size; in cmd_attr_pid() local 486 size in cmd_attr_pid() 65 prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, size_t size) prepare_reply() argument 511 size_t size; cmd_attr_tgid() local 589 size_t size; taskstats_exit() local [all...] |
/kernel/linux/linux-5.10/drivers/nfc/st21nfca/ |
H A D | dep.c | 326 u8 size; in st21nfca_tm_recv_dep_req() local 332 size = 4; in st21nfca_tm_recv_dep_req() 335 if (skb->len < size) { in st21nfca_tm_recv_dep_req() 341 size++; in st21nfca_tm_recv_dep_req() 343 size++; in st21nfca_tm_recv_dep_req() 345 if (skb->len < size) { in st21nfca_tm_recv_dep_req() 364 skb_pull(skb, size); in st21nfca_tm_recv_dep_req() 520 uint size; in st21nfca_im_send_atr_req() local 523 size = ST21NFCA_ATR_REQ_MIN_SIZE + gb_len; in st21nfca_im_send_atr_req() 524 if (size > ST21NFCA_ATR_REQ_MAX_SIZ in st21nfca_im_send_atr_req() 584 int size; st21nfca_im_recv_dep_res_cb() local [all...] |
/kernel/linux/linux-6.6/drivers/nfc/st21nfca/ |
H A D | dep.c | 310 u8 size; in st21nfca_tm_recv_dep_req() local 315 size = 4; in st21nfca_tm_recv_dep_req() 318 if (skb->len < size) in st21nfca_tm_recv_dep_req() 322 size++; in st21nfca_tm_recv_dep_req() 324 size++; in st21nfca_tm_recv_dep_req() 326 if (skb->len < size) in st21nfca_tm_recv_dep_req() 343 skb_pull(skb, size); in st21nfca_tm_recv_dep_req() 497 uint size; in st21nfca_im_send_atr_req() local 500 size = ST21NFCA_ATR_REQ_MIN_SIZE + gb_len; in st21nfca_im_send_atr_req() 501 if (size > ST21NFCA_ATR_REQ_MAX_SIZ in st21nfca_im_send_atr_req() 561 int size; st21nfca_im_recv_dep_res_cb() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/microcode/ |
H A D | intel.c | 38 /* last level cache size per core */ 156 pr_err("Error: bad microcode data file size.\n"); in intel_microcode_sanity_check() 182 pr_err("Error: extended signature table size mismatch.\n"); in intel_microcode_sanity_check() 256 static struct ucode_patch *memdup_patch(void *data, unsigned int size) in memdup_patch() argument 264 p->data = kmemdup(data, size, GFP_KERNEL); in memdup_patch() 273 static void save_microcode_patch(struct ucode_cpu_info *uci, void *data, unsigned int size) in save_microcode_patch() argument 293 p = memdup_patch(data, size); in save_microcode_patch() 309 p = memdup_patch(data, size); in save_microcode_patch() 338 scan_microcode(void *data, size_t size, struct ucode_cpu_info *uci, bool save) in scan_microcode() argument 344 while (size) { in scan_microcode() [all...] |
/kernel/liteos_a/kernel/base/vm/ |
H A D | los_vm_phys.c | 48 .size = SYS_MEM_SIZE_DEFAULT, 74 STATIC INT32 OsVmPhysSegCreate(paddr_t start, size_t size) in OsVmPhysSegCreate() argument 83 for (; (seg > g_vmPhysSeg) && ((seg - 1)->start > (start + size)); seg--) { in OsVmPhysSegCreate() 87 seg->size = size; in OsVmPhysSegCreate() 99 ret = OsVmPhysSegCreate(g_physArea[i].start, g_physArea[i].size); in OsVmPhysSegAdd() 106 VOID OsVmPhysAreaSizeAdjust(size_t size) in OsVmPhysAreaSizeAdjust() argument 112 g_physArea[0].start += size; in OsVmPhysAreaSizeAdjust() 113 g_physArea[0].size -= size; in OsVmPhysAreaSizeAdjust() 277 size_t size = nPages << PAGE_SHIFT; OsVmPhysLargeAlloc() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | taskstats.c | 67 size_t size) in prepare_reply() 75 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply() 413 size_t size; in cgroupstats_user_cmd() local 426 size = nla_total_size(sizeof(struct cgroupstats)); in cgroupstats_user_cmd() 429 size); in cgroupstats_user_cmd() 491 size_t size; in taskstats_packet_size() local 493 size = nla_total_size(sizeof(u32)) + in taskstats_packet_size() 497 return size; in taskstats_packet_size() 504 size_t size; in cmd_attr_pid() local 508 size in cmd_attr_pid() 66 prepare_reply(struct genl_info *info, u8 cmd, struct sk_buff **skbp, size_t size) prepare_reply() argument 533 size_t size; cmd_attr_tgid() local 611 size_t size; taskstats_exit() local [all...] |
/kernel/linux/linux-6.6/lib/pldmfw/ |
H A D | pldmfw.c | 70 if (data->fw->size < expected_size) { in pldm_check_fw_space() 71 dev_dbg(dev, "Firmware file size smaller than expected. Got %zu bytes, needed %zu bytes\n", in pldm_check_fw_space() 72 data->fw->size, expected_size); in pldm_check_fw_space() 118 * * Extract the size of the component bitmap length 150 data->total_header_size = get_unaligned_le16(&header->size); in pldm_parse_header() 192 * @size: the length from the descriptor header 199 * Returns: zero on success, or -EINVAL if the specified size of a standard 203 pldm_check_desc_tlv_len(struct pldmfw_priv *data, u16 type, u16 size) in pldm_check_desc_tlv_len() argument 238 if (size != expected_size) { in pldm_check_desc_tlv_len() 240 type, size, expected_siz in pldm_check_desc_tlv_len() 270 u16 type, size; pldm_parse_desc_tlvs() local 451 u32 offset, size; pldm_parse_components() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | encode.c | 35 int ff_alloc_packet(AVCodecContext *avctx, AVPacket *avpkt, int64_t size) in ff_alloc_packet() argument 37 if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in ff_alloc_packet() 38 av_log(avctx, AV_LOG_ERROR, "Invalid minimum required packet size %"PRId64" (max allowed is %d)\n", in ff_alloc_packet() 39 size, INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); in ff_alloc_packet() 46 &avctx->internal->byte_buffer_size, size); in ff_alloc_packet() 49 av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %"PRId64"\n", size); in ff_alloc_packet() 52 avpkt->size = size; in ff_alloc_packet() 79 ff_get_encode_buffer(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int flags) ff_get_encode_buffer() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | avio.c | 357 int size, int size_min, in retry_transfer_wrapper() 360 int size)) in retry_transfer_wrapper() 370 ret = transfer_func(h, buf + len, size - len); in retry_transfer_wrapper() 401 int ffurl_read(URLContext *h, unsigned char *buf, int size) in ffurl_read() argument 405 return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read); in ffurl_read() 408 int ffurl_read_complete(URLContext *h, unsigned char *buf, int size) in ffurl_read_complete() argument 412 return retry_transfer_wrapper(h, buf, size, size, h->prot->url_read); in ffurl_read_complete() 415 int ffurl_write(URLContext *h, const unsigned char *buf, int size) in ffurl_write() argument 420 if (h->max_packet_size && size > in ffurl_write() 356 retry_transfer_wrapper(URLContext *h, uint8_t *buf, int size, int size_min, int (*transfer_func)(URLContext *h, uint8_t *buf, int size)) retry_transfer_wrapper() argument 607 int64_t pos, size; ffurl_size() local [all...] |
H A D | tls_schannel.c | 72 void *data, unsigned long size) in init_sec_buffer() 74 buffer->cbBuffer = size; in init_sec_buffer() 391 int size, ret; in tls_read() local 406 size = c->enc_buf_size - c->enc_buf_offset; in tls_read() 407 if (size < SCHANNEL_FREE_BUFFER_SIZE || c->enc_buf_size < min_enc_buf_size) { in tls_read() 447 size = inbuf[1].cbBuffer > SCHANNEL_FREE_BUFFER_SIZE ? in tls_read() 449 if (c->dec_buf_size - c->dec_buf_offset < size || c->dec_buf_size < len) { in tls_read() 450 c->dec_buf_size = c->dec_buf_offset + size; in tls_read() 461 size = inbuf[1].cbBuffer; in tls_read() 462 if (size) { in tls_read() 71 init_sec_buffer(SecBuffer *buffer, unsigned long type, void *data, unsigned long size) init_sec_buffer() argument [all...] |
H A D | electronicarts.c | 95 uint8_t size, byte; in read_arbitrary() local 99 size = avio_r8(pb); in read_arbitrary() 102 for (i = 0; i < size; i++) { in read_arbitrary() 360 uint32_t blockid, size = 0; in process_ea_header() local 370 size = avio_rl32(pb); in process_ea_header() 372 ea->big_endian = size > av_bswap32(size); in process_ea_header() 374 size = av_bswap32(size); in process_ea_header() 376 if (size < in process_ea_header() 463 unsigned big_endian, size; ea_probe() local [all...] |