Lines Matching refs:t
38 unsigned size, t; in get_a_bus_req() local
43 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in get_a_bus_req()
44 size -= t; in get_a_bus_req()
45 next += t; in get_a_bus_req()
82 unsigned size, t; in get_a_bus_drop() local
87 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); in get_a_bus_drop()
88 size -= t; in get_a_bus_drop()
89 next += t; in get_a_bus_drop()
123 unsigned size, t; in get_b_bus_req() local
128 t = scnprintf(next, size, "%d\n", ci->fsm.b_bus_req); in get_b_bus_req()
129 size -= t; in get_b_bus_req()
130 next += t; in get_b_bus_req()
211 static void ci_otg_add_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_add_timer() argument
215 if (t >= NUM_OTG_FSM_TIMERS) in ci_otg_add_timer()
219 timer_sec = otg_timer_ms[t] / MSEC_PER_SEC; in ci_otg_add_timer()
220 timer_nsec = (otg_timer_ms[t] % MSEC_PER_SEC) * NSEC_PER_MSEC; in ci_otg_add_timer()
221 ci->hr_timeouts[t] = ktime_add(ktime_get(), in ci_otg_add_timer()
223 ci->enabled_otg_timer_bits |= (1 << t); in ci_otg_add_timer()
226 ci->hr_timeouts[t].tv64)) { in ci_otg_add_timer()
227 ci->next_otg_timer = t; in ci_otg_add_timer()
229 ci->hr_timeouts[t], NSEC_PER_MSEC, in ci_otg_add_timer()
238 static void ci_otg_del_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_del_timer() argument
243 if ((t >= NUM_OTG_FSM_TIMERS) || in ci_otg_del_timer()
244 !(ci->enabled_otg_timer_bits & (1 << t))) in ci_otg_del_timer()
248 ci->enabled_otg_timer_bits &= ~(1 << t); in ci_otg_del_timer()
249 if (ci->next_otg_timer == t) { in ci_otg_del_timer()
366 static enum hrtimer_restart ci_otg_hrtimer_func(struct hrtimer *t) in ci_otg_hrtimer_func() argument
368 struct ci_hdrc *ci = container_of(t, struct ci_hdrc, otg_fsm_hrtimer); in ci_otg_hrtimer_func()
419 static void ci_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) in ci_otg_fsm_add_timer() argument
423 if (t < NUM_OTG_FSM_TIMERS) in ci_otg_fsm_add_timer()
424 ci_otg_add_timer(ci, t); in ci_otg_fsm_add_timer()
428 static void ci_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) in ci_otg_fsm_del_timer() argument
432 if (t < NUM_OTG_FSM_TIMERS) in ci_otg_fsm_del_timer()
433 ci_otg_del_timer(ci, t); in ci_otg_fsm_del_timer()