/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | dce6_afmt.c | 81 struct radeon_encoder_atom_dig *dig; in dce6_audio_get_pin() local 95 dig = radeon_encoder->enc_priv; in dce6_audio_get_pin() 96 if (dig->pin == pin) in dce6_audio_get_pin() 114 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_select_pin() local 116 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin() 119 WREG32(AFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce6_afmt_select_pin() 120 AFMT_AUDIO_SRC_SELECT(dig->pin->id)); in dce6_afmt_select_pin() 129 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in dce6_afmt_write_latency_fields() local 132 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields() 148 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_write_latency_fields() [all …]
|
D | r600_hdmi.c | 249 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_update_audio_infoframe() local 250 uint32_t offset = dig->afmt->offset; in r600_hdmi_update_audio_infoframe() 267 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_is_audio_buffer_filled() local 268 uint32_t offset = dig->afmt->offset; in r600_hdmi_is_audio_buffer_filled() 279 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_buffer_status_changed() local 282 if (!dig->afmt || !dig->afmt->enabled) in r600_hdmi_buffer_status_changed() 286 result = dig->afmt->last_buffer_filled_status != status; in r600_hdmi_buffer_status_changed() 287 dig->afmt->last_buffer_filled_status = status; in r600_hdmi_buffer_status_changed() 300 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in r600_hdmi_audio_workaround() local 301 uint32_t offset = dig->afmt->offset; in r600_hdmi_audio_workaround() [all …]
|
D | radeon_audio.c | 250 struct radeon_encoder_atom_dig *dig; in radeon_audio_enable() local 260 dig = radeon_encoder->enc_priv; in radeon_audio_enable() 261 if (dig->pin == pin) in radeon_audio_enable() 445 struct radeon_encoder_atom_dig *dig; in radeon_audio_detect() local 453 dig = radeon_encoder->enc_priv; in radeon_audio_detect() 469 if (!dig->pin) in radeon_audio_detect() 470 dig->pin = radeon_audio_get_pin(encoder); in radeon_audio_detect() 471 radeon_audio_enable(rdev, dig->pin, 0xf); in radeon_audio_detect() 473 radeon_audio_enable(rdev, dig->pin, 0); in radeon_audio_detect() 474 dig->pin = NULL; in radeon_audio_detect() [all …]
|
D | evergreen_hdmi.c | 405 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in evergreen_hdmi_enable() local 407 if (!dig || !dig->afmt) in evergreen_hdmi_enable() 414 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 419 WREG32_OR(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 422 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, in evergreen_hdmi_enable() 425 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 429 WREG32_AND(AFMT_AUDIO_PACKET_CONTROL + dig->afmt->offset, in evergreen_hdmi_enable() 431 WREG32(HDMI_INFOFRAME_CONTROL0 + dig->afmt->offset, 0); in evergreen_hdmi_enable() 434 dig->afmt->enabled = enable; in evergreen_hdmi_enable() 437 enable ? "En" : "Dis", dig->afmt->offset, radeon_encoder->encoder_id); in evergreen_hdmi_enable() [all …]
|
D | atombios_encoders.c | 98 struct radeon_encoder_atom_dig *dig; in atombios_set_backlight_level() local 107 dig = radeon_encoder->enc_priv; in atombios_set_backlight_level() 108 dig->backlight_level = level; in atombios_set_backlight_level() 109 radeon_atom_set_backlight_level_to_reg(rdev, dig->backlight_level); in atombios_set_backlight_level() 115 if (dig->backlight_level == 0) { in atombios_set_backlight_level() 130 if (dig->backlight_level == 0) in atombios_set_backlight_level() 193 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_init() local 233 dig = radeon_encoder->enc_priv; in radeon_atom_backlight_init() 234 dig->bl_dev = bd; in radeon_atom_backlight_init() 262 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 | 397 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_atif_handler() local 398 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 401 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_atif_handler() local 402 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 749 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_acpi_init() local 750 if (dig->bl_dev) { in radeon_acpi_init() 755 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_acpi_init() local 756 if (dig->bl_dev) { in radeon_acpi_init()
|
D | atombios_dp.c | 506 struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; in radeon_dp_needs_link_train() local 511 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in radeon_dp_needs_link_train() 602 struct radeon_encoder_atom_dig *dig = radeon_encoder->enc_priv; in radeon_dp_link_train_init() local 616 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE) in radeon_dp_link_train_init() 789 struct radeon_encoder_atom_dig *dig; in radeon_dp_link_train() local 798 dig = radeon_encoder->enc_priv; in radeon_dp_link_train() 821 if (dig->dig_encoder) in radeon_dp_link_train() 825 if (dig->linkb) in radeon_dp_link_train()
|
/kernel/linux/linux-5.10/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 | 1214 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() local 1217 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin() 1220 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin() 1221 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() 1222 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin() 1231 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() local 1238 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields() 1268 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields() 1277 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() local 1285 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 1240 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() local 1243 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin() 1246 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v11_0_afmt_audio_select_pin() 1247 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() 1248 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v11_0_afmt_audio_select_pin() 1257 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() local 1264 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields() 1294 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_latency_fields() 1303 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() local 1311 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 212 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_init_backlight() 213 dig->bl_dev = bd; in amdgpu_atombios_encoder_init_backlight() 234 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_fini_backlight() local 242 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_fini_backlight() [all …]
|
D | dce_v8_0.c | 1151 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_afmt_audio_select_pin() local 1154 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_afmt_audio_select_pin() 1157 offset = dig->afmt->offset; in dce_v8_0_afmt_audio_select_pin() 1160 (dig->afmt->pin->id << AFMT_AUDIO_SRC_CONTROL__AFMT_AUDIO_SRC_SELECT__SHIFT)); in dce_v8_0_afmt_audio_select_pin() 1169 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_latency_fields() local 1175 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_latency_fields() 1178 offset = dig->afmt->pin->offset; in dce_v8_0_audio_write_latency_fields() 1230 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v8_0_audio_write_speaker_allocation() local 1238 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v8_0_audio_write_speaker_allocation() 1241 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 | 456 struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; in amdgpu_atombios_dp_needs_link_train() local 461 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in amdgpu_atombios_dp_needs_link_train() 539 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init() local 553 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE) in amdgpu_atombios_dp_link_train_init()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
D | tpm2.py | 437 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): argument 439 assert(ds == len(dig)) 452 1, bank_alg, dig) 489 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg) 490 if not dig: 505 len(dig), 506 bytes(dig),
|
/kernel/linux/linux-5.10/drivers/staging/rtl8192u/ |
D | r8192U_dm.h | 94 struct dig { struct 149 extern struct dig dm_digtable;
|
/kernel/linux/linux-5.10/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() 245 struct dig_transmitter_control_parameters_v1_6 *dig) in transmitter_control_dmcub() argument 257 cmd.dig1_transmitter_control.transmitter_control.dig = *dig; in transmitter_control_dmcub()
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/rockchip/ |
D | rk3399-gru-kevin.dts | 30 p3_3v_dig: p3-3v-dig { 306 cpu1_dig_irq_l: cpu1-dig-irq-l { 311 cpu1_dig_pdct_l: cpu1-dig-pdct-l {
|
/kernel/linux/linux-5.10/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()
|