Lines Matching refs:asar

164 	struct mt792x_acpi_sar *asar;  in mt792x_init_acpi_sar()  local
167 asar = devm_kzalloc(dev->mt76.dev, sizeof(*asar), GFP_KERNEL); in mt792x_init_acpi_sar()
168 if (!asar) in mt792x_init_acpi_sar()
171 ret = mt792x_asar_acpi_read_mtcl(dev, (u8 **)&asar->countrylist, &asar->ver); in mt792x_init_acpi_sar()
173 devm_kfree(dev->mt76.dev, asar->countrylist); in mt792x_init_acpi_sar()
174 asar->countrylist = NULL; in mt792x_init_acpi_sar()
177 ret = mt792x_asar_acpi_read_mtds(dev, (u8 **)&asar->dyn, asar->ver); in mt792x_init_acpi_sar()
179 devm_kfree(dev->mt76.dev, asar->dyn); in mt792x_init_acpi_sar()
180 asar->dyn = NULL; in mt792x_init_acpi_sar()
184 ret = mt792x_asar_acpi_read_mtgs(dev, (u8 **)&asar->geo, asar->ver); in mt792x_init_acpi_sar()
186 devm_kfree(dev->mt76.dev, asar->geo); in mt792x_init_acpi_sar()
187 asar->geo = NULL; in mt792x_init_acpi_sar()
191 ret = mt792x_asar_acpi_read_mtfg(dev, (u8 **)&asar->fg); in mt792x_init_acpi_sar()
193 devm_kfree(dev->mt76.dev, asar->fg); in mt792x_init_acpi_sar()
194 asar->fg = NULL; in mt792x_init_acpi_sar()
196 dev->phy.acpisar = asar; in mt792x_init_acpi_sar()
206 struct mt792x_acpi_sar *asar = phy->acpisar; in mt792x_asar_get_geo_pwr() local
211 if (!asar->geo) in mt792x_asar_get_geo_pwr()
226 if (asar->ver == 1) { in mt792x_asar_get_geo_pwr()
227 band_pwr = &asar->geo->tbl[idx].band[0]; in mt792x_asar_get_geo_pwr()
228 max = ARRAY_SIZE(asar->geo->tbl[idx].band); in mt792x_asar_get_geo_pwr()
230 band_pwr = &asar->geo_v2->tbl[idx].band[0]; in mt792x_asar_get_geo_pwr()
231 max = ARRAY_SIZE(asar->geo_v2->tbl[idx].band); in mt792x_asar_get_geo_pwr()
263 struct mt792x_acpi_sar *asar = phy->acpisar; in mt792x_asar_range_pwr() local
269 if (asar->ver == 1) { in mt792x_asar_range_pwr()
270 limit = &asar->dyn->tbl[0].frp[0]; in mt792x_asar_range_pwr()
271 max = ARRAY_SIZE(asar->dyn->tbl[0].frp); in mt792x_asar_range_pwr()
273 limit = &asar->dyn_v2->tbl[0].frp[0]; in mt792x_asar_range_pwr()
274 max = ARRAY_SIZE(asar->dyn_v2->tbl[0].frp); in mt792x_asar_range_pwr()