Lines Matching refs:wifi_pkg

219 	union acpi_object *wifi_pkg;  in iwl_acpi_get_wifi_pkg_range()  local
248 wifi_pkg = &data->package.elements[i]; in iwl_acpi_get_wifi_pkg_range()
251 if (wifi_pkg->type != ACPI_TYPE_PACKAGE || in iwl_acpi_get_wifi_pkg_range()
252 wifi_pkg->package.count < min_data_size || in iwl_acpi_get_wifi_pkg_range()
253 wifi_pkg->package.count > max_data_size) in iwl_acpi_get_wifi_pkg_range()
256 domain = &wifi_pkg->package.elements[0]; in iwl_acpi_get_wifi_pkg_range()
265 return wifi_pkg; in iwl_acpi_get_wifi_pkg_range()
272 union acpi_object *wifi_pkg, *data; in iwl_acpi_get_tas() local
280 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_tas()
283 if (IS_ERR(wifi_pkg)) { in iwl_acpi_get_tas()
284 ret = PTR_ERR(wifi_pkg); in iwl_acpi_get_tas()
288 if (tbl_rev == 1 && wifi_pkg->package.elements[1].type == in iwl_acpi_get_tas()
291 (u32)wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_tas()
310 wifi_pkg->package.elements[1].type == ACPI_TYPE_INTEGER) { in iwl_acpi_get_tas()
311 enabled = !!wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_tas()
324 if (wifi_pkg->package.elements[2].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_tas()
325 wifi_pkg->package.elements[2].integer.value > in iwl_acpi_get_tas()
328 wifi_pkg->package.elements[2].integer.value); in iwl_acpi_get_tas()
332 block_list_size = wifi_pkg->package.elements[2].integer.value; in iwl_acpi_get_tas()
346 if (wifi_pkg->package.elements[3 + i].type != in iwl_acpi_get_tas()
354 country = wifi_pkg->package.elements[3 + i].integer.value; in iwl_acpi_get_tas()
368 union acpi_object *wifi_pkg, *data; in iwl_acpi_get_mcc() local
376 wifi_pkg = iwl_acpi_get_wifi_pkg(dev, data, ACPI_WRDD_WIFI_DATA_SIZE, in iwl_acpi_get_mcc()
378 if (IS_ERR(wifi_pkg)) { in iwl_acpi_get_mcc()
379 ret = PTR_ERR(wifi_pkg); in iwl_acpi_get_mcc()
383 if (wifi_pkg->package.elements[1].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_mcc()
389 mcc_val = wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_mcc()
404 union acpi_object *data, *wifi_pkg; in iwl_acpi_get_pwr_limit() local
414 wifi_pkg = iwl_acpi_get_wifi_pkg(dev, data, in iwl_acpi_get_pwr_limit()
416 if (IS_ERR(wifi_pkg) || tbl_rev != 0 || in iwl_acpi_get_pwr_limit()
417 wifi_pkg->package.elements[1].integer.value != ACPI_TYPE_INTEGER) { in iwl_acpi_get_pwr_limit()
422 dflt_pwr_limit = wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_pwr_limit()
432 union acpi_object *wifi_pkg, *data; in iwl_acpi_get_eckv() local
439 wifi_pkg = iwl_acpi_get_wifi_pkg(dev, data, ACPI_ECKV_WIFI_DATA_SIZE, in iwl_acpi_get_eckv()
441 if (IS_ERR(wifi_pkg)) { in iwl_acpi_get_eckv()
442 ret = PTR_ERR(wifi_pkg); in iwl_acpi_get_eckv()
446 if (wifi_pkg->package.elements[1].type != ACPI_TYPE_INTEGER || in iwl_acpi_get_eckv()
452 *extl_clk = wifi_pkg->package.elements[1].integer.value; in iwl_acpi_get_eckv()
564 union acpi_object *wifi_pkg, *table, *data; in iwl_sar_get_wrds_table() local
574 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
577 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_wrds_table()
579 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_wrds_table()
590 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
593 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_wrds_table()
595 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_wrds_table()
606 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_wrds_table()
609 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_wrds_table()
611 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_wrds_table()
621 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_wrds_table()
625 if (wifi_pkg->package.elements[1].type != ACPI_TYPE_INTEGER) { in iwl_sar_get_wrds_table()
632 flags = wifi_pkg->package.elements[1].integer.value; in iwl_sar_get_wrds_table()
636 table = &wifi_pkg->package.elements[2]; in iwl_sar_get_wrds_table()
652 union acpi_object *wifi_pkg, *data; in iwl_sar_get_ewrd_table() local
663 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
666 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_ewrd_table()
668 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_ewrd_table()
679 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
682 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_ewrd_table()
684 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_ewrd_table()
695 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_sar_get_ewrd_table()
698 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_ewrd_table()
700 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_ewrd_table()
710 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_ewrd_table()
714 if (wifi_pkg->package.elements[1].type != ACPI_TYPE_INTEGER || in iwl_sar_get_ewrd_table()
715 wifi_pkg->package.elements[2].type != ACPI_TYPE_INTEGER) { in iwl_sar_get_ewrd_table()
720 enabled = !!(wifi_pkg->package.elements[1].integer.value); in iwl_sar_get_ewrd_table()
721 n_profiles = wifi_pkg->package.elements[2].integer.value; in iwl_sar_get_ewrd_table()
741 ret = iwl_sar_set_profile(&wifi_pkg->package.elements[pos], in iwl_sar_get_ewrd_table()
759 union acpi_object *wifi_pkg, *data; in iwl_sar_get_wgds_table() local
811 wifi_pkg = iwl_acpi_get_wifi_pkg_range(fwrt->dev, data, in iwl_sar_get_wgds_table()
814 if (!IS_ERR(wifi_pkg)) { in iwl_sar_get_wgds_table()
825 entry = &wifi_pkg->package.elements[entry_idx]; in iwl_sar_get_wgds_table()
839 if (wifi_pkg->package.count != in iwl_sar_get_wgds_table()
850 ret = PTR_ERR(wifi_pkg); in iwl_sar_get_wgds_table()
870 entry = &wifi_pkg->package.elements[entry_idx]; in iwl_sar_get_wgds_table()
888 entry = &wifi_pkg->package.elements[entry_idx]; in iwl_sar_get_wgds_table()
1006 union acpi_object *wifi_pkg, *data, *flags; in iwl_acpi_get_ppag_table() local
1017 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_ppag_table()
1020 if (!IS_ERR(wifi_pkg)) { in iwl_acpi_get_ppag_table()
1034 wifi_pkg = iwl_acpi_get_wifi_pkg(fwrt->dev, data, in iwl_acpi_get_ppag_table()
1037 if (!IS_ERR(wifi_pkg)) { in iwl_acpi_get_ppag_table()
1049 flags = &wifi_pkg->package.elements[1]; in iwl_acpi_get_ppag_table()
1072 ent = &wifi_pkg->package.elements[idx++]; in iwl_acpi_get_ppag_table()