Home | History | Annotate | Download | only in src

Lines Matching refs:bit

227 int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit)
231 if (e->highbit < bit)
235 while (n && (n->startbit <= bit)) {
236 if ((n->startbit + MAPSIZE) > bit) {
237 if (n->map & (MAPBIT << (bit - n->startbit)))
248 int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value)
251 uint32_t startbit = bit & ~(MAPSIZE - 1);
255 ERR(NULL, "bitmap overflow, bit 0x%x", bit);
261 while (n && n->startbit <= bit) {
262 if ((n->startbit + MAPSIZE) > bit) {
264 n->map |= (MAPBIT << (bit - n->startbit));
266 n->map &= ~(MAPBIT << (bit - n->startbit));
305 new->map = (MAPBIT << (bit - new->startbit));
361 ("security: ebitmap: map size %d does not match my size %zu (high bit was %d)\n",
371 ("security: ebitmap: high bit (%d) is not a multiple of the map size (%zu)\n",
394 ("security: ebitmap start bit (%d) is not a multiple of the map size (%zu)\n",
400 ("security: ebitmap start bit (%d) is beyond the end of the bitmap (%zu)\n",
420 ("security: ebitmap: start bit %d comes after start bit %d\n",