Home
last modified time | relevance | path

Searched refs:timer_ctx (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
Dadf_gen4_timer.c23 struct adf_timer *timer_ctx; in work_handler() local
26 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() local
43 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 …]
/linux-6.12.1/arch/arm64/kvm/
Darch_timer.c41 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() argument
259 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() argument
276 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() argument
281 WARN_ON(timer_ctx && timer_ctx->loaded); in kvm_timer_irq_can_fire()
[all …]