Lines Matching refs:list
32 INIT_LIST_HEAD(&bmr->list); in xbitmap_set()
35 list_add_tail(&bmr->list, &bitmap->list); in xbitmap_set()
49 list_del(&bmr->list); in xbitmap_destroy()
59 INIT_LIST_HEAD(&bitmap->list); in xbitmap_init()
72 ap = container_of(a, struct xbitmap_range, list); in xbitmap_range_cmp()
73 bp = container_of(b, struct xbitmap_range, list); in xbitmap_range_cmp()
112 if (list_empty(&bitmap->list) || list_empty(&sub->list)) in xbitmap_disunion()
114 ASSERT(!list_empty(&sub->list)); in xbitmap_disunion()
116 list_sort(NULL, &bitmap->list, xbitmap_range_cmp); in xbitmap_disunion()
117 list_sort(NULL, &sub->list, xbitmap_range_cmp); in xbitmap_disunion()
127 sub_br = list_first_entry(&sub->list, struct xbitmap_range, in xbitmap_disunion()
128 list); in xbitmap_disunion()
129 lp = bitmap->list.next; in xbitmap_disunion()
130 while (lp != &bitmap->list) { in xbitmap_disunion()
131 br = list_entry(lp, struct xbitmap_range, list); in xbitmap_disunion()
138 if (list_is_last(&sub_br->list, &sub->list)) in xbitmap_disunion()
140 sub_br = list_next_entry(sub_br, list); in xbitmap_disunion()
176 list_del(&br->list); in xbitmap_disunion()
190 INIT_LIST_HEAD(&new_br->list); in xbitmap_disunion()
193 list_add(&new_br->list, &br->list); in xbitmap_disunion()