Lines Matching refs:startbit
35 if (n1 && n2 && n1->startbit == n2->startbit) { in ebitmap_or()
36 new->startbit = n1->startbit; in ebitmap_or()
40 } else if (!n2 || (n1 && n1->startbit < n2->startbit)) { in ebitmap_or()
41 new->startbit = n1->startbit; in ebitmap_or()
45 new->startbit = n2->startbit; in ebitmap_or()
166 (n1->startbit == n2->startbit) && (n1->map == n2->map)) { in ebitmap_cmp()
192 new->startbit = n->startbit; in ebitmap_cpy()
216 while (n1 && n2 && (n1->startbit <= n2->startbit)) { in ebitmap_contains()
217 if (n1->startbit < n2->startbit) { in ebitmap_contains()
240 if (n1->startbit < n2->startbit) { in ebitmap_match_any()
242 } else if (n2->startbit < n1->startbit) { in ebitmap_match_any()
264 while (n && (n->startbit <= bit)) { in ebitmap_get_bit()
265 if ((n->startbit + MAPSIZE) > bit) { in ebitmap_get_bit()
266 if (n->map & (MAPBIT << (bit - n->startbit))) in ebitmap_get_bit()
280 uint32_t startbit = bit & ~(MAPSIZE - 1); in ebitmap_set_bit() local
281 uint32_t highbit = startbit + MAPSIZE; in ebitmap_set_bit()
290 while (n && n->startbit <= bit) { in ebitmap_set_bit()
291 if ((n->startbit + MAPSIZE) > bit) { in ebitmap_set_bit()
293 n->map |= (MAPBIT << (bit - n->startbit)); in ebitmap_set_bit()
295 n->map &= ~(MAPBIT << (bit - n->startbit)); in ebitmap_set_bit()
306 prev->startbit + in ebitmap_set_bit()
333 new->startbit = startbit; in ebitmap_set_bit()
334 new->map = (MAPBIT << (bit - new->startbit)); in ebitmap_set_bit()
369 return n->startbit + pos; in ebitmap_highest_set_bit()
443 n->startbit = le32_to_cpu(buf[0]); in ebitmap_read()
445 if (n->startbit & (MAPSIZE - 1)) { in ebitmap_read()
448 n->startbit, MAPSIZE); in ebitmap_read()
451 if (n->startbit > (e->highbit - MAPSIZE)) { in ebitmap_read()
454 n->startbit, (e->highbit - MAPSIZE)); in ebitmap_read()
467 n->startbit); in ebitmap_read()
471 if (n->startbit <= l->startbit) { in ebitmap_read()
474 n->startbit, l->startbit); in ebitmap_read()
483 if (count && l->startbit + MAPSIZE != e->highbit) { in ebitmap_read()
486 e->highbit, l->startbit + MAPSIZE); in ebitmap_read()