Lines Matching refs:pack
290 union acpi_object *pack, in atk_get_pack_member() argument
319 return &pack->package.elements[offset]; in atk_get_pack_member()
506 union acpi_object *pack; in atk_ggrp() local
520 pack = buf.pointer; in atk_ggrp()
521 if (pack->type != ACPI_TYPE_PACKAGE) { in atk_ggrp()
523 ACPI_FREE(pack); in atk_ggrp()
527 if (pack->package.count < 1) { in atk_ggrp()
529 ACPI_FREE(pack); in atk_ggrp()
532 return pack; in atk_ggrp()
714 static void atk_pack_print(char *buf, size_t sz, union acpi_object *pack) in atk_pack_print() argument
719 for (i = 0; i < pack->package.count; i++) { in atk_pack_print()
720 union acpi_object *obj = &pack->package.elements[i]; in atk_pack_print()
749 union acpi_object *pack = &ret->package.elements[i]; in atk_debugfs_ggrp_open() local
752 if (pack->type != ACPI_TYPE_PACKAGE) in atk_debugfs_ggrp_open()
754 if (!pack->package.count) in atk_debugfs_ggrp_open()
756 id = &pack->package.elements[0]; in atk_debugfs_ggrp_open()
764 atk_pack_print(buf, 512, pack); in atk_debugfs_ggrp_open()
975 union acpi_object *pack; in atk_enumerate_old_hwmon() local
991 pack = buf.pointer; in atk_enumerate_old_hwmon()
992 for (i = 1; i < pack->package.count; i++) { in atk_enumerate_old_hwmon()
993 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1013 pack = buf.pointer; in atk_enumerate_old_hwmon()
1014 for (i = 1; i < pack->package.count; i++) { in atk_enumerate_old_hwmon()
1015 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1035 pack = buf.pointer; in atk_enumerate_old_hwmon()
1036 for (i = 1; i < pack->package.count; i++) { in atk_enumerate_old_hwmon()
1037 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_old_hwmon()
1054 union acpi_object *pack; in atk_ec_present() local
1059 pack = atk_ggrp(data, ATK_MUX_MGMT); in atk_ec_present()
1060 if (IS_ERR(pack)) { in atk_ec_present()
1061 if (PTR_ERR(pack) == -ENOENT) { in atk_ec_present()
1066 return PTR_ERR(pack); in atk_ec_present()
1071 for (i = 0; i < pack->package.count; i++) { in atk_ec_present()
1072 union acpi_object *obj = &pack->package.elements[i]; in atk_ec_present()
1093 ACPI_FREE(pack); in atk_ec_present()
1159 union acpi_object *pack; in atk_enumerate_new_hwmon() local
1182 pack = atk_ggrp(data, ATK_MUX_HWMON); in atk_enumerate_new_hwmon()
1183 if (IS_ERR(pack)) in atk_enumerate_new_hwmon()
1184 return PTR_ERR(pack); in atk_enumerate_new_hwmon()
1186 for (i = 0; i < pack->package.count; i++) { in atk_enumerate_new_hwmon()
1187 union acpi_object *obj = &pack->package.elements[i]; in atk_enumerate_new_hwmon()
1194 ACPI_FREE(pack); in atk_enumerate_new_hwmon()