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_timer_start() local43 timer_ctx = kzalloc_obj(*timer_ctx); in adf_timer_start()44 if (!timer_ctx) in adf_timer_start()47 timer_ctx->accel_dev = accel_dev; in adf_timer_start()48 accel_dev->timer = timer_ctx; in adf_timer_start()[all …]
42 static bool kvm_timer_irq_can_fire(struct arch_timer_context *timer_ctx);44 struct arch_timer_context *timer_ctx);45 static bool kvm_timer_should_fire(struct arch_timer_context *timer_ctx);231 static u64 kvm_counter_compute_delta(struct arch_timer_context *timer_ctx, in kvm_counter_compute_delta() argument234 u64 now = kvm_phys_timer_read() - timer_get_offset(timer_ctx); in kvm_counter_compute_delta()242 &timer_ctx->ns_frac); in kvm_counter_compute_delta()249 static u64 kvm_timer_compute_delta(struct arch_timer_context *timer_ctx) in kvm_timer_compute_delta() argument251 return kvm_counter_compute_delta(timer_ctx, timer_get_cval(timer_ctx)); in kvm_timer_compute_delta()254 static bool kvm_timer_irq_can_fire(struct arch_timer_context *timer_ctx) in kvm_timer_irq_can_fire() argument256 WARN_ON(timer_ctx && timer_ctx->loaded); in kvm_timer_irq_can_fire()[all …]