Lines Matching refs:d
97 struct dummy *d; in dummy_alloc() local
100 d = kzalloc(sizeof(*d), GFP_KERNEL); in dummy_alloc()
101 if (!d) in dummy_alloc()
104 d->jiffies_expire = jiffies + in dummy_alloc()
110 kfree(d); in dummy_alloc()
115 __func__, d, d->jiffies_expire); in dummy_alloc()
117 return d; in dummy_alloc()
120 static __used noinline void dummy_free(struct dummy *d) in dummy_free() argument
123 __func__, d, d->jiffies_expire); in dummy_free()
125 kfree(d); in dummy_free()
128 static __used noinline bool dummy_check(struct dummy *d, in dummy_check() argument
131 return time_after(jiffies, d->jiffies_expire); in dummy_check()
145 struct dummy *d; in alloc_work_func() local
147 d = dummy_alloc(); in alloc_work_func()
148 if (!d) in alloc_work_func()
152 list_add(&d->list, &dummy_list); in alloc_work_func()
170 struct dummy *d, *tmp; in cleanup_work_func() local
177 list_for_each_entry_safe(d, tmp, &dummy_list, list) { in cleanup_work_func()
180 if (dummy_check(d, j)) { in cleanup_work_func()
181 list_del(&d->list); in cleanup_work_func()
182 dummy_free(d); in cleanup_work_func()
203 struct dummy *d, *tmp; in livepatch_shadow_mod_exit() local
210 list_for_each_entry_safe(d, tmp, &dummy_list, list) { in livepatch_shadow_mod_exit()
211 list_del(&d->list); in livepatch_shadow_mod_exit()
212 dummy_free(d); in livepatch_shadow_mod_exit()