Home
last modified time | relevance | path

Searched refs:dgain (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Drtw8852a_rfk.c2225 u16 dgain = 0x0; in _dpk_dgain_read() local
2231 dgain = (u16)rtw89_phy_read32_mask(rtwdev, R_RPT_COM, B_PRT_COM_DCI); in _dpk_dgain_read()
2233 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] DGain = 0x%x (%d)\n", dgain, in _dpk_dgain_read()
2234 dgain); in _dpk_dgain_read()
2236 return dgain; in _dpk_dgain_read()
2239 static s8 _dpk_dgain_mapping(struct rtw89_dev *rtwdev, u16 dgain) in _dpk_dgain_mapping() argument
2243 if (dgain >= 0x783) in _dpk_dgain_mapping()
2245 else if (dgain <= 0x782 && dgain >= 0x551) in _dpk_dgain_mapping()
2247 else if (dgain <= 0x550 && dgain >= 0x3c4) in _dpk_dgain_mapping()
2249 else if (dgain <= 0x3c3 && dgain >= 0x2aa) in _dpk_dgain_mapping()
[all …]
Drtw8852c_rfk.c1970 u16 dgain = 0x0; in _dpk_dgain_read() local
1974 dgain = rtw89_phy_read32_mask(rtwdev, R_RPT_COM, B_PRT_COM_DCI); in _dpk_dgain_read()
1976 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] DGain = 0x%x (%d)\n", dgain, dgain); in _dpk_dgain_read()
1978 return dgain; in _dpk_dgain_read()
2107 u16 dgain = 0; in _dpk_agc() local
2124 dgain = _dpk_dgain_read(rtwdev); in _dpk_agc()
2126 if (dgain > 0x5fc || dgain < 0x556) { in _dpk_agc()
2128 dgain = _dpk_dgain_read(rtwdev); in _dpk_agc()
/linux-6.1.9/sound/soc/atmel/
Datmel-pdmic.c223 unsigned int dgain; member
294 if ((mic_gain_table[i].dgain == dgain_val) && in pdmic_get_mic_volsw()
318 mic_gain_table[val].dgain << PDMIC_DSPR1_DGAIN_SHIFT); in pdmic_put_mic_volsw()
/linux-6.1.9/drivers/staging/media/atomisp/i2c/
Datomisp-gc0310.c422 u8 again, dgain; in gc0310_set_gain() local
431 dgain = gain; in gc0310_set_gain()
434 dgain = gain / 2; in gc0310_set_gain()
437 dev_dbg(&client->dev, "gain=0x%x again=0x%x dgain=0x%x\n", gain, again, dgain); in gc0310_set_gain()
447 GC0310_DGC_ADJ, dgain); in gc0310_set_gain()
/linux-6.1.9/include/uapi/linux/
Domap3isp.h534 __u16 dgain; member
/linux-6.1.9/drivers/media/i2c/
Dimx274.c1560 static int imx274_set_digital_gain(struct stimx274 *priv, u32 dgain) in imx274_set_digital_gain() argument
1564 reg_val = ffs(dgain); in imx274_set_digital_gain()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c3459 u16 dgain; in rtw8822c_dpk_dgain_read() local
3464 dgain = (u16)rtw_read32_mask(rtwdev, REG_STAT_RPT, GENMASK(27, 16)); in rtw8822c_dpk_dgain_read()
3466 return dgain; in rtw8822c_dpk_dgain_read()
3547 u16 dgain; in rtw8822c_dpk_agc_gain_chk() local
3550 dgain = rtw8822c_dpk_dgain_read(rtwdev, path); in rtw8822c_dpk_agc_gain_chk()
3552 if (dgain > 1535 && !limited_pga) in rtw8822c_dpk_agc_gain_chk()
3554 else if (dgain < 768 && !limited_pga) in rtw8822c_dpk_agc_gain_chk()
/linux-6.1.9/drivers/media/platform/ti/omap3isp/
Disppreview.c310 isp_reg_writel(isp, wbal->dgain, OMAP3_ISP_IOMEM_PREV, ISPPRV_WB_DGAIN); in preview_config_whitebalance()
1333 params->wbal.dgain = FLR_WBAL_DGAIN; in preview_init_params()