• Home
  • Raw
  • Download

Lines Matching refs:e

246 int ebitmap_get_bit(struct ebitmap *e, unsigned long bit)  in ebitmap_get_bit()  argument
250 if (e->highbit < bit) in ebitmap_get_bit()
253 n = e->node; in ebitmap_get_bit()
263 int ebitmap_set_bit(struct ebitmap *e, unsigned long bit, int value) in ebitmap_set_bit() argument
268 n = e->node; in ebitmap_set_bit()
289 e->highbit = prev->startbit in ebitmap_set_bit()
292 e->highbit = 0; in ebitmap_set_bit()
297 e->node = n->next; in ebitmap_set_bit()
318 e->highbit = new->startbit + EBITMAP_SIZE; in ebitmap_set_bit()
324 new->next = e->node; in ebitmap_set_bit()
325 e->node = new; in ebitmap_set_bit()
331 void ebitmap_destroy(struct ebitmap *e) in ebitmap_destroy() argument
335 if (!e) in ebitmap_destroy()
338 n = e->node; in ebitmap_destroy()
345 e->highbit = 0; in ebitmap_destroy()
346 e->node = NULL; in ebitmap_destroy()
350 int ebitmap_read(struct ebitmap *e, void *fp) in ebitmap_read() argument
358 ebitmap_init(e); in ebitmap_read()
365 e->highbit = le32_to_cpu(buf[1]); in ebitmap_read()
371 mapunit, BITS_PER_U64, e->highbit); in ebitmap_read()
376 e->highbit += EBITMAP_SIZE - 1; in ebitmap_read()
377 e->highbit -= (e->highbit % EBITMAP_SIZE); in ebitmap_read()
379 if (!e->highbit) { in ebitmap_read()
380 e->node = NULL; in ebitmap_read()
398 if (startbit > e->highbit - mapunit) { in ebitmap_read()
401 startbit, (e->highbit - mapunit)); in ebitmap_read()
419 e->node = tmp; in ebitmap_read()
448 ebitmap_destroy(e); in ebitmap_read()
452 int ebitmap_write(struct ebitmap *e, void *fp) in ebitmap_write() argument
465 ebitmap_for_each_positive_bit(e, n, bit) { in ebitmap_write()
481 ebitmap_for_each_positive_bit(e, n, bit) { in ebitmap_write()