Lines Matching refs:sp
27 struct shadow_ptr *sp, *tmp_sp; in free_ptr_list() local
29 list_for_each_entry_safe(sp, tmp_sp, &ptr_list, list) { in free_ptr_list()
30 list_del(&sp->list); in free_ptr_list()
31 kfree(sp); in free_ptr_list()
37 struct shadow_ptr *sp; in ptr_id() local
40 list_for_each_entry(sp, &ptr_list, list) { in ptr_id()
41 if (sp->ptr == ptr) in ptr_id()
42 return sp->id; in ptr_id()
45 sp = kmalloc(sizeof(*sp), GFP_ATOMIC); in ptr_id()
46 if (!sp) in ptr_id()
48 sp->ptr = ptr; in ptr_id()
49 sp->id = count++; in ptr_id()
51 list_add(&sp->list, &ptr_list); in ptr_id()
53 return sp->id; in ptr_id()
159 struct shadow_ptr sp; member