Lines Matching refs:t
624 static inline int tasklet_trylock(struct tasklet_struct *t) in tasklet_trylock() argument
626 return !test_and_set_bit(TASKLET_STATE_RUN, &(t)->state); in tasklet_trylock()
629 static inline void tasklet_unlock(struct tasklet_struct *t) in tasklet_unlock() argument
632 clear_bit(TASKLET_STATE_RUN, &(t)->state); in tasklet_unlock()
635 static inline void tasklet_unlock_wait(struct tasklet_struct *t) in tasklet_unlock_wait() argument
637 while (test_bit(TASKLET_STATE_RUN, &(t)->state)) { barrier(); } in tasklet_unlock_wait()
640 #define tasklet_trylock(t) 1 argument
641 #define tasklet_unlock_wait(t) do { } while (0) argument
642 #define tasklet_unlock(t) do { } while (0) argument
645 extern void __tasklet_schedule(struct tasklet_struct *t);
647 static inline void tasklet_schedule(struct tasklet_struct *t) in tasklet_schedule() argument
649 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_schedule()
650 __tasklet_schedule(t); in tasklet_schedule()
653 extern void __tasklet_hi_schedule(struct tasklet_struct *t);
655 static inline void tasklet_hi_schedule(struct tasklet_struct *t) in tasklet_hi_schedule() argument
657 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_schedule()
658 __tasklet_hi_schedule(t); in tasklet_hi_schedule()
661 static inline void tasklet_disable_nosync(struct tasklet_struct *t) in tasklet_disable_nosync() argument
663 atomic_inc(&t->count); in tasklet_disable_nosync()
667 static inline void tasklet_disable(struct tasklet_struct *t) in tasklet_disable() argument
669 tasklet_disable_nosync(t); in tasklet_disable()
670 tasklet_unlock_wait(t); in tasklet_disable()
674 static inline void tasklet_enable(struct tasklet_struct *t) in tasklet_enable() argument
677 atomic_dec(&t->count); in tasklet_enable()
680 extern void tasklet_kill(struct tasklet_struct *t);
681 extern void tasklet_kill_immediate(struct tasklet_struct *t, unsigned int cpu);
682 extern void tasklet_init(struct tasklet_struct *t,