Lines Matching full:distance

223         uint64_t    distance;       /* distance to count to the next event */  member
274 VMSTATE_UINT64(distance, struct tick_timer),
433 uint64_t distance; in exynos4210_gcomp_find() local
455 distance = s->g_timer.reg.comp[i] - gfrc; in exynos4210_gcomp_find()
457 if (distance <= distance_min) { in exynos4210_gcomp_find()
458 distance_min = distance; in exynos4210_gcomp_find()
485 "comp 0x%llx distance 0x%llx, gfrc 0x%llx\n", in exynos4210_gcomp_find()
496 * Get distance to nearest Comparator
501 /* no enabled Comparators, choose max distance */ in exynos4210_gcomp_get_distance()
517 uint64_t distance; in exynos4210_gfrc_restart() local
523 distance = exynos4210_gcomp_get_distance(s, s->g_timer.curr_comp); in exynos4210_gfrc_restart()
525 if (distance > MCT_GT_COUNTER_STEP || !distance) { in exynos4210_gfrc_restart()
526 distance = MCT_GT_COUNTER_STEP; in exynos4210_gfrc_restart()
529 exynos4210_gfrc_set_count(&s->g_timer, distance); in exynos4210_gfrc_restart()
566 uint64_t distance; in exynos4210_gfrc_event() local
592 distance = exynos4210_gcomp_get_distance(s, s->g_timer.curr_comp); in exynos4210_gfrc_event()
593 if (distance > MCT_GT_COUNTER_STEP || !distance) { in exynos4210_gfrc_event()
594 distance = MCT_GT_COUNTER_STEP; in exynos4210_gfrc_event()
596 exynos4210_gfrc_set_count(&s->g_timer, distance); in exynos4210_gfrc_event()
723 remain = s->distance - cur_progress; in exynos4210_ltick_int_get_cnto()
806 remain = s->distance - cur_progress; in exynos4210_ltick_cnt_get_cnto()
869 * distance is not passed, recalculate with last_tcnto * last_icnto in exynos4210_ltick_recalc_count()
878 /* distance is passed, recalculate with tcnto * icnto */ in exynos4210_ltick_recalc_count()
880 s->distance = (uint64_t)s->tcntb * s->icntb; in exynos4210_ltick_recalc_count()
882 s->distance = s->tcntb; in exynos4210_ltick_recalc_count()
885 to_count = s->distance; in exynos4210_ltick_recalc_count()
908 s->distance = 0; in exynos4210_ltick_timer_init()
1045 s->l_timer[i].tick_timer.distance = 0; in exynos4210_mct_reset()