Searched refs:bud (Results 1 – 2 of 2) sorted by relevance
363 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx() argument365 return (bud + zhdr->first_num) & BUDDY_MASK; in __idx()374 enum buddy bud) in __encode_handle() argument383 if (bud == HEADLESS) in __encode_handle()387 idx = __idx(zhdr, bud); in __encode_handle()389 if (bud == LAST) in __encode_handle()396 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle() argument398 return __encode_handle(zhdr, zhdr->slots, bud); in encode_handle()870 enum buddy bud; in z3fold_alloc() local880 bud = HEADLESS; in z3fold_alloc()[all …]
260 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle() argument271 if (bud == FIRST) in encode_handle()359 enum buddy bud; in zbud_alloc() local377 bud = FIRST; in zbud_alloc()379 bud = LAST; in zbud_alloc()392 bud = FIRST; in zbud_alloc()395 if (bud == FIRST) in zbud_alloc()414 *handle = encode_handle(zhdr, bud); in zbud_alloc()