Searched refs:wpos (Results 1 – 1 of 1) sorted by relevance
62 static size_t wnd_scan(const void *buf, size_t wbit, u32 wpos, u32 wend, in wnd_scan() argument66 while (wpos < wend) { in wnd_scan()69 u32 used = find_next_zero_bit_le(buf, wend, wpos); in wnd_scan()81 if (used > wpos) { in wnd_scan()82 wpos = used; in wnd_scan()94 end = wpos + to_alloc - *prev_tail; in wnd_scan()95 free_bits = find_next_bit_le(buf, min(end, wend), wpos); in wnd_scan()97 free_len = *prev_tail + free_bits - wpos; in wnd_scan()100 *b_pos = wbit + wpos - *prev_tail; in wnd_scan()105 return wbit + wpos - *prev_tail; in wnd_scan()[all …]