Lines Matching refs:pri_ch
508 u8 pri_ch = param->primary_chan; in rtw89_phy_get_txsc() local
518 txsc_idx = pri_ch > central_ch ? 1 : 2; in rtw89_phy_get_txsc()
522 if (pri_ch > central_ch) in rtw89_phy_get_txsc()
523 txsc_idx = (pri_ch - central_ch) >> 1; in rtw89_phy_get_txsc()
525 txsc_idx = ((central_ch - pri_ch) >> 1) + 1; in rtw89_phy_get_txsc()
527 txsc_idx = pri_ch > central_ch ? 9 : 10; in rtw89_phy_get_txsc()
531 if (pri_ch > central_ch) in rtw89_phy_get_txsc()
532 tmp = (pri_ch - central_ch) >> 1; in rtw89_phy_get_txsc()
534 tmp = ((central_ch - pri_ch) >> 1) + 1; in rtw89_phy_get_txsc()
550 txsc_idx = pri_ch > central_ch ? 13 : 14; in rtw89_phy_get_txsc()
555 if (pri_ch > central_ch) in rtw89_phy_get_txsc()
556 txsc_idx = (10 - (pri_ch - central_ch)) >> 1; in rtw89_phy_get_txsc()
558 txsc_idx = ((central_ch - pri_ch) >> 1) + 5; in rtw89_phy_get_txsc()
560 txsc_idx = pri_ch > central_ch ? 10 : 12; in rtw89_phy_get_txsc()