Lines Matching refs:aux

87 	if (drm_dp_read_desc(&dp->aux, &dp->desc, drm_dp_is_branch(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 *adapter = &intel_dp->aux.ddc; in lspcon_get_current_mode()
149 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, &current_mode)) { in lspcon_get_current_mode()
188 struct i2c_adapter *adapter = &intel_dp->aux.ddc; in lspcon_change_mode()
190 err = drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, &current_mode); in lspcon_change_mode()
201 err = drm_lspcon_set_mode(intel_dp->aux.drm_dev, adapter, mode); in lspcon_change_mode()
218 if (drm_dp_dpcd_readb(&lspcon_to_intel_dp(lspcon)->aux, DP_DPCD_REV, in lspcon_wake_native_aux_ch()
236 struct i2c_adapter *adapter = &intel_dp->aux.ddc; in lspcon_probe()
247 adaptor_type = drm_dp_dual_mode_detect(intel_dp->aux.drm_dev, adapter); in lspcon_probe()
299 static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux) in lspcon_parade_fw_ready() argument
310 ret = drm_dp_dpcd_read(aux, LSPCON_PARADE_AVI_IF_CTRL, in lspcon_parade_fw_ready()
313 drm_err(aux->drm_dev, "Failed to read AVI IF control\n"); in lspcon_parade_fw_ready()
321 drm_err(aux->drm_dev, "Parade FW not ready to accept AVI IF\n"); in lspcon_parade_fw_ready()
325 static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, in _lspcon_parade_write_infoframe_blocks() argument
335 if (!lspcon_parade_fw_ready(aux)) { in _lspcon_parade_write_infoframe_blocks()
336 drm_dbg_kms(aux->drm_dev, "LSPCON FW not ready, block %d\n", in _lspcon_parade_write_infoframe_blocks()
343 ret = drm_dp_dpcd_write(aux, reg, data, 8); in _lspcon_parade_write_infoframe_blocks()
345 drm_err(aux->drm_dev, "Failed to write AVI IF block %d\n", in _lspcon_parade_write_infoframe_blocks()
358 ret = drm_dp_dpcd_write(aux, reg, &avi_if_ctrl, 1); in _lspcon_parade_write_infoframe_blocks()
360 drm_err(aux->drm_dev, "Failed to update (0x%x), block %d\n", in _lspcon_parade_write_infoframe_blocks()
368 drm_dbg_kms(aux->drm_dev, "Wrote AVI IF blocks successfully\n"); in _lspcon_parade_write_infoframe_blocks()
372 static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_parade() argument
390 drm_err(aux->drm_dev, "Invalid length of infoframes\n"); in _lspcon_write_avi_infoframe_parade()
396 if (!_lspcon_parade_write_infoframe_blocks(aux, avi_if)) { in _lspcon_write_avi_infoframe_parade()
397 drm_dbg_kms(aux->drm_dev, "Failed to write infoframe blocks\n"); in _lspcon_write_avi_infoframe_parade()
404 static bool _lspcon_write_avi_infoframe_mca(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_mca() argument
417 ret = drm_dp_dpcd_write(aux, reg, (void *)data, 1); in _lspcon_write_avi_infoframe_mca()
424 drm_err(aux->drm_dev, "DPCD write failed at:0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
433 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
435 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
443 ret = drm_dp_dpcd_write(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
445 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
450 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
452 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_write_avi_infoframe_mca()
457 drm_dbg_kms(aux->drm_dev, "AVI IF handled by FW\n"); in _lspcon_write_avi_infoframe_mca()
475 ret = _lspcon_write_avi_infoframe_mca(&intel_dp->aux, in lspcon_write_infoframe()
478 ret = _lspcon_write_avi_infoframe_parade(&intel_dp->aux, in lspcon_write_infoframe()
581 static bool _lspcon_read_avi_infoframe_enabled_mca(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_mca() argument
587 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_mca()
589 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_read_avi_infoframe_enabled_mca()
596 static bool _lspcon_read_avi_infoframe_enabled_parade(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_parade() argument
602 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_parade()
604 drm_err(aux->drm_dev, "DPCD read failed, address 0x%x\n", reg); in _lspcon_read_avi_infoframe_enabled_parade()
622 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_mca(&intel_dp->aux); in lspcon_infoframes_enabled()
624 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_parade(&intel_dp->aux); in lspcon_infoframes_enabled()
661 if (drm_dp_read_dpcd_caps(&intel_dp->aux, intel_dp->dpcd) != 0) { in lspcon_init()