Lines Matching refs:sar
12 const struct rtw_sar *sar = &hal->sar; in rtw_query_sar() local
14 switch (sar->src) { in rtw_query_sar()
16 rtw_warn(rtwdev, "unknown SAR source: %d\n", sar->src); in rtw_query_sar()
21 return sar->cfg[arg->path][arg->rs].common[arg->sar_band]; in rtw_query_sar()
28 struct rtw_sar *sar = &hal->sar; in rtw_apply_sar() local
30 if (sar->src != RTW_SAR_SOURCE_NONE && new->src != sar->src) { in rtw_apply_sar()
31 rtw_warn(rtwdev, "SAR source: %d is in use\n", sar->src); in rtw_apply_sar()
35 *sar = *new; in rtw_apply_sar()
41 static s8 rtw_sar_to_phy(struct rtw_dev *rtwdev, u8 fct, s32 sar, in rtw_sar_to_phy() argument
50 tmp = fct > txgi ? sar >> (fct - txgi) : sar << (txgi - fct); in rtw_sar_to_phy()
74 const struct cfg80211_sar_specs *sar) in rtw_set_sar_specs() argument
82 if (sar->type != NL80211_SAR_TYPE_POWER) in rtw_set_sar_specs()
88 for (i = 0; i < sar->num_sub_specs; i++) { in rtw_set_sar_specs()
89 idx = sar->sub_specs[i].freq_range_index; in rtw_set_sar_specs()
93 power = sar->sub_specs[i].power; in rtw_set_sar_specs()