Lines Matching defs:mode
107 .mode = { \
177 const struct ch7006_mode *mode;
179 for (mode = ch7006_modes; mode->mode.clock; mode++) {
181 if (~mode->valid_norms & 1<<priv->norm)
184 if (mode->mode.hdisplay != drm_mode->hdisplay ||
185 mode->mode.vdisplay != drm_mode->vdisplay ||
186 mode->mode.vtotal != drm_mode->vtotal ||
187 mode->mode.htotal != drm_mode->htotal ||
188 mode->mode.clock != drm_mode->clock)
191 return mode;
236 const struct ch7006_mode *mode = priv->mode;
239 subc_inc = round_fixed((mode->subc_coeff >> 8)
259 const struct ch7006_mode *mode = priv->mode;
268 if (abs(freq - mode->mode.clock) <
269 abs(best_freq - mode->mode.clock)) {
331 const struct ch7006_mode *ch_mode = priv->mode;
332 const struct drm_display_mode *mode = &ch_mode->mode;
346 do_div(scale, mode->vtotal);
351 hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale)
352 * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4;
357 vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale)