Home
last modified time | relevance | path

Searched refs:prealloc (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.10/lib/
Dstackdepot.c75 static bool init_stack_slab(void **prealloc) in init_stack_slab() argument
77 if (!*prealloc) in init_stack_slab()
86 stack_slabs[depot_index] = *prealloc; in init_stack_slab()
87 *prealloc = NULL; in init_stack_slab()
91 stack_slabs[depot_index + 1] = *prealloc; in init_stack_slab()
92 *prealloc = NULL; in init_stack_slab()
105 u32 hash, void **prealloc, gfp_t alloc_flags) in depot_alloc_stack() argument
128 init_stack_slab(prealloc); in depot_alloc_stack()
242 void *prealloc = NULL; in stack_depot_save() local
281 prealloc = page_address(page); in stack_depot_save()
[all …]
/Linux-v5.10/fs/btrfs/
Dinode-map.c409 int prealloc; in btrfs_save_ino_cache() local
490 prealloc = sizeof(struct btrfs_free_space) * ctl->free_extents; in btrfs_save_ino_cache()
491 prealloc = ALIGN(prealloc, PAGE_SIZE); in btrfs_save_ino_cache()
492 prealloc += ctl->total_bitmaps * PAGE_SIZE; in btrfs_save_ino_cache()
496 prealloc += 8 * PAGE_SIZE; in btrfs_save_ino_cache()
499 prealloc); in btrfs_save_ino_cache()
503 ret = btrfs_prealloc_file_range_trans(inode, trans, 0, 0, prealloc, in btrfs_save_ino_cache()
504 prealloc, prealloc, &alloc_hint); in btrfs_save_ino_cache()
506 btrfs_delalloc_release_extents(BTRFS_I(inode), prealloc); in btrfs_save_ino_cache()
507 btrfs_delalloc_release_metadata(BTRFS_I(inode), prealloc, true); in btrfs_save_ino_cache()
[all …]
Dextent_io.c592 struct extent_state *prealloc, u64 split) in split_state() argument
599 prealloc->start = orig->start; in split_state()
600 prealloc->end = split - 1; in split_state()
601 prealloc->state = orig->state; in split_state()
604 node = tree_insert(&tree->state, &orig->rb_node, prealloc->end, in split_state()
605 &prealloc->rb_node, NULL, NULL); in split_state()
607 free_extent_state(prealloc); in split_state()
669 alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument
671 if (!prealloc) in alloc_extent_state_atomic()
672 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic()
[all …]
Dextent_map.c301 bool prealloc = false; in unpin_extent_cache() local
317 prealloc = true; in unpin_extent_cache()
323 if (prealloc) { in unpin_extent_cache()
/Linux-v5.10/arch/powerpc/platforms/ps3/
Dsetup.c112 static void __init prealloc(struct ps3_prealloc *p) in prealloc() function
134 #define prealloc_ps3fb_videomemory() prealloc(&ps3fb_videomemory)
157 #define prealloc_ps3flash_bounce_buffer() prealloc(&ps3flash_bounce_buffer)
/Linux-v5.10/net/sched/
Dsch_gred.c477 struct gred_sched_data **prealloc, in gred_change_vq() argument
489 table->tab[dp] = q = *prealloc; in gred_change_vq()
490 *prealloc = NULL; in gred_change_vq()
644 struct gred_sched_data *prealloc; in gred_change() local
699 prealloc = kzalloc(sizeof(*prealloc), GFP_KERNEL); in gred_change()
702 err = gred_change_vq(sch, ctl->DP, ctl, prio, stab, max_P, &prealloc, in gred_change()
717 kfree(prealloc); in gred_change()
724 kfree(prealloc); in gred_change()
/Linux-v5.10/arch/arc/lib/
Dmemset-archs.S21 prealloc [\reg, \off]
/Linux-v5.10/drivers/media/platform/vsp1/
Dvsp1_dl.h56 unsigned int prealloc);
Dvsp1_dl.c1091 unsigned int prealloc) in vsp1_dlm_create() argument
1121 dlm->pool = vsp1_dl_body_pool_create(vsp1, prealloc + 1, in vsp1_dlm_create()
1126 for (i = 0; i < prealloc; ++i) { in vsp1_dlm_create()
1145 VSP1_EXTCMD_AUTOFLD, prealloc); in vsp1_dlm_create()
/Linux-v5.10/drivers/gpu/drm/i915/display/
Dintel_fbdev.c179 bool prealloc = false; in intelfb_create() local
203 prealloc = true; in intelfb_create()
259 if (vma->obj->stolen && !prealloc) in intelfb_create()
/Linux-v5.10/drivers/gpu/drm/i915/
Di915_active.c299 struct active_node *node, *prealloc; in active_instance() local
307 prealloc = kmem_cache_alloc(global.slab_cache, GFP_KERNEL); in active_instance()
308 if (!prealloc) in active_instance()
321 kmem_cache_free(global.slab_cache, prealloc); in active_instance()
331 node = prealloc; in active_instance()
/Linux-v5.10/sound/hda/
DKconfig37 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
/Linux-v5.10/fs/sysfs/
Dfile.c213 .prealloc = true,
218 .prealloc = true,
224 .prealloc = true,
/Linux-v5.10/kernel/bpf/
Dhashtab.c354 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check() local
380 if (lru && !prealloc) in htab_map_alloc_check()
423 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc() local
490 if (prealloc) { in htab_map_alloc()
862 bool prealloc = htab_is_prealloc(htab); in alloc_htab_elem() local
866 if (prealloc) { in alloc_htab_elem()
907 if (prealloc) { in alloc_htab_elem()
922 if (!prealloc) in alloc_htab_elem()
/Linux-v5.10/drivers/md/
Ddm-cache-target.c1461 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local
1463 prealloc = alloc_prison_cell(cache); in mg_lock_writes()
1473 prealloc, &mg->cell); in mg_lock_writes()
1475 free_prison_cell(cache, prealloc); in mg_lock_writes()
1480 if (mg->cell != prealloc) in mg_lock_writes()
1481 free_prison_cell(cache, prealloc); in mg_lock_writes()
1586 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local
1588 prealloc = alloc_prison_cell(cache); in invalidate_lock()
1592 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock()
1594 free_prison_cell(cache, prealloc); in invalidate_lock()
[all …]
/Linux-v5.10/fs/xfs/
Dxfs_dquot.c75 int prealloc = 0; in xfs_qm_adjust_dqlimits() local
82 prealloc = 1; in xfs_qm_adjust_dqlimits()
86 prealloc = 1; in xfs_qm_adjust_dqlimits()
97 if (prealloc) in xfs_qm_adjust_dqlimits()
/Linux-v5.10/mm/
Dmemory.c798 struct page **prealloc, pte_t pte, struct page *page) in copy_present_page() argument
824 new_page = *prealloc; in copy_present_page()
832 *prealloc = NULL; in copy_present_page()
853 struct page **prealloc) in copy_present_pte() argument
865 addr, rss, prealloc, pte, page); in copy_present_pte()
935 struct page *prealloc = NULL; in copy_pte_range() local
979 addr, rss, &prealloc); in copy_pte_range()
986 if (unlikely(prealloc)) { in copy_pte_range()
993 put_page(prealloc); in copy_pte_range()
994 prealloc = NULL; in copy_pte_range()
[all …]
/Linux-v5.10/fs/xfs/libxfs/
Dxfs_bmap.h233 xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc,
Dxfs_bmap.c3964 xfs_filblks_t prealloc, in xfs_bmapi_reserve_delalloc() argument
3980 alen = XFS_FILBLKS_MIN(len + prealloc, MAXEXTLEN); in xfs_bmapi_reserve_delalloc()
3983 if (prealloc && alen >= len) in xfs_bmapi_reserve_delalloc()
3984 prealloc = alen - len; in xfs_bmapi_reserve_delalloc()
4040 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc()
4042 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc()
/Linux-v5.10/drivers/usb/gadget/function/
Du_ether.c345 static int prealloc(struct list_head *list, struct usb_ep *ep, unsigned n) in prealloc() function
389 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests()
392 status = prealloc(&dev->rx_reqs, link->out_ep, n); in alloc_requests()
/Linux-v5.10/fs/kernfs/
Dfile.c686 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
688 if (ops->prealloc) { in kernfs_fop_open()
/Linux-v5.10/include/linux/
Dkernfs.h259 bool prealloc; member
/Linux-v5.10/fs/f2fs/
Dcompress.c967 bool prealloc; in prepare_compress_overwrite() local
975 prealloc = (ret < cc->cluster_size); in prepare_compress_overwrite()
1032 if (prealloc) { in prepare_compress_overwrite()
Ddata.c1509 blkcnt_t prealloc; in f2fs_map_blocks() local
1565 prealloc = 0; in f2fs_map_blocks()
1596 prealloc++; in f2fs_map_blocks()
1663 err = f2fs_reserve_new_blocks(&dn, prealloc); in f2fs_map_blocks()
1668 if (prealloc && dn.ofs_in_node != last_ofs_in_node + 1) { in f2fs_map_blocks()
/Linux-v5.10/Documentation/sound/designs/
Dprocfile.rst136 ``card*/pcm*/sub*/prealloc``

12