Lines Matching refs:txgapk
1400 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in _rtw8822c_txgapk_write_gain_bb_table() local
1427 v = txgapk->rf3f_bp[band][gain][path]; in _rtw8822c_txgapk_write_gain_bb_table()
1430 tmp_3f = txgapk->rf3f_bp[band][gain][path]; in _rtw8822c_txgapk_write_gain_bb_table()
1435 txgapk->rf3f_bp[band][gain][path]); in _rtw8822c_txgapk_write_gain_bb_table()
1437 tmp_3f = txgapk->rf3f_bp[band][gain][path]; in _rtw8822c_txgapk_write_gain_bb_table()
1472 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in rtw8822c_txgapk_read_offset() local
1473 u8 channel = txgapk->channel; in rtw8822c_txgapk_read_offset()
1518 txgapk->offset[0][path] = (s8)FIELD_GET(BIT_GAPK_RPT0, val); in rtw8822c_txgapk_read_offset()
1519 txgapk->offset[1][path] = (s8)FIELD_GET(BIT_GAPK_RPT1, val); in rtw8822c_txgapk_read_offset()
1520 txgapk->offset[2][path] = (s8)FIELD_GET(BIT_GAPK_RPT2, val); in rtw8822c_txgapk_read_offset()
1521 txgapk->offset[3][path] = (s8)FIELD_GET(BIT_GAPK_RPT3, val); in rtw8822c_txgapk_read_offset()
1522 txgapk->offset[4][path] = (s8)FIELD_GET(BIT_GAPK_RPT4, val); in rtw8822c_txgapk_read_offset()
1523 txgapk->offset[5][path] = (s8)FIELD_GET(BIT_GAPK_RPT5, val); in rtw8822c_txgapk_read_offset()
1524 txgapk->offset[6][path] = (s8)FIELD_GET(BIT_GAPK_RPT6, val); in rtw8822c_txgapk_read_offset()
1525 txgapk->offset[7][path] = (s8)FIELD_GET(BIT_GAPK_RPT7, val); in rtw8822c_txgapk_read_offset()
1530 txgapk->offset[8][path] = (s8)FIELD_GET(BIT_GAPK_RPT0, val); in rtw8822c_txgapk_read_offset()
1531 txgapk->offset[9][path] = (s8)FIELD_GET(BIT_GAPK_RPT1, val); in rtw8822c_txgapk_read_offset()
1534 if (txgapk->offset[i][path] & BIT(3)) in rtw8822c_txgapk_read_offset()
1535 txgapk->offset[i][path] = txgapk->offset[i][path] | in rtw8822c_txgapk_read_offset()
1540 txgapk->offset[i][path], i, path); in rtw8822c_txgapk_read_offset()
1547 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in rtw8822c_txgapk_calculate_offset() local
1548 u8 channel = txgapk->channel; in rtw8822c_txgapk_calculate_offset()
1655 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in rtw8822c_txgapk_write_tx_gain() local
1658 u8 path, band = RF_BAND_2G_OFDM, channel = txgapk->channel; in rtw8822c_txgapk_write_tx_gain()
1683 v = txgapk->rf3f_bp[band][j][path]; in rtw8822c_txgapk_write_tx_gain()
1687 offset_tmp[i] += txgapk->offset[j][path]; in rtw8822c_txgapk_write_tx_gain()
1688 txgapk->fianl_offset[i][path] = offset_tmp[i]; in rtw8822c_txgapk_write_tx_gain()
1691 v = txgapk->rf3f_bp[band][i][path]; in rtw8822c_txgapk_write_tx_gain()
1695 txgapk->rf3f_bp[band][i][path]); in rtw8822c_txgapk_write_tx_gain()
1697 txgapk->rf3f_fs[path][i] = offset_tmp[i]; in rtw8822c_txgapk_write_tx_gain()
1710 txgapk->rf3f_bp[band][i][path], in rtw8822c_txgapk_write_tx_gain()
1725 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in rtw8822c_txgapk_save_all_tx_gain_table() local
1738 if (txgapk->read_txgain == 1) { in rtw8822c_txgapk_save_all_tx_gain_table()
1765 txgapk->rf3f_bp[band][gain][path] = v & BIT_DATA_L; in rtw8822c_txgapk_save_all_tx_gain_table()
1769 txgapk->rf3f_bp[band][gain][path], in rtw8822c_txgapk_save_all_tx_gain_table()
1779 txgapk->read_txgain = 1; in rtw8822c_txgapk_save_all_tx_gain_table()
1785 struct rtw_gapk_info *txgapk = &rtwdev->dm_info.gapk; in rtw8822c_txgapk() local
1793 if (txgapk->read_txgain == 0) { in rtw8822c_txgapk()
1810 txgapk->channel = rtw_read_rf(rtwdev, path, in rtw8822c_txgapk()