Lines Matching refs:aux
84 if (drm_dp_read_desc(&dp->aux, &dp->desc, drm_dp_is_branch(dp->dpcd))) { in lspcon_detect_vendor()
129 ret = drm_dp_dpcd_read(&dp->aux, get_hdr_status_reg(lspcon), in lspcon_detect_hdr_capability()
145 struct i2c_adapter *adapter = &intel_dp->aux.ddc; in lspcon_get_current_mode()
147 if (drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, ¤t_mode)) { in lspcon_get_current_mode()
183 struct i2c_adapter *adapter = &intel_dp->aux.ddc; in lspcon_change_mode()
185 err = drm_lspcon_get_mode(intel_dp->aux.drm_dev, adapter, ¤t_mode); in lspcon_change_mode()
196 err = drm_lspcon_set_mode(intel_dp->aux.drm_dev, adapter, mode); in lspcon_change_mode()
211 if (drm_dp_dpcd_readb(&lspcon_to_intel_dp(lspcon)->aux, DP_DPCD_REV, in lspcon_wake_native_aux_ch()
228 struct i2c_adapter *adapter = &intel_dp->aux.ddc; in lspcon_probe()
239 adaptor_type = drm_dp_dual_mode_detect(intel_dp->aux.drm_dev, adapter); in lspcon_probe()
290 static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux) in lspcon_parade_fw_ready() argument
301 ret = drm_dp_dpcd_read(aux, LSPCON_PARADE_AVI_IF_CTRL, in lspcon_parade_fw_ready()
316 static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, in _lspcon_parade_write_infoframe_blocks() argument
326 if (!lspcon_parade_fw_ready(aux)) { in _lspcon_parade_write_infoframe_blocks()
334 ret = drm_dp_dpcd_write(aux, reg, data, 8); in _lspcon_parade_write_infoframe_blocks()
349 ret = drm_dp_dpcd_write(aux, reg, &avi_if_ctrl, 1); in _lspcon_parade_write_infoframe_blocks()
363 static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_parade() argument
387 if (!_lspcon_parade_write_infoframe_blocks(aux, avi_if)) { in _lspcon_write_avi_infoframe_parade()
395 static bool _lspcon_write_avi_infoframe_mca(struct drm_dp_aux *aux, in _lspcon_write_avi_infoframe_mca() argument
408 ret = drm_dp_dpcd_write(aux, reg, (void *)data, 1); in _lspcon_write_avi_infoframe_mca()
424 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
434 ret = drm_dp_dpcd_write(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
441 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_write_avi_infoframe_mca()
465 ret = _lspcon_write_avi_infoframe_mca(&intel_dp->aux, in lspcon_write_infoframe()
468 ret = _lspcon_write_avi_infoframe_parade(&intel_dp->aux, in lspcon_write_infoframe()
570 static bool _lspcon_read_avi_infoframe_enabled_mca(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_mca() argument
576 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_mca()
585 static bool _lspcon_read_avi_infoframe_enabled_parade(struct drm_dp_aux *aux) in _lspcon_read_avi_infoframe_enabled_parade() argument
591 ret = drm_dp_dpcd_read(aux, reg, &val, 1); in _lspcon_read_avi_infoframe_enabled_parade()
611 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_mca(&intel_dp->aux); in lspcon_infoframes_enabled()
613 infoframes_enabled = _lspcon_read_avi_infoframe_enabled_parade(&intel_dp->aux); in lspcon_infoframes_enabled()
649 if (drm_dp_read_dpcd_caps(&dp->aux, dp->dpcd) != 0) { in lspcon_init()