/Linux-v5.10/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 42 struct mthca_buddy *buddy; member 84 static u32 mthca_buddy_alloc(struct mthca_buddy *buddy, int order) in mthca_buddy_alloc() argument 90 spin_lock(&buddy->lock); in mthca_buddy_alloc() 92 for (o = order; o <= buddy->max_order; ++o) in mthca_buddy_alloc() 93 if (buddy->num_free[o]) { in mthca_buddy_alloc() 94 m = 1 << (buddy->max_order - o); in mthca_buddy_alloc() 95 seg = find_first_bit(buddy->bits[o], m); in mthca_buddy_alloc() 100 spin_unlock(&buddy->lock); in mthca_buddy_alloc() 104 clear_bit(seg, buddy->bits[o]); in mthca_buddy_alloc() 105 --buddy->num_free[o]; in mthca_buddy_alloc() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 46 static u32 mlx4_buddy_alloc(struct mlx4_buddy *buddy, int order) in mlx4_buddy_alloc() argument 52 spin_lock(&buddy->lock); in mlx4_buddy_alloc() 54 for (o = order; o <= buddy->max_order; ++o) in mlx4_buddy_alloc() 55 if (buddy->num_free[o]) { in mlx4_buddy_alloc() 56 m = 1 << (buddy->max_order - o); in mlx4_buddy_alloc() 57 seg = find_first_bit(buddy->bits[o], m); in mlx4_buddy_alloc() 62 spin_unlock(&buddy->lock); in mlx4_buddy_alloc() 66 clear_bit(seg, buddy->bits[o]); in mlx4_buddy_alloc() 67 --buddy->num_free[o]; in mlx4_buddy_alloc() 72 set_bit(seg ^ 1, buddy->bits[o]); in mlx4_buddy_alloc() [all …]
|
/Linux-v5.10/mm/ |
D | zbud.c | 116 struct list_head buddy; member 224 enum buddy { enum 244 INIT_LIST_HEAD(&zhdr->buddy); in init_zbud_page() 260 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() 359 enum buddy bud; in zbud_alloc() 373 struct zbud_header, buddy); in zbud_alloc() 374 list_del(&zhdr->buddy); in zbud_alloc() 402 list_add(&zhdr->buddy, &pool->unbuddied[freechunks]); in zbud_alloc() 405 list_add(&zhdr->buddy, &pool->buddied); in zbud_alloc() 450 list_del(&zhdr->buddy); in zbud_free() [all …]
|
D | z3fold.c | 79 enum buddy { enum 116 struct list_head buddy; member 430 INIT_LIST_HEAD(&zhdr->buddy); in init_z3fold_page() 448 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx() 459 enum buddy bud) in __encode_handle() 483 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle() 505 static enum buddy handle_to_buddy(unsigned long handle) in handle_to_buddy() 531 WARN_ON(!list_empty(&zhdr->buddy)); in __release_z3fold_page() 558 list_add(&zhdr->buddy, &pool->stale); in __release_z3fold_page() 586 list_del_init(&zhdr->buddy); in release_z3fold_page_locked_list() [all …]
|
D | page_isolation.c | 75 struct page *buddy; in unset_migratetype_isolate() local 95 buddy = page + (buddy_pfn - pfn); in unset_migratetype_isolate() 98 !is_migrate_isolate_page(buddy)) { in unset_migratetype_isolate()
|
D | page_alloc.c | 814 static inline bool page_is_buddy(struct page *page, struct page *buddy, in page_is_buddy() argument 817 if (!page_is_guard(buddy) && !PageBuddy(buddy)) in page_is_buddy() 820 if (buddy_order(buddy) != order) in page_is_buddy() 827 if (page_zone_id(page) != page_zone_id(buddy)) in page_is_buddy() 830 VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy); in page_is_buddy() 994 struct page *buddy; in __free_one_page() local 1017 buddy = page + (buddy_pfn - pfn); in __free_one_page() 1021 if (!page_is_buddy(page, buddy, order)) in __free_one_page() 1027 if (page_is_guard(buddy)) in __free_one_page() 1028 clear_page_guard(zone, buddy, order, migratetype); in __free_one_page() [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/ |
D | i915_buddy.c | 236 struct i915_buddy_block *buddy; in __i915_buddy_free() local 238 buddy = get_buddy(block); in __i915_buddy_free() 240 if (!i915_buddy_block_is_free(buddy)) in __i915_buddy_free() 243 list_del(&buddy->link); in __i915_buddy_free() 246 i915_block_free(buddy); in __i915_buddy_free() 345 struct i915_buddy_block *buddy; in i915_buddy_alloc_range() local 419 buddy = get_buddy(block); in i915_buddy_alloc_range() 420 if (buddy && in i915_buddy_alloc_range() 422 i915_buddy_block_is_free(buddy))) in i915_buddy_alloc_range()
|
/Linux-v5.10/drivers/gpu/drm/i915/selftests/ |
D | i915_buddy.c | 13 bool buddy) in __igt_dump_block() argument 22 yesno(buddy)); in __igt_dump_block() 28 struct i915_buddy_block *buddy; in igt_dump_block() local 32 buddy = get_buddy(block); in igt_dump_block() 33 if (buddy) in igt_dump_block() 34 __igt_dump_block(mm, buddy, true); in igt_dump_block() 40 struct i915_buddy_block *buddy; in igt_check_block() local 83 buddy = get_buddy(block); in igt_check_block() 85 if (!buddy && block->parent) { in igt_check_block() 90 if (buddy) { in igt_check_block() [all …]
|
D | i915_mock_selftests.h | 36 selftest(buddy, i915_buddy_mock_selftests)
|
/Linux-v5.10/arch/mips/include/asm/ |
D | pgtable.h | 156 pte_t *buddy = ptep_buddy(ptep); local 161 if (pte_none(*buddy)) { 163 buddy->pte_low |= _PAGE_GLOBAL; 164 buddy->pte_high |= _PAGE_GLOBAL; 202 pte_t *buddy = ptep_buddy(ptep); local 208 cmpxchg64(&buddy->pte, 0, _PAGE_GLOBAL); 210 cmpxchg(&buddy->pte, 0, _PAGE_GLOBAL);
|
/Linux-v5.10/fs/ext4/ |
D | mballoc.c | 619 void *buddy; in __mb_check_buddy() local 626 buddy = mb_find_buddy(e4b, order, &max); in __mb_check_buddy() 627 MB_CHECK_ASSERT(buddy); in __mb_check_buddy() 630 MB_CHECK_ASSERT(buddy != buddy2); in __mb_check_buddy() 636 if (mb_test_bit(i, buddy)) { in __mb_check_buddy() 664 buddy = mb_find_buddy(e4b, 0, &max); in __mb_check_buddy() 666 if (!mb_test_bit(i, buddy)) { in __mb_check_buddy() 694 MB_CHECK_ASSERT(mb_test_bit(k + i, buddy)); in __mb_check_buddy() 712 void *buddy, ext4_grpblk_t first, ext4_grpblk_t len, in ext4_mb_mark_free_simple() argument 740 buddy + sbi->s_mb_offsets[min]); in ext4_mb_mark_free_simple() [all …]
|
/Linux-v5.10/drivers/dma-buf/heaps/ |
D | Kconfig | 6 is backed by pages from the buddy allocator. If in doubt, say Y.
|
/Linux-v5.10/drivers/staging/android/ion/ |
D | Kconfig | 19 is backed by pages from the buddy allocator. If in doubt, say Y.
|
/Linux-v5.10/Documentation/trace/ |
D | events-kmem.rst | 56 the per-CPU allocator (high performance) or the buddy allocator. 58 If pages are allocated directly from the buddy allocator, the
|
/Linux-v5.10/fs/jfs/ |
D | jfs_dmap.c | 2793 int budsz, buddy; in dbJoin() local 2823 buddy = leafno ^ budsz; in dbJoin() 2828 if (newval > leaf[buddy]) in dbJoin() 2832 if (newval < leaf[buddy]) in dbJoin() 2843 if (leafno < buddy) { in dbJoin() 2846 dbAdjTree(tp, buddy, NOFREE); in dbJoin() 2852 leafno = buddy; in dbJoin()
|
/Linux-v5.10/Documentation/admin-guide/mm/ |
D | pagemap.rst | 97 a free memory block managed by the buddy system allocator 98 The buddy system organizes free memory in blocks of various orders.
|
/Linux-v5.10/drivers/staging/rtl8723bs/core/ |
D | rtw_pwrctrl.c | 100 struct adapter *buddy = adapter->pbuddy_adapter; in rtw_pwr_unassociated_idle() local 124 if (buddy) { in rtw_pwr_unassociated_idle() 125 struct mlme_priv *b_pmlmepriv = &(buddy->mlmepriv); in rtw_pwr_unassociated_idle()
|
/Linux-v5.10/arch/x86/kvm/vmx/ |
D | vmx.h | 310 struct loaded_vmcs *buddy);
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-fs-ext4 | 37 requests (as a power of 2) where the buddy cache is
|
/Linux-v5.10/include/linux/ |
D | page-flags.h | 750 PAGE_TYPE_OPS(Buddy, buddy)
|
/Linux-v5.10/Documentation/vm/ |
D | transhuge.rst | 25 immediately in the buddy or through the VM), guest physical memory
|
/Linux-v5.10/include/trace/events/ |
D | ext4.h | 1035 __field( __u16, buddy ) 1059 __entry->buddy = ac->ac_buddy; 1077 __entry->buddy ? 1 << __entry->buddy : 0)
|
/Linux-v5.10/Documentation/admin-guide/ |
D | ext4.rst | 448 details of multiblock allocator buddy cache of free blocks 505 power of 2) where the buddy cache is used.
|
/Linux-v5.10/Documentation/admin-guide/kdump/ |
D | vmcoreinfo.rst | 190 free_area ranges. MAX_ORDER is used by the zone buddy allocator.
|
/Linux-v5.10/Documentation/RCU/ |
D | rcu_dereference.rst | 43 classic buddy-allocator algorithms.
|