Lines Matching refs:td
205 static void tick_setup_device(struct tick_device *td, in tick_setup_device() argument
215 if (!td->evtdev) { in tick_setup_device()
244 td->mode = TICKDEV_MODE_PERIODIC; in tick_setup_device()
246 handler = td->evtdev->event_handler; in tick_setup_device()
247 next_event = td->evtdev->next_event; in tick_setup_device()
248 td->evtdev->event_handler = clockevents_handle_noop; in tick_setup_device()
251 td->evtdev = newdev; in tick_setup_device()
270 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_setup_device()
278 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_install_replacement() local
281 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
282 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
343 struct tick_device *td; in tick_check_new_device() local
347 td = &per_cpu(tick_cpu_device, cpu); in tick_check_new_device()
348 curdev = td->evtdev; in tick_check_new_device()
366 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_check_new_device()
391 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_broadcast_oneshot_control() local
393 if (!(td->evtdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_broadcast_oneshot_control()
422 struct tick_device *td = &per_cpu(tick_cpu_device, cpu); in tick_shutdown() local
423 struct clock_event_device *dev = td->evtdev; in tick_shutdown()
425 td->mode = TICKDEV_MODE_PERIODIC; in tick_shutdown()
434 td->evtdev = NULL; in tick_shutdown()
448 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_suspend_local() local
450 clockevents_shutdown(td->evtdev); in tick_suspend_local()
462 struct tick_device *td = this_cpu_ptr(&tick_cpu_device); in tick_resume_local() local
465 clockevents_tick_resume(td->evtdev); in tick_resume_local()
467 if (td->mode == TICKDEV_MODE_PERIODIC) in tick_resume_local()
468 tick_setup_periodic(td->evtdev, 0); in tick_resume_local()