Lines Matching refs:bbp
1009 char *bbp; in ext2_alloccg() local
1046 bbp = (char *)bp->b_data; in ext2_alloccg()
1055 if (isclr(bbp, bpref)) { in ext2_alloccg()
1075 if (bbp[loc] == (char)0xff) { in ext2_alloccg()
1082 bit = fls(bbp[loc]); in ext2_alloccg()
1085 } else if (bbp[loc] == 0) { in ext2_alloccg()
1093 bit = ffs(bbp[loc]) - 1; in ext2_alloccg()
1101 bit = fls(bbp[loc]); in ext2_alloccg()
1117 bno = ext2_mapsearch(fs, bbp, bpref); in ext2_alloccg()
1123 if (isset(bbp, bno)) { in ext2_alloccg()
1129 setbit(bbp, bno); in ext2_alloccg()
1131 ext2_clusteracct(fs, bbp, cg, bno, -1); in ext2_alloccg()
1157 char *bbp; in ext2_clusteralloc() local
1175 bbp = (char *)bp->b_data; in ext2_clusteralloc()
1209 if ((bbp[loc] & bit) != 0) in ext2_clusteralloc()
1229 if (!isclr(bbp, got - run + i)) in ext2_clusteralloc()
1238 setbit(bbp, bno + i); in ext2_clusteralloc()
1239 ext2_clusteracct(fs, bbp, cg, bno + i, -1); in ext2_clusteralloc()
1427 char *bbp; in ext2_blkfree() local
1443 bbp = (char *)bp->b_data; in ext2_blkfree()
1445 if (isclr(bbp, bno)) { in ext2_blkfree()
1449 clrbit(bbp, bno); in ext2_blkfree()
1451 ext2_clusteracct(fs, bbp, cg, bno, 1); in ext2_blkfree()
1521 ext2_mapsearch(struct m_ext2fs *fs, char *bbp, daddr_t bpref) in ext2_mapsearch() argument
1535 loc = memcchr(&bbp[start], 0xff, len); in ext2_mapsearch()
1539 loc = memcchr(&bbp[start], 0xff, len); in ext2_mapsearch()
1546 return ((loc - bbp) * NBBY + ffs(~*loc) - 1); in ext2_mapsearch()