Home
last modified time | relevance | path

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

12

/linux/lib/
H A Dstackdepot.c293 static bool depot_init_pool(void **prealloc) in depot_init_pool() argument
306 if (!new_pool && *prealloc) { in depot_init_pool()
308 WRITE_ONCE(new_pool, *prealloc); in depot_init_pool()
309 *prealloc = NULL; in depot_init_pool()
341 static void depot_keep_new_pool(void **prealloc) in depot_keep_new_pool() argument
353 WRITE_ONCE(new_pool, *prealloc); in depot_keep_new_pool()
354 *prealloc = NULL; in depot_keep_new_pool()
361 static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size) in depot_pop_free_pool() argument
371 if (!depot_init_pool(prealloc)) in depot_pop_free_pool()
434 …ck(unsigned long *entries, unsigned int nr_entries, u32 hash, depot_flags_t flags, void **prealloc) in depot_alloc_stack() argument
[all …]
/linux/fs/btrfs/
H A Dulist.c53 ulist->prealloc = NULL; in ulist_init()
72 kfree(ulist->prealloc); in ulist_release()
73 ulist->prealloc = NULL; in ulist_release()
113 if (!ulist->prealloc) in ulist_prealloc()
114 ulist->prealloc = kzalloc_obj(*ulist->prealloc, gfp_mask); in ulist_prealloc()
218 if (ulist->prealloc) { in ulist_add_merge()
219 node = ulist->prealloc; in ulist_add_merge()
220 ulist->prealloc = NULL; in ulist_add_merge()
H A Dqgroup.c202 struct btrfs_qgroup *prealloc, in add_qgroup_rb() argument
208 ASSERT(prealloc); in add_qgroup_rb()
210 prealloc->qgroupid = qgroupid; in add_qgroup_rb()
211 node = rb_find_add(&prealloc->node, &fs_info->qgroup_tree, btrfs_qgroup_qgroupid_cmp); in add_qgroup_rb()
213 kfree(prealloc); in add_qgroup_rb()
217 INIT_LIST_HEAD(&prealloc->groups); in add_qgroup_rb()
218 INIT_LIST_HEAD(&prealloc->members); in add_qgroup_rb()
219 INIT_LIST_HEAD(&prealloc->dirty); in add_qgroup_rb()
220 INIT_LIST_HEAD(&prealloc->iterator); in add_qgroup_rb()
221 INIT_LIST_HEAD(&prealloc->nested_iterator); in add_qgroup_rb()
[all …]
H A Dulist.h44 struct ulist_node *prealloc; member
H A Dextent_io.h212 changeset->range_changed.prealloc = EXTENT_CHANGESET_BYTES_ONLY; in extent_changeset_init_bytes_only()
217 return changeset->range_changed.prealloc != EXTENT_CHANGESET_BYTES_ONLY; in extent_changeset_tracks_ranges()
H A Dextent_io.c865 struct btrfs_folio_state *prealloc) in attach_extent_buffer_folio() argument
889 btrfs_free_folio_state(prealloc); in attach_extent_buffer_folio()
893 if (prealloc) in attach_extent_buffer_folio()
895 folio_attach_private(folio, prealloc); in attach_extent_buffer_folio()
3358 struct btrfs_folio_state *prealloc, in attach_eb_folio_to_filemap() argument
3419 ret = attach_extent_buffer_folio(eb, eb->folios[i], prealloc); in attach_eb_folio_to_filemap()
3441 struct btrfs_folio_state *prealloc = NULL; in alloc_extent_buffer() local
3486 prealloc = btrfs_alloc_folio_state(fs_info, PAGE_SIZE, BTRFS_SUBPAGE_METADATA); in alloc_extent_buffer()
3487 if (IS_ERR(prealloc)) { in alloc_extent_buffer()
3488 ret = PTR_ERR(prealloc); in alloc_extent_buffer()
[all …]
H A Dioctl.c3592 struct btrfs_qgroup_list *prealloc = NULL; in btrfs_ioctl_qgroup_assign() local
3614 prealloc = kzalloc_obj(*prealloc); in btrfs_ioctl_qgroup_assign()
3615 if (!prealloc) { in btrfs_ioctl_qgroup_assign()
3633 ret = btrfs_add_qgroup_relation(trans, sa->src, sa->dst, prealloc); in btrfs_ioctl_qgroup_assign()
3634 prealloc = NULL; in btrfs_ioctl_qgroup_assign()
3652 kfree(prealloc); in btrfs_ioctl_qgroup_assign()
/linux/net/sched/
H A Dsch_gred.c484 struct gred_sched_data **prealloc, in gred_change_vq() argument
496 table->tab[dp] = q = *prealloc; in gred_change_vq()
497 *prealloc = NULL; in gred_change_vq()
651 struct gred_sched_data *prealloc; in gred_change() local
703 prealloc = kzalloc_obj(*prealloc); in gred_change()
706 err = gred_change_vq(sch, ctl->DP, ctl, prio, stab, max_P, &prealloc, in gred_change()
721 kfree(prealloc); in gred_change()
728 kfree(prealloc); in gred_change()
/linux/arch/arc/lib/
H A Dmemset-archs.S21 prealloc [\reg, \off]
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_dl.c1114 unsigned int prealloc) in vsp1_dlm_create() argument
1149 dlm->pool = vsp1_dl_body_pool_create(vsp1, prealloc + 1, in vsp1_dlm_create()
1154 for (i = 0; i < prealloc; ++i) { in vsp1_dlm_create()
1171 dlm->list_count = prealloc; in vsp1_dlm_create()
1175 VSP1_EXTCMD_AUTOFLD, prealloc); in vsp1_dlm_create()
H A Dvsp1_dl.h56 unsigned int prealloc);
/linux/tools/testing/selftests/net/
H A Dlwt_dst_cache_ref_loop.sh59 encap ioam6 trace prealloc type 0x800000 ns 0 size 4 \
168 encap ioam6 trace prealloc type 0x800000 ns 1 size 4 \
/linux/drivers/gpu/drm/msm/
H A Dmsm_mmu.h66 struct msm_mmu_prealloc *prealloc; member
H A Dmsm_iommu.c384 struct msm_mmu_prealloc *p = pagetable->base.prealloc; in msm_iommu_pagetable_alloc_pt()
/linux/fs/sysfs/
H A Dfile.c238 .prealloc = true,
243 .prealloc = true,
249 .prealloc = true,
/linux/kernel/bpf/
H A Dhashtab.c419 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check() local
437 if (lru && !prealloc) in htab_map_alloc_check()
552 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc() local
635 if (prealloc) { in htab_map_alloc()
1079 bool prealloc = htab_is_prealloc(htab); in alloc_htab_elem() local
1083 if (prealloc) { in alloc_htab_elem()
1119 if (prealloc) { in alloc_htab_elem()
1136 if (!prealloc) in alloc_htab_elem()
2320 bool prealloc = htab_is_prealloc(htab); in htab_map_mem_usage() local
2328 if (prealloc) { in htab_map_mem_usage()
/linux/fs/xfs/
H A Dxfs_dquot.c125 int prealloc = 0; in xfs_qm_adjust_dqlimits() local
132 prealloc = 1; in xfs_qm_adjust_dqlimits()
136 prealloc = 1; in xfs_qm_adjust_dqlimits()
147 if (prealloc) in xfs_qm_adjust_dqlimits()
/linux/drivers/usb/gadget/function/
H A Du_ether.c316 static int prealloc(struct list_head *list, struct usb_ep *ep, unsigned n) in prealloc() function
360 status = prealloc(&dev->tx_reqs, link->in_ep, n); in alloc_requests()
363 status = prealloc(&dev->rx_reqs, link->out_ep, n); in alloc_requests()
/linux/mm/
H A Dmemory.c1049 struct folio **prealloc, struct page *page) in copy_present_page() argument
1054 new_folio = *prealloc; in copy_present_page()
1066 *prealloc = NULL; in copy_present_page()
1115 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
1133 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
1170 addr, rss, prealloc, page); in copy_present_ptes()
1222 struct folio *prealloc = NULL; in copy_pte_range() local
1305 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1313 if (unlikely(prealloc)) { in copy_pte_range()
1320 folio_put(prealloc); in copy_pte_range()
[all …]
/linux/sound/hda/common/
H A DKconfig95 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
/linux/Documentation/filesystems/
H A Dntfs3.rst102 * - prealloc
/linux/fs/kernfs/
H A Dfile.c687 if (ops->prealloc && ops->seq_show) in kernfs_fop_open()
689 if (ops->prealloc) { in kernfs_fop_open()
/linux/include/linux/
H A Dkernfs.h317 bool prealloc; member
/linux/Documentation/sound/designs/
H A Dprocfile.rst136 ``card*/pcm*/sub*/prealloc``
/linux/fs/
H A Dnamespace.c2249 struct path *prealloc, unsigned count) in collect_paths() argument
2253 struct path *res = prealloc, *to_free = NULL; in collect_paths()
2282 void drop_collected_paths(const struct path *paths, const struct path *prealloc) in drop_collected_paths() argument
2286 if (paths != prealloc) in drop_collected_paths()

12