Lines Matching refs:frm
135 u32 frm, pfrm, status, cnt = 2; in decon_get_frame_count() local
141 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
144 pfrm = frm; in decon_get_frame_count()
145 frm = readl(ctx->addr + DECON_CRFMID); in decon_get_frame_count()
146 } while (frm != pfrm && --cnt); in decon_get_frame_count()
151 if (!frm) in decon_get_frame_count()
157 --frm; in decon_get_frame_count()
160 --frm; in decon_get_frame_count()
165 --frm; in decon_get_frame_count()
171 return frm; in decon_get_frame_count()
672 u32 frm; in decon_handle_vblank() local
676 frm = decon_get_frame_count(ctx, true); in decon_handle_vblank()
678 if (frm != ctx->frame_id) { in decon_handle_vblank()
680 if ((s32)(frm - ctx->frame_id) > 0) in decon_handle_vblank()
682 ctx->frame_id = frm; in decon_handle_vblank()