Lines Matching refs:mac_idx

54 int rtw89_mac_check_mac_en(struct rtw89_dev *rtwdev, u8 mac_idx,  in rtw89_mac_check_mac_en()  argument
62 } else if (sel == RTW89_CMAC_SEL && mac_idx == 0) { in rtw89_mac_check_mac_en()
65 } else if (sel == RTW89_CMAC_SEL && mac_idx == 1) { in rtw89_mac_check_mac_en()
1145 static int cmac_func_en(struct rtw89_dev *rtwdev, u8 mac_idx, bool en) in cmac_func_en() argument
1167 if (mac_idx == RTW89_MAC_1) { in cmac_func_en()
1174 rtw89_write32_set(rtwdev, addrl_ck_en[mac_idx], ck_en); in cmac_func_en()
1175 rtw89_write32_set(rtwdev, addrl_func_en[mac_idx], func_en); in cmac_func_en()
1177 rtw89_write32_clr(rtwdev, addrl_func_en[mac_idx], func_en); in cmac_func_en()
1178 rtw89_write32_clr(rtwdev, addrl_ck_en[mac_idx], ck_en); in cmac_func_en()
1179 if (mac_idx == RTW89_MAC_1) { in cmac_func_en()
1563 static int preload_init_set(struct rtw89_dev *rtwdev, enum rtw89_mac_idx mac_idx, in preload_init_set() argument
1568 max_preld_size = (mac_idx == RTW89_MAC_0 ? in preload_init_set()
1570 reg = mac_idx == RTW89_MAC_0 ? in preload_init_set()
1576 reg = mac_idx == RTW89_MAC_0 ? in preload_init_set()
1589 static int preload_init(struct rtw89_dev *rtwdev, enum rtw89_mac_idx mac_idx, in preload_init() argument
1597 return preload_init_set(rtwdev, mac_idx, mode); in preload_init()
1717 static int dmac_init(struct rtw89_dev *rtwdev, u8 mac_idx) in dmac_init() argument
1760 static int addr_cam_init(struct rtw89_dev *rtwdev, u8 mac_idx) in addr_cam_init() argument
1766 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in addr_cam_init()
1770 reg = rtw89_mac_reg_by_idx(R_AX_ADDR_CAM_CTRL, mac_idx); in addr_cam_init()
1787 static int scheduler_init(struct rtw89_dev *rtwdev, u8 mac_idx) in scheduler_init() argument
1793 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in scheduler_init()
1797 reg = rtw89_mac_reg_by_idx(R_AX_PREBKF_CFG_1, mac_idx); in scheduler_init()
1806 reg = rtw89_mac_reg_by_idx(R_AX_SCH_EXT_CTRL, mac_idx); in scheduler_init()
1810 reg = rtw89_mac_reg_by_idx(R_AX_CCA_CFG_0, mac_idx); in scheduler_init()
1813 reg = rtw89_mac_reg_by_idx(R_AX_PREBKF_CFG_0, mac_idx); in scheduler_init()
1831 u8 mac_idx) in rtw89_mac_typ_fltr_opt() argument
1853 reg = rtw89_mac_reg_by_idx(R_AX_MGNT_FLTR, mac_idx); in rtw89_mac_typ_fltr_opt()
1856 reg = rtw89_mac_reg_by_idx(R_AX_CTRL_FLTR, mac_idx); in rtw89_mac_typ_fltr_opt()
1859 reg = rtw89_mac_reg_by_idx(R_AX_DATA_FLTR, mac_idx); in rtw89_mac_typ_fltr_opt()
1870 static int rx_fltr_init(struct rtw89_dev *rtwdev, u8 mac_idx) in rx_fltr_init() argument
1875 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rx_fltr_init()
1881 mac_idx); in rx_fltr_init()
1890 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_RX_FLTR_OPT, mac_idx), in rx_fltr_init()
1892 rtw89_write16(rtwdev, rtw89_mac_reg_by_idx(R_AX_PLCP_HDR_FLTR, mac_idx), in rx_fltr_init()
1898 static void _patch_dis_resp_chk(struct rtw89_dev *rtwdev, u8 mac_idx) in _patch_dis_resp_chk() argument
1912 reg = rtw89_mac_reg_by_idx(R_AX_RSP_CHK_SIG, mac_idx); in _patch_dis_resp_chk()
1916 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_0, mac_idx); in _patch_dis_resp_chk()
1921 reg = rtw89_mac_reg_by_idx(R_AX_RSP_CHK_SIG, mac_idx); in _patch_dis_resp_chk()
1925 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_0, mac_idx); in _patch_dis_resp_chk()
1932 static int cca_ctrl_init(struct rtw89_dev *rtwdev, u8 mac_idx) in cca_ctrl_init() argument
1937 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in cca_ctrl_init()
1941 reg = rtw89_mac_reg_by_idx(R_AX_CCA_CONTROL, mac_idx); in cca_ctrl_init()
1959 _patch_dis_resp_chk(rtwdev, mac_idx); in cca_ctrl_init()
1974 static int spatial_reuse_init(struct rtw89_dev *rtwdev, u8 mac_idx) in spatial_reuse_init() argument
1979 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in spatial_reuse_init()
1982 reg = rtw89_mac_reg_by_idx(R_AX_RX_SR_CTRL, mac_idx); in spatial_reuse_init()
1988 static int tmac_init(struct rtw89_dev *rtwdev, u8 mac_idx) in tmac_init() argument
1993 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in tmac_init()
1997 reg = rtw89_mac_reg_by_idx(R_AX_MAC_LOOPBACK, mac_idx); in tmac_init()
2000 reg = rtw89_mac_reg_by_idx(R_AX_TCR0, mac_idx); in tmac_init()
2003 reg = rtw89_mac_reg_by_idx(R_AX_TXD_FIFO_CTRL, mac_idx); in tmac_init()
2010 static int trxptcl_init(struct rtw89_dev *rtwdev, u8 mac_idx) in trxptcl_init() argument
2017 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in trxptcl_init()
2021 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_0, mac_idx); in trxptcl_init()
2041 reg = rtw89_mac_reg_by_idx(R_AX_RXTRIG_TEST_USER_2, mac_idx); in trxptcl_init()
2044 reg = rtw89_mac_reg_by_idx(rrsr->ref_rate.addr, mac_idx); in trxptcl_init()
2046 reg = rtw89_mac_reg_by_idx(rrsr->rsc.addr, mac_idx); in trxptcl_init()
2067 static int rmac_init(struct rtw89_dev *rtwdev, u8 mac_idx) in rmac_init() argument
2078 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rmac_init()
2082 if (mac_idx == RTW89_MAC_0) in rmac_init()
2085 reg = rtw89_mac_reg_by_idx(R_AX_RESPBA_CAM_CTRL, mac_idx); in rmac_init()
2088 reg = rtw89_mac_reg_by_idx(R_AX_DLK_PROTECT_CTL, mac_idx); in rmac_init()
2096 reg = rtw89_mac_reg_by_idx(R_AX_RCR, mac_idx); in rmac_init()
2099 reg = rtw89_mac_reg_by_idx(R_AX_RX_FLTR_OPT, mac_idx); in rmac_init()
2100 if (mac_idx == RTW89_MAC_0) in rmac_init()
2113 rtw89_mac_reg_by_idx(R_AX_DLK_PROTECT_CTL, mac_idx), in rmac_init()
2115 rtw89_write16_set(rtwdev, rtw89_mac_reg_by_idx(R_AX_RCR, mac_idx), in rmac_init()
2119 reg = rtw89_mac_reg_by_idx(R_AX_PLCP_HDR_FLTR, mac_idx); in rmac_init()
2125 static int cmac_com_init(struct rtw89_dev *rtwdev, u8 mac_idx) in cmac_com_init() argument
2131 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in cmac_com_init()
2135 reg = rtw89_mac_reg_by_idx(R_AX_TX_SUB_CARRIER_VALUE, mac_idx); in cmac_com_init()
2143 reg = rtw89_mac_reg_by_idx(R_AX_PTCL_RRSR1, mac_idx); in cmac_com_init()
2163 static int ptcl_init(struct rtw89_dev *rtwdev, u8 mac_idx) in ptcl_init() argument
2168 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in ptcl_init()
2173 reg = rtw89_mac_reg_by_idx(R_AX_SIFS_SETTING, mac_idx); in ptcl_init()
2182 reg = rtw89_mac_reg_by_idx(R_AX_PTCL_FSM_MON, mac_idx); in ptcl_init()
2189 if (mac_idx == RTW89_MAC_0) { in ptcl_init()
2198 } else if (mac_idx == RTW89_MAC_1) { in ptcl_init()
2206 static int cmac_dma_init(struct rtw89_dev *rtwdev, u8 mac_idx) in cmac_dma_init() argument
2215 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in cmac_dma_init()
2219 reg = rtw89_mac_reg_by_idx(R_AX_RXDMA_CTRL_0, mac_idx); in cmac_dma_init()
2225 static int cmac_init(struct rtw89_dev *rtwdev, u8 mac_idx) in cmac_init() argument
2229 ret = scheduler_init(rtwdev, mac_idx); in cmac_init()
2231 rtw89_err(rtwdev, "[ERR]CMAC%d SCH init %d\n", mac_idx, ret); in cmac_init()
2235 ret = addr_cam_init(rtwdev, mac_idx); in cmac_init()
2237 rtw89_err(rtwdev, "[ERR]CMAC%d ADDR_CAM reset %d\n", mac_idx, in cmac_init()
2242 ret = rx_fltr_init(rtwdev, mac_idx); in cmac_init()
2244 rtw89_err(rtwdev, "[ERR]CMAC%d RX filter init %d\n", mac_idx, in cmac_init()
2249 ret = cca_ctrl_init(rtwdev, mac_idx); in cmac_init()
2251 rtw89_err(rtwdev, "[ERR]CMAC%d CCA CTRL init %d\n", mac_idx, in cmac_init()
2258 rtw89_err(rtwdev, "[ERR]CMAC%d NAV CTRL init %d\n", mac_idx, in cmac_init()
2263 ret = spatial_reuse_init(rtwdev, mac_idx); in cmac_init()
2266 mac_idx, ret); in cmac_init()
2270 ret = tmac_init(rtwdev, mac_idx); in cmac_init()
2272 rtw89_err(rtwdev, "[ERR]CMAC%d TMAC init %d\n", mac_idx, ret); in cmac_init()
2276 ret = trxptcl_init(rtwdev, mac_idx); in cmac_init()
2278 rtw89_err(rtwdev, "[ERR]CMAC%d TRXPTCL init %d\n", mac_idx, ret); in cmac_init()
2282 ret = rmac_init(rtwdev, mac_idx); in cmac_init()
2284 rtw89_err(rtwdev, "[ERR]CMAC%d RMAC init %d\n", mac_idx, ret); in cmac_init()
2288 ret = cmac_com_init(rtwdev, mac_idx); in cmac_init()
2290 rtw89_err(rtwdev, "[ERR]CMAC%d Com init %d\n", mac_idx, ret); in cmac_init()
2294 ret = ptcl_init(rtwdev, mac_idx); in cmac_init()
2296 rtw89_err(rtwdev, "[ERR]CMAC%d PTCL init %d\n", mac_idx, ret); in cmac_init()
2300 ret = cmac_dma_init(rtwdev, mac_idx); in cmac_init()
2302 rtw89_err(rtwdev, "[ERR]CMAC%d DMA init %d\n", mac_idx, ret); in cmac_init()
2398 static int rtw89_set_hw_sch_tx_en(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_set_hw_sch_tx_en() argument
2401 u32 reg = rtw89_mac_reg_by_idx(R_AX_CTN_TXEN, mac_idx); in rtw89_set_hw_sch_tx_en()
2405 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_set_hw_sch_tx_en()
2410 return rtw89_hw_sch_tx_en_h2c(rtwdev, mac_idx, in rtw89_set_hw_sch_tx_en()
2420 static int rtw89_set_hw_sch_tx_en_v1(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_set_hw_sch_tx_en_v1() argument
2423 u32 reg = rtw89_mac_reg_by_idx(R_AX_CTN_DRV_TXEN, mac_idx); in rtw89_set_hw_sch_tx_en_v1()
2427 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_set_hw_sch_tx_en_v1()
2438 int rtw89_mac_stop_sch_tx(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_mac_stop_sch_tx() argument
2444 rtw89_mac_reg_by_idx(R_AX_CTN_TXEN, mac_idx)); in rtw89_mac_stop_sch_tx()
2448 ret = rtw89_set_hw_sch_tx_en(rtwdev, mac_idx, 0, in rtw89_mac_stop_sch_tx()
2454 ret = rtw89_set_hw_sch_tx_en(rtwdev, mac_idx, in rtw89_mac_stop_sch_tx()
2460 ret = rtw89_set_hw_sch_tx_en(rtwdev, mac_idx, in rtw89_mac_stop_sch_tx()
2466 ret = rtw89_set_hw_sch_tx_en(rtwdev, mac_idx, 0, in rtw89_mac_stop_sch_tx()
2479 int rtw89_mac_stop_sch_tx_v1(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_mac_stop_sch_tx_v1() argument
2485 rtw89_mac_reg_by_idx(R_AX_CTN_DRV_TXEN, mac_idx)); in rtw89_mac_stop_sch_tx_v1()
2489 ret = rtw89_set_hw_sch_tx_en_v1(rtwdev, mac_idx, 0, in rtw89_mac_stop_sch_tx_v1()
2495 ret = rtw89_set_hw_sch_tx_en_v1(rtwdev, mac_idx, in rtw89_mac_stop_sch_tx_v1()
2501 ret = rtw89_set_hw_sch_tx_en_v1(rtwdev, mac_idx, in rtw89_mac_stop_sch_tx_v1()
2507 ret = rtw89_set_hw_sch_tx_en_v1(rtwdev, mac_idx, 0, in rtw89_mac_stop_sch_tx_v1()
2520 int rtw89_mac_resume_sch_tx(struct rtw89_dev *rtwdev, u8 mac_idx, u32 tx_en) in rtw89_mac_resume_sch_tx() argument
2524 ret = rtw89_set_hw_sch_tx_en(rtwdev, mac_idx, tx_en, B_AX_CTN_TXEN_ALL_MASK); in rtw89_mac_resume_sch_tx()
2532 int rtw89_mac_resume_sch_tx_v1(struct rtw89_dev *rtwdev, u8 mac_idx, u32 tx_en) in rtw89_mac_resume_sch_tx_v1() argument
2536 ret = rtw89_set_hw_sch_tx_en_v1(rtwdev, mac_idx, tx_en, in rtw89_mac_resume_sch_tx_v1()
2678 static int band_idle_ck_b(struct rtw89_dev *rtwdev, u8 mac_idx) in band_idle_ck_b() argument
2684 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in band_idle_ck_b()
2688 reg = rtw89_mac_reg_by_idx(R_AX_PTCL_TX_CTN_SEL, mac_idx); in band_idle_ck_b()
2892 static void rtw89_scheduler_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_scheduler_imr_enable() argument
2896 reg = rtw89_mac_reg_by_idx(R_AX_SCHEDULE_ERR_IMR, mac_idx); in rtw89_scheduler_imr_enable()
2902 static void rtw89_ptcl_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_ptcl_imr_enable() argument
2907 reg = rtw89_mac_reg_by_idx(R_AX_PTCL_IMR0, mac_idx); in rtw89_ptcl_imr_enable()
2912 static void rtw89_cdma_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_cdma_imr_enable() argument
2918 reg = rtw89_mac_reg_by_idx(imr->cdma_imr_0_reg, mac_idx); in rtw89_cdma_imr_enable()
2923 reg = rtw89_mac_reg_by_idx(imr->cdma_imr_1_reg, mac_idx); in rtw89_cdma_imr_enable()
2929 static void rtw89_phy_intf_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_phy_intf_imr_enable() argument
2934 reg = rtw89_mac_reg_by_idx(imr->phy_intf_imr_reg, mac_idx); in rtw89_phy_intf_imr_enable()
2939 static void rtw89_rmac_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_rmac_imr_enable() argument
2944 reg = rtw89_mac_reg_by_idx(imr->rmac_imr_reg, mac_idx); in rtw89_rmac_imr_enable()
2949 static void rtw89_tmac_imr_enable(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_tmac_imr_enable() argument
2954 reg = rtw89_mac_reg_by_idx(imr->tmac_imr_reg, mac_idx); in rtw89_tmac_imr_enable()
2959 static int rtw89_mac_enable_imr(struct rtw89_dev *rtwdev, u8 mac_idx, in rtw89_mac_enable_imr() argument
2964 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, sel); in rtw89_mac_enable_imr()
2967 sel, mac_idx); in rtw89_mac_enable_imr()
2984 rtw89_scheduler_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
2985 rtw89_ptcl_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
2986 rtw89_cdma_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
2987 rtw89_phy_intf_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
2988 rtw89_rmac_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
2989 rtw89_tmac_imr_enable(rtwdev, mac_idx); in rtw89_mac_enable_imr()
3514 reg = rtw89_mac_reg_by_idx(hiq_win_addr[port], rtwvif->mac_idx); in rtw89_mac_port_cfg_hiq_win()
3525 addr = rtw89_mac_reg_by_idx(R_AX_MD_TSFT_STMP_CTL, rtwvif->mac_idx); in rtw89_mac_port_cfg_hiq_dtim()
3584 reg = rtw89_mac_reg_by_idx(reg_base, rtwvif->mac_idx); in rtw89_mac_port_cfg_bss_color()
3598 reg = rtw89_mac_reg_by_idx(R_AX_MBSSID_CTRL, rtwvif->mac_idx); in rtw89_mac_port_cfg_mbssid()
3610 reg = rtw89_mac_reg_by_idx(R_AX_MBSSID_DROP_0, rtwvif->mac_idx); in rtw89_mac_port_cfg_hiq_drop()
3776 reg = rtw89_mac_reg_by_idx(R_AX_RXTRIG_TEST_USER_2, rtwvif->mac_idx); in rtw89_mac_set_he_obss_narrow_bw_ru()
4012 int rtw89_mac_cfg_ppdu_status(struct rtw89_dev *rtwdev, u8 mac_idx, bool enable) in rtw89_mac_cfg_ppdu_status() argument
4014 u32 reg = rtw89_mac_reg_by_idx(R_AX_PPDU_STAT, mac_idx); in rtw89_mac_cfg_ppdu_status()
4017 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_cfg_ppdu_status()
4037 void rtw89_mac_update_rts_threshold(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_mac_update_rts_threshold() argument
4061 reg = rtw89_mac_reg_by_idx(R_AX_AGG_LEN_HT_0, mac_idx); in rtw89_mac_update_rts_threshold()
4385 static void rtw89_mac_bfee_ctrl(struct rtw89_dev *rtwdev, u8 mac_idx, bool en) in rtw89_mac_bfee_ctrl() argument
4392 reg = rtw89_mac_reg_by_idx(R_AX_BFMEE_RESP_OPTION, mac_idx); in rtw89_mac_bfee_ctrl()
4402 static int rtw89_mac_init_bfee(struct rtw89_dev *rtwdev, u8 mac_idx) in rtw89_mac_init_bfee() argument
4408 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_init_bfee()
4414 reg = rtw89_mac_reg_by_idx(R_AX_BFMER_CTRL_0, mac_idx); in rtw89_mac_init_bfee()
4417 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_RRSC, mac_idx); in rtw89_mac_init_bfee()
4420 reg = rtw89_mac_reg_by_idx(R_AX_BFMEE_RESP_OPTION, mac_idx); in rtw89_mac_init_bfee()
4424 rtw89_mac_bfee_ctrl(rtwdev, mac_idx, true); in rtw89_mac_init_bfee()
4426 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_CTRL_0, mac_idx); in rtw89_mac_init_bfee()
4431 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_RATE, mac_idx); in rtw89_mac_init_bfee()
4437 reg = rtw89_mac_reg_by_idx(R_AX_CSIRPT_OPTION, mac_idx); in rtw89_mac_init_bfee()
4449 u8 mac_idx = rtwvif->mac_idx; in rtw89_mac_set_csi_para_reg() local
4458 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_set_csi_para_reg()
4481 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_CTRL_0, mac_idx); in rtw89_mac_set_csi_para_reg()
4493 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_CTRL_0, mac_idx); in rtw89_mac_set_csi_para_reg()
4495 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_CTRL_1, mac_idx); in rtw89_mac_set_csi_para_reg()
4509 u8 mac_idx = rtwvif->mac_idx; in rtw89_mac_csi_rrsc() local
4512 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_csi_rrsc()
4531 reg = rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_CTRL_0, mac_idx); in rtw89_mac_csi_rrsc()
4535 rtw89_mac_reg_by_idx(R_AX_TRXPTCL_RESP_CSI_RRSC, mac_idx), in rtw89_mac_csi_rrsc()
4549 rtw89_mac_init_bfee(rtwdev, rtwvif->mac_idx); in rtw89_mac_bf_assoc()
4560 rtw89_mac_bfee_ctrl(rtwdev, rtwvif->mac_idx, false); in rtw89_mac_bf_disassoc()
4567 u8 mac_idx = rtwvif->mac_idx; in rtw89_mac_bf_set_gid_table() local
4573 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION_EN0, mac_idx), in rtw89_mac_bf_set_gid_table()
4575 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION_EN1, mac_idx), in rtw89_mac_bf_set_gid_table()
4579 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION0, mac_idx), in rtw89_mac_bf_set_gid_table()
4581 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION1, mac_idx), in rtw89_mac_bf_set_gid_table()
4583 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION2, mac_idx), in rtw89_mac_bf_set_gid_table()
4585 rtw89_write32(rtwdev, rtw89_mac_reg_by_idx(R_AX_GID_POSITION3, mac_idx), in rtw89_mac_bf_set_gid_table()
4640 rtw89_mac_bfee_ctrl(rtwdev, rtwvif->mac_idx, en); in _rtw89_mac_bf_monitor_track()
4648 u8 mac_idx = rtwsta->rtwvif->mac_idx; in __rtw89_mac_set_tx_time() local
4657 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in __rtw89_mac_set_tx_time()
4663 reg = rtw89_mac_reg_by_idx(R_AX_AMPDU_AGG_LIMIT, mac_idx); in __rtw89_mac_set_tx_time()
4690 u8 mac_idx = rtwsta->rtwvif->mac_idx; in rtw89_mac_get_tx_time() local
4697 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_get_tx_time()
4703 reg = rtw89_mac_reg_by_idx(R_AX_AMPDU_AGG_LIMIT, mac_idx); in rtw89_mac_get_tx_time()
4732 u8 mac_idx = rtwsta->rtwvif->mac_idx; in rtw89_mac_get_tx_retry_limit() local
4739 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_get_tx_retry_limit()
4745 reg = rtw89_mac_reg_by_idx(R_AX_TXCNT, mac_idx); in rtw89_mac_get_tx_retry_limit()
4755 u8 mac_idx = rtwvif->mac_idx; in rtw89_mac_set_hw_muedca_ctrl() local
4760 ret = rtw89_mac_check_mac_en(rtwdev, mac_idx, RTW89_CMAC_SEL); in rtw89_mac_set_hw_muedca_ctrl()
4764 reg = rtw89_mac_reg_by_idx(R_AX_MUEDCA_EN, mac_idx); in rtw89_mac_set_hw_muedca_ctrl()