Lines Matching full:aux
45 /* AUX addresses to write MCA AVI IF */
51 /* AUX addresses to write Parade AVI IF */
87 if (drm_dp_read_desc(&intel_dp->aux, &intel_dp->desc, drm_dp_is_branch(intel_dp->dpcd))) { in lspcon_detect_vendor()
130 ret = drm_dp_dpcd_read(&intel_dp->aux, get_hdr_status_reg(lspcon), in lspcon_detect_hdr_capability()
147 struct i2c_adapter *ddc = &intel_dp->aux.ddc; in lspcon_get_current_mode()
149 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, ddc, ¤t_mode)) { in lspcon_get_current_mode()
201 struct i2c_adapter *ddc = &intel_dp->aux.ddc; in lspcon_change_mode()
203 err = drm_lspcon_get_mode(intel_dp->aux.drm_dev, ddc, ¤t_mode); in lspcon_change_mode()
214 err = drm_lspcon_set_mode(intel_dp->aux.drm_dev, ddc, mode); in lspcon_change_mode()
231 if (drm_dp_dpcd_readb(&lspcon_to_intel_dp(lspcon)->aux, DP_DPCD_REV, in lspcon_wake_native_aux_ch()
233 drm_dbg_kms(display->drm, "Native AUX CH down\n"); in lspcon_wake_native_aux_ch()
237 drm_dbg_kms(display->drm, "Native AUX CH up, DPCD version: %d.%d\n", in lspcon_wake_native_aux_ch()
247 struct i2c_adapter *ddc = &intel_dp->aux.ddc; in lspcon_probe()
260 adaptor_type = drm_dp_dual_mode_detect(intel_dp->aux.drm_dev, ddc); in lspcon_probe()
312 static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux) in lspcon_parade_fw_ready() argument
323 ret = drm_dp_dpcd_read(aux, LSPCON_PARADE_AVI_IF_CTRL, in lspcon_parade_fw_ready()
326 drm_err(aux->drm_dev, "Failed to read AVI IF control\n"); in lspcon_parade_fw_ready()
334 drm_err(aux->drm_dev, "Parade FW not ready to accept AVI IF\n"); in lspcon_parade_fw_ready()
338 static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, in _lspcon_parade_write_infoframe_blocks() argument
348 if (!lspcon_parade_fw_ready(aux)) { in _lspcon_parade_write_infoframe_blocks()
349 drm_dbg_kms(aux->drm_dev, "LSPCON FW not ready, block %d\n", in _lspcon_parade_write_infoframe_blocks()
356 ret = drm_dp_dpcd_write(aux, reg, data, 8); in _lspcon_parade_write_infoframe_blocks()
358 drm_err(aux->drm_dev, "Failed to write AVI IF block %d\n", in _lspcon_parade_write_infoframe_blocks()
371 ret = drm_dp_dpcd_write(aux, reg, &avi_if_ctrl, 1); in _lspcon_parade_write_infoframe_blocks()
373 drm_err(aux->drm_dev, "Failed to update (0x%x), block %d\n", in _lspcon_parade_write_infoframe_blocks()
381 drm_dbg_kms(aux->drm_dev, "Wrote AVI IF blocks successfully\n"); in _lspcon_parade_write_infoframe_blocks()
385 static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_parade() argument
403 drm_err(aux->drm_dev, "Invalid length of infoframes\n"); in _lspcon_write_avi_infoframe_parade()
409 if (!_lspcon_parade_write_infoframe_blocks(aux, avi_if)) { in _lspcon_write_avi_infoframe_parade()
410 drm_dbg_kms(aux->drm_dev, "Failed to write infoframe blocks\n"); in _lspcon_write_avi_infoframe_parade()
417 static bool _lspcon_write_avi_infoframe_mca(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_mca() argument
430 ret = drm_dp_dpcd_write(aux, reg, (void *)data, 1); in _lspcon_write_avi_infoframe_mca()
437 drm_err(aux->drm_dev, "DPCD write failed at:0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
446 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
448 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
456 ret = drm_dp_dpcd_write(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
458 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
463 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
465 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
470 drm_dbg_kms(aux->drm_dev, "AVI IF handled by FW\n"); in _lspcon_write_avi_infoframe_mca()
488 ret = _lspcon_write_avi_infoframe_mca(&intel_dp->aux, in lspcon_write_infoframe()
491 ret = _lspcon_write_avi_infoframe_parade(&intel_dp->aux, in lspcon_write_infoframe()
594 static bool _lspcon_read_avi_infoframe_enabled_mca(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_mca() argument
600 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_mca()
602 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_read_avi_infoframe_enabled_mca()
609 static bool _lspcon_read_avi_infoframe_enabled_parade(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_parade() argument
615 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_parade()
617 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_read_avi_infoframe_enabled_parade()
635 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_mca(&intel_dp->aux); in lspcon_infoframes_enabled()
637 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_parade(&intel_dp->aux); in lspcon_infoframes_enabled()
674 if (drm_dp_read_dpcd_caps(&intel_dp->aux, intel_dp->dpcd) != 0) { in lspcon_init()