Lines Matching refs:startbit

34 		if (n1 && n2 && n1->startbit == n2->startbit) {  in ebitmap_or()
35 new->startbit = n1->startbit; in ebitmap_or()
39 } else if (!n2 || (n1 && n1->startbit < n2->startbit)) { in ebitmap_or()
40 new->startbit = n1->startbit; in ebitmap_or()
44 new->startbit = n2->startbit; in ebitmap_or()
160 (n1->startbit == n2->startbit) && (n1->map == n2->map)) { in ebitmap_cmp()
185 new->startbit = n->startbit; in ebitmap_cpy()
209 while (n1 && n2 && (n1->startbit <= n2->startbit)) { in ebitmap_contains()
210 if (n1->startbit < n2->startbit) { in ebitmap_contains()
233 if (n1->startbit < n2->startbit) { in ebitmap_match_any()
235 } else if (n2->startbit < n1->startbit) { in ebitmap_match_any()
257 while (n && (n->startbit <= bit)) { in ebitmap_get_bit()
258 if ((n->startbit + MAPSIZE) > bit) { in ebitmap_get_bit()
259 if (n->map & (MAPBIT << (bit - n->startbit))) in ebitmap_get_bit()
273 uint32_t startbit = bit & ~(MAPSIZE - 1); in ebitmap_set_bit() local
274 uint32_t highbit = startbit + MAPSIZE; in ebitmap_set_bit()
283 while (n && n->startbit <= bit) { in ebitmap_set_bit()
284 if ((n->startbit + MAPSIZE) > bit) { in ebitmap_set_bit()
286 n->map |= (MAPBIT << (bit - n->startbit)); in ebitmap_set_bit()
288 n->map &= ~(MAPBIT << (bit - n->startbit)); in ebitmap_set_bit()
299 prev->startbit + in ebitmap_set_bit()
326 new->startbit = startbit; in ebitmap_set_bit()
327 new->map = (MAPBIT << (bit - new->startbit)); in ebitmap_set_bit()
412 n->startbit = le32_to_cpu(buf[0]); in ebitmap_read()
414 if (n->startbit & (MAPSIZE - 1)) { in ebitmap_read()
417 n->startbit, MAPSIZE); in ebitmap_read()
420 if (n->startbit > (e->highbit - MAPSIZE)) { in ebitmap_read()
423 n->startbit, (e->highbit - MAPSIZE)); in ebitmap_read()
436 n->startbit); in ebitmap_read()
440 if (n->startbit <= l->startbit) { in ebitmap_read()
443 n->startbit, l->startbit); in ebitmap_read()