Lines Matching full:trigger
9 * Use trigger to model operations which need to be executed when
22 * a trigger. is_hit means the event already happen; is_ready means the
23 * trigger is waiting for the event.
26 struct trigger { struct
38 WARN_ONCE(t->state != exp, "trigger '%s' state transist error: %d in %s()\n", \ argument
41 static inline bool trigger_is_available(struct trigger *t) in trigger_is_available()
46 static inline bool trigger_is_error(struct trigger *t) in trigger_is_error()
51 static inline void trigger_on(struct trigger *t) in trigger_on()
57 static inline void trigger_ready(struct trigger *t) in trigger_ready()
64 static inline void trigger_hit(struct trigger *t) in trigger_hit()
72 static inline void trigger_off(struct trigger *t) in trigger_off()
79 static inline void trigger_error(struct trigger *t) in trigger_error()
84 static inline bool trigger_is_ready(struct trigger *t) in trigger_is_ready()
89 static inline bool trigger_is_hit(struct trigger *t) in trigger_is_hit()
95 struct trigger n = {.state = TRIGGER_OFF, .name = #n}