Lines Matching refs:dgain

2041 	u16 dgain;  in _dpk_dgain_read()  local
2045 dgain = rtw89_phy_read32_mask(rtwdev, R_RPT_COM, B_PRT_COM_DCI); in _dpk_dgain_read()
2047 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] DGain = 0x%x\n", dgain); in _dpk_dgain_read()
2049 return dgain; in _dpk_dgain_read()
2052 static s8 _dpk_dgain_mapping(struct rtw89_dev *rtwdev, u16 dgain) in _dpk_dgain_mapping() argument
2060 if (dgain >= bnd[0]) in _dpk_dgain_mapping()
2062 else if (bnd[0] > dgain && dgain >= bnd[1]) in _dpk_dgain_mapping()
2064 else if (bnd[1] > dgain && dgain >= bnd[2]) in _dpk_dgain_mapping()
2066 else if (bnd[2] > dgain && dgain >= bnd[3]) in _dpk_dgain_mapping()
2068 else if (bnd[3] > dgain && dgain >= bnd[4]) in _dpk_dgain_mapping()
2070 else if (bnd[4] > dgain && dgain >= bnd[5]) in _dpk_dgain_mapping()
2072 else if (bnd[5] > dgain && dgain >= bnd[6]) in _dpk_dgain_mapping()
2074 else if (bnd[6] > dgain && dgain >= bnd[7]) in _dpk_dgain_mapping()
2076 else if (bnd[7] > dgain && dgain >= bnd[8]) in _dpk_dgain_mapping()
2078 else if (bnd[8] > dgain && dgain >= bnd[9]) in _dpk_dgain_mapping()
2080 else if (bnd[9] > dgain && dgain >= bnd[10]) in _dpk_dgain_mapping()
2082 else if (bnd[10] > dgain && dgain >= bnd[11]) in _dpk_dgain_mapping()
2084 else if (bnd[11] > dgain && dgain >= bnd[12]) in _dpk_dgain_mapping()
2086 else if (bnd[12] > dgain && dgain >= bnd[13]) in _dpk_dgain_mapping()
2088 else if (bnd[13] > dgain && dgain >= bnd[14]) in _dpk_dgain_mapping()
2090 else if (bnd[14] > dgain) in _dpk_dgain_mapping()
2231 u16 dgain = 0; in _dpk_agc() local
2246 dgain = _dpk_dgain_read(rtwdev); in _dpk_agc()
2257 offset = _dpk_dgain_mapping(rtwdev, dgain); in _dpk_agc()
2279 if (dgain > 1922 || dgain < 342) in _dpk_agc()