Lines Matching refs:dev
25 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_program_event() local
31 clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT_STOPPED); in tick_program_event()
32 dev->next_event = KTIME_MAX; in tick_program_event()
36 if (unlikely(clockevent_state_oneshot_stopped(dev))) { in tick_program_event()
41 clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT); in tick_program_event()
44 return clockevents_program_event(dev, expires, force); in tick_program_event()
52 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_resume_oneshot() local
54 clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT); in tick_resume_oneshot()
55 clockevents_program_event(dev, ktime_get(), true); in tick_resume_oneshot()
76 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot() local
78 if (!dev || !(dev->features & CLOCK_EVT_FEAT_ONESHOT) || in tick_switch_to_oneshot()
79 !tick_device_is_functional(dev)) { in tick_switch_to_oneshot()
82 if (!dev) { in tick_switch_to_oneshot()
85 if (!tick_device_is_functional(dev)) in tick_switch_to_oneshot()
86 pr_cont(" %s is not functional.\n", dev->name); in tick_switch_to_oneshot()
89 dev->name); in tick_switch_to_oneshot()
95 dev->event_handler = handler; in tick_switch_to_oneshot()
96 clockevents_switch_state(dev, CLOCK_EVT_STATE_ONESHOT); in tick_switch_to_oneshot()