/linux-6.6.21/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 | 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 | radeon_audio.c | 191 struct radeon_encoder_atom_dig *dig; in radeon_audio_enable() local 201 dig = radeon_encoder->enc_priv; in radeon_audio_enable() 202 if (dig->pin == pin) in radeon_audio_enable() 388 struct radeon_encoder_atom_dig *dig; in radeon_audio_detect() local 396 dig = radeon_encoder->enc_priv; in radeon_audio_detect() 412 if (!dig->pin) in radeon_audio_detect() 413 dig->pin = radeon_audio_get_pin(encoder); in radeon_audio_detect() 414 radeon_audio_enable(rdev, dig->pin, 0xf); in radeon_audio_detect() 416 radeon_audio_enable(rdev, dig->pin, 0); in radeon_audio_detect() 417 dig->pin = NULL; in radeon_audio_detect() [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 | 102 struct radeon_encoder_atom_dig *dig; in atombios_set_backlight_level() local 111 dig = radeon_encoder->enc_priv; in atombios_set_backlight_level() 112 dig->backlight_level = level; in atombios_set_backlight_level() 113 radeon_atom_set_backlight_level_to_reg(rdev, dig->backlight_level); in atombios_set_backlight_level() 119 if (dig->backlight_level == 0) { in atombios_set_backlight_level() 134 if (dig->backlight_level == 0) in atombios_set_backlight_level() 195 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_init() local 240 dig = radeon_encoder->enc_priv; in radeon_atom_backlight_init() 241 dig->bl_dev = bd; in radeon_atom_backlight_init() 269 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 | 395 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_atif_handler() local 396 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 399 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_atif_handler() local 400 backlight_force_update(dig->bl_dev, in radeon_atif_handler() 746 struct radeon_encoder_atom_dig *dig = enc->enc_priv; in radeon_acpi_init() local 747 if (dig->bl_dev) { in radeon_acpi_init() 752 struct radeon_encoder_lvds *dig = enc->enc_priv; in radeon_acpi_init() local 753 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()
|
/linux-6.6.21/tools/include/nolibc/ |
D | stdlib.h | 206 int dig; in utoh_r() local 209 dig = in >> pos; in utoh_r() 210 in -= (uint64_t)dig << pos; in utoh_r() 212 if (dig || digits || pos < 0) { in utoh_r() 213 if (dig > 9) in utoh_r() 214 dig += 'a' - '0' - 10; in utoh_r() 215 buffer[digits++] = '0' + dig; in utoh_r() 247 int dig; in utoa_r() local 250 for (dig = 0, lim = 1; dig < pos; dig++) in utoa_r() 254 for (dig = 0; in >= lim; dig++) in utoa_r() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | dce_v6_0.c | 1121 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_select_pin() local 1123 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v6_0_audio_select_pin() 1126 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, in dce_v6_0_audio_select_pin() 1128 dig->afmt->pin->id)); in dce_v6_0_audio_select_pin() 1137 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_latency_fields() local 1172 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_latency_fields() 1181 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v6_0_audio_write_speaker_allocation() local 1210 tmp = RREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation() 1231 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v6_0_audio_write_speaker_allocation() 1242 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 | 1211 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_afmt_audio_select_pin() local 1214 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_afmt_audio_select_pin() 1217 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v10_0_afmt_audio_select_pin() 1218 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() 1219 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v10_0_afmt_audio_select_pin() 1228 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_latency_fields() local 1235 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_latency_fields() 1265 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v10_0_audio_write_latency_fields() 1274 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v10_0_audio_write_speaker_allocation() local 1282 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v10_0_audio_write_speaker_allocation() [all …]
|
D | dce_v11_0.c | 1243 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_afmt_audio_select_pin() local 1246 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_afmt_audio_select_pin() 1249 tmp = RREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset); in dce_v11_0_afmt_audio_select_pin() 1250 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() 1251 WREG32(mmAFMT_AUDIO_SRC_CONTROL + dig->afmt->offset, tmp); in dce_v11_0_afmt_audio_select_pin() 1260 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_latency_fields() local 1267 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_latency_fields() 1297 WREG32_AUDIO_ENDPT(dig->afmt->pin->offset, in dce_v11_0_audio_write_latency_fields() 1306 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in dce_v11_0_audio_write_speaker_allocation() local 1314 if (!dig || !dig->afmt || !dig->afmt->pin) in dce_v11_0_audio_write_speaker_allocation() [all …]
|
D | atombios_encoders.c | 89 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_set_backlight_level() local 96 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level() 97 dig->backlight_level = level; in amdgpu_atombios_encoder_set_backlight_level() 98 amdgpu_atombios_encoder_set_backlight_level_to_reg(adev, dig->backlight_level); in amdgpu_atombios_encoder_set_backlight_level() 106 if (dig->backlight_level == 0) in amdgpu_atombios_encoder_set_backlight_level() 172 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_init_backlight() local 213 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_init_backlight() 214 dig->bl_dev = bd; in amdgpu_atombios_encoder_init_backlight() 240 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_fini_backlight() local 248 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 …]
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/ |
D | phy.c | 3818 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_read_gain_table() local 3828 gain_arr = dig->lna_gain_g; in rtw89_phy_dig_read_gain_table() 3834 gain_arr = dig->tia_gain_g; in rtw89_phy_dig_read_gain_table() 3840 gain_arr = dig->lna_gain_a; in rtw89_phy_dig_read_gain_table() 3846 gain_arr = dig->tia_gain_a; in rtw89_phy_dig_read_gain_table() 3869 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_update_gain_para() local 3878 dig->ib_pkpwr = sign_extend32(tmp >> DIG_GAIN_SHIFT, U8_MAX_BIT); in rtw89_phy_dig_update_gain_para() 3879 dig->ib_pbk = rtw89_phy_read32_mask(rtwdev, R_PATH0_IB_PBK, in rtw89_phy_dig_update_gain_para() 3882 dig->ib_pkpwr, dig->ib_pbk); in rtw89_phy_dig_update_gain_para() 3897 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_update_rssi_info() local [all …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/dsa/b53/ |
D | b53_serdes.c | 107 u16 dig, bmsr; in b53_serdes_get_state() local 109 dig = b53_serdes_read(dev, lane, B53_SERDES_DIGITAL_STATUS, in b53_serdes_get_state() 114 switch ((dig >> SPEED_STATUS_SHIFT) & SPEED_STATUS_MASK) { in b53_serdes_get_state() 130 state->duplex = dig & DUPLEX_STATUS ? DUPLEX_FULL : DUPLEX_HALF; in b53_serdes_get_state() 132 state->link = !!(dig & LINK_STATUS); in b53_serdes_get_state() 133 if (dig & PAUSE_RESOLUTION_RX_SIDE) in b53_serdes_get_state() 135 if (dig & PAUSE_RESOLUTION_TX_SIDE) in b53_serdes_get_state()
|
/linux-6.6.21/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()
|
/linux-6.6.21/Documentation/devicetree/bindings/phy/ |
D | ti,phy-j721e-wiz.yaml | 74 refclk-dig: 143 "^cmn-refclk1?-dig-div$": 230 cmn-refclk-dig-div { 235 cmn-refclk1-dig-div { 240 refclk-dig {
|
/linux-6.6.21/drivers/staging/rtl8192u/ |
D | r8192U_dm.h | 94 struct dig { struct 149 extern struct dig dm_digtable;
|
/linux-6.6.21/tools/testing/selftests/tpm2/ |
D | tpm2.py | 438 def extend_pcr(self, i, dig, bank_alg = TPM2_ALG_SHA1): argument 440 assert(ds == len(dig)) 453 1, bank_alg, dig) 490 dig = self.__calc_pcr_digest(pcrs, bank_alg, name_alg) 491 if not dig: 506 len(dig), 507 bytes(dig),
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/bios/ |
D | command_table2.c | 112 struct dig_encoder_stream_setup_parameters_v1_5 *dig) in encoder_control_dmcub() argument 124 cmd.digx_encoder_control.encoder_control.dig.stream_param = *dig; in encoder_control_dmcub() 248 struct dig_transmitter_control_parameters_v1_6 *dig) in transmitter_control_dmcub() argument 260 cmd.dig1_transmitter_control.transmitter_control.dig = *dig; in transmitter_control_dmcub() 310 struct dmub_dig_transmitter_control_data_v1_7 *dig) in transmitter_control_dmcub_v1_7() argument 322 cmd.dig1_transmitter_control.transmitter_control.dig_v1_7 = *dig; in transmitter_control_dmcub_v1_7()
|
/linux-6.6.21/arch/arm64/boot/dts/rockchip/ |
D | rk3399-gru-kevin.dts | 31 p3_3v_dig: p3-3v-dig { 307 cpu1_dig_irq_l: cpu1-dig-irq-l { 312 cpu1_dig_pdct_l: cpu1-dig-pdct-l {
|