Lines Matching refs:hpet_dev

46 struct hpet_dev {  struct
55 inline struct hpet_dev *EVT_TO_HPET_DEV(struct clock_event_device *evtdev) in EVT_TO_HPET_DEV() argument
57 return container_of(evtdev, struct hpet_dev, evt); in EVT_TO_HPET_DEV()
359 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_set_mode()
424 static DEFINE_PER_CPU(struct hpet_dev *, cpu_hpet_dev);
425 static struct hpet_dev *hpet_devs;
429 struct hpet_dev *hdev = data->handler_data; in hpet_msi_unmask()
440 struct hpet_dev *hdev = data->handler_data; in hpet_msi_mask()
449 void hpet_msi_write(struct hpet_dev *hdev, struct msi_msg *msg) in hpet_msi_write()
455 void hpet_msi_read(struct hpet_dev *hdev, struct msi_msg *msg) in hpet_msi_read()
465 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_set_mode()
472 struct hpet_dev *hdev = EVT_TO_HPET_DEV(evt); in hpet_msi_next_event()
485 static int hpet_assign_irq(struct hpet_dev *dev) in hpet_assign_irq()
503 struct hpet_dev *dev = (struct hpet_dev *)data; in hpet_interrupt_handler()
516 static int hpet_setup_irq(struct hpet_dev *dev) in hpet_setup_irq()
535 static void init_one_hpet_msi_clockevent(struct hpet_dev *hdev, int cpu) in init_one_hpet_msi_clockevent()
590 hpet_devs = kzalloc(sizeof(struct hpet_dev) * num_timers, GFP_KERNEL); in hpet_msi_capability_lookup()
597 struct hpet_dev *hdev = &hpet_devs[num_timers_used]; in hpet_msi_capability_lookup()
633 struct hpet_dev *hdev = &hpet_devs[i]; in hpet_reserve_msi_timers()
644 static struct hpet_dev *hpet_get_unused_timer(void) in hpet_get_unused_timer()
652 struct hpet_dev *hdev = &hpet_devs[i]; in hpet_get_unused_timer()
671 struct hpet_dev *hdev; in hpet_work()
689 struct hpet_dev *hdev = per_cpu(cpu_hpet_dev, cpu); in hpet_cpuhp_notify()