Lines Matching defs:bit
9 * an explicitly specified starting bit position within
66 unsigned int bit)
70 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1);
82 #define EBITMAP_NODE_INDEX(node, bit) \
83 (((bit) - (node)->startbit) / EBITMAP_UNIT_SIZE)
84 #define EBITMAP_NODE_OFFSET(node, bit) \
85 (((bit) - (node)->startbit) % EBITMAP_UNIT_SIZE)
88 unsigned int bit)
90 unsigned int index = EBITMAP_NODE_INDEX(n, bit);
91 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit);
100 unsigned int bit)
102 unsigned int index = EBITMAP_NODE_INDEX(n, bit);
103 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit);
110 unsigned int bit)
112 unsigned int index = EBITMAP_NODE_INDEX(n, bit);
113 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit);
119 #define ebitmap_for_each_positive_bit(e, n, bit) \
120 for (bit = ebitmap_start_positive(e, &n); \
121 bit < ebitmap_length(e); \
122 bit = ebitmap_next_positive(e, &n, bit)) \
127 int ebitmap_get_bit(struct ebitmap *e, unsigned long bit);
128 int ebitmap_set_bit(struct ebitmap *e, unsigned long bit, int value);