Lines Matching full:elapsed
575 uint32_t elapsed; in update_sw_cntrs() local
583 elapsed = ktime_to_us(ktime_sub(time, gpu->last_sample.time)); in update_sw_cntrs()
585 gpu->totaltime += elapsed; in update_sw_cntrs()
587 gpu->activetime += elapsed; in update_sw_cntrs()
654 u64 elapsed, clock = 0, cycles; in retire_submit() local
658 /* Convert 19.2Mhz alwayson ticks to nanoseconds for elapsed time */ in retire_submit()
659 elapsed = (stats->alwayson_end - stats->alwayson_start) * 10000; in retire_submit()
660 do_div(elapsed, 192); in retire_submit()
665 if (elapsed) { in retire_submit()
667 do_div(clock, elapsed); in retire_submit()
670 submit->queue->ctx->elapsed_ns += elapsed; in retire_submit()
673 trace_msm_gpu_submit_retired(submit, elapsed, clock, in retire_submit()