Lines Matching refs:crtc
169 struct intel_crtc *crtc, in intel_encoder_info() argument
417 static void intel_plane_info(struct seq_file *m, struct intel_crtc *crtc) in intel_plane_info() argument
422 for_each_intel_plane_on_crtc(&dev_priv->drm, crtc, plane) { in intel_plane_info()
431 static void intel_scaler_info(struct seq_file *m, struct intel_crtc *crtc) in intel_scaler_info() argument
434 to_intel_crtc_state(crtc->base.state); in intel_scaler_info()
435 int num_scalers = crtc->num_scalers; in intel_scaler_info()
461 struct intel_crtc *crtc, in crtc_updates_info() argument
468 for (row = 0; row < ARRAY_SIZE(crtc->debug.vbl.times); row++) in crtc_updates_info()
469 count += crtc->debug.vbl.times[row]; in crtc_updates_info()
474 for (row = 0; row < ARRAY_SIZE(crtc->debug.vbl.times); row++) { in crtc_updates_info()
493 if (crtc->debug.vbl.times[row]) { in crtc_updates_info()
494 x = ilog2(crtc->debug.vbl.times[row]); in crtc_updates_info()
503 hdr, crtc->debug.vbl.min); in crtc_updates_info()
505 hdr, crtc->debug.vbl.max); in crtc_updates_info()
507 hdr, div64_u64(crtc->debug.vbl.sum, count)); in crtc_updates_info()
509 hdr, VBLANK_EVASION_TIME_US, crtc->debug.vbl.over); in crtc_updates_info()
528 struct intel_crtc *crtc = m->private; in crtc_updates_write() local
531 memset(&crtc->debug.vbl, 0, sizeof(crtc->debug.vbl)); in crtc_updates_write()
545 static void crtc_updates_add(struct intel_crtc *crtc) in crtc_updates_add() argument
547 debugfs_create_file("i915_update_info", 0644, crtc->base.debugfs_entry, in crtc_updates_add()
548 crtc, &crtc_updates_fops); in crtc_updates_add()
553 struct intel_crtc *crtc, in crtc_updates_info() argument
558 static void crtc_updates_add(struct intel_crtc *crtc) in crtc_updates_add() argument
563 static void intel_crtc_info(struct seq_file *m, struct intel_crtc *crtc) in intel_crtc_info() argument
567 to_intel_crtc_state(crtc->base.state); in intel_crtc_info()
571 crtc->base.base.id, crtc->base.name); in intel_crtc_info()
589 intel_scaler_info(m, crtc); in intel_crtc_info()
598 intel_encoder_info(m, crtc, encoder); in intel_crtc_info()
600 intel_plane_info(m, crtc); in intel_crtc_info()
603 str_yes_no(!crtc->cpu_fifo_underrun_disabled), in intel_crtc_info()
604 str_yes_no(!crtc->pch_fifo_underrun_disabled)); in intel_crtc_info()
606 crtc_updates_info(m, crtc, "\t"); in intel_crtc_info()
612 struct intel_crtc *crtc; in i915_display_info() local
623 for_each_intel_crtc(&dev_priv->drm, crtc) in i915_display_info()
624 intel_crtc_info(m, crtc); in i915_display_info()
700 struct intel_crtc *crtc; in i915_ddb_info() local
709 for_each_intel_crtc(&dev_priv->drm, crtc) { in i915_ddb_info()
711 to_intel_crtc_state(crtc->base.state); in i915_ddb_info()
712 enum pipe pipe = crtc->pipe; in i915_ddb_info()
717 for_each_plane_id_on_crtc(crtc, plane_id) { in i915_ddb_info()
999 struct intel_crtc *crtc; in i915_fifo_underrun_reset_write() local
1010 for_each_intel_crtc(&dev_priv->drm, crtc) { in i915_fifo_underrun_reset_write()
1014 ret = drm_modeset_lock_single_interruptible(&crtc->base.mutex); in i915_fifo_underrun_reset_write()
1018 crtc_state = to_intel_crtc_state(crtc->base.state); in i915_fifo_underrun_reset_write()
1029 pipe_name(crtc->pipe)); in i915_fifo_underrun_reset_write()
1031 intel_crtc_arm_fifo_underrun(crtc, crtc_state); in i915_fifo_underrun_reset_write()
1034 drm_modeset_unlock(&crtc->base.mutex); in i915_fifo_underrun_reset_write()
1194 struct drm_crtc *crtc; in i915_dsc_fec_support_show() local
1214 crtc = connector->state->crtc; in i915_dsc_fec_support_show()
1215 if (connector->status != connector_status_connected || !crtc) { in i915_dsc_fec_support_show()
1219 ret = drm_modeset_lock(&crtc->mutex, &ctx); in i915_dsc_fec_support_show()
1231 crtc_state = to_intel_crtc_state(crtc->state); in i915_dsc_fec_support_show()
1306 struct drm_crtc *crtc; in i915_dsc_bpc_show() local
1318 crtc = connector->state->crtc; in i915_dsc_bpc_show()
1319 if (connector->status != connector_status_connected || !crtc) { in i915_dsc_bpc_show()
1324 crtc_state = to_intel_crtc_state(crtc->state); in i915_dsc_bpc_show()
1372 struct drm_crtc *crtc; in i915_dsc_output_format_show() local
1384 crtc = connector->state->crtc; in i915_dsc_output_format_show()
1385 if (connector->status != connector_status_connected || !crtc) { in i915_dsc_output_format_show()
1390 crtc_state = to_intel_crtc_state(crtc->state); in i915_dsc_output_format_show()
1441 struct intel_crtc *crtc = m->private; in i915_current_bpc_show() local
1445 ret = drm_modeset_lock_single_interruptible(&crtc->base.mutex); in i915_current_bpc_show()
1449 crtc_state = to_intel_crtc_state(crtc->base.state); in i915_current_bpc_show()
1452 drm_modeset_unlock(&crtc->base.mutex); in i915_current_bpc_show()
1461 struct intel_crtc *crtc = m->private; in intel_crtc_pipe_show() local
1463 seq_printf(m, "%c\n", pipe_name(crtc->pipe)); in intel_crtc_pipe_show()
1529 void intel_crtc_debugfs_add(struct intel_crtc *crtc) in intel_crtc_debugfs_add() argument
1531 struct dentry *root = crtc->base.debugfs_entry; in intel_crtc_debugfs_add()
1536 crtc_updates_add(crtc); in intel_crtc_debugfs_add()
1537 intel_drrs_crtc_debugfs_add(crtc); in intel_crtc_debugfs_add()
1538 intel_fbc_crtc_debugfs_add(crtc); in intel_crtc_debugfs_add()
1539 hsw_ips_crtc_debugfs_add(crtc); in intel_crtc_debugfs_add()
1541 debugfs_create_file("i915_current_bpc", 0444, root, crtc, in intel_crtc_debugfs_add()
1543 debugfs_create_file("i915_pipe", 0444, root, crtc, in intel_crtc_debugfs_add()