Lines Matching defs:table
28 struct acpi_table *table;
34 table = container_of(cfg, struct acpi_table, cfg);
36 if (table->header) {
37 pr_err("table already loaded\n");
42 pr_err("invalid table length\n");
47 pr_err("invalid table signature\n");
51 table = container_of(cfg, struct acpi_table, cfg);
53 table->header = kmemdup(header, header->length, GFP_KERNEL);
54 if (!table->header)
57 ret = acpi_load_table(table->header, &table->index);
59 kfree(table->header);
60 table->header = NULL;
68 struct acpi_table *table = container_of(cfg, struct acpi_table, cfg);
70 if (!table->header)
71 pr_err("table not loaded\n");
73 return table->header ?: ERR_PTR(-EINVAL);
211 struct acpi_table *table;
213 table = kzalloc(sizeof(*table), GFP_KERNEL);
214 if (!table)
217 config_item_init_type_name(&table->cfg, name, &acpi_table_type);
218 return &table->cfg;
224 struct acpi_table *table = container_of(cfg, struct acpi_table, cfg);
227 acpi_unload_table(table->index);
266 acpi_table_group = configfs_register_default_group(root, "table",