Lines Matching refs:cur_cfg
906 const struct rtw89_pwr_cfg *cur_cfg; in rtw89_mac_sub_pwr_seq() local
910 for (cur_cfg = cfg; cur_cfg->cmd != PWR_CMD_END; cur_cfg++) { in rtw89_mac_sub_pwr_seq()
911 if (!(cur_cfg->intf_msk & intf_msk) || in rtw89_mac_sub_pwr_seq()
912 !(cur_cfg->cv_msk & cv_msk)) in rtw89_mac_sub_pwr_seq()
915 switch (cur_cfg->cmd) { in rtw89_mac_sub_pwr_seq()
917 addr = cur_cfg->addr; in rtw89_mac_sub_pwr_seq()
919 if (cur_cfg->base == PWR_BASE_SDIO) in rtw89_mac_sub_pwr_seq()
923 val &= ~(cur_cfg->msk); in rtw89_mac_sub_pwr_seq()
924 val |= (cur_cfg->val & cur_cfg->msk); in rtw89_mac_sub_pwr_seq()
929 if (pwr_cmd_poll(rtwdev, cur_cfg)) in rtw89_mac_sub_pwr_seq()
933 if (cur_cfg->val == PWR_DELAY_US) in rtw89_mac_sub_pwr_seq()
934 udelay(cur_cfg->addr); in rtw89_mac_sub_pwr_seq()
936 fsleep(cur_cfg->addr * 1000); in rtw89_mac_sub_pwr_seq()