Lines Matching defs:rtlhal
166 struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
171 if (rtlhal->during_mac1init_radioa || rtlhal->during_mac0init_radiob) {
176 if (rtlhal->during_mac1init_radioa)
178 else if (rtlhal->during_mac0init_radiob)
197 struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
204 if (rtlhal->during_mac1init_radioa)
206 else if (rtlhal->during_mac0init_radiob)
210 if (rtlhal->during_mac1init_radioa ||
211 rtlhal->during_mac0init_radiob)
220 if (rtlhal->during_mac1init_radioa || rtlhal->during_mac0init_radiob)
242 if (rtlpriv->rtlhal.macphymode == SINGLEMAC_SINGLEPHY) {
264 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
267 if (rtlhal->interfaceindex == 0) {
273 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
302 if (rtlhal->interfaceindex == 0) {
318 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
441 if (!(IS_92D_SINGLEPHY(rtlpriv->rtlhal.version))) {
519 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
527 if ((is_hal_stop(rtlhal)) || (RT_CANNOT_IO(hw))) {
569 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
605 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
609 rtlhal->bandset = band;
610 rtlhal->current_bandtype = band;
611 if (IS_92D_SINGLEPHY(rtlhal->version))
612 rtlhal->bandset = BAND_ON_BOTH;
616 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
619 if (rtlhal->interfaceindex == 1)
625 if (rtlhal->interfaceindex == 1)
630 if (rtlhal->current_bandtype == BAND_ON_2_4G)
636 rtlhal->reloadtxpowerindex = true;
638 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
639 value8 = rtl_read_byte(rtlpriv, (rtlhal->interfaceindex ==
642 rtl_write_byte(rtlpriv, (rtlhal->interfaceindex ==
645 value8 = rtl_read_byte(rtlpriv, (rtlhal->interfaceindex ==
648 rtl_write_byte(rtlpriv, (rtlhal->interfaceindex ==
665 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {
689 rtlpriv->rtlhal.load_imrandiqk_setting_for2g);
691 if (!rtlpriv->rtlhal.load_imrandiqk_setting_for2g) {
719 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
720 u8 path = rtlhal->current_bandtype ==
728 if (rtlhal->current_bandtype == BAND_ON_5G) {
749 if (rtlhal->macphymode == DUALMAC_DUALPHY
750 && rtlhal->interfaceindex == 1) {
752 rtlhal->during_mac1init_radioa = true;
759 if (i == 0 && (rtlhal->macphymode == DUALMAC_DUALPHY)) {
788 if (rtlhal->during_mac1init_radioa)
802 if (rtlhal->macphymode == DUALMAC_DUALPHY &&
803 rtlhal->interfaceindex == 1) /* MAC 1 5G */
827 } else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
839 if (rtlhal->macphymode == DUALMAC_DUALPHY) {
841 if (rtlhal->interfaceindex == 0) {
844 rtlhal->during_mac0init_radiob = true;
882 if (rtlhal->during_mac0init_radiob)
892 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
899 if (rtlhal->interfaceindex == 0) {
955 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
963 if (rtlhal->interfaceindex == 1) { /* PHY1 */
1369 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1388 bool is2t = IS_92D_SINGLEPHY(rtlhal->version);
1522 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1526 bool is2t = IS_92D_SINGLEPHY(rtlhal->version);
1582 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1585 bool is2t = IS_92D_SINGLEPHY(rtlhal->version) ||
1586 rtlhal->macphymode == DUALMAC_DUALPHY;
1609 if (rtlhal->interfaceindex == 1 &&
1610 rtlhal->current_bandtype == BAND_ON_5G)
1643 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1666 if (rtlhal->current_bandtype == BAND_ON_5G)
1692 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1716 "IQK !!!currentband %d\n", rtlhal->current_bandtype);
1719 if (rtlhal->current_bandtype == BAND_ON_5G) {
1721 } else if (rtlhal->current_bandtype == BAND_ON_2_4G) {
1722 if (IS_92D_SINGLEPHY(rtlhal->version))
1795 if (IS_92D_SINGLEPHY(rtlhal->version)) {
1819 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1837 if (((!rtlhal->load_imrandiqk_setting_for2g) &&
1846 if (IS_92D_SINGLEPHY(rtlhal->version)) {
1868 u8 erfpath = rtlpriv->rtlhal.current_bandtype ==
1870 IS_92D_SINGLEPHY(rtlpriv->rtlhal.version) ?
1877 rtlpriv->rtlhal.current_bandtype);
1879 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) {/* Path-A for 5G */
1883 if (rtlpriv->rtlhal.macphymode == DUALMAC_DUALPHY &&
1884 rtlpriv->rtlhal.interfaceindex == 1) {
1887 rtlpriv->rtlhal.during_mac1init_radioa = true;
1896 if (rtlpriv->rtlhal.during_mac1init_radioa)
1898 } else if (rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G) {
1902 if (rtlpriv->rtlhal.macphymode == DUALMAC_DUALPHY &&
1903 rtlpriv->rtlhal.interfaceindex == 0) {
1906 rtlpriv->rtlhal.during_mac0init_radiob = true;
1917 if (rtlpriv->rtlhal.during_mac0init_radiob)
1926 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
1970 if (index == 0 && rtlhal->interfaceindex == 0) {
2000 if (index == 0 && rtlhal->interfaceindex == 0)
2039 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal);
2050 rtlhal->current_bandtype, timecount);
2154 if (rtlpriv->rtlhal.current_bandtype ==
2197 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
2208 if ((is_hal_stop(rtlhal)) || (RT_CANNOT_IO(hw))) {
2217 if (rtlhal->macphymode == SINGLEMAC_SINGLEPHY &&
2218 rtlhal->bandset == BAND_ON_BOTH) {
2226 switch (rtlhal->current_bandtype) {
2278 if (rtlpriv->rtlhal.macphymode == SINGLEMAC_SINGLEPHY)
2332 if (rtlpriv->rtlhal.macphymode == SINGLEMAC_SINGLEPHY)
2457 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
2461 u32 mac_reg = (rtlhal->interfaceindex == 0 ? REG_MAC0 : REG_MAC1);
2464 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
2474 if (rtlhal->macphymode == SINGLEMAC_SINGLEPHY) {
2479 if (rtlhal->interfaceindex == 0) {
2508 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
2515 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
2519 if (rtlhal->macphymode != DUALMAC_DUALPHY) {
2534 if (rtlhal->macphymode == DUALMAC_DUALPHY) {
2574 if (rtlhal->macphymode != DUALMAC_DUALPHY) {
2597 if (rtlhal->macphymode == DUALMAC_DUALPHY) {
2634 if (rtlhal->current_bandtype == BAND_ON_2_4G) {
2656 if (rtlhal->interfaceindex == 0) {
2696 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
2700 if (rtlhal->macphymode == SINGLEMAC_SINGLEPHY) {
2706 if (rtlhal->interfaceindex == 0) {