Lines Matching refs:rect
3014 VncRectStat *rect = vnc_stat_rect(vd, x, y); in vnc_update_stats() local
3016 rect->updated = false; in vnc_update_stats()
3029 VncRectStat *rect= vnc_stat_rect(vd, x, y); in vnc_update_stats() local
3030 int count = ARRAY_SIZE(rect->times); in vnc_update_stats()
3033 if (!timerisset(&rect->times[count - 1])) { in vnc_update_stats()
3037 max = rect->times[(rect->idx + count - 1) % count]; in vnc_update_stats()
3041 rect->freq = 0; in vnc_update_stats()
3043 memset(rect->times, 0, sizeof (rect->times)); in vnc_update_stats()
3047 min = rect->times[rect->idx]; in vnc_update_stats()
3048 max = rect->times[(rect->idx + count - 1) % count]; in vnc_update_stats()
3051 rect->freq = res.tv_sec + res.tv_usec / 1000000.; in vnc_update_stats()
3052 rect->freq /= count; in vnc_update_stats()
3053 rect->freq = 1. / rect->freq; in vnc_update_stats()
3084 VncRectStat *rect; in vnc_rect_updated() local
3086 rect = vnc_stat_rect(vd, x, y); in vnc_rect_updated()
3087 if (rect->updated) { in vnc_rect_updated()
3090 rect->times[rect->idx] = *tv; in vnc_rect_updated()
3091 rect->idx = (rect->idx + 1) % ARRAY_SIZE(rect->times); in vnc_rect_updated()
3092 rect->updated = true; in vnc_rect_updated()