Lines Matching refs:cp
54 ffs_isblock(struct fs *fs, u_char *cp, int32_t h)
60 return (cp[h] == 0xff);
63 return ((cp[h >> 1] & mask) == mask);
66 return ((cp[h >> 2] & mask) == mask);
69 return ((cp[h >> 3] & mask) == mask);
80 ffs_clrblock(struct fs *fs, u_char *cp, int32_t h)
85 cp[h] = 0;
88 cp[h >> 1] &= ~(0x0f << ((h & 0x1) << 2));
91 cp[h >> 2] &= ~(0x03 << ((h & 0x3) << 1));
94 cp[h >> 3] &= ~(0x01 << (h & 0x7));
106 ffs_setblock(struct fs *fs, u_char *cp, int32_t h)
111 cp[h] = 0xff;
114 cp[h >> 1] |= (0x0f << ((h & 0x1) << 2));
117 cp[h >> 2] |= (0x03 << ((h & 0x3) << 1));
120 cp[h >> 3] |= (0x01 << (h & 0x7));