Searched refs:timer_ctx (Results 1 – 2 of 2) sorted by relevance
23 struct adf_timer *timer_ctx; in work_handler() local26 timer_ctx = container_of(to_delayed_work(work), struct adf_timer, work_ctx); in work_handler()27 accel_dev = timer_ctx->accel_dev; in work_handler()29 adf_misc_wq_queue_delayed_work(&timer_ctx->work_ctx, in work_handler()32 time_periods = div_u64(ktime_ms_delta(ktime_get_real(), timer_ctx->initial_ktime), in work_handler()41 struct adf_timer *timer_ctx; in adf_gen4_timer_start() local43 timer_ctx = kzalloc(sizeof(*timer_ctx), GFP_KERNEL); in adf_gen4_timer_start()44 if (!timer_ctx) in adf_gen4_timer_start()47 timer_ctx->accel_dev = accel_dev; in adf_gen4_timer_start()48 accel_dev->timer = timer_ctx; in adf_gen4_timer_start()[all …]
41 static bool kvm_timer_irq_can_fire(struct arch_timer_context *timer_ctx);43 struct arch_timer_context *timer_ctx);44 static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx);256 static u64 kvm_counter_compute_delta(struct arch_timer_context *timer_ctx, in kvm_counter_compute_delta() argument259 u64 now = kvm_phys_timer_read() - timer_get_offset(timer_ctx); in kvm_counter_compute_delta()267 &timer_ctx->ns_frac); in kvm_counter_compute_delta()274 static u64 kvm_timer_compute_delta(struct arch_timer_context *timer_ctx) in kvm_timer_compute_delta() argument276 return kvm_counter_compute_delta(timer_ctx, timer_get_cval(timer_ctx)); in kvm_timer_compute_delta()279 static bool kvm_timer_irq_can_fire(struct arch_timer_context *timer_ctx) in kvm_timer_irq_can_fire() argument281 WARN_ON(timer_ctx && timer_ctx->loaded); in kvm_timer_irq_can_fire()[all …]