Home
last modified time | relevance | path

Searched refs:new_size (Results 101 - 125 of 529) sorted by relevance

12345678910>>...22

/third_party/skia/third_party/externals/freetype/builds/amiga/src/base/
H A Dftsystem.c165 /* new_size :: The newly requested size in bytes. */
175 long new_size, in ft_realloc()
181 new_block = AllocVecPooled ( memory->user, new_size ); in ft_realloc()
183 new_block = Alloc_VecPooled ( memory->user, new_size ); in ft_realloc()
188 ( new_size > cur_size ) ? cur_size : new_size ); in ft_realloc()
173 ft_realloc( FT_Memory memory, long cur_size, long new_size, void* block ) ft_realloc() argument
/third_party/python/Python/
H A Dhashtable.c282 size_t new_size = round_size((size_t)(ht->nentries * HASHTABLE_REHASH_FACTOR)); in hashtable_rehash() local
283 if (new_size == ht->nbuckets) { in hashtable_rehash()
287 size_t buckets_size = new_size * sizeof(ht->buckets[0]); in hashtable_rehash()
300 size_t entry_index = entry->key_hash & (new_size - 1); in hashtable_rehash()
309 ht->nbuckets = new_size; in hashtable_rehash()
/kernel/linux/linux-5.10/fs/ntfs/
H A Dattrib.c1431 * @new_size: new size in bytes to which to resize the attribute record @a
1434 * the mft record @m to @new_size bytes.
1445 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument
1447 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize()
1449 if (new_size & 7) in ntfs_attr_record_resize()
1450 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize()
1452 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize()
1454 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize()
1489 ntfs_resident_attr_value_resize(MFT_RECORD *m, ATTR_RECORD *a, const u32 new_size) ntfs_resident_attr_value_resize() argument
1547 s64 new_size; ntfs_attr_make_non_resident() local
[all...]
H A Dattrib.h88 extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size);
90 const u32 new_size);
/kernel/linux/linux-6.6/fs/ntfs/
H A Dattrib.c1431 * @new_size: new size in bytes to which to resize the attribute record @a
1434 * the mft record @m to @new_size bytes.
1445 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument
1447 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize()
1449 if (new_size & 7) in ntfs_attr_record_resize()
1450 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize()
1452 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize()
1454 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize()
1489 ntfs_resident_attr_value_resize(MFT_RECORD *m, ATTR_RECORD *a, const u32 new_size) ntfs_resident_attr_value_resize() argument
1547 s64 new_size; ntfs_attr_make_non_resident() local
[all...]
H A Dattrib.h88 extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size);
90 const u32 new_size);
/kernel/linux/linux-6.6/kernel/
H A Dkexec_core.c1117 unsigned long new_size) in __crash_shrink_memory()
1125 ram_res->start = old_res->start + new_size; in __crash_shrink_memory()
1130 if (!new_size) { in __crash_shrink_memory()
1144 int crash_shrink_memory(unsigned long new_size) in crash_shrink_memory() argument
1159 new_size = roundup(new_size, KEXEC_CRASH_MEM_ALIGN); in crash_shrink_memory()
1160 if (new_size >= old_size) { in crash_shrink_memory()
1161 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
1166 * (low_size > new_size) implies that low_size is greater than zero. in crash_shrink_memory()
1169 * If low_size is greater than 0, (low_size > new_size) indicate in crash_shrink_memory()
1116 __crash_shrink_memory(struct resource *old_res, unsigned long new_size) __crash_shrink_memory() argument
[all...]
/third_party/python/Modules/
H A Dmmapmodule.c515 Py_ssize_t new_size; in mmap_resize_method() local
517 if (!PyArg_ParseTuple(args, "n:resize", &new_size) || in mmap_resize_method()
521 if (new_size < 0 || PY_SSIZE_T_MAX - new_size < self->offset) { in mmap_resize_method()
532 max_size.QuadPart = self->offset + new_size; in mmap_resize_method()
560 new_size = self->size; in mmap_resize_method()
589 new_size); in mmap_resize_method()
594 self->size < new_size ? self->size : new_size); in mmap_resize_method()
599 self->size = new_size; in mmap_resize_method()
[all...]
/kernel/linux/linux-6.6/rust/kernel/
H A Dallocator.rs55 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
57 // - `new_size`, when rounded up to the nearest multiple of `layout.align()`, will not in realloc()
60 let layout = unsafe { Layout::from_size_align_unchecked(new_size, layout.align()) }; in realloc()
65 // - the size of `layout` is not zero because `new_size` is not zero by the function safety in realloc()
/third_party/mesa3d/src/util/
H A Dralloc.c198 rerzalloc_size(const void *ctx, void *ptr, size_t old_size, size_t new_size) in rerzalloc_size() argument
201 return rzalloc_size(ctx, new_size); in rerzalloc_size()
204 ptr = resize(ptr, new_size); in rerzalloc_size()
206 if (new_size > old_size) in rerzalloc_size()
207 memset((char *)ptr + old_size, 0, new_size - old_size); in rerzalloc_size()
741 linear_realloc(void *parent, void *old, unsigned new_size) in linear_realloc() argument
746 new_ptr = linear_alloc_child(parent, new_size); in linear_realloc()
754 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc()
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
H A Dvlun.c490 * @new_size: Number of translation entries associated with RHTE.
505 u64 *new_size) in grow_lxt()
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
601 *new_size = my_new_size; in grow_lxt()
614 * @new_size: Number of translation entries associated with RHTE.
623 u64 *new_size) in shrink_lxt()
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
709 *new_size = my_new_size; in shrink_lxt()
741 u64 new_size; in _cxlflash_vlun_resize() local
755 new_size in _cxlflash_vlun_resize()
500 grow_lxt(struct afu *afu, struct scsi_device *sdev, ctx_hndl_t ctxid, res_hndl_t rhndl, struct sisl_rht_entry *rhte, u64 *new_size) grow_lxt() argument
618 shrink_lxt(struct afu *afu, struct scsi_device *sdev, res_hndl_t rhndl, struct sisl_rht_entry *rhte, struct ctx_info *ctxi, u64 *new_size) shrink_lxt() argument
[all...]
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/
H A Dvlun.c490 * @new_size: Number of translation entries associated with RHTE.
505 u64 *new_size) in grow_lxt()
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
601 *new_size = my_new_size; in grow_lxt()
614 * @new_size: Number of translation entries associated with RHTE.
623 u64 *new_size) in shrink_lxt()
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
709 *new_size = my_new_size; in shrink_lxt()
741 u64 new_size; in _cxlflash_vlun_resize() local
755 new_size in _cxlflash_vlun_resize()
500 grow_lxt(struct afu *afu, struct scsi_device *sdev, ctx_hndl_t ctxid, res_hndl_t rhndl, struct sisl_rht_entry *rhte, u64 *new_size) grow_lxt() argument
618 shrink_lxt(struct afu *afu, struct scsi_device *sdev, res_hndl_t rhndl, struct sisl_rht_entry *rhte, struct ctx_info *ctxi, u64 *new_size) shrink_lxt() argument
[all...]
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
H A Dmemorypool.c202 * @param new_size the new size of the block
204 * NULL if the pool cannot support @a new_size
211 size_t new_size) in MHD_pool_reallocate()
216 asize = ROUND_TO_ALIGN (new_size); in MHD_pool_reallocate()
217 if ( (0 == asize) && (0 != new_size) ) in MHD_pool_reallocate()
218 return NULL; /* new_size too close to SIZE_MAX */ in MHD_pool_reallocate()
208 MHD_pool_reallocate(struct MemoryPool *pool, void *old, size_t old_size, size_t new_size) MHD_pool_reallocate() argument
/third_party/protobuf/src/google/protobuf/
H A Drepeated_field.h221 void Reserve(int new_size);
224 void Truncate(int new_size);
235 // Like Truncate() if new_size <= size(), otherwise this is
236 // O(new_size - size()).
237 void Resize(int new_size, const Element& value);
651 void Reserve(int new_size);
968 void Reserve(int new_size);
1292 inline void RepeatedField<Element>::Resize(int new_size, const Element& value) { in Resize() argument
1293 GOOGLE_DCHECK_GE(new_size, 0); in Resize()
1294 if (new_size > current_size in Resize()
1543 CalculateReserveSize(int total_size, int new_size) CalculateReserveSize() argument
1561 Reserve(int new_size) Reserve() argument
1610 Truncate(int new_size) Truncate() argument
2398 Reserve(int new_size) Reserve() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/
H A Dlima_gem.c26 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local
34 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc()
54 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
67 new_size, GFP_KERNEL); in lima_heap_alloc()
98 bo->heap_size = new_size; in lima_heap_alloc()
/kernel/linux/linux-6.6/drivers/gpu/drm/lima/
H A Dlima_gem.c27 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local
35 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc()
55 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
68 new_size, GFP_KERNEL); in lima_heap_alloc()
95 bo->heap_size = new_size; in lima_heap_alloc()
/third_party/ffmpeg/libavutil/
H A Dfifo.c358 int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size) in av_fifo_realloc2() argument
362 if (new_size > OLD_FIFO_SIZE_MAX) in av_fifo_realloc2()
365 if (old_size < new_size) { in av_fifo_realloc2()
370 tmp = av_realloc(f->buffer, new_size); in av_fifo_realloc2()
378 const size_t copy = FFMIN(new_size - old_size, offset_w); in av_fifo_realloc2()
388 f->end = f->buffer + new_size; in av_fifo_realloc2()
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_cs.c371 uint32_t new_size = MAX2(cs->next_bo_size, reserved_size); in tu_cs_reserve_space() local
372 VkResult result = tu_cs_add_bo(cs, new_size); in tu_cs_reserve_space()
394 new_size = MIN2(new_size << 1, 0x0fffff); in tu_cs_reserve_space()
395 if (cs->next_bo_size < new_size) in tu_cs_reserve_space()
396 cs->next_bo_size = new_size; in tu_cs_reserve_space()
/kernel/linux/linux-5.10/arch/x86/entry/vdso/
H A Dvma.c92 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vdso_mremap() local
95 if (image->size != new_size) in vdso_mremap()
108 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vvar_mremap() local
110 if (new_size != -image->sym_vvar_start) in vvar_mremap()
/kernel/linux/linux-6.6/include/linux/
H A Dkasan.h213 size_t new_size, gfp_t flags);
215 size_t new_size, gfp_t flags) in kasan_krealloc()
218 return __kasan_krealloc(object, new_size, flags); in kasan_krealloc()
274 static inline void *kasan_krealloc(const void *object, size_t new_size, in kasan_krealloc() argument
214 kasan_krealloc(const void *object, size_t new_size, gfp_t flags) kasan_krealloc() argument
/third_party/ffmpeg/libavcodec/
H A Dlibmp3lame.c64 int new_size = s->buffer_index + 2 * BUFFER_SIZE, err; in realloc_buffer() local
67 new_size); in realloc_buffer()
68 if ((err = av_reallocp(&s->buffer, new_size)) < 0) { in realloc_buffer()
72 s->buffer_size = new_size; in realloc_buffer()
/third_party/node/deps/v8/src/codegen/
H A Dassembler.cc111 std::unique_ptr<AssemblerBuffer> Grow(int new_size) override {
112 DCHECK_LT(size(), new_size); variable
113 return std::make_unique<DefaultAssemblerBuffer>(new_size);
129 std::unique_ptr<AssemblerBuffer> Grow(int new_size) override {
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-map.hh144 unsigned int new_size = 1u << power; in resize() local
145 item_t *new_items = (item_t *) hb_malloc ((size_t) new_size * sizeof (item_t)); in resize()
151 for (auto &_ : hb_iter (new_items, new_size)) in resize()
159 mask = new_size - 1; in resize()
/kernel/linux/linux-5.10/fs/ubifs/
H A Dfile.c1114 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local
1115 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; in do_truncation()
1118 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation()
1126 if (new_size & (UBIFS_BLOCK_SIZE - 1)) in do_truncation()
1138 if (new_size || err != -ENOSPC) in do_truncation()
1143 truncate_setsize(inode, new_size); in do_truncation()
1146 pgoff_t index = new_size >> PAGE_SHIFT; in do_truncation()
1164 offset = new_size & in do_truncation()
1192 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
1219 loff_t new_size in do_setattr() local
[all...]
/kernel/linux/linux-6.6/fs/ubifs/
H A Dfile.c1115 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local
1116 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; in do_truncation()
1119 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation()
1127 if (new_size & (UBIFS_BLOCK_SIZE - 1)) in do_truncation()
1139 if (new_size || err != -ENOSPC) in do_truncation()
1144 truncate_setsize(inode, new_size); in do_truncation()
1147 pgoff_t index = new_size >> PAGE_SHIFT; in do_truncation()
1165 offset = new_size & in do_truncation()
1193 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
1220 loff_t new_size in do_setattr() local
[all...]

Completed in 28 milliseconds

12345678910>>...22