Lines Matching refs:table_desc
243 struct acpi_table_desc *table_desc; in acpi_tb_init_table_descriptor() local
251 table_desc = ACPI_MEM_CALLOCATE (sizeof (struct acpi_table_desc)); in acpi_tb_init_table_descriptor()
252 if (!table_desc) { in acpi_tb_init_table_descriptor()
275 table_desc->next = list_head->next; in acpi_tb_init_table_descriptor()
276 list_head->next = table_desc; in acpi_tb_init_table_descriptor()
278 if (table_desc->next) { in acpi_tb_init_table_descriptor()
279 table_desc->next->prev = table_desc; in acpi_tb_init_table_descriptor()
294 list_head->next = table_desc; in acpi_tb_init_table_descriptor()
297 table_desc->next = list_head->next; in acpi_tb_init_table_descriptor()
299 while (table_desc->next->next) { in acpi_tb_init_table_descriptor()
300 table_desc->next = table_desc->next->next; in acpi_tb_init_table_descriptor()
303 table_desc->next->next = table_desc; in acpi_tb_init_table_descriptor()
304 table_desc->prev = table_desc->next; in acpi_tb_init_table_descriptor()
305 table_desc->next = NULL; in acpi_tb_init_table_descriptor()
311 table_desc->type = (u8) table_type; in acpi_tb_init_table_descriptor()
312 table_desc->pointer = table_info->pointer; in acpi_tb_init_table_descriptor()
313 table_desc->length = table_info->length; in acpi_tb_init_table_descriptor()
314 table_desc->allocation = table_info->allocation; in acpi_tb_init_table_descriptor()
315 table_desc->aml_start = (u8 *) (table_desc->pointer + 1), in acpi_tb_init_table_descriptor()
316 table_desc->aml_length = (u32) (table_desc->length - in acpi_tb_init_table_descriptor()
318 table_desc->table_id = acpi_ut_allocate_owner_id (ACPI_OWNER_TYPE_TABLE); in acpi_tb_init_table_descriptor()
319 table_desc->loaded_into_namespace = FALSE; in acpi_tb_init_table_descriptor()
331 table_info->table_id = table_desc->table_id; in acpi_tb_init_table_descriptor()
332 table_info->installed_desc = table_desc; in acpi_tb_init_table_descriptor()
383 struct acpi_table_desc *table_desc; in acpi_tb_delete_tables_by_type() local
432 table_desc = acpi_gbl_table_lists[type].next; in acpi_tb_delete_tables_by_type()
440 table_desc = acpi_tb_uninstall_table (table_desc); in acpi_tb_delete_tables_by_type()
463 struct acpi_table_desc *table_desc) in acpi_tb_delete_single_table() argument
468 if ((!table_desc) || in acpi_tb_delete_single_table()
469 (!table_desc->pointer)) { in acpi_tb_delete_single_table()
475 switch (table_desc->allocation) { in acpi_tb_delete_single_table()
481 ACPI_MEM_FREE (table_desc->pointer); in acpi_tb_delete_single_table()
486 acpi_os_unmap_memory (table_desc->pointer, table_desc->length); in acpi_tb_delete_single_table()
511 struct acpi_table_desc *table_desc) in acpi_tb_uninstall_table() argument
516 ACPI_FUNCTION_TRACE_PTR ("tb_uninstall_table", table_desc); in acpi_tb_uninstall_table()
519 if (!table_desc) { in acpi_tb_uninstall_table()
525 if (table_desc->prev) { in acpi_tb_uninstall_table()
526 table_desc->prev->next = table_desc->next; in acpi_tb_uninstall_table()
531 acpi_gbl_table_lists[table_desc->type].next = table_desc->next; in acpi_tb_uninstall_table()
534 if (table_desc->next) { in acpi_tb_uninstall_table()
535 table_desc->next->prev = table_desc->prev; in acpi_tb_uninstall_table()
540 acpi_tb_delete_single_table (table_desc); in acpi_tb_uninstall_table()
544 next_desc = table_desc->next; in acpi_tb_uninstall_table()
545 ACPI_MEM_FREE (table_desc); in acpi_tb_uninstall_table()