• Home
  • Raw
  • Download

Lines Matching refs:efuse

1041 	struct rtw_efuse *efuse = &rtwdev->efuse;  in rtw_update_sta_info()  local
1070 if (efuse->hw_cap.nss == 1) in rtw_update_sta_info()
1243 wifi_only = !rtwdev->efuse.btcoex; in rtw_power_on()
1331 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_ht_cap() local
1344 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap()
1351 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap()
1367 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_init_vht_cap() local
1371 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap()
1372 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap()
1399 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap()
1556 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_chip_parameter_setup() local
1585 efuse->physical_size = chip->phy_efuse_size; in rtw_chip_parameter_setup()
1586 efuse->logical_size = chip->log_efuse_size; in rtw_chip_parameter_setup()
1587 efuse->protect_size = chip->ptct_efuse_size; in rtw_chip_parameter_setup()
1640 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_dump_hw_feature() local
1658 efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); in rtw_dump_hw_feature()
1659 efuse->hw_cap.hci = GET_EFUSE_HW_CAP_HCI(hw_feature); in rtw_dump_hw_feature()
1660 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature()
1661 efuse->hw_cap.ptcl = GET_EFUSE_HW_CAP_PTCL(hw_feature); in rtw_dump_hw_feature()
1662 efuse->hw_cap.ant_num = GET_EFUSE_HW_CAP_ANT_NUM(hw_feature); in rtw_dump_hw_feature()
1664 rtw_hw_config_rf_ant_num(rtwdev, efuse->hw_cap.ant_num); in rtw_dump_hw_feature()
1666 if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE || in rtw_dump_hw_feature()
1667 efuse->hw_cap.nss > rtwdev->hal.rf_path_num) in rtw_dump_hw_feature()
1668 efuse->hw_cap.nss = rtwdev->hal.rf_path_num; in rtw_dump_hw_feature()
1672 efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, in rtw_dump_hw_feature()
1673 efuse->hw_cap.ant_num, efuse->hw_cap.nss); in rtw_dump_hw_feature()
1686 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw_chip_efuse_info_setup() local
1708 if (efuse->crystal_cap == 0xff) in rtw_chip_efuse_info_setup()
1709 efuse->crystal_cap = 0; in rtw_chip_efuse_info_setup()
1710 if (efuse->pa_type_2g == 0xff) in rtw_chip_efuse_info_setup()
1711 efuse->pa_type_2g = 0; in rtw_chip_efuse_info_setup()
1712 if (efuse->pa_type_5g == 0xff) in rtw_chip_efuse_info_setup()
1713 efuse->pa_type_5g = 0; in rtw_chip_efuse_info_setup()
1714 if (efuse->lna_type_2g == 0xff) in rtw_chip_efuse_info_setup()
1715 efuse->lna_type_2g = 0; in rtw_chip_efuse_info_setup()
1716 if (efuse->lna_type_5g == 0xff) in rtw_chip_efuse_info_setup()
1717 efuse->lna_type_5g = 0; in rtw_chip_efuse_info_setup()
1718 if (efuse->channel_plan == 0xff) in rtw_chip_efuse_info_setup()
1719 efuse->channel_plan = 0x7f; in rtw_chip_efuse_info_setup()
1720 if (efuse->rf_board_option == 0xff) in rtw_chip_efuse_info_setup()
1721 efuse->rf_board_option = 0; in rtw_chip_efuse_info_setup()
1722 if (efuse->bt_setting & BIT(0)) in rtw_chip_efuse_info_setup()
1723 efuse->share_ant = true; in rtw_chip_efuse_info_setup()
1724 if (efuse->regd == 0xff) in rtw_chip_efuse_info_setup()
1725 efuse->regd = 0; in rtw_chip_efuse_info_setup()
1726 if (efuse->tx_bb_swing_setting_2g == 0xff) in rtw_chip_efuse_info_setup()
1727 efuse->tx_bb_swing_setting_2g = 0; in rtw_chip_efuse_info_setup()
1728 if (efuse->tx_bb_swing_setting_5g == 0xff) in rtw_chip_efuse_info_setup()
1729 efuse->tx_bb_swing_setting_5g = 0; in rtw_chip_efuse_info_setup()
1731 efuse->btcoex = (efuse->rf_board_option & 0xe0) == 0x20; in rtw_chip_efuse_info_setup()
1732 efuse->ext_pa_2g = efuse->pa_type_2g & BIT(4) ? 1 : 0; in rtw_chip_efuse_info_setup()
1733 efuse->ext_lna_2g = efuse->lna_type_2g & BIT(3) ? 1 : 0; in rtw_chip_efuse_info_setup()
1734 efuse->ext_pa_5g = efuse->pa_type_5g & BIT(0) ? 1 : 0; in rtw_chip_efuse_info_setup()
1735 efuse->ext_lna_2g = efuse->lna_type_5g & BIT(3) ? 1 : 0; in rtw_chip_efuse_info_setup()
1973 SET_IEEE80211_PERM_ADDR(hw, rtwdev->efuse.addr); in rtw_register_hw()