Lines Matching refs:cur
15 struct id_range *cur; in dump_list() local
18 list_for_each_entry(cur, head, list) { in dump_list()
19 pr_debug("Range %d->%d\n", cur->start, cur->end); in dump_list()
28 struct id_range *cur, *new; in range_alloc() local
37 list_for_each_entry(cur, head, list) { in range_alloc()
38 if ((cur->start - last_end) > size) in range_alloc()
40 last_end = cur->end; in range_alloc()
41 pos = &cur->list; in range_alloc()
65 struct id_range *cur, *tmp; in range_free() local
67 list_for_each_entry_safe(cur, tmp, head, list) { in range_free()
68 if (cur->start == start && cur->end == (start + size - 1)) { in range_free()
70 list_del(&cur->list); in range_free()
71 kfree(cur); in range_free()