Lines Matching refs:chan_idx
895 u8 chan_idx; in rtw8852c_encode_chan_idx() local
901 chan_idx = FIELD_PREP(RTW8852C_CH_BASE_IDX_MASK, RTW8852C_CH_BASE_IDX_2G) | in rtw8852c_encode_chan_idx()
903 return chan_idx; in rtw8852c_encode_chan_idx()
926 chan_idx = FIELD_PREP(RTW8852C_CH_BASE_IDX_MASK, idx) | in rtw8852c_encode_chan_idx()
929 return chan_idx; in rtw8852c_encode_chan_idx()
932 static void rtw8852c_decode_chan_idx(struct rtw89_dev *rtwdev, u8 chan_idx, in rtw8852c_decode_chan_idx() argument
937 idx = FIELD_GET(RTW8852C_CH_BASE_IDX_MASK, chan_idx); in rtw8852c_decode_chan_idx()
938 offset = FIELD_GET(RTW8852C_CH_OFFSET_MASK, chan_idx); in rtw8852c_decode_chan_idx()
1017 u8 chan_idx; in rtw8852c_ctrl_ch() local
1126 chan_idx = rtw8852c_encode_chan_idx(rtwdev, chan->primary_channel, band); in rtw8852c_ctrl_ch()
1127 rtw89_phy_write32_idx(rtwdev, R_MAC_PIN_SEL, B_CH_IDX_SEG0, chan_idx, phy_idx); in rtw8852c_ctrl_ch()
2915 u8 chan_idx = phy_ppdu->chan_idx; in rtw8852c_fill_freq_with_ppdu() local
2919 if (chan_idx == 0) in rtw8852c_fill_freq_with_ppdu()
2922 rtw8852c_decode_chan_idx(rtwdev, chan_idx, &ch, &band); in rtw8852c_fill_freq_with_ppdu()