Lines Matching refs:td

166 static void tick_setup_device(struct tick_device *td,  in tick_setup_device()  argument
176 if (!td->evtdev) { in tick_setup_device()
193 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
195 handler = td->evtdev->event_handler; in tick_setup_device()
196 next_event = td->evtdev->next_event; in tick_setup_device()
197 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device()
200 td->evtdev = newdev; in tick_setup_device()
219 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device()
227 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement() local
230 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
231 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
292 struct tick_device *td; in tick_check_new_device() local
299 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device()
300 curdev = td->evtdev; in tick_check_new_device()
323 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
361 struct tick_device *td = &per_cpu(tick_cpu_device, cpu); in tick_shutdown() local
362 struct clock_event_device *dev = td->evtdev; in tick_shutdown()
364 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown()
374 td->evtdev = NULL; in tick_shutdown()
388 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_suspend_local() local
390 clockevents_shutdown(td->evtdev); in tick_suspend_local()
402 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_resume_local() local
405 clockevents_tick_resume(td->evtdev); in tick_resume_local()
407 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_resume_local()
408 tick_setup_periodic(td->evtdev, 0); in tick_resume_local()