/drivers/gpu/drm/radeon/ |
D | dce6_afmt.c | 82 struct radeon_encoder_atom_dig *dig; in dce6_audio_get_pin() local 96 dig = radeon_encoder->enc_priv; in dce6_audio_get_pin() 97 if (dig->pin == pin) in dce6_audio_get_pin() 115 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_select_pin() local 117 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin() 120 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin() 121 AFMT_AUDIO_SRC_SELECT(dig->pin->id)); in dce6_afmt_select_pin() 130 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_write_latency_fields() local 133 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields() 149 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_write_latency_fields() [all …]
|
D | radeon_audio.c | 188 struct radeon_encoder_atom_dig *dig; in radeon_audio_enable() local 198 dig = radeon_encoder->enc_priv; in radeon_audio_enable() 199 if (dig->pin == pin) in radeon_audio_enable() 383 struct radeon_encoder_atom_dig *dig; in radeon_audio_detect() local 391 dig = radeon_encoder->enc_priv; in radeon_audio_detect() 407 if (!dig->pin) in radeon_audio_detect() 408 dig->pin = radeon_audio_get_pin(encoder); in radeon_audio_detect() 409 radeon_audio_enable(rdev, dig->pin, 0xf); in radeon_audio_detect() 411 radeon_audio_enable(rdev, dig->pin, 0); in radeon_audio_detect() 412 dig->pin = NULL; in radeon_audio_detect() [all …]
|
D | r600_hdmi.c | 250 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_update_audio_infoframe() local 251 uint32_t offset = dig->afmt->offset; in r600_hdmi_update_audio_infoframe() 268 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_is_audio_buffer_filled() local 269 uint32_t offset = dig->afmt->offset; in r600_hdmi_is_audio_buffer_filled() 280 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_buffer_status_changed() local 283 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_buffer_status_changed() 287 result = dig->afmt->last_buffer_filled_status != status; in r600_hdmi_buffer_status_changed() 288 dig->afmt->last_buffer_filled_status = status; in r600_hdmi_buffer_status_changed() 301 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_audio_workaround() local 302 uint32_t offset = dig->afmt->offset; in r600_hdmi_audio_workaround() [all …]
|
D | evergreen_hdmi.c | 406 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in evergreen_hdmi_enable() local 408 if (!dig || !dig->afmt) in evergreen_hdmi_enable() 415 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 420 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 423 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 426 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 430 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 432 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable() 435 dig->afmt->enabled = enable; in evergreen_hdmi_enable() 438 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable() [all …]
|
D | atombios_encoders.c | 99 struct radeon_encoder_atom_dig *dig; in atombios_set_backlight_level() local 108 dig = radeon_encoder->enc_priv; in atombios_set_backlight_level() 109 dig->backlight_level = level; in atombios_set_backlight_level() 110 radeon_atom_set_backlight_level_to_reg(rdev, dig->backlight_level); in atombios_set_backlight_level() 116 if (dig->backlight_level == 0) { in atombios_set_backlight_level() 131 if (dig->backlight_level == 0) in atombios_set_backlight_level() 194 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_init() local 234 dig = radeon_encoder->enc_priv; in radeon_atom_backlight_init() 235 dig->bl_dev = bd; in radeon_atom_backlight_init() 263 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_exit() local [all …]
|
D | dce3_1_afmt.c | 120 struct radeon_encoder_atom_dig *dig; in dce3_2_audio_set_dto() local 130 dig = radeon_encoder->enc_priv; in dce3_2_audio_set_dto() 132 if (!dig) in dce3_2_audio_set_dto() 153 if (dig->dig_encoder == 0) { in dce3_2_audio_set_dto()
|
D | radeon_acpi.c | 396 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_atif_handler() local 397 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 400 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_atif_handler() local 401 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 748 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_acpi_init() local 749 if (dig->bl_dev) { in radeon_acpi_init() 754 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_acpi_init() local 755 if (dig->bl_dev) { in radeon_acpi_init()
|
D | atombios_dp.c | 507 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_dp_needs_link_train() local 512 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in radeon_dp_needs_link_train() 603 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in radeon_dp_link_train_init() local 617 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE) in radeon_dp_link_train_init() 790 struct radeon_encoder_atom_dig *dig; in radeon_dp_link_train() local 799 dig = radeon_encoder->enc_priv; in radeon_dp_link_train() 822 if (dig->dig_encoder) in radeon_dp_link_train() 826 if (dig->linkb) in radeon_dp_link_train()
|
D | radeon_connectors.c | 164 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in radeon_get_monitor_bpc() local 166 if (dig->lcd_misc & ATOM_PANEL_MISC_V13_6BIT_PER_COLOR) in radeon_get_monitor_bpc() 168 else if (dig->lcd_misc & ATOM_PANEL_MISC_V13_8BIT_PER_COLOR) in radeon_get_monitor_bpc() 315 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_connector_get_edid() local 317 if ((dig->dp_sink_type == CONNECTOR_OBJECT_ID_DISPLAYPORT || in radeon_connector_get_edid() 318 dig->dp_sink_type == CONNECTOR_OBJECT_ID_eDP) && in radeon_connector_get_edid() 560 struct radeon_encoder_atom_dig *dig; in radeon_connector_set_property() local 573 dig = radeon_encoder->enc_priv; in radeon_connector_set_property() 575 if (dig->coherent_mode != new_coherent_mode) { in radeon_connector_set_property() 576 dig->coherent_mode = new_coherent_mode; in radeon_connector_set_property()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v6_0.c | 1119 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_select_pin() local 1121 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin() 1124 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin() 1126 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin() 1135 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_latency_fields() local 1170 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields() 1179 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_speaker_allocation() local 1208 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation() 1229 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation() 1240 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_sad_regs() local [all …]
|
D | dce_v10_0.c | 1215 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() local 1218 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin() 1221 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin() 1222 tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); in dce_v10_0_afmt_audio_select_pin() 1223 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin() 1232 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() local 1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields() 1269 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields() 1278 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() local 1286 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 1241 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() local 1244 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin() 1247 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v11_0_afmt_audio_select_pin() 1248 tmp = REG_SET_FIELD(tmp, AFMT_AUDIO_SRC_CONTROL, AFMT_AUDIO_SRC_SELECT, dig->afmt->pin->id); in dce_v11_0_afmt_audio_select_pin() 1249 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v11_0_afmt_audio_select_pin() 1258 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() local 1265 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields() 1295 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_latency_fields() 1304 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() local 1312 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation() [all …]
|
D | atombios_encoders.c | 88 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_set_backlight_level() local 95 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level() 96 dig->backlight_level = level; in amdgpu_atombios_encoder_set_backlight_level() 97 amdgpu_atombios_encoder_set_backlight_level_to_reg(adev, dig->backlight_level); in amdgpu_atombios_encoder_set_backlight_level() 105 if (dig->backlight_level == 0) in amdgpu_atombios_encoder_set_backlight_level() 173 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_init_backlight() local 209 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_init_backlight() 210 dig->bl_dev = bd; in amdgpu_atombios_encoder_init_backlight() 231 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_fini_backlight() local 239 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_fini_backlight() [all …]
|
D | dce_v8_0.c | 1152 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin() local 1155 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin() 1158 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin() 1161 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin() 1170 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() local 1176 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields() 1179 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields() 1231 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() local 1239 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation() 1242 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_speaker_allocation() [all …]
|
D | amdgpu_connectors.c | 142 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_connector_get_monitor_bpc() local 144 if (dig->lcd_misc & ATOM_PANEL_MISC_V13_6BIT_PER_COLOR) in amdgpu_connector_get_monitor_bpc() 146 else if (dig->lcd_misc & ATOM_PANEL_MISC_V13_8BIT_PER_COLOR) in amdgpu_connector_get_monitor_bpc() 300 struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; in amdgpu_connector_get_edid() local 302 if ((dig->dp_sink_type == CONNECTOR_OBJECT_ID_DISPLAYPORT || in amdgpu_connector_get_edid() 303 dig->dp_sink_type == CONNECTOR_OBJECT_ID_eDP) && in amdgpu_connector_get_edid() 480 struct amdgpu_encoder_atom_dig *dig; in amdgpu_connector_set_property() local 493 dig = amdgpu_encoder->enc_priv; in amdgpu_connector_set_property() 495 if (dig->coherent_mode != new_coherent_mode) { in amdgpu_connector_set_property() 496 dig->coherent_mode = new_coherent_mode; in amdgpu_connector_set_property()
|
D | atombios_dp.c | 458 struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; in amdgpu_atombios_dp_needs_link_train() local 463 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in amdgpu_atombios_dp_needs_link_train() 541 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init() local 555 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE) in amdgpu_atombios_dp_link_train_init()
|
/drivers/net/dsa/b53/ |
D | b53_serdes.c | 103 u16 dig, bmsr; in b53_serdes_link_state() local 108 dig = b53_serdes_read(dev, lane, B53_SERDES_DIGITAL_STATUS, in b53_serdes_link_state() 113 switch ((dig >> SPEED_STATUS_SHIFT) & SPEED_STATUS_MASK) { in b53_serdes_link_state() 129 state->duplex = dig & DUPLEX_STATUS ? DUPLEX_FULL : DUPLEX_HALF; in b53_serdes_link_state() 131 state->link = !!(dig & LINK_STATUS); in b53_serdes_link_state() 132 if (dig & PAUSE_RESOLUTION_RX_SIDE) in b53_serdes_link_state() 134 if (dig & PAUSE_RESOLUTION_TX_SIDE) in b53_serdes_link_state()
|
/drivers/input/touchscreen/ |
D | wm9705.c | 182 wm->dig[2] | WM97XX_PRP_DET_DIG); in wm9705_dig_enable() 186 wm->dig[2] & ~WM97XX_PRP_DET_DIG); in wm9705_dig_enable() 191 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9705_aux_prepare() 204 return wm->dig[2] & WM9705_PDEN; in is_pden() 299 dig1 = wm->dig[1]; in wm9705_acc_enable() 300 dig2 = wm->dig[2]; in wm9705_acc_enable()
|
D | wm9713.c | 221 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2] | in wm9713_dig_enable() 225 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2] & in wm9713_dig_enable() 241 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9713_aux_prepare() 249 return wm->dig[2] & WM9713_PDEN; in is_pden() 425 dig1 = wm->dig[0]; in wm9713_acc_enable() 426 dig2 = wm->dig[1]; in wm9713_acc_enable() 427 dig3 = wm->dig[2]; in wm9713_acc_enable()
|
D | wm9712.c | 218 u16 dig2 = wm->dig[2]; in wm9712_dig_enable() 231 memcpy(wm->dig_save, wm->dig, sizeof(wm->dig)); in wm9712_aux_prepare() 244 return wm->dig[2] & WM9712_PDEN; in is_pden() 418 dig1 = wm->dig[1]; in wm9712_acc_enable() 419 dig2 = wm->dig[2]; in wm9712_acc_enable()
|
D | wm97xx-core.c | 97 wm->dig[(reg - AC97_WM9713_DIG1) >> 1] = val; in wm97xx_reg_write() 839 wm97xx_reg_write(wm, AC97_WM9713_DIG1, wm->dig[0]); in wm97xx_resume() 848 wm97xx_reg_write(wm, AC97_WM9713_DIG2, wm->dig[1]); in wm97xx_resume() 849 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2]); in wm97xx_resume()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | dm.c | 511 struct dig_t *dig = &rtlpriv->dm_digtable; in _rtl92s_dm_ctrl_initgain_bytwoport() local 519 dig->cur_sta_cstate = DIG_STA_CONNECT; in _rtl92s_dm_ctrl_initgain_bytwoport() 521 dig->cur_sta_cstate = DIG_STA_DISCONNECT; in _rtl92s_dm_ctrl_initgain_bytwoport() 523 dig->rssi_val = rtlpriv->dm.undec_sm_pwdb; in _rtl92s_dm_ctrl_initgain_bytwoport() 526 if (dig->cur_sta_cstate != DIG_STA_DISCONNECT) { in _rtl92s_dm_ctrl_initgain_bytwoport() 527 if (dig->dig_twoport_algorithm == in _rtl92s_dm_ctrl_initgain_bytwoport() 529 dig->dig_twoport_algorithm = DIG_TWO_PORT_ALGO_RSSI; in _rtl92s_dm_ctrl_initgain_bytwoport() 537 dig->pre_sta_cstate = dig->cur_sta_cstate; in _rtl92s_dm_ctrl_initgain_bytwoport()
|
/drivers/gpu/drm/amd/display/dc/bios/ |
D | command_table2.c | 114 struct dig_encoder_stream_setup_parameters_v1_5 *dig) in encoder_control_dmcub() argument 126 cmd.digx_encoder_control.encoder_control.dig.stream_param = *dig; in encoder_control_dmcub() 252 struct dig_transmitter_control_parameters_v1_6 *dig) in transmitter_control_dmcub() argument 264 cmd.dig1_transmitter_control.transmitter_control.dig = *dig; in transmitter_control_dmcub() 316 struct dmub_dig_transmitter_control_data_v1_7 *dig) in transmitter_control_dmcub_v1_7() argument 328 cmd.dig1_transmitter_control.transmitter_control.dig_v1_7 = *dig; in transmitter_control_dmcub_v1_7()
|
/drivers/staging/rtl8192u/ |
D | r8192U_dm.h | 94 struct dig { struct 149 extern struct dig dm_digtable;
|
/drivers/iio/adc/ |
D | qcom-spmi-iadc.c | 165 u8 mode, sta1, chan, dig, en, req; in iadc_status_show() local 172 ret = iadc_read(iadc, IADC_DIG_PARAM, &dig); in iadc_status_show() 194 mode, en, chan, dig, req, sta1); in iadc_status_show()
|