Lines Matching refs:t
35 unsigned size, t; in a_bus_req_show() local
40 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in a_bus_req_show()
41 size -= t; in a_bus_req_show()
42 next += t; in a_bus_req_show()
84 unsigned size, t; in a_bus_drop_show() local
89 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_drop); in a_bus_drop_show()
90 size -= t; in a_bus_drop_show()
91 next += t; in a_bus_drop_show()
124 unsigned size, t; in b_bus_req_show() local
129 t = scnprintf(next, size, "%d\n", ci->fsm.b_bus_req); in b_bus_req_show()
130 size -= t; in b_bus_req_show()
131 next += t; in b_bus_req_show()
219 static void ci_otg_add_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_add_timer() argument
223 if (t >= NUM_OTG_FSM_TIMERS) in ci_otg_add_timer()
227 timer_sec = otg_timer_ms[t] / MSEC_PER_SEC; in ci_otg_add_timer()
228 timer_nsec = (otg_timer_ms[t] % MSEC_PER_SEC) * NSEC_PER_MSEC; in ci_otg_add_timer()
229 ci->hr_timeouts[t] = ktime_add(ktime_get(), in ci_otg_add_timer()
231 ci->enabled_otg_timer_bits |= (1 << t); in ci_otg_add_timer()
234 ci->hr_timeouts[t])) { in ci_otg_add_timer()
235 ci->next_otg_timer = t; in ci_otg_add_timer()
237 ci->hr_timeouts[t], NSEC_PER_MSEC, in ci_otg_add_timer()
246 static void ci_otg_del_timer(struct ci_hdrc *ci, enum otg_fsm_timer t) in ci_otg_del_timer() argument
251 if ((t >= NUM_OTG_FSM_TIMERS) || in ci_otg_del_timer()
252 !(ci->enabled_otg_timer_bits & (1 << t))) in ci_otg_del_timer()
256 ci->enabled_otg_timer_bits &= ~(1 << t); in ci_otg_del_timer()
257 if (ci->next_otg_timer == t) { in ci_otg_del_timer()
383 static enum hrtimer_restart ci_otg_hrtimer_func(struct hrtimer *t) in ci_otg_hrtimer_func() argument
385 struct ci_hdrc *ci = container_of(t, struct ci_hdrc, otg_fsm_hrtimer); in ci_otg_hrtimer_func()
436 static void ci_otg_fsm_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) in ci_otg_fsm_add_timer() argument
440 if (t < NUM_OTG_FSM_TIMERS) in ci_otg_fsm_add_timer()
441 ci_otg_add_timer(ci, t); in ci_otg_fsm_add_timer()
445 static void ci_otg_fsm_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer t) in ci_otg_fsm_del_timer() argument
449 if (t < NUM_OTG_FSM_TIMERS) in ci_otg_fsm_del_timer()
450 ci_otg_del_timer(ci, t); in ci_otg_fsm_del_timer()