Lines Matching refs:ofs
50 unsigned int ofs; in ebitmap_start_positive() local
53 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_start_positive()
54 if (ofs < EBITMAP_SIZE) in ebitmap_start_positive()
55 return (*n)->startbit + ofs; in ebitmap_start_positive()
69 unsigned int ofs; in ebitmap_next_positive() local
71 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); in ebitmap_next_positive()
72 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
73 return ofs + (*n)->startbit; in ebitmap_next_positive()
76 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_next_positive()
77 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
78 return ofs + (*n)->startbit; in ebitmap_next_positive()
92 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_get_bit() local
95 if ((n->maps[index] & (EBITMAP_BIT << ofs))) in ebitmap_node_get_bit()
104 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_set_bit() local
107 n->maps[index] |= (EBITMAP_BIT << ofs); in ebitmap_node_set_bit()
114 unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); in ebitmap_node_clr_bit() local
117 n->maps[index] &= ~(EBITMAP_BIT << ofs); in ebitmap_node_clr_bit()