Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 25 of 60) sorted by relevance

123

/third_party/protobuf/src/google/protobuf/
Drepeated_field.cc74 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
76 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
77 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
79 rep_->allocated_size = 0; in InternalExtend()
102 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
105 rep_->allocated_size -= num; in CloseGap()
109 if (rep_ != NULL && current_size_ < rep_->allocated_size) { in AddWeak()
112 if (!rep_ || rep_->allocated_size == total_size_) { in AddWeak()
115 ++rep_->allocated_size; in AddWeak()
Drepeated_field.h743 int allocated_size;
1661 int n = rep_->allocated_size;
1744 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1747 if (!rep_ || rep_->allocated_size == total_size_) {
1750 ++rep_->allocated_size;
1760 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1764 if (!rep_ || rep_->allocated_size == total_size_) {
1767 ++rep_->allocated_size;
1814 int allocated_elems = rep_->allocated_size - current_size_;
1818 if (rep_->allocated_size < current_size_) {
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfsfallocate.c555 if (na->compressed_size >= na->allocated_size) { in ntfs_merge_allocation()
557 if (na->compressed_size > na->allocated_size) { in ntfs_merge_allocation()
564 (long long)na->allocated_size); in ntfs_merge_allocation()
665 if (na->allocated_size <= alloc_offs) { in ntfs_full_allocation()
680 if ((alloc_offs + alloc_len) > na->allocated_size) in ntfs_full_allocation()
715 attr->allocated_size in ntfs_full_allocation()
716 = cpu_to_sle64(na->allocated_size); in ntfs_full_allocation()
725 ni->allocated_size in ntfs_full_allocation()
729 ni->allocated_size in ntfs_full_allocation()
730 = na->allocated_size; in ntfs_full_allocation()
[all …]
Dntfscp.c621 na->allocated_size = alctx->wanted_clusters in set_sizes()
628 attr->allocated_size = cpu_to_sle64(na->allocated_size); in set_sizes()
636 ni->allocated_size = na->compressed_size; in set_sizes()
639 ni->allocated_size = na->allocated_size; in set_sizes()
670 na->allocated_size = alctx->wanted_clusters in assign_runlist()
Dmkntfs.c1561 a->allocated_size = cpu_to_sle64(highest_vcn * g_vol->cluster_size); in insert_positioned_attr_in_mft_record()
1756 a->allocated_size = cpu_to_sle64((val_len + (g_vol->cluster_size - 1)) & in insert_non_resident_attr_in_mft_record()
2007 const s64 allocated_size, const s64 data_size, in add_attr_file_name() argument
2049 fn->allocated_size = cpu_to_sle64(allocated_size); in add_attr_file_name()
2320 r->index.allocated_size = r->index.index_length; in add_attr_index_root()
2507 ia_val->index.allocated_size = cpu_to_le32(index_block_size - in upgrade_to_large_index()
2533 r->index.allocated_size = r->index.index_length; in upgrade_to_large_index()
2537 le32_to_cpu(r->index.allocated_size))) { in upgrade_to_large_index()
2599 le32_to_cpu(idx->index.allocated_size) || in make_room_for_index_entry_in_index_block()
2602 le32_to_cpu(idx->index.allocated_size)) in make_room_for_index_entry_in_index_block()
[all …]
Dntfsinfo.c500 (long long)vol->mft_na->allocated_size in ntfs_dump_volume()
502 100.0*(vol->mft_na->allocated_size in ntfs_dump_volume()
537 (long long)vol->lcnbmp_na->allocated_size); in ntfs_dump_volume()
862 sle64_to_cpu(file_name_attr->allocated_size), in ntfs_dump_filename()
864 sle64_to_cpu(file_name_attr->allocated_size)); in ntfs_dump_filename()
1414 (long long)sle64_to_cpu(a->allocated_size), in ntfs_dump_attribute_header()
1416 sle64_to_cpu(a->allocated_size)); in ntfs_dump_attribute_header()
1820 (unsigned)le32_to_cpu(idx->allocated_size), in ntfs_dump_index_header()
1821 (unsigned)le32_to_cpu(idx->allocated_size)); in ntfs_dump_index_header()
Dntfsfix.c410 na->data_size = na->allocated_size; in clear_badclus()
411 na->initialized_size = na->allocated_size; in clear_badclus()
626 > vol->lcnbmp_na->allocated_size)) { in rewrite_upcase()
630 (long long)vol->lcnbmp_na->allocated_size, in rewrite_upcase()
1078 a->allocated_size = const_cpu_to_sle64(0); in fix_selfloc_conditions()
/third_party/ntfs-3g/libntfs-3g/
Dmft.c565 pass_end = vol->mft_na->allocated_size >> vol->mft_record_size_bits; in ntfs_mft_bitmap_find_free_rec()
735 rl = ntfs_attr_find_vcn(mftbmp_na, (mftbmp_na->allocated_size - 1) >> in ntfs_mft_bitmap_extend_allocation_i()
847 mftbmp_na->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_i()
848 a->allocated_size = cpu_to_sle64(mftbmp_na->allocated_size); in ntfs_mft_bitmap_extend_allocation_i()
862 mftbmp_na->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_i()
1013 (long long)mftbmp_na->allocated_size, in ntfs_mft_bitmap_extend_initialized()
1061 (mft_na->allocated_size - 1) >> vol->cluster_size_bits); in ntfs_mft_data_extend_allocation()
1199 mft_na->allocated_size += nr << vol->cluster_size_bits; in ntfs_mft_data_extend_allocation()
1200 a->allocated_size = cpu_to_sle64(mft_na->allocated_size); in ntfs_mft_data_extend_allocation()
1217 mft_na->allocated_size += nr << vol->cluster_size_bits; in ntfs_mft_data_extend_allocation()
[all …]
Dattrib.c364 const s64 allocated_size, const s64 data_size, in ntfs_attr_init() argument
378 na->allocated_size = allocated_size; in ntfs_attr_init()
556 sle64_to_cpu(a->allocated_size), in ntfs_attr_open()
675 last_vcn = na->allocated_size >> na->ni->vol->cluster_size_bits; in ntfs_attr_map_partial_runlist()
806 last_vcn = sle64_to_cpu(a->allocated_size) >> in ntfs_attr_map_whole_runlist()
2088 na->ni->allocated_size = na->compressed_size;
2090 na->ni->allocated_size = na->allocated_size;
2575 na->ni->allocated_size = na->compressed_size;
3535 || (le32_to_cpu(ir->index.allocated_size)
3538 < (le32_to_cpu(ir->index.allocated_size)
[all …]
Dindex.c463 u32 ib_size = (unsigned)le32_to_cpu(ib->index.allocated_size) in ntfs_index_block_inconsistent()
501 if (le32_to_cpu(ib->index.allocated_size) in ntfs_index_block_inconsistent()
928 ib->index.allocated_size = cpu_to_le32(ib_size - in ntfs_ib_alloc()
1271 ir->index.allocated_size = ir->index.index_length; in ntfs_ir_reparent()
1273 + le32_to_cpu(ir->index.allocated_size); in ntfs_ir_reparent()
1342 icx->ir->index.allocated_size = cpu_to_le32(data_size); in ntfs_ir_truncate()
1473 u32 idx_size, allocated_size; in ntfs_ib_insert() local
1489 allocated_size = le32_to_cpu(ib->index.allocated_size); in ntfs_ib_insert()
1491 if (idx_size + le16_to_cpu(ie->length) + sizeof(VCN) > allocated_size) { in ntfs_ib_insert()
1556 int allocated_size, new_size; in ntfs_ie_add() local
[all …]
Dinode.c262 ni->data_size = ni->allocated_size = 0; in ntfs_inode_real_open()
268 ni->allocated_size = sle64_to_cpu( in ntfs_inode_real_open()
271 ni->allocated_size = sle64_to_cpu( in ntfs_inode_real_open()
272 ctx->attr->allocated_size); in ntfs_inode_real_open()
275 ni->allocated_size = (ni->data_size + 7) & ~7; in ntfs_inode_real_open()
880 fnx->data_size = fnx->allocated_size in ntfs_inode_sync_file_name()
883 fnx->allocated_size = cpu_to_sle64(ni->allocated_size); in ntfs_inode_sync_file_name()
890 fn->allocated_size = fnx->allocated_size; in ntfs_inode_sync_file_name()
Defs.c413 ni->allocated_size = na->allocated_size; in ntfs_efs_fixup_attribute()
Dvolume.c339 last_vcn = vol->mft_na->allocated_size >> vol->cluster_size_bits; in ntfs_mft_load()
407 vol->mft_ni->allocated_size = vol->mft_na->allocated_size; in ntfs_mft_load()
1068 if (vol->lcnbmp_na->data_size > vol->lcnbmp_na->allocated_size) { in ntfs_device_mount()
1071 (long long)vol->lcnbmp_na->allocated_size); in ntfs_device_mount()
1893 vol->free_mft_records += (na->allocated_size - na->data_size) << 3; in ntfs_volume_get_free_space()
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c208 size_t allocated_size; in VP8LBitWriterResize() local
218 allocated_size = (3 * max_bytes) >> 1; in VP8LBitWriterResize()
219 if (allocated_size < size_required) allocated_size = size_required; in VP8LBitWriterResize()
221 allocated_size = (((allocated_size >> 10) + 1) << 10); in VP8LBitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c208 size_t allocated_size; in VP8LBitWriterResize() local
218 allocated_size = (3 * max_bytes) >> 1; in VP8LBitWriterResize()
219 if (allocated_size < size_required) allocated_size = size_required; in VP8LBitWriterResize()
221 allocated_size = (((allocated_size >> 10) + 1) << 10); in VP8LBitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
/third_party/pcre2/pcre2/src/sljit/
DsljitExecAllocator.c233 static sljit_uw allocated_size; variable
291 allocated_size += size; in sljit_malloc_exec()
312 allocated_size += size; in sljit_malloc_exec()
323 allocated_size += chunk_size; in sljit_malloc_exec()
340 allocated_size -= header->size; in sljit_free_exec()
369 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
DsljitProtExecAllocator.c287 static sljit_uw allocated_size; variable
347 allocated_size += size; in sljit_malloc_exec()
375 allocated_size += size; in sljit_malloc_exec()
387 allocated_size += chunk_size; in sljit_malloc_exec()
406 allocated_size -= header->size; in sljit_free_exec()
434 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
/third_party/curl/lib/
Dsendf.c141 return psnd->buffer && psnd->allocated_size && in Curl_recv_has_postponed_data()
150 size_t bytestorecv = psnd->allocated_size - psnd->recv_size; in pre_receive_plain()
165 psnd->allocated_size = 2 * data->set.buffer_size; in pre_receive_plain()
166 psnd->buffer = malloc(psnd->allocated_size); in pre_receive_plain()
174 bytestorecv = psnd->allocated_size; in pre_receive_plain()
185 psnd->allocated_size = 0; in pre_receive_plain()
199 DEBUGASSERT(psnd->allocated_size > 0); in get_pre_recved()
200 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in get_pre_recved()
217 psnd->allocated_size = 0; in get_pre_recved()
/third_party/quickjs/
Dcutils.c108 if (new_size > s->allocated_size) { in dbuf_realloc()
111 size = s->allocated_size * 3 / 2; in dbuf_realloc()
120 s->allocated_size = new_size; in dbuf_realloc()
139 if (unlikely((s->size + len) > s->allocated_size)) { in dbuf_put()
150 if (unlikely((s->size + len) > s->allocated_size)) { in dbuf_put_self()
186 vsnprintf((char *)(s->buf + s->size), s->allocated_size - s->size, in dbuf_printf()
/third_party/grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
155 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
157 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
158 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
162 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
178 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
180 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/third_party/ffmpeg/libavcodec/
Dvt_internal.h30 int allocated_size; member
/third_party/glib/glib/
Dgstdioprivate.h36 guint64 allocated_size; member
/third_party/pulseaudio/src/modules/dbus/
Diface-memstats.c104 current_memblocks_size = pa_atomic_load(&stat->allocated_size); in handle_get_current_memblocks_size()
173 current_memblocks_size = pa_atomic_load(&stat->allocated_size); in handle_get_all()
/third_party/ffmpeg/libavformat/
Dsubtitles.h105 int allocated_size; ///< allocated size for subs member
/third_party/ntfs-3g/include/ntfs-3g/
Dattrib.h193 s64 allocated_size; member
289 const s64 allocated_size, const s64 data_size,

123