Lines Matching defs:blk
132 static daddr_t blst_leaf_alloc(blmeta_t *scan, daddr_t blk, int count);
133 static daddr_t blst_meta_alloc(blmeta_t *scan, daddr_t blk,
137 daddr_t radix, int skip, daddr_t blk);
138 static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix,
143 static void blst_radix_print(blmeta_t *scan, daddr_t blk,
220 daddr_t blk = SWAPBLK_NONE;
224 blk = blst_leaf_alloc(bl->bl_root, 0, count);
226 blk = blst_meta_alloc(bl->bl_root, 0, count,
228 if (blk != SWAPBLK_NONE)
231 return(blk);
316 blst_leaf_alloc(blmeta_t *scan, daddr_t blk, int count)
348 return(blk + r);
367 return(blk + j);
389 blst_meta_alloc(blmeta_t *scan, daddr_t blk, daddr_t count, daddr_t radix,
432 r = blst_leaf_alloc(&scan[i], blk, count);
434 r = blst_meta_alloc(&scan[i], blk, count,
454 blk += radix;
471 blst_leaf_free(blmeta_t *scan, daddr_t blk, int count)
481 int n = blk & (BLIST_BMAP_RADIX - 1);
513 int skip, daddr_t blk)
521 blk, radix
565 i = (freeBlk - blk) / radix;
566 blk += i * radix;
569 while (i <= skip && blk < freeBlk + count) {
572 v = blk + radix - freeBlk;
583 next_skip - 1, blk);
588 blk += radix;
600 static void blst_copy(blmeta_t *scan, daddr_t blk, daddr_t radix,
614 blist_free(dest, blk, count);
620 blist_free(dest, blk + i, 1);
639 blist_free(dest, blk, count);
641 blist_free(dest, blk, radix);
655 blk,
666 blk,
675 blk += radix;
761 blst_radix_print(blmeta_t *scan, daddr_t blk, daddr_t radix, int skip, int tab)
771 blk, radix,
782 blk,
791 blk,
800 blk, radix,
815 blk, radix
822 blk,
827 blk += radix;
883 daddr_t blk = blist_alloc(bl, count);
884 printf(" R=%04x\n", blk);