Lines Matching defs:table
31 struct acpi_table *table;
37 table = container_of(cfg, struct acpi_table, cfg);
39 if (table->header) {
40 pr_err("table already loaded\n");
45 pr_err("invalid table length\n");
50 pr_err("invalid table signature\n");
54 table = container_of(cfg, struct acpi_table, cfg);
56 table->header = kmemdup(header, header->length, GFP_KERNEL);
57 if (!table->header)
60 ret = acpi_load_table(table->header, &table->index);
62 kfree(table->header);
63 table->header = NULL;
71 struct acpi_table *table = container_of(cfg, struct acpi_table, cfg);
73 if (!table->header)
74 pr_err("table not loaded\n");
76 return table->header;
214 struct acpi_table *table;
216 table = kzalloc(sizeof(*table), GFP_KERNEL);
217 if (!table)
220 config_item_init_type_name(&table->cfg, name, &acpi_table_type);
221 return &table->cfg;
227 struct acpi_table *table = container_of(cfg, struct acpi_table, cfg);
230 acpi_unload_table(table->index);
269 acpi_table_group = configfs_register_default_group(root, "table",