Lines Matching refs:t
152 void fastcall __tasklet_schedule(struct tasklet_struct *t) in __tasklet_schedule() argument
158 t->next = tasklet_vec[cpu].list; in __tasklet_schedule()
159 tasklet_vec[cpu].list = t; in __tasklet_schedule()
164 void fastcall __tasklet_hi_schedule(struct tasklet_struct *t) in __tasklet_hi_schedule() argument
170 t->next = tasklet_hi_vec[cpu].list; in __tasklet_hi_schedule()
171 tasklet_hi_vec[cpu].list = t; in __tasklet_hi_schedule()
187 struct tasklet_struct *t = list; in tasklet_action() local
191 if (tasklet_trylock(t)) { in tasklet_action()
192 if (!atomic_read(&t->count)) { in tasklet_action()
193 if (!test_and_clear_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_action()
195 t->func(t->data); in tasklet_action()
196 tasklet_unlock(t); in tasklet_action()
199 tasklet_unlock(t); in tasklet_action()
203 t->next = tasklet_vec[cpu].list; in tasklet_action()
204 tasklet_vec[cpu].list = t; in tasklet_action()
221 struct tasklet_struct *t = list; in tasklet_hi_action() local
225 if (tasklet_trylock(t)) { in tasklet_hi_action()
226 if (!atomic_read(&t->count)) { in tasklet_hi_action()
227 if (!test_and_clear_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_action()
229 t->func(t->data); in tasklet_hi_action()
230 tasklet_unlock(t); in tasklet_hi_action()
233 tasklet_unlock(t); in tasklet_hi_action()
237 t->next = tasklet_hi_vec[cpu].list; in tasklet_hi_action()
238 tasklet_hi_vec[cpu].list = t; in tasklet_hi_action()
245 void tasklet_init(struct tasklet_struct *t, in tasklet_init() argument
248 t->next = NULL; in tasklet_init()
249 t->state = 0; in tasklet_init()
250 atomic_set(&t->count, 0); in tasklet_init()
251 t->func = func; in tasklet_init()
252 t->data = data; in tasklet_init()
255 void tasklet_kill(struct tasklet_struct *t) in tasklet_kill() argument
260 while (test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) { in tasklet_kill()
264 } while (test_bit(TASKLET_STATE_SCHED, &t->state)); in tasklet_kill()
266 tasklet_unlock_wait(t); in tasklet_kill()
267 clear_bit(TASKLET_STATE_SCHED, &t->state); in tasklet_kill()