Home
last modified time | relevance | path

Searched refs:dig (Results 1 – 25 of 46) sorted by relevance

12

/drivers/gpu/drm/radeon/
Ddce6_afmt.c82 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 …]
Dradeon_audio.c188 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 …]
Dr600_hdmi.c250 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 …]
Devergreen_hdmi.c406 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 …]
Datombios_encoders.c101 struct radeon_encoder_atom_dig *dig; in atombios_set_backlight_level() local
110 dig = radeon_encoder->enc_priv; in atombios_set_backlight_level()
111 dig->backlight_level = level; in atombios_set_backlight_level()
112 radeon_atom_set_backlight_level_to_reg(rdev, dig->backlight_level); in atombios_set_backlight_level()
118 if (dig->backlight_level == 0) { in atombios_set_backlight_level()
133 if (dig->backlight_level == 0) in atombios_set_backlight_level()
194 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_init() local
239 dig = radeon_encoder->enc_priv; in radeon_atom_backlight_init()
240 dig->bl_dev = bd; in radeon_atom_backlight_init()
268 struct radeon_encoder_atom_dig *dig; in radeon_atom_backlight_exit() local
[all …]
Dradeon_acpi.c395 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()
Ddce3_1_afmt.c120 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()
Datombios_dp.c507 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()
/drivers/gpu/drm/amd/amdgpu/
Ddce_v6_0.c1119 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 …]
Ddce_v10_0.c1215 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 …]
Ddce_v11_0.c1241 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 …]
Datombios_encoders.c90 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_set_backlight_level() local
97 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_set_backlight_level()
98 dig->backlight_level = level; in amdgpu_atombios_encoder_set_backlight_level()
99 amdgpu_atombios_encoder_set_backlight_level_to_reg(adev, dig->backlight_level); in amdgpu_atombios_encoder_set_backlight_level()
107 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
214 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_init_backlight()
215 dig->bl_dev = bd; in amdgpu_atombios_encoder_init_backlight()
241 struct amdgpu_encoder_atom_dig *dig; in amdgpu_atombios_encoder_fini_backlight() local
249 dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_encoder_fini_backlight()
[all …]
Ddce_v8_0.c1152 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 …]
Damdgpu_connectors.c142 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()
Datombios_dp.c459 struct amdgpu_connector_atom_dig *dig = amdgpu_connector->con_priv; in amdgpu_atombios_dp_needs_link_train() local
464 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in amdgpu_atombios_dp_needs_link_train()
542 struct amdgpu_encoder_atom_dig *dig = amdgpu_encoder->enc_priv; in amdgpu_atombios_dp_link_train_init() local
556 if (dig->panel_mode == DP_PANEL_MODE_INTERNAL_DP2_MODE) in amdgpu_atombios_dp_link_train_init()
/drivers/net/wireless/realtek/rtw89/
Dphy.c3251 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_read_gain_table() local
3261 gain_arr = dig->lna_gain_g; in rtw89_phy_dig_read_gain_table()
3267 gain_arr = dig->tia_gain_g; in rtw89_phy_dig_read_gain_table()
3273 gain_arr = dig->lna_gain_a; in rtw89_phy_dig_read_gain_table()
3279 gain_arr = dig->tia_gain_a; in rtw89_phy_dig_read_gain_table()
3302 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_update_gain_para() local
3311 dig->ib_pkpwr = sign_extend32(tmp >> DIG_GAIN_SHIFT, U8_MAX_BIT); in rtw89_phy_dig_update_gain_para()
3312 dig->ib_pbk = rtw89_phy_read32_mask(rtwdev, R_PATH0_IB_PBK, in rtw89_phy_dig_update_gain_para()
3315 dig->ib_pkpwr, dig->ib_pbk); in rtw89_phy_dig_update_gain_para()
3330 struct rtw89_dig_info *dig = &rtwdev->dig; in rtw89_phy_dig_update_rssi_info() local
[all …]
/drivers/input/touchscreen/
Dwm9705.c182 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()
Dwm9713.c221 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()
Dwm9712.c218 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()
Dwm97xx-core.c97 wm->dig[(reg - AC97_WM9713_DIG1) >> 1] = val; in wm97xx_reg_write()
807 wm97xx_reg_write(wm, AC97_WM9713_DIG1, wm->dig[0]); in wm97xx_resume()
816 wm97xx_reg_write(wm, AC97_WM9713_DIG2, wm->dig[1]); in wm97xx_resume()
817 wm97xx_reg_write(wm, AC97_WM9713_DIG3, wm->dig[2]); in wm97xx_resume()
/drivers/net/dsa/b53/
Db53_serdes.c107 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()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Ddm.c511 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/
Dcommand_table2.c112 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()
250 struct dig_transmitter_control_parameters_v1_6 *dig) in transmitter_control_dmcub() argument
262 cmd.dig1_transmitter_control.transmitter_control.dig = *dig; in transmitter_control_dmcub()
314 struct dmub_dig_transmitter_control_data_v1_7 *dig) in transmitter_control_dmcub_v1_7() argument
326 cmd.dig1_transmitter_control.transmitter_control.dig_v1_7 = *dig; in transmitter_control_dmcub_v1_7()
/drivers/staging/rtl8192u/
Dr8192U_dm.h94 struct dig { struct
149 extern struct dig dm_digtable;
/drivers/iio/adc/
Dqcom-spmi-iadc.c165 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()

12