Lines Matching refs:bc
58 static void tick_broadcast_start_periodic(struct clock_event_device *bc)
60 if (bc)
61 tick_setup_periodic(bc, 1);
209 struct clock_event_device *bc, *dev;
219 bc = tick_broadcast_device.evtdev;
257 clockevents_shutdown(bc);
260 tick_broadcast_start_periodic(bc);
262 tick_broadcast_setup_oneshot(bc);
297 struct clock_event_device *bc;
303 bc = tick_broadcast_device.evtdev;
307 if (bc && cpumask_empty(tick_get_broadcast_mask()))
308 clockevents_shutdown(bc);
316 struct clock_event_device *bc;
321 bc = tick_broadcast_device.evtdev;
322 if (bc)
323 clockevents_shutdown(bc);
330 struct clock_event_device *bc;
336 bc = tick_broadcast_device.evtdev;
338 if (bc) {
339 clockevents_set_mode(bc, CLOCK_EVT_MODE_RESUME);
344 tick_broadcast_start_periodic(bc);
349 broadcast = tick_resume_broadcast_oneshot(bc);
373 struct clock_event_device *bc = tick_broadcast_device.evtdev;
375 return tick_dev_program_event(bc, expires, force);
378 int tick_resume_broadcast_oneshot(struct clock_event_device *bc)
380 clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
453 struct clock_event_device *bc, *dev;
467 bc = tick_broadcast_device.evtdev;
479 if (dev->next_event.tv64 < bc->next_event.tv64)
522 void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
525 if (bc->event_handler != tick_handle_oneshot_broadcast) {
526 int was_periodic = bc->mode == CLOCK_EVT_MODE_PERIODIC;
529 bc->event_handler = tick_handle_oneshot_broadcast;
530 clockevents_set_mode(bc, CLOCK_EVT_MODE_ONESHOT);
552 bc->next_event.tv64 = KTIME_MAX;
561 struct clock_event_device *bc;
567 bc = tick_broadcast_device.evtdev;
568 if (bc)
569 tick_broadcast_setup_oneshot(bc);