Lines Matching refs:last
43 *obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last); in hns_roce_bitmap_alloc()
52 bitmap->last = (*obj + 1); in hns_roce_bitmap_alloc()
53 if (bitmap->last == bitmap->max) in hns_roce_bitmap_alloc()
54 bitmap->last = 0; in hns_roce_bitmap_alloc()
84 bitmap->last, cnt, align - 1); in hns_roce_bitmap_alloc_range()
96 if (*obj == bitmap->last) { in hns_roce_bitmap_alloc_range()
97 bitmap->last = (*obj + cnt); in hns_roce_bitmap_alloc_range()
98 if (bitmap->last >= bitmap->max) in hns_roce_bitmap_alloc_range()
99 bitmap->last = 0; in hns_roce_bitmap_alloc_range()
124 bitmap->last = min(bitmap->last, obj); in hns_roce_bitmap_free_range()
138 bitmap->last = 0; in hns_roce_bitmap_init()