Lines Matching refs:ofs
44 unsigned int ofs; in ebitmap_start_positive() local
48 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_start_positive()
49 if ( ofs < EBITMAP_SIZE ) in ebitmap_start_positive()
50 return (*n)->startbit + ofs; in ebitmap_start_positive()
64 unsigned int ofs; in ebitmap_next_positive() local
66 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); in ebitmap_next_positive()
67 if ( ofs < EBITMAP_SIZE ) in ebitmap_next_positive()
68 return ofs + (*n)->startbit; in ebitmap_next_positive()
72 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_next_positive()
73 if ( ofs < EBITMAP_SIZE ) in ebitmap_next_positive()
74 return ofs + (*n)->startbit; in ebitmap_next_positive()
88 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_get_bit() local
91 if ( (n->maps[index] & (EBITMAP_BIT << ofs)) ) in ebitmap_node_get_bit()
100 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_set_bit() local
103 n->maps[index] |= (EBITMAP_BIT << ofs); in ebitmap_node_set_bit()
110 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_clr_bit() local
113 n->maps[index] &= ~(EBITMAP_BIT << ofs); in ebitmap_node_clr_bit()