Lines Matching refs:t

766 static void __tasklet_schedule_common(struct tasklet_struct *t,  in __tasklet_schedule_common()  argument
775 t->next = NULL; in __tasklet_schedule_common()
776 *head->tail = t; in __tasklet_schedule_common()
777 head->tail = &(t->next); in __tasklet_schedule_common()
782 void __tasklet_schedule(struct tasklet_struct *t) in __tasklet_schedule() argument
784 __tasklet_schedule_common(t, &tasklet_vec, in __tasklet_schedule()
789 void __tasklet_hi_schedule(struct tasklet_struct *t) in __tasklet_hi_schedule() argument
791 __tasklet_schedule_common(t, &tasklet_hi_vec, in __tasklet_hi_schedule()
796 static bool tasklet_clear_sched(struct tasklet_struct *t) in tasklet_clear_sched() argument
798 if (test_and_clear_wake_up_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_clear_sched()
802 t->use_callback ? "callback" : "func", in tasklet_clear_sched()
803 t->use_callback ? (void *)t->callback : (void *)t->func); in tasklet_clear_sched()
820 struct tasklet_struct *t = list; in tasklet_action_common() local
824 if (tasklet_trylock(t)) { in tasklet_action_common()
825 if (!atomic_read(&t->count)) { in tasklet_action_common()
826 if (tasklet_clear_sched(t)) { in tasklet_action_common()
827 if (t->use_callback) { in tasklet_action_common()
828 trace_tasklet_entry(t, t->callback); in tasklet_action_common()
829 t->callback(t); in tasklet_action_common()
830 trace_tasklet_exit(t, t->callback); in tasklet_action_common()
832 trace_tasklet_entry(t, t->func); in tasklet_action_common()
833 t->func(t->data); in tasklet_action_common()
834 trace_tasklet_exit(t, t->func); in tasklet_action_common()
837 tasklet_unlock(t); in tasklet_action_common()
840 tasklet_unlock(t); in tasklet_action_common()
844 t->next = NULL; in tasklet_action_common()
845 *tl_head->tail = t; in tasklet_action_common()
846 tl_head->tail = &t->next; in tasklet_action_common()
864 void tasklet_setup(struct tasklet_struct *t, in tasklet_setup() argument
867 t->next = NULL; in tasklet_setup()
868 t->state = 0; in tasklet_setup()
869 atomic_set(&t->count, 0); in tasklet_setup()
870 t->callback = callback; in tasklet_setup()
871 t->use_callback = true; in tasklet_setup()
872 t->data = 0; in tasklet_setup()
876 void tasklet_init(struct tasklet_struct *t, in tasklet_init() argument
879 t->next = NULL; in tasklet_init()
880 t->state = 0; in tasklet_init()
881 atomic_set(&t->count, 0); in tasklet_init()
882 t->func = func; in tasklet_init()
883 t->use_callback = false; in tasklet_init()
884 t->data = data; in tasklet_init()
893 void tasklet_unlock_spin_wait(struct tasklet_struct *t) in tasklet_unlock_spin_wait() argument
895 while (test_bit(TASKLET_STATE_RUN, &(t)->state)) { in tasklet_unlock_spin_wait()
914 void tasklet_kill(struct tasklet_struct *t) in tasklet_kill() argument
919 wait_on_bit_lock(&t->state, TASKLET_STATE_SCHED, TASK_UNINTERRUPTIBLE); in tasklet_kill()
921 tasklet_unlock_wait(t); in tasklet_kill()
922 tasklet_clear_sched(t); in tasklet_kill()
927 void tasklet_unlock(struct tasklet_struct *t) in tasklet_unlock() argument
929 clear_and_wake_up_bit(TASKLET_STATE_RUN, &t->state); in tasklet_unlock()
933 void tasklet_unlock_wait(struct tasklet_struct *t) in tasklet_unlock_wait() argument
935 wait_on_bit(&t->state, TASKLET_STATE_RUN, TASK_UNINTERRUPTIBLE); in tasklet_unlock_wait()