Lines Matching refs:ofs
49 unsigned int ofs; in ebitmap_start_positive() local
52 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_start_positive()
53 if (ofs < EBITMAP_SIZE) in ebitmap_start_positive()
54 return (*n)->startbit + ofs; in ebitmap_start_positive()
68 unsigned int ofs; in ebitmap_next_positive() local
70 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); in ebitmap_next_positive()
71 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
72 return ofs + (*n)->startbit; in ebitmap_next_positive()
75 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_next_positive()
76 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
77 return ofs + (*n)->startbit; in ebitmap_next_positive()
91 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_get_bit() local
94 if ((n->maps[index] & (EBITMAP_BIT << ofs))) in ebitmap_node_get_bit()
103 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_set_bit() local
106 n->maps[index] |= (EBITMAP_BIT << ofs); in ebitmap_node_set_bit()
113 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_clr_bit() local
116 n->maps[index] &= ~(EBITMAP_BIT << ofs); in ebitmap_node_clr_bit()