Lines Matching refs:UCPI_UBH
69 ucg = ubh_get_ucg (UCPI_UBH); in ufs_free_fragments()
77 blkmap = ubh_blkmap (UCPI_UBH, ucpi->c_freeoff, bbase); in ufs_free_fragments()
80 if (ubh_isclr (UCPI_UBH, ucpi->c_freeoff, i)) in ufs_free_fragments()
81 ubh_setbit (UCPI_UBH, ucpi->c_freeoff, i); in ufs_free_fragments()
92 blkmap = ubh_blkmap (UCPI_UBH, ucpi->c_freeoff, bbase); in ufs_free_fragments()
99 if (ubh_isblockset(UCPI_UBH, ucpi->c_freeoff, blkno)) { in ufs_free_fragments()
114 ubh_mark_buffer_dirty (UCPI_UBH); in ufs_free_fragments()
117 ubh_wait_on_buffer (UCPI_UBH); in ufs_free_fragments()
174 ucg = ubh_get_ucg (UCPI_UBH); in ufs_free_blocks()
182 if (ubh_isblockset(UCPI_UBH, ucpi->c_freeoff, blkno)) { in ufs_free_blocks()
185 ubh_setblock(UCPI_UBH, ucpi->c_freeoff, blkno); in ufs_free_blocks()
199 ubh_mark_buffer_dirty (UCPI_UBH); in ufs_free_blocks()
202 ubh_wait_on_buffer (UCPI_UBH); in ufs_free_blocks()
421 ucg = ubh_get_ucg (UCPI_UBH); in ufs_add_fragments()
431 if (ubh_isclr (UCPI_UBH, ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
438 if (ubh_isclr (UCPI_UBH, ucpi->c_freeoff, fragno + i)) in ufs_add_fragments()
448 ubh_clrbit (UCPI_UBH, ucpi->c_freeoff, fragno + i); in ufs_add_fragments()
459 ubh_mark_buffer_dirty (UCPI_UBH); in ufs_add_fragments()
462 ubh_wait_on_buffer (UCPI_UBH); in ufs_add_fragments()
530 ucg = ubh_get_ucg (UCPI_UBH); in ufs_alloc_fragments()
553 ubh_setbit (UCPI_UBH, ucpi->c_freeoff, goal + i); in ufs_alloc_fragments()
572 ubh_clrbit (UCPI_UBH, ucpi->c_freeoff, result + i); in ufs_alloc_fragments()
584 ubh_mark_buffer_dirty (UCPI_UBH); in ufs_alloc_fragments()
587 ubh_wait_on_buffer (UCPI_UBH); in ufs_alloc_fragments()
610 ucg = ubh_get_ucg(UCPI_UBH); in ufs_alloccg_block()
622 if (ubh_isblockset(UCPI_UBH, ucpi->c_freeoff, ufs_fragstoblks(goal))) { in ufs_alloccg_block()
634 ubh_clrblock (UCPI_UBH, ucpi->c_freeoff, blkno); in ufs_alloccg_block()
667 ucg = ubh_get_ucg(UCPI_UBH); in ufs_bitmap_search()
675 location = ubh_scanc(UCPI_UBH, ucpi->c_freeoff + start, length, in ufs_bitmap_search()
680 location = ubh_scanc(UCPI_UBH, ucpi->c_freeoff, length, in ufs_bitmap_search()
697 blockmap = ubh_blkmap(UCPI_UBH, ucpi->c_freeoff, result); in ufs_bitmap_search()
736 ubh_setbit(UCPI_UBH, ucpi->c_clusteroff, blkno); in ufs_clusteracct()
738 ubh_clrbit(UCPI_UBH, ucpi->c_clusteroff, blkno); in ufs_clusteracct()
747 i = ubh_find_next_zero_bit (UCPI_UBH, ucpi->c_clusteroff, end, start); in ufs_clusteracct()
759 i = ubh_find_last_zero_bit (UCPI_UBH, ucpi->c_clusteroff, start, end); in ufs_clusteracct()
771 fs32_add(sb, (u32*)ubh_get_addr(UCPI_UBH, ucpi->c_clustersumoff + (i << 2)), cnt); in ufs_clusteracct()
773 fs32_sub(sb, (u32*)ubh_get_addr(UCPI_UBH, ucpi->c_clustersumoff + (back << 2)), cnt); in ufs_clusteracct()
775 fs32_sub(sb, (u32*)ubh_get_addr(UCPI_UBH, ucpi->c_clustersumoff + (forw << 2)), cnt); in ufs_clusteracct()