Lines Matching refs:UCPI_UBH
69 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_fragments()
77 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase); in ufs_free_fragments()
80 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, i)) in ufs_free_fragments()
81 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, i); in ufs_free_fragments()
91 blkmap = ubh_blkmap (UCPI_UBH(ucpi), ucpi->c_freeoff, bbase); in ufs_free_fragments()
98 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_fragments()
117 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_free_fragments()
119 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_free_fragments()
177 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_free_blocks()
185 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno)) { in ufs_free_blocks()
188 ubh_setblock(UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_free_blocks()
207 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_free_blocks()
209 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_free_blocks()
528 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_add_fragments()
538 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
548 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
558 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i); in ufs_add_fragments()
565 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_add_fragments()
567 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_add_fragments()
634 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_alloc_fragments()
657 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, goal + i); in ufs_alloc_fragments()
674 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, result + i); in ufs_alloc_fragments()
686 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_alloc_fragments()
688 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_alloc_fragments()
709 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_alloccg_block()
721 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, ufs_fragstoblks(goal))) { in ufs_alloccg_block()
735 ubh_clrblock (UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_alloccg_block()
819 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff + start, length, in ufs_bitmap_search()
824 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff, length, in ufs_bitmap_search()
846 blockmap = ubh_blkmap(UCPI_UBH(ucpi), ucpi->c_freeoff, result); in ufs_bitmap_search()
878 ubh_setbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); in ufs_clusteracct()
880 ubh_clrbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); in ufs_clusteracct()
889 i = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, end, start); in ufs_clusteracct()
901 i = ubh_find_last_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, start, end); in ufs_clusteracct()
913 fs32_add(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (i << 2)), cnt); in ufs_clusteracct()
915 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (back << 2)), cnt); in ufs_clusteracct()
917 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (forw << 2)), cnt); in ufs_clusteracct()