• Home
  • Raw
  • Download

Lines Matching refs:adev

71 static inline void __iomem *adev_virt_addr(struct apbt_dev *adev)  in adev_virt_addr()  argument
73 return apbt_virt_address + adev->num * APBTMRS_REG_SIZE; in adev_virt_addr()
149 struct apbt_dev *adev = &__get_cpu_var(cpu_apbt_dev); in apbt_clockevent_register() local
158 adev->num = smp_processor_id(); in apbt_clockevent_register()
159 adev->timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", in apbt_clockevent_register()
162 adev_virt_addr(adev), 0, apbt_freq); in apbt_clockevent_register()
164 adev->timer->eoi = NULL; in apbt_clockevent_register()
167 global_clock_event = &adev->timer->ced; in apbt_clockevent_register()
172 dw_apb_clockevent_register(adev->timer); in apbt_clockevent_register()
180 static void apbt_setup_irq(struct apbt_dev *adev) in apbt_setup_irq() argument
183 if (adev->irq == 0) in apbt_setup_irq()
186 irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT); in apbt_setup_irq()
187 irq_set_affinity(adev->irq, cpumask_of(adev->cpu)); in apbt_setup_irq()
189 __irq_set_handler(adev->irq, handle_edge_irq, 0, "edge"); in apbt_setup_irq()
195 struct apbt_dev *adev; in apbt_setup_secondary_clock() local
203 adev = &__get_cpu_var(cpu_apbt_dev); in apbt_setup_secondary_clock()
204 if (!adev->timer) { in apbt_setup_secondary_clock()
205 adev->timer = dw_apb_clockevent_init(cpu, adev->name, in apbt_setup_secondary_clock()
206 APBT_CLOCKEVENT_RATING, adev_virt_addr(adev), in apbt_setup_secondary_clock()
207 adev->irq, apbt_freq); in apbt_setup_secondary_clock()
208 adev->timer->eoi = NULL; in apbt_setup_secondary_clock()
210 dw_apb_clockevent_resume(adev->timer); in apbt_setup_secondary_clock()
214 cpu, adev->name, adev->cpu); in apbt_setup_secondary_clock()
216 apbt_setup_irq(adev); in apbt_setup_secondary_clock()
217 dw_apb_clockevent_register(adev->timer); in apbt_setup_secondary_clock()
236 struct apbt_dev *adev = &per_cpu(cpu_apbt_dev, cpu); in apbt_cpuhp_notify() local
240 dw_apb_clockevent_pause(adev->timer); in apbt_cpuhp_notify()
243 } else if (adev) { in apbt_cpuhp_notify()
245 dw_apb_clockevent_stop(adev->timer); in apbt_cpuhp_notify()
315 struct apbt_dev *adev; in apbt_time_init() local
360 adev = &per_cpu(cpu_apbt_dev, i); in apbt_time_init()
361 adev->num = i; in apbt_time_init()
362 adev->cpu = i; in apbt_time_init()
365 adev->irq = p_mtmr->irq; in apbt_time_init()
368 snprintf(adev->name, sizeof(adev->name) - 1, "apbt%d", i); in apbt_time_init()