Searched refs:buddy (Results 1 - 6 of 6) sorted by relevance
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/mlx4/ |
H A D | mr.c | 71 static u32 mlx4_buddy_alloc(struct mlx4_buddy *buddy, int order) argument 77 spin_lock(&buddy->lock); 79 for (o = order; o <= buddy->max_order; ++o) { 80 m = 1 << (buddy->max_order - o); 81 seg = find_first_bit(buddy->bits[o], m); 86 spin_unlock(&buddy->lock); 90 clear_bit(seg, buddy->bits[o]); 95 set_bit(seg ^ 1, buddy->bits[o]); 98 spin_unlock(&buddy->lock); 105 static void mlx4_buddy_free(struct mlx4_buddy *buddy, u3 argument 122 mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order) argument 156 mlx4_buddy_cleanup(struct mlx4_buddy *buddy) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_mr.c | 44 struct mthca_buddy *buddy; member in struct:mthca_mtt 86 static u32 mthca_buddy_alloc(struct mthca_buddy *buddy, int order) argument 92 spin_lock(&buddy->lock); 94 for (o = order; o <= buddy->max_order; ++o) { 95 m = 1 << (buddy->max_order - o); 96 seg = find_first_bit(buddy->bits[o], m); 101 spin_unlock(&buddy->lock); 105 clear_bit(seg, buddy->bits[o]); 110 set_bit(seg ^ 1, buddy->bits[o]); 113 spin_unlock(&buddy 120 mthca_buddy_free(struct mthca_buddy *buddy, u32 seg, int order) argument 137 mthca_buddy_init(struct mthca_buddy *buddy, int max_order) argument 172 mthca_buddy_cleanup(struct mthca_buddy *buddy) argument 182 mthca_alloc_mtt_range(struct mthca_dev *dev, int order, struct mthca_buddy *buddy) argument 200 __mthca_alloc_mtt(struct mthca_dev *dev, int size, struct mthca_buddy *buddy) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm/ |
H A D | pgtable.h | 95 pte_t *buddy = ptep_buddy(ptep); local 97 * Make sure the buddy is global too (if it's !none, 100 if (pte_none(*buddy)) { 101 buddy->pte_low |= _PAGE_GLOBAL; 102 buddy->pte_high |= _PAGE_GLOBAL; 133 pte_t *buddy = ptep_buddy(ptep); local 135 * Make sure the buddy is global too (if it's !none, 138 if (pte_none(*buddy)) 139 pte_val(*buddy) = pte_val(*buddy) | _PAGE_GLOBA [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-mips/ |
H A D | pgtable.h | 95 pte_t *buddy = ptep_buddy(ptep); local 97 * Make sure the buddy is global too (if it's !none, 100 if (pte_none(*buddy)) { 101 buddy->pte_low |= _PAGE_GLOBAL; 102 buddy->pte_high |= _PAGE_GLOBAL; 133 pte_t *buddy = ptep_buddy(ptep); local 135 * Make sure the buddy is global too (if it's !none, 138 if (pte_none(*buddy)) 139 pte_val(*buddy) = pte_val(*buddy) | _PAGE_GLOBA [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/mm/ |
H A D | page_alloc.c | 296 * function for dealing with page's order in buddy system. 318 * Locate the struct page for both the matching buddy in our 321 * 1) Any buddy B1 will have an order O twin B2 which satisfies 324 * For example, if the starting buddy (buddy2) is #8 its order 325 * 1 buddy is #10: 328 * 2) Any buddy B will have an order O+1 parent P which 349 * This function checks whether a page is free && is the buddy 350 * we can do coalesce a page and its buddy if 351 * (a) the buddy is not in a hole && 352 * (b) the buddy i 361 page_is_buddy(struct page *page, struct page *buddy, int order) argument 419 struct page *buddy; local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/jfs/ |
H A D | jfs_dmap.c | 121 * buddy table 123 * table used for determining buddy sizes within characters of 126 * binary buddy of free bits within the character. 1351 * part) of a larger binary buddy system, causing the dmap 1409 * part) of a larger binary buddy system. 2042 * the freed blocks to become part of a larger binary buddy 2063 * of the binary buddy system described by the dmap's dmtree 2127 * to setting the leaf value to the binary buddy max 2210 * of the binary buddy system described by the dmap's dmtree 2256 * buddy syste 2708 int budsz, buddy; local [all...] |
Completed in 72 milliseconds