Lines Matching refs:dgain
2225 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()
2251 else if (dgain <= 0x2a9 && dgain >= 0x1e3) in _dpk_dgain_mapping()
2253 else if (dgain <= 0x1e2 && dgain >= 0x156) in _dpk_dgain_mapping()
2255 else if (dgain <= 0x155) in _dpk_dgain_mapping()
2365 u16 dgain = 0; in _dpk_agc() local
2380 dgain = _dpk_dgain_read(rtwdev); in _dpk_agc()
2390 offset = _dpk_dgain_mapping(rtwdev, dgain); in _dpk_agc()
2412 if (dgain > DPK_DGAIN_UPPER || dgain < DPK_DGAIN_LOWER) in _dpk_agc()