• Home
  • Raw
  • Download

Lines Matching refs:e

261 int ebitmap_get_bit(struct ebitmap *e, unsigned long bit)  in ebitmap_get_bit()  argument
265 if (e->highbit < bit) in ebitmap_get_bit()
268 n = e->node; in ebitmap_get_bit()
278 int ebitmap_set_bit(struct ebitmap *e, unsigned long bit, int value) in ebitmap_set_bit() argument
283 n = e->node; in ebitmap_set_bit()
304 e->highbit = prev->startbit in ebitmap_set_bit()
307 e->highbit = 0; in ebitmap_set_bit()
312 e->node = n->next; in ebitmap_set_bit()
333 e->highbit = new->startbit + EBITMAP_SIZE; in ebitmap_set_bit()
339 new->next = e->node; in ebitmap_set_bit()
340 e->node = new; in ebitmap_set_bit()
346 void ebitmap_destroy(struct ebitmap *e) in ebitmap_destroy() argument
350 if (!e) in ebitmap_destroy()
353 n = e->node; in ebitmap_destroy()
360 e->highbit = 0; in ebitmap_destroy()
361 e->node = NULL; in ebitmap_destroy()
365 int ebitmap_read(struct ebitmap *e, void *fp) in ebitmap_read() argument
375 ebitmap_init(e); in ebitmap_read()
382 e->highbit = le32_to_cpu(buf[1]); in ebitmap_read()
388 mapunit, BITS_PER_U64, e->highbit); in ebitmap_read()
393 e->highbit += EBITMAP_SIZE - 1; in ebitmap_read()
394 e->highbit -= (e->highbit % EBITMAP_SIZE); in ebitmap_read()
396 if (!e->highbit) { in ebitmap_read()
397 e->node = NULL; in ebitmap_read()
401 if (e->highbit && !count) in ebitmap_read()
418 if (startbit > e->highbit - mapunit) { in ebitmap_read()
421 startbit, (e->highbit - mapunit)); in ebitmap_read()
438 e->node = tmp; in ebitmap_read()
467 ebitmap_destroy(e); in ebitmap_read()
471 int ebitmap_write(struct ebitmap *e, void *fp) in ebitmap_write() argument
484 ebitmap_for_each_positive_bit(e, n, bit) { in ebitmap_write()
500 ebitmap_for_each_positive_bit(e, n, bit) { in ebitmap_write()
546 u32 ebitmap_hash(const struct ebitmap *e, u32 hash) in ebitmap_hash() argument
551 hash = jhash_1word(e->highbit, hash); in ebitmap_hash()
552 for (node = e->node; node; node = node->next) { in ebitmap_hash()