Lines Matching defs:bmp

72 	__le32 *bmp;
73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail;
74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) {
81 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail;
82 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) {
118 __le32 *bmp;
130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls;
132 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls;
134 if (!tstbits(bmp, nr, n + forward)) {
139 while ((a = tstbits(bmp, q, n + forward)) != 0) {
157 if (!le32_to_cpu(bmp[i])) goto cont;
158 if (n + forward >= 0x3f && le32_to_cpu(bmp[i]) != 0xffffffff) goto cont;
161 unsigned k = le32_to_cpu(bmp[i-1]);
167 while ((a = tstbits(bmp, q, n + forward)) != 0) {
181 if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~(((1 << n) - 1) << (ret & 0x1f))) != 0xffffffff)) {
186 bmp[(ret & 0x3fff) >> 5] &= cpu_to_le32(~(((1 << n) - 1) << (ret & 0x1f)));
299 __le32 *bmp;
300 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "aip"))) goto end;
301 if (le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) & (1 << (sec & 0x1f))) {
302 bmp[(sec & 0x3fff) >> 5] &= cpu_to_le32(~(1 << (sec & 0x1f)));
318 __le32 *bmp;
329 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "free"))) {
333 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f) & 1)) {
338 bmp[(sec & 0x3fff) >> 5] |= cpu_to_le32(1 << (sec & 0x1f));
364 __le32 *bmp;
366 if ((bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
369 if (!le32_to_cpu(bmp[j])) continue;
370 for (k = le32_to_cpu(bmp[j]); k; k >>= 1) if (k & 1) if (!--n) {
379 bmp = hpfs_map_bitmap(s, b, &qbh, "chkdn1");
385 bmp = hpfs_map_bitmap(s, i, &qbh, "chkdn2");
387 if (bmp) {
390 if (!le32_to_cpu(bmp[j])) continue;
392 if ((le32_to_cpu(bmp[j]) & k) == k) {
416 __le32 *bmp;
418 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
421 bmp[ssec >> 5] |= cpu_to_le32(1 << (ssec & 0x1f));
489 static unsigned find_run(__le32 *bmp, unsigned *idx)
492 while (tstbits(bmp, *idx, 1)) {
498 while (!tstbits(bmp, *idx + len, 1))
530 __le32 *bmp;
546 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
551 while ((len = find_run(bmp, &idx)) && !err) {
567 if (!(bmp = hpfs_map_bitmap(s, start_bmp, &qbh, "trim"))) {
572 while ((len = find_run(bmp, &idx)) && !err) {