Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/lib/
H A Dstackdepot.c76 static bool init_stack_slab(void **prealloc) in init_stack_slab() argument
78 if (!*prealloc) in init_stack_slab()
87 stack_slabs[depot_index] = *prealloc; in init_stack_slab()
88 *prealloc = NULL; in init_stack_slab()
92 stack_slabs[depot_index + 1] = *prealloc; in init_stack_slab()
93 *prealloc = NULL; in init_stack_slab()
106 u32 hash, void **prealloc, gfp_t alloc_flags) in depot_alloc_stack() argument
128 init_stack_slab(prealloc); in depot_alloc_stack()
266 void *prealloc = NULL; in stack_depot_save() local
305 prealloc = page_address(page); in stack_depot_save()
[all …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A 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 …]
H A 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 …]
H A 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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/ps3/
H A 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)
/OK3568_Linux_fs/kernel/net/sched/
H A 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()
/OK3568_Linux_fs/buildroot/boot/grub2/
H A D0146-kern-misc-Add-function-to-check-printf-format-agains.patch116 if (args->count <= ARRAY_SIZE (args->prealloc))
117 args->ptr = args->prealloc;
127 args->ptr = args->prealloc;
128 args->count = ARRAY_SIZE (args->prealloc);
/OK3568_Linux_fs/kernel/arch/arc/lib/
H A Dmemset-archs.S21 prealloc [\reg, \off]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/
H A 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/vsp1/
H A 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()
H A Dvsp1_dl.h56 unsigned int prealloc);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A 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()
/OK3568_Linux_fs/kernel/fs/sysfs/
H A Dfile.c213 .prealloc = true,
218 .prealloc = true,
224 .prealloc = true,
/OK3568_Linux_fs/u-boot/disk/
H A Dpart_amiga.h126 u32 prealloc; member
/OK3568_Linux_fs/kernel/drivers/md/
H A 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 …]
/OK3568_Linux_fs/kernel/kernel/bpf/
H A 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()
/OK3568_Linux_fs/kernel/sound/hda/
H A DKconfig37 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
/OK3568_Linux_fs/kernel/fs/xfs/
H A 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()
/OK3568_Linux_fs/kernel/mm/
H A Dmemory.c839 struct page **prealloc, pte_t pte, struct page *page) in copy_present_page() argument
876 new_page = *prealloc; in copy_present_page()
884 *prealloc = NULL; in copy_present_page()
908 struct page **prealloc) in copy_present_pte() argument
920 addr, rss, prealloc, pte, page); in copy_present_pte()
985 struct page *prealloc = NULL; in copy_pte_range() local
1030 addr, rss, &prealloc); in copy_pte_range()
1037 if (unlikely(prealloc)) { in copy_pte_range()
1044 put_page(prealloc); in copy_pte_range()
1045 prealloc = NULL; in copy_pte_range()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Du_ether.c347 static int prealloc(struct list_head *list, struct usb_ep *ep, unsigned n) in prealloc() function
391 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests()
394 status = prealloc(&dev->rx_reqs, link->out_ep, n); in alloc_requests()
/OK3568_Linux_fs/kernel/fs/xfs/libxfs/
H A Dxfs_bmap.h233 xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc,
/OK3568_Linux_fs/kernel/fs/kernfs/
H A Dfile.c667 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
669 if (ops->prealloc) { in kernfs_fop_open()
/OK3568_Linux_fs/kernel/include/linux/
H A Dkernfs.h271 bool prealloc; member
/OK3568_Linux_fs/kernel/Documentation/sound/designs/
H A Dprocfile.rst136 ``card*/pcm*/sub*/prealloc``
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Ddata.c1484 blkcnt_t prealloc; in f2fs_map_blocks() local
1554 prealloc = 0; in f2fs_map_blocks()
1585 prealloc++; in f2fs_map_blocks()
1652 err = f2fs_reserve_new_blocks(&dn, prealloc); in f2fs_map_blocks()
1657 if (prealloc && dn.ofs_in_node != last_ofs_in_node + 1) { in f2fs_map_blocks()

12