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()
532 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_add_fragments()
542 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
552 if (ubh_isclr (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
562 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, fragno + i); in ufs_add_fragments()
569 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_add_fragments()
571 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_add_fragments()
638 ucg = ubh_get_ucg (UCPI_UBH(ucpi)); in ufs_alloc_fragments()
661 ubh_setbit (UCPI_UBH(ucpi), ucpi->c_freeoff, goal + i); in ufs_alloc_fragments()
678 ubh_clrbit (UCPI_UBH(ucpi), ucpi->c_freeoff, result + i); in ufs_alloc_fragments()
690 ubh_mark_buffer_dirty (UCPI_UBH(ucpi)); in ufs_alloc_fragments()
692 ubh_sync_block(UCPI_UBH(ucpi)); in ufs_alloc_fragments()
713 ucg = ubh_get_ucg(UCPI_UBH(ucpi)); in ufs_alloccg_block()
725 if (ubh_isblockset(UCPI_UBH(ucpi), ucpi->c_freeoff, ufs_fragstoblks(goal))) { in ufs_alloccg_block()
739 ubh_clrblock (UCPI_UBH(ucpi), ucpi->c_freeoff, blkno); in ufs_alloccg_block()
823 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff + start, length, in ufs_bitmap_search()
828 loc = ubh_scanc(uspi, UCPI_UBH(ucpi), ucpi->c_freeoff, length, in ufs_bitmap_search()
850 blockmap = ubh_blkmap(UCPI_UBH(ucpi), ucpi->c_freeoff, result); in ufs_bitmap_search()
882 ubh_setbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); in ufs_clusteracct()
884 ubh_clrbit(UCPI_UBH(ucpi), ucpi->c_clusteroff, blkno); in ufs_clusteracct()
893 i = ubh_find_next_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, end, start); in ufs_clusteracct()
905 i = ubh_find_last_zero_bit (UCPI_UBH(ucpi), ucpi->c_clusteroff, start, end); in ufs_clusteracct()
917 fs32_add(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (i << 2)), cnt); in ufs_clusteracct()
919 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (back << 2)), cnt); in ufs_clusteracct()
921 fs32_sub(sb, (__fs32*)ubh_get_addr(UCPI_UBH(ucpi), ucpi->c_clustersumoff + (forw << 2)), cnt); in ufs_clusteracct()