| /linux/fs/btrfs/ |
| H A D | extent-io-tree.c | 166 static struct extent_state *alloc_extent_state_atomic(struct extent_state *prealloc) in alloc_extent_state_atomic() argument 168 if (!prealloc) in alloc_extent_state_atomic() 169 prealloc = alloc_extent_state(GFP_ATOMIC); in alloc_extent_state_atomic() 171 return prealloc; in alloc_extent_state_atomic() 524 struct extent_state *prealloc, u64 split) in split_state() argument 532 prealloc->start = orig->start; in split_state() 533 prealloc->end = split - 1; in split_state() 534 prealloc->state = orig->state; in split_state() 545 if (prealloc->end < entry->start) { in split_state() 547 } else if (prealloc->end > entry->end) { in split_state() [all …]
|
| H A D | ulist.c | 53 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 D | qgroup.c | 202 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 D | ulist.h | 44 struct ulist_node *prealloc; member
|
| H A D | extent_io.h | 230 changeset->range_changed.prealloc = EXTENT_CHANGESET_BYTES_ONLY; in extent_changeset_init_bytes_only() 235 return changeset->range_changed.prealloc != EXTENT_CHANGESET_BYTES_ONLY; in extent_changeset_tracks_ranges()
|
| /linux/lib/ |
| H A D | stackdepot.c | 293 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/tools/testing/selftests/net/ |
| H A D | ioam6.sh | 210 encap ioam6 trace prealloc type 0x800000 ns 0 size 4 dev veth0 &>/dev/null 693 encap ioam6 mode $mode trace prealloc type 0x800000 size 4 \ 699 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 734 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 740 encap ioam6 mode $mode_tunsrc trace prealloc type 0x800000 ns 0 size 4 \ 774 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 780 encap ioam6 mode $mode_tundst trace prealloc type 0x800000 ns 0 size 4 \ 811 encap ioam6 mode $mode trace prealloc ns 0 size 4 \ 817 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 842 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 \ [all …]
|
| H A D | lwt_dst_cache_ref_loop.sh | 59 encap ioam6 trace prealloc type 0x800000 ns 0 size 4 \ 168 encap ioam6 trace prealloc type 0x800000 ns 1 size 4 \
|
| /linux/fs/ |
| H A D | pipe.c | 114 static struct page *anon_pipe_prealloc_pop(struct anon_pipe_prealloc *prealloc) in anon_pipe_prealloc_pop() argument 116 if (!prealloc->count) in anon_pipe_prealloc_pop() 119 prealloc->count--; in anon_pipe_prealloc_pop() 121 return prealloc->pages[prealloc->count]; in anon_pipe_prealloc_pop() 125 static bool anon_pipe_prealloc_push(struct anon_pipe_prealloc *prealloc, in anon_pipe_prealloc_push() argument 128 if (prealloc->count >= PIPE_PREALLOC_MAX) in anon_pipe_prealloc_push() 130 prealloc->pages[prealloc->count++] = page; in anon_pipe_prealloc_push() 149 have = min_t(unsigned int, READ_ONCE(pipe->prealloc.count), want); in anon_pipe_prefill_and_lock() 166 while (n && anon_pipe_prealloc_push(&pipe->prealloc, pages[n - 1])) in anon_pipe_prefill_and_lock() 186 while (pipe->prealloc.count > PIPE_PREALLOC_KEEP) in anon_pipe_trim_and_unlock() [all …]
|
| /linux/net/sched/ |
| H A D | sch_gred.c | 484 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/drivers/gpu/drm/msm/ |
| H A D | msm_gem_vma.c | 118 struct msm_mmu_prealloc prealloc; member 715 vm->mmu->prealloc = &job->prealloc; in msm_vma_job_run() 740 vm->mmu->prealloc = NULL; in msm_vma_job_run() 769 vm->mmu->funcs->prealloc_cleanup(vm->mmu, &job->prealloc); in msm_vma_job_free() 771 atomic_sub(job->prealloc.count, &vm->prealloc_throttle.in_flight); in msm_vma_job_free() 1161 mmu->funcs->prealloc_count(mmu, &job->prealloc, start_iova, end_iova - start_iova); in prealloc_count() 1229 atomic_add(job->prealloc.count, &vm->prealloc_throttle.in_flight); in vm_bind_prealloc_count() 1357 ret = mmu->funcs->prealloc_allocate(mmu, &job->prealloc); in vm_bind_job_prepare()
|
| H A D | msm_mmu.h | 66 struct msm_mmu_prealloc *prealloc; member
|
| H A D | msm_iommu.c | 396 struct msm_mmu_prealloc *p = pagetable->base.prealloc; in msm_iommu_pagetable_alloc_pt()
|
| /linux/arch/arc/lib/ |
| H A D | memset-archs.S | 21 prealloc [\reg, \off]
|
| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_dl.h | 56 unsigned int prealloc);
|
| /linux/fs/xfs/ |
| H A D | xfs_dquot.c | 125 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() 144 prealloc = 1; in xfs_qm_adjust_dqlimits() 148 prealloc = 1; in xfs_qm_adjust_dqlimits() 151 if (prealloc) in xfs_qm_adjust_dqlimits()
|
| H A D | xfs_iomap.c | 1471 xfs_filblks_t prealloc, in xfs_bmapi_reserve_delalloc() argument 1484 whichfork == XFS_COW_FORK && !prealloc; in xfs_bmapi_reserve_delalloc() 1492 alen = XFS_FILBLKS_MIN(len + prealloc, XFS_MAX_BMBT_EXTLEN); in xfs_bmapi_reserve_delalloc() 1495 if (prealloc && alen >= len) in xfs_bmapi_reserve_delalloc() 1496 prealloc = alen - len; in xfs_bmapi_reserve_delalloc() 1564 if (whichfork == XFS_DATA_FORK && prealloc) in xfs_bmapi_reserve_delalloc() 1566 if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) in xfs_bmapi_reserve_delalloc() 1581 if (prealloc || use_cowextszhint) { in xfs_bmapi_reserve_delalloc() 1584 prealloc = 0; in xfs_bmapi_reserve_delalloc()
|
| /linux/drivers/md/ |
| H A D | dm-cache-target.c | 1405 struct dm_bio_prison_cell_v2 *prealloc; in mg_lock_writes() local 1407 prealloc = alloc_prison_cell(cache); in mg_lock_writes() 1417 prealloc, &mg->cell); in mg_lock_writes() 1419 free_prison_cell(cache, prealloc); in mg_lock_writes() 1424 if (mg->cell != prealloc) in mg_lock_writes() 1425 free_prison_cell(cache, prealloc); in mg_lock_writes() 1562 struct dm_bio_prison_cell_v2 *prealloc; in invalidate_lock() local 1564 prealloc = alloc_prison_cell(cache); in invalidate_lock() 1568 READ_WRITE_LOCK_LEVEL, prealloc, &mg->cell); in invalidate_lock() 1570 free_prison_cell(cache, prealloc); in invalidate_lock() [all …]
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 425 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc_check() 443 if (lru && !prealloc) in htab_map_alloc_check() 573 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); in htab_map_alloc() 656 if (prealloc) { in htab_map_alloc() 1103 bool prealloc = htab_is_prealloc(htab); in alloc_htab_elem() 1107 if (prealloc) { in alloc_htab_elem() 1143 if (prealloc) { in alloc_htab_elem() 1160 if (!prealloc) in alloc_htab_elem() 2362 bool prealloc = htab_is_prealloc(htab); in htab_map_mem_usage() 2370 if (prealloc) { in htab_map_mem_usage() 424 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); htab_map_alloc_check() local 558 bool prealloc = !(attr->map_flags & BPF_F_NO_PREALLOC); htab_map_alloc() local 1088 bool prealloc = htab_is_prealloc(htab); alloc_htab_elem() local 2347 bool prealloc = htab_is_prealloc(htab); htab_map_mem_usage() local [all...] |
| /linux/drivers/usb/gadget/function/ |
| H A D | u_ether.c | 316 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 D | memory.c | 1124 struct folio **prealloc, struct page *page) in copy_present_page() argument 1129 new_folio = *prealloc; in copy_present_page() 1141 *prealloc = NULL; in copy_present_page() 1213 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument 1231 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes() 1268 addr, rss, prealloc, page); in copy_present_ptes() 1320 struct folio *prealloc = NULL; in copy_pte_range() local 1403 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range() 1411 if (unlikely(prealloc)) { in copy_pte_range() 1418 folio_put(prealloc); in copy_pte_range() [all …]
|
| /linux/sound/hda/common/ |
| H A D | Kconfig | 95 via a proc file (/proc/asound/card*/pcm*/sub*/prealloc), too.
|
| /linux/Documentation/filesystems/ |
| H A D | ntfs3.rst | 102 * - prealloc
|
| /linux/fs/ntfs3/ |
| H A D | super.c | 415 opts->prealloc = 1; in ntfs_fs_parse_param() 418 opts->prealloc = result.boolean; in ntfs_fs_parse_param() 800 if (opts->prealloc) in ntfs_show_options() 1895 opts->prealloc = 1; in ntfs_init_fs_context()
|
| /linux/Documentation/sound/designs/ |
| H A D | procfile.rst | 136 ``card*/pcm*/sub*/prealloc``
|