Lines Matching full:efuse
23 static void rtw8822be_efuse_parsing(struct rtw_efuse *efuse, in rtw8822be_efuse_parsing() argument
26 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8822be_efuse_parsing()
29 static void rtw8822bu_efuse_parsing(struct rtw_efuse *efuse, in rtw8822bu_efuse_parsing() argument
32 ether_addr_copy(efuse->addr, map->u.mac_addr); in rtw8822bu_efuse_parsing()
35 static void rtw8822bs_efuse_parsing(struct rtw_efuse *efuse, in rtw8822bs_efuse_parsing() argument
38 ether_addr_copy(efuse->addr, map->s.mac_addr); in rtw8822bs_efuse_parsing()
43 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_read_efuse() local
49 efuse->usb_mode_switch = u8_get_bits(map->usb_mode, BIT(7)); in rtw8822b_read_efuse()
50 efuse->rfe_option = map->rfe_option; in rtw8822b_read_efuse()
51 efuse->rf_board_option = map->rf_board_option; in rtw8822b_read_efuse()
52 efuse->crystal_cap = map->xtal_k; in rtw8822b_read_efuse()
53 efuse->pa_type_2g = map->pa_type; in rtw8822b_read_efuse()
54 efuse->pa_type_5g = map->pa_type; in rtw8822b_read_efuse()
55 efuse->lna_type_2g = map->lna_type_2g[0]; in rtw8822b_read_efuse()
56 efuse->lna_type_5g = map->lna_type_5g[0]; in rtw8822b_read_efuse()
57 efuse->channel_plan = map->channel_plan; in rtw8822b_read_efuse()
58 efuse->country_code[0] = map->country_code[0]; in rtw8822b_read_efuse()
59 efuse->country_code[1] = map->country_code[1]; in rtw8822b_read_efuse()
60 efuse->bt_setting = map->rf_bt_setting; in rtw8822b_read_efuse()
61 efuse->regd = map->rf_board_option & 0x7; in rtw8822b_read_efuse()
62 efuse->thermal_meter[RF_PATH_A] = map->thermal_meter; in rtw8822b_read_efuse()
63 efuse->thermal_meter_k = map->thermal_meter; in rtw8822b_read_efuse()
66 efuse->txpwr_idx_table[i] = map->txpwr_idx_table[i]; in rtw8822b_read_efuse()
70 rtw8822be_efuse_parsing(efuse, map); in rtw8822b_read_efuse()
73 rtw8822bu_efuse_parsing(efuse, map); in rtw8822b_read_efuse()
76 rtw8822bs_efuse_parsing(efuse, map); in rtw8822b_read_efuse()
142 dm_info->thermal_meter_k = rtwdev->efuse.thermal_meter_k; in rtw8822b_pwrtrack_init()
170 crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8822b_phy_set_param()
425 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_set_channel_cca() local
475 (efuse->rfe_option == 5 && col == CCUT_IDX_2R_5G)) in rtw8822b_set_channel_cca()
614 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_set_channel_bb() local
615 u8 rfe_option = efuse->rfe_option; in rtw8822b_set_channel_bb()
720 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_set_channel() local
723 if (WARN(efuse->rfe_option >= ARRAY_SIZE(rtw8822b_rfe_info), in rtw8822b_set_channel()
724 "rfe_option %d is out of boundary\n", efuse->rfe_option)) in rtw8822b_set_channel()
727 rfe_info = &rtw8822b_rfe_info[efuse->rfe_option]; in rtw8822b_set_channel()
741 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_config_trx_mode() local
747 if (WARN(efuse->rfe_option >= ARRAY_SIZE(rtw8822b_rfe_info), in rtw8822b_config_trx_mode()
748 "rfe_option %d is out of boundary\n", efuse->rfe_option)) in rtw8822b_config_trx_mode()
751 rfe_info = &rtw8822b_rfe_info[efuse->rfe_option]; in rtw8822b_config_trx_mode()
1222 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_coex_cfg_rfe_type() local
1225 coex_rfe->rfe_module_type = rtwdev->efuse.rfe_option; in rtw8822b_coex_cfg_rfe_type()
1245 if (efuse->share_ant && in rtw8822b_coex_cfg_rfe_type()
1465 if (rtwdev->efuse.thermal_meter[RF_PATH_A] == 0xff) in rtw8822b_phy_pwrtrack()
1488 struct rtw_efuse *efuse = &rtwdev->efuse; in rtw8822b_pwr_track() local
1491 if (efuse->power_track_type != 0) in rtw8822b_pwr_track()