Lines Matching full:dn
85 struct acpi_data_node *dn; in acpi_nondev_subnode_extract() local
91 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in acpi_nondev_subnode_extract()
92 if (!dn) in acpi_nondev_subnode_extract()
95 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
96 fwnode_init(&dn->fwnode, &acpi_data_fwnode_ops); in acpi_nondev_subnode_extract()
97 dn->parent = parent; in acpi_nondev_subnode_extract()
98 INIT_LIST_HEAD(&dn->data.properties); in acpi_nondev_subnode_extract()
99 INIT_LIST_HEAD(&dn->data.subnodes); in acpi_nondev_subnode_extract()
101 result = acpi_extract_properties(handle, desc, &dn->data); in acpi_nondev_subnode_extract()
115 && acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, in acpi_nondev_subnode_extract()
116 &dn->fwnode)) in acpi_nondev_subnode_extract()
118 } else if (acpi_enumerate_nondev_subnodes(NULL, desc, &dn->data, in acpi_nondev_subnode_extract()
119 &dn->fwnode)) { in acpi_nondev_subnode_extract()
124 dn->handle = handle; in acpi_nondev_subnode_extract()
125 dn->data.pointer = desc; in acpi_nondev_subnode_extract()
126 list_add_tail(&dn->sibling, list); in acpi_nondev_subnode_extract()
130 kfree(dn); in acpi_nondev_subnode_extract()
369 struct acpi_data_node *dn; in acpi_untie_nondev_subnodes() local
371 list_for_each_entry(dn, &data->subnodes, sibling) { in acpi_untie_nondev_subnodes()
372 acpi_detach_data(dn->handle, acpi_nondev_subnode_tag); in acpi_untie_nondev_subnodes()
374 acpi_untie_nondev_subnodes(&dn->data); in acpi_untie_nondev_subnodes()
380 struct acpi_data_node *dn; in acpi_tie_nondev_subnodes() local
382 list_for_each_entry(dn, &data->subnodes, sibling) { in acpi_tie_nondev_subnodes()
386 status = acpi_attach_data(dn->handle, acpi_nondev_subnode_tag, dn); in acpi_tie_nondev_subnodes()
388 acpi_handle_err(dn->handle, "Can't tag data node\n"); in acpi_tie_nondev_subnodes()
392 ret = acpi_tie_nondev_subnodes(&dn->data); in acpi_tie_nondev_subnodes()
618 struct acpi_data_node *dn, *next; in acpi_destroy_nondev_subnodes() local
623 list_for_each_entry_safe_reverse(dn, next, list, sibling) { in acpi_destroy_nondev_subnodes()
624 acpi_destroy_nondev_subnodes(&dn->data.subnodes); in acpi_destroy_nondev_subnodes()
625 wait_for_completion(&dn->kobj_done); in acpi_destroy_nondev_subnodes()
626 list_del(&dn->sibling); in acpi_destroy_nondev_subnodes()
627 ACPI_FREE((void *)dn->data.pointer); in acpi_destroy_nondev_subnodes()
628 acpi_free_device_properties(&dn->data.properties); in acpi_destroy_nondev_subnodes()
629 kfree(dn); in acpi_destroy_nondev_subnodes()
723 const struct acpi_data_node *dn = to_acpi_data_node(fwnode); in acpi_device_data_of_node() local
724 return &dn->data; in acpi_device_data_of_node()
851 struct acpi_data_node *dn; in acpi_parse_string_ref() local
876 (void **)&dn, NULL); in acpi_parse_string_ref()
877 if (ACPI_FAILURE(status) || !dn) { in acpi_parse_string_ref()
882 return &dn->fwnode; in acpi_parse_string_ref()
1286 struct acpi_data_node *dn; in acpi_get_next_subnode() local
1307 dn = to_acpi_data_node(child); in acpi_get_next_subnode()
1308 next = dn->sibling.next; in acpi_get_next_subnode()
1312 dn = list_entry(next, struct acpi_data_node, sibling); in acpi_get_next_subnode()
1314 dn = list_first_entry(head, struct acpi_data_node, sibling); in acpi_get_next_subnode()
1316 return &dn->fwnode; in acpi_get_next_subnode()
1584 const struct acpi_data_node *dn = to_acpi_data_node(fwnode); in acpi_fwnode_get_name() local
1586 return dn->name; in acpi_fwnode_get_name()