Lines Matching defs:pos
35 struct list_head *pos;
45 list_for_each(pos, &vm->unused) {
46 entry = list_entry(pos, struct ct_vm_block, list);
50 if (pos == &vm->unused)
81 struct list_head *pos, *pre;
89 list_for_each(pos, &vm->unused) {
90 entry = list_entry(pos, struct ct_vm_block, list);
94 if (pos == &vm->unused) {
103 __list_add(&block->list, pos->prev, pos);
108 pos = &entry->list;
109 pre = pos->prev;
111 entry = list_entry(pos, struct ct_vm_block, list);
117 list_del(pos);
119 pos = pre;
120 pre = pos->prev;
224 struct list_head *pos;
229 pos = vm->used.next;
230 list_del(pos);
231 entry = list_entry(pos, struct ct_vm_block, list);
235 pos = vm->unused.next;
236 list_del(pos);
237 entry = list_entry(pos, struct ct_vm_block, list);