Lines Matching refs:m
974 struct drm_display_mode *m; in hdmi_mode_fixup() local
995 list_for_each_entry(m, &connector->modes, head) { in hdmi_mode_fixup()
996 mode_ok = hdmi_mode_valid(connector, m); in hdmi_mode_fixup()
1003 m->hdisplay, m->vdisplay, m->vrefresh); in hdmi_mode_fixup()
1005 drm_mode_copy(adjusted_mode, m); in hdmi_mode_fixup()
1201 struct drm_display_mode *m = &hdata->current_mode; in hdmi_v13_mode_apply() local
1204 hdmi_reg_writev(hdata, HDMI_H_BLANK_0, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply()
1206 (m->htotal << 12) | m->vtotal); in hdmi_v13_mode_apply()
1208 val = (m->flags & DRM_MODE_FLAG_NVSYNC) ? 1 : 0; in hdmi_v13_mode_apply()
1211 val = (m->flags & DRM_MODE_FLAG_INTERLACE) ? 1 : 0; in hdmi_v13_mode_apply()
1214 val = (m->hsync_start - m->hdisplay - 2); in hdmi_v13_mode_apply()
1215 val |= ((m->hsync_end - m->hdisplay - 2) << 10); in hdmi_v13_mode_apply()
1216 val |= ((m->flags & DRM_MODE_FLAG_NHSYNC) ? 1 : 0)<<20; in hdmi_v13_mode_apply()
1226 if (m->flags & DRM_MODE_FLAG_INTERLACE) { in hdmi_v13_mode_apply()
1227 val = ((m->vsync_end - m->vdisplay) / 2); in hdmi_v13_mode_apply()
1228 val |= ((m->vsync_start - m->vdisplay) / 2) << 12; in hdmi_v13_mode_apply()
1231 val = m->vtotal / 2; in hdmi_v13_mode_apply()
1232 val |= ((m->vtotal - m->vdisplay) / 2) << 11; in hdmi_v13_mode_apply()
1235 val = (m->vtotal + in hdmi_v13_mode_apply()
1236 ((m->vsync_end - m->vsync_start) * 4) + 5) / 2; in hdmi_v13_mode_apply()
1237 val |= m->vtotal << 11; in hdmi_v13_mode_apply()
1240 val = ((m->vtotal / 2) + 7); in hdmi_v13_mode_apply()
1241 val |= ((m->vtotal / 2) + 2) << 12; in hdmi_v13_mode_apply()
1244 val = ((m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v13_mode_apply()
1245 val |= ((m->htotal / 2) + in hdmi_v13_mode_apply()
1246 (m->hsync_start - m->hdisplay)) << 12; in hdmi_v13_mode_apply()
1250 (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_apply()
1251 hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay / 2); in hdmi_v13_mode_apply()
1255 val = m->vtotal; in hdmi_v13_mode_apply()
1256 val |= (m->vtotal - m->vdisplay) << 11; in hdmi_v13_mode_apply()
1261 val = (m->vsync_end - m->vdisplay); in hdmi_v13_mode_apply()
1262 val |= ((m->vsync_start - m->vdisplay) << 12); in hdmi_v13_mode_apply()
1268 m->vtotal - m->vdisplay); in hdmi_v13_mode_apply()
1269 hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay); in hdmi_v13_mode_apply()
1272 hdmi_reg_writev(hdata, HDMI_TG_H_FSZ_L, 2, m->htotal); in hdmi_v13_mode_apply()
1273 hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_apply()
1274 hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay); in hdmi_v13_mode_apply()
1275 hdmi_reg_writev(hdata, HDMI_TG_V_FSZ_L, 2, m->vtotal); in hdmi_v13_mode_apply()
1280 struct drm_display_mode *m = &hdata->current_mode; in hdmi_v14_mode_apply() local
1282 hdmi_reg_writev(hdata, HDMI_H_BLANK_0, 2, m->htotal - m->hdisplay); in hdmi_v14_mode_apply()
1283 hdmi_reg_writev(hdata, HDMI_V_LINE_0, 2, m->vtotal); in hdmi_v14_mode_apply()
1284 hdmi_reg_writev(hdata, HDMI_H_LINE_0, 2, m->htotal); in hdmi_v14_mode_apply()
1286 (m->flags & DRM_MODE_FLAG_NHSYNC) ? 1 : 0); in hdmi_v14_mode_apply()
1288 (m->flags & DRM_MODE_FLAG_NVSYNC) ? 1 : 0); in hdmi_v14_mode_apply()
1290 (m->flags & DRM_MODE_FLAG_INTERLACE) ? 1 : 0); in hdmi_v14_mode_apply()
1299 if (m->flags & DRM_MODE_FLAG_INTERLACE) { in hdmi_v14_mode_apply()
1301 (m->vsync_end - m->vdisplay) / 2); in hdmi_v14_mode_apply()
1303 (m->vsync_start - m->vdisplay) / 2); in hdmi_v14_mode_apply()
1304 hdmi_reg_writev(hdata, HDMI_V2_BLANK_0, 2, m->vtotal / 2); in hdmi_v14_mode_apply()
1306 (m->vtotal - m->vdisplay) / 2); in hdmi_v14_mode_apply()
1308 m->vtotal - m->vdisplay / 2); in hdmi_v14_mode_apply()
1309 hdmi_reg_writev(hdata, HDMI_V_BLANK_F1_0, 2, m->vtotal); in hdmi_v14_mode_apply()
1311 (m->vtotal / 2) + 7); in hdmi_v14_mode_apply()
1313 (m->vtotal / 2) + 2); in hdmi_v14_mode_apply()
1315 (m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v14_mode_apply()
1317 (m->htotal / 2) + (m->hsync_start - m->hdisplay)); in hdmi_v14_mode_apply()
1319 (m->vtotal - m->vdisplay) / 2); in hdmi_v14_mode_apply()
1320 hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay / 2); in hdmi_v14_mode_apply()
1322 m->vtotal - m->vdisplay / 2); in hdmi_v14_mode_apply()
1324 (m->vtotal / 2) + 1); in hdmi_v14_mode_apply()
1326 (m->vtotal / 2) + 1); in hdmi_v14_mode_apply()
1328 (m->vtotal / 2) + 1); in hdmi_v14_mode_apply()
1333 m->vsync_end - m->vdisplay); in hdmi_v14_mode_apply()
1335 m->vsync_start - m->vdisplay); in hdmi_v14_mode_apply()
1336 hdmi_reg_writev(hdata, HDMI_V2_BLANK_0, 2, m->vtotal); in hdmi_v14_mode_apply()
1338 m->vtotal - m->vdisplay); in hdmi_v14_mode_apply()
1346 m->vtotal - m->vdisplay); in hdmi_v14_mode_apply()
1347 hdmi_reg_writev(hdata, HDMI_TG_VACT_SZ_L, 2, m->vdisplay); in hdmi_v14_mode_apply()
1351 m->hsync_start - m->hdisplay - 2); in hdmi_v14_mode_apply()
1353 m->hsync_end - m->hdisplay - 2); in hdmi_v14_mode_apply()
1373 hdmi_reg_writev(hdata, HDMI_TG_H_FSZ_L, 2, m->htotal); in hdmi_v14_mode_apply()
1374 hdmi_reg_writev(hdata, HDMI_TG_HACT_ST_L, 2, m->htotal - m->hdisplay); in hdmi_v14_mode_apply()
1375 hdmi_reg_writev(hdata, HDMI_TG_HACT_SZ_L, 2, m->hdisplay); in hdmi_v14_mode_apply()
1376 hdmi_reg_writev(hdata, HDMI_TG_V_FSZ_L, 2, m->vtotal); in hdmi_v14_mode_apply()
1453 struct drm_display_mode *m = adjusted_mode; in hdmi_mode_set() local
1456 m->hdisplay, m->vdisplay, in hdmi_mode_set()
1457 m->vrefresh, (m->flags & DRM_MODE_FLAG_INTERLACE) ? in hdmi_mode_set()
1460 drm_mode_copy(&hdata->current_mode, m); in hdmi_mode_set()