Lines Matching refs:tsp
117 static void reset_transit_state(struct transit_state *tsp) in reset_transit_state() argument
119 tsp->async = false; in reset_transit_state()
120 tsp->retval = 0; in reset_transit_state()
121 tsp->notify = NULL; in reset_transit_state()
122 tsp->srv = NULL; in reset_transit_state()
127 struct transit_state *tsp) in run_transit() argument
129 if (tsp->async) { in run_transit()
130 TC_PRINT("%s async\n", tsp->tag); in run_transit()
131 tsp->notify = notify; in run_transit()
132 tsp->srv = srv; in run_transit()
134 TC_PRINT("%s notify %d\n", tsp->tag, tsp->retval); in run_transit()
135 notify(srv, tsp->retval); in run_transit()
139 static void notify(struct transit_state *tsp) in notify() argument
141 TC_PRINT("%s settle %d %p\n", tsp->tag, tsp->retval, tsp->notify); in notify()
142 tsp->notify(tsp->srv, tsp->retval); in notify()
143 tsp->notify = NULL; in notify()
144 tsp->srv = NULL; in notify()
179 struct transit_state *tsp = k_timer_user_data_get(timer); in isr_notify() local
181 TC_PRINT("ISR NOTIFY %s %d\n", tsp->tag, k_is_in_isr()); in isr_notify()
182 notify(tsp); in isr_notify()