Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 13 of 13) sorted by relevance

/drivers/clocksource/
Dtimer-atmel-pit.c80 u32 elapsed; in read_pit_clk() local
84 elapsed = data->cnt; in read_pit_clk()
88 elapsed += PIT_PICNT(t) * data->cycle; in read_pit_clk()
89 elapsed += PIT_CPIV(t); in read_pit_clk()
90 return elapsed; in read_pit_clk()
/drivers/gpu/drm/radeon/
Dradeon_ring.c251 uint64_t elapsed; in radeon_ring_test_lockup() local
259 elapsed = jiffies_to_msecs(jiffies_64 - last); in radeon_ring_test_lockup()
260 if (radeon_lockup_timeout && elapsed >= radeon_lockup_timeout) { in radeon_ring_test_lockup()
262 ring->idx, elapsed); in radeon_ring_test_lockup()
/drivers/md/
Ddm-flakey.c286 unsigned elapsed; in flakey_map() local
291 elapsed = (jiffies - fc->start_time) / HZ; in flakey_map()
292 if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { in flakey_map()
/drivers/rtc/
Drtc-snvs.c107 u32 elapsed; in rtc_write_sync_lp() local
120 elapsed = count2 - count1; /* wrap around _is_ handled! */ in rtc_write_sync_lp()
121 } while (elapsed < 3 && --timeout); in rtc_write_sync_lp()
/drivers/gpu/drm/msm/
Dmsm_gpu.c363 uint32_t elapsed; in update_sw_cntrs() local
371 elapsed = ktime_to_us(ktime_sub(time, gpu->last_sample.time)); in update_sw_cntrs()
373 gpu->totaltime += elapsed; in update_sw_cntrs()
375 gpu->activetime += elapsed; in update_sw_cntrs()
/drivers/staging/comedi/drivers/
Dserial2002.c129 long elapsed; in serial2002_tty_read_poll_wait() local
138 elapsed = ktime_us_delta(now, start); in serial2002_tty_read_poll_wait()
139 if (elapsed > timeout) in serial2002_tty_read_poll_wait()
142 schedule_timeout(((timeout - elapsed) * HZ) / 10000); in serial2002_tty_read_poll_wait()
/drivers/dma/
Dmxs-dma.c225 unsigned long elapsed = 0; in mxs_dma_reset_chan() local
237 while ((readl(reg_dbg1) & 0xf) == 0x8 && elapsed < max_wait) { in mxs_dma_reset_chan()
239 elapsed += 100; in mxs_dma_reset_chan()
242 if (elapsed >= max_wait) in mxs_dma_reset_chan()
/drivers/base/power/
Druntime.c128 long elapsed; in pm_runtime_autosuspend_expiration() local
140 elapsed = jiffies - last_busy; in pm_runtime_autosuspend_expiration()
141 if (elapsed < 0) in pm_runtime_autosuspend_expiration()
152 if (elapsed >= expires - last_busy) in pm_runtime_autosuspend_expiration()
/drivers/net/ethernet/ti/
Dtlan.c1844 u32 elapsed; in tlan_timer() local
1871 elapsed = jiffies - priv->timer_set_at; in tlan_timer()
1872 if (elapsed >= TLAN_TIMER_ACT_DELAY) { in tlan_timer()
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dkernel.fuc348 // find out how much time elapsed since the last update
/drivers/staging/fwserial/
Dfwserial.c515 unsigned long elapsed = now - port->break_last; in fwtty_emit_breaks() local
519 n = (elapsed * port->cps) / HZ + 1; in fwtty_emit_breaks()
/drivers/gpu/drm/i915/
Di915_gem.c2715 unsigned long elapsed; in i915_context_is_banned() local
2717 elapsed = get_seconds() - ctx->hang_stats.guilty_ts; in i915_context_is_banned()
2723 elapsed <= ctx->hang_stats.ban_period_seconds) { in i915_context_is_banned()
/drivers/scsi/qla2xxx/
Dqla_target.c683 unsigned long flags, elapsed; in qlt_del_sess_work_fn() local
689 elapsed = jiffies; in qlt_del_sess_work_fn()
690 if (time_after_eq(elapsed, sess->expires)) { in qlt_del_sess_work_fn()
702 sess->expires - elapsed); in qlt_del_sess_work_fn()