Lines Matching +full:string +full:- +full:array +full:- +full:property

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014 - 2023, Intel Corporation
32 * from different GUID appear in a property list of another, it will be
38 * https://github.com/UEFI/DSD-Guide/blob/main/src/dsd-guide.adoc
41 /* ACPI _DSD device properties GUID [1]: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */
44 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */
47 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */
50 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */
53 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */
56 /* Storage device needs D3 GUID: 5025030f-842f-4ab4-a561-99a5189762d0 */
61 /* ACPI _DSD data subnodes GUID [1]: dbb8e3e6-5886-4ba6-8795-1319f52a966b */
66 /* ACPI _DSD data buffer GUID [1]: edb12dd0-363d-4085-a3d2-49522ca160c4 */
96 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
97 fwnode_init(&dn->fwnode, &acpi_data_fwnode_ops); in acpi_nondev_subnode_extract()
98 dn->parent = parent; in acpi_nondev_subnode_extract()
99 INIT_LIST_HEAD(&dn->data.properties); in acpi_nondev_subnode_extract()
100 INIT_LIST_HEAD(&dn->data.subnodes); in acpi_nondev_subnode_extract()
112 * Extract properties from the _DSD-equivalent package pointed to by in acpi_nondev_subnode_extract()
118 result = acpi_extract_properties(scope, desc, &dn->data); in acpi_nondev_subnode_extract()
120 * Look for subnodes in the _DSD-equivalent package pointed to by desc in acpi_nondev_subnode_extract()
123 if (acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, &dn->fwnode)) in acpi_nondev_subnode_extract()
134 * _DSD-equivalent package and its scope cannot be determined. in acpi_nondev_subnode_extract()
136 dn->handle = handle; in acpi_nondev_subnode_extract()
137 dn->data.pointer = desc; in acpi_nondev_subnode_extract()
138 list_add_tail(&dn->sibling, list); in acpi_nondev_subnode_extract()
153 * If the scope is unknown, the _DSD-equivalent package being parsed in acpi_nondev_subnode_ok()
154 * was embedded in an outer _DSD-equivalent package as a result of in acpi_nondev_subnode_ok()
161 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok()
189 * to a non-device node in a tree containing device-specific data. in acpi_add_nondev_subnodes()
191 for (i = 0; i < links->package.count; i++) { in acpi_add_nondev_subnodes()
195 link = &links->package.elements[i]; in acpi_add_nondev_subnodes()
197 if (link->package.count != 2) in acpi_add_nondev_subnodes()
200 /* The first one (the key) must be a string. */ in acpi_add_nondev_subnodes()
201 if (link->package.elements[0].type != ACPI_TYPE_STRING) in acpi_add_nondev_subnodes()
204 /* The second one (the target) may be a string or a package. */ in acpi_add_nondev_subnodes()
205 switch (link->package.elements[1].type) { in acpi_add_nondev_subnodes()
208 * The string is expected to be a full pathname or a in acpi_add_nondev_subnodes()
211 * a package that contains _DSD-equivalent information. in acpi_add_nondev_subnodes()
225 * The target package is expected to contain _DSD- in acpi_add_nondev_subnodes()
233 link->package.elements[0].string.pointer); in acpi_add_nondev_subnodes()
234 desc = &link->package.elements[1]; in acpi_add_nondev_subnodes()
245 link->package.elements[0].string.pointer); in acpi_add_nondev_subnodes()
265 for (i = 0; i < desc->package.count; i += 2) { in acpi_enumerate_nondev_subnodes()
269 guid = &desc->package.elements[i]; in acpi_enumerate_nondev_subnodes()
270 links = &desc->package.elements[i + 1]; in acpi_enumerate_nondev_subnodes()
276 if (guid->type != ACPI_TYPE_BUFFER || in acpi_enumerate_nondev_subnodes()
277 guid->buffer.length != 16 || in acpi_enumerate_nondev_subnodes()
278 links->type != ACPI_TYPE_PACKAGE) in acpi_enumerate_nondev_subnodes()
281 if (!guid_equal((guid_t *)guid->buffer.pointer, &ads_guid)) in acpi_enumerate_nondev_subnodes()
284 return acpi_add_nondev_subnodes(scope, links, &data->subnodes, in acpi_enumerate_nondev_subnodes()
296 * The value must be an integer, a string, a reference, or a package in acpi_property_value_ok()
297 * whose every element must be an integer, a string, or a reference. in acpi_property_value_ok()
299 switch (value->type) { in acpi_property_value_ok()
306 for (j = 0; j < value->package.count; j++) in acpi_property_value_ok()
307 switch (value->package.elements[j].type) { in acpi_property_value_ok()
326 for (i = 0; i < properties->package.count; i++) { in acpi_properties_format_valid()
327 const union acpi_object *property; in acpi_properties_format_valid() local
329 property = &properties->package.elements[i]; in acpi_properties_format_valid()
331 * Only two elements allowed, the first one must be a string and in acpi_properties_format_valid()
334 if (property->package.count != 2 in acpi_properties_format_valid()
335 || property->package.elements[0].type != ACPI_TYPE_STRING in acpi_properties_format_valid()
336 || !acpi_property_value_ok(&property->package.elements[1])) in acpi_properties_format_valid()
347 ret = acpi_data_get_property_array(&adev->data, "compatible", in acpi_init_of_compatible()
356 if (parent && parent->flags.of_compatible_ok) in acpi_init_of_compatible()
362 adev->data.of_compatible = of_compatible; in acpi_init_of_compatible()
365 adev->flags.of_compatible_ok = 1; in acpi_init_of_compatible()
388 INIT_LIST_HEAD(&props->list); in acpi_data_add_props()
389 props->guid = guid; in acpi_data_add_props()
390 props->properties = properties; in acpi_data_add_props()
391 list_add_tail(&props->list, &data->properties); in acpi_data_add_props()
405 list_for_each_entry(dn, &data->subnodes, sibling) { in acpi_untie_nondev_subnodes()
406 if (!dn->handle) in acpi_untie_nondev_subnodes()
409 acpi_detach_data(dn->handle, acpi_nondev_subnode_tag); in acpi_untie_nondev_subnodes()
411 acpi_untie_nondev_subnodes(&dn->data); in acpi_untie_nondev_subnodes()
419 list_for_each_entry(dn, &data->subnodes, sibling) { in acpi_tie_nondev_subnodes()
423 if (!dn->handle) in acpi_tie_nondev_subnodes()
426 status = acpi_attach_data(dn->handle, acpi_nondev_subnode_tag, dn); in acpi_tie_nondev_subnodes()
428 acpi_handle_err(dn->handle, "Can't tag data node\n"); in acpi_tie_nondev_subnodes()
432 ret = acpi_tie_nondev_subnodes(&dn->data); in acpi_tie_nondev_subnodes()
450 if (check_mul_overflow((size_t)properties->package.count, in acpi_data_add_buffer_props()
457 properties->package.count); in acpi_data_add_buffer_props()
465 props->guid = &buffer_prop_guid; in acpi_data_add_buffer_props()
466 props->bufs = (void *)(props + 1); in acpi_data_add_buffer_props()
467 props->properties = (void *)(props->bufs + properties->package.count); in acpi_data_add_buffer_props()
470 package = props->properties; in acpi_data_add_buffer_props()
471 package->type = ACPI_TYPE_PACKAGE; in acpi_data_add_buffer_props()
472 package->package.elements = package + 1; in acpi_data_add_buffer_props()
473 count = &package->package.count; in acpi_data_add_buffer_props()
479 for (i = 0; i < properties->package.count; i++) { in acpi_data_add_buffer_props()
481 union acpi_object *property = &properties->package.elements[i]; in acpi_data_add_buffer_props() local
485 if (property->type != ACPI_TYPE_PACKAGE || in acpi_data_add_buffer_props()
486 property->package.count != 2) { in acpi_data_add_buffer_props()
488 "buffer property %u has %u entries\n", in acpi_data_add_buffer_props()
489 i, property->package.count); in acpi_data_add_buffer_props()
493 prop = &property->package.elements[0]; in acpi_data_add_buffer_props()
494 obj = &property->package.elements[1]; in acpi_data_add_buffer_props()
496 if (prop->type != ACPI_TYPE_STRING || in acpi_data_add_buffer_props()
497 obj->type != ACPI_TYPE_STRING) { in acpi_data_add_buffer_props()
500 prop->type, obj->type); in acpi_data_add_buffer_props()
504 status = acpi_evaluate_object_typed(handle, obj->string.pointer, in acpi_data_add_buffer_props()
510 obj->string.length, in acpi_data_add_buffer_props()
511 obj->string.pointer); in acpi_data_add_buffer_props()
515 package->type = ACPI_TYPE_PACKAGE; in acpi_data_add_buffer_props()
516 package->package.elements = prop; in acpi_data_add_buffer_props()
517 package->package.count = 2; in acpi_data_add_buffer_props()
521 /* Replace the string object with a buffer object */ in acpi_data_add_buffer_props()
522 obj->type = ACPI_TYPE_BUFFER; in acpi_data_add_buffer_props()
523 obj->buffer.length = buf_obj->buffer.length; in acpi_data_add_buffer_props()
524 obj->buffer.pointer = buf_obj->buffer.pointer; in acpi_data_add_buffer_props()
526 props->bufs[i] = buf.pointer; in acpi_data_add_buffer_props()
532 list_add(&props->list, &data->properties); in acpi_data_add_buffer_props()
542 if (desc->package.count % 2) in acpi_extract_properties()
546 for (i = 0; i < desc->package.count; i += 2) { in acpi_extract_properties()
550 guid = &desc->package.elements[i]; in acpi_extract_properties()
551 properties = &desc->package.elements[i + 1]; in acpi_extract_properties()
557 if (guid->type != ACPI_TYPE_BUFFER || in acpi_extract_properties()
558 guid->buffer.length != 16 || in acpi_extract_properties()
559 properties->type != ACPI_TYPE_PACKAGE) in acpi_extract_properties()
562 if (guid_equal((guid_t *)guid->buffer.pointer, in acpi_extract_properties()
568 if (!acpi_is_property_guid((guid_t *)guid->buffer.pointer)) in acpi_extract_properties()
578 acpi_data_add_props(data, (const guid_t *)guid->buffer.pointer, in acpi_extract_properties()
582 return !list_empty(&data->properties); in acpi_extract_properties()
592 INIT_LIST_HEAD(&adev->data.properties); in acpi_init_properties()
593 INIT_LIST_HEAD(&adev->data.subnodes); in acpi_init_properties()
595 if (!adev->handle) in acpi_init_properties()
602 list_for_each_entry(hwid, &adev->pnp.ids, list) { in acpi_init_properties()
603 if (!strcmp(hwid->id, ACPI_DT_NAMESPACE_HID)) { in acpi_init_properties()
609 status = acpi_evaluate_object_typed(adev->handle, "_DSD", NULL, &buf, in acpi_init_properties()
614 if (acpi_extract_properties(adev->handle, buf.pointer, &adev->data)) { in acpi_init_properties()
615 adev->data.pointer = buf.pointer; in acpi_init_properties()
619 if (acpi_enumerate_nondev_subnodes(adev->handle, buf.pointer, in acpi_init_properties()
620 &adev->data, acpi_fwnode_handle(adev))) in acpi_init_properties()
621 adev->data.pointer = buf.pointer; in acpi_init_properties()
623 if (!adev->data.pointer) { in acpi_init_properties()
624 acpi_handle_debug(adev->handle, "Invalid _DSD data, skipping\n"); in acpi_init_properties()
627 if (!acpi_tie_nondev_subnodes(&adev->data)) in acpi_init_properties()
628 acpi_untie_nondev_subnodes(&adev->data); in acpi_init_properties()
632 if (acpi_of && !adev->flags.of_compatible_ok) in acpi_init_properties()
633 acpi_handle_info(adev->handle, in acpi_init_properties()
634 ACPI_DT_NAMESPACE_HID " requires 'compatible' property\n"); in acpi_init_properties()
636 if (!adev->data.pointer) in acpi_init_properties()
647 list_del(&props->list); in acpi_free_device_properties()
649 if (props->bufs) in acpi_free_device_properties()
650 for (i = 0; i < props->properties->package.count; i++) in acpi_free_device_properties()
651 ACPI_FREE(props->bufs[i]); in acpi_free_device_properties()
664 acpi_destroy_nondev_subnodes(&dn->data.subnodes); in acpi_destroy_nondev_subnodes()
665 wait_for_completion(&dn->kobj_done); in acpi_destroy_nondev_subnodes()
666 list_del(&dn->sibling); in acpi_destroy_nondev_subnodes()
667 ACPI_FREE((void *)dn->data.pointer); in acpi_destroy_nondev_subnodes()
668 acpi_free_device_properties(&dn->data.properties); in acpi_destroy_nondev_subnodes()
675 acpi_untie_nondev_subnodes(&adev->data); in acpi_free_properties()
676 acpi_destroy_nondev_subnodes(&adev->data.subnodes); in acpi_free_properties()
677 ACPI_FREE((void *)adev->data.pointer); in acpi_free_properties()
678 adev->data.of_compatible = NULL; in acpi_free_properties()
679 adev->data.pointer = NULL; in acpi_free_properties()
680 acpi_free_device_properties(&adev->data.properties); in acpi_free_properties()
684 * acpi_data_get_property - return an ACPI property with given name
685 * @data: ACPI device deta object to get the property from
686 * @name: Name of the property
687 * @type: Expected property type
688 * @obj: Location to store the property value (if not %NULL)
690 * Look up a property with @name and store a pointer to the resulting ACPI
696 * Return: %0 if property with @name has been found (success),
697 * %-EINVAL if the arguments are invalid,
698 * %-EINVAL if the property doesn't exist,
699 * %-EPROTO if the property value type doesn't match @type.
708 return -EINVAL; in acpi_data_get_property()
710 if (!data->pointer || list_empty(&data->properties)) in acpi_data_get_property()
711 return -EINVAL; in acpi_data_get_property()
713 list_for_each_entry(props, &data->properties, list) { in acpi_data_get_property()
717 properties = props->properties; in acpi_data_get_property()
718 for (i = 0; i < properties->package.count; i++) { in acpi_data_get_property()
720 const union acpi_object *property; in acpi_data_get_property() local
722 property = &properties->package.elements[i]; in acpi_data_get_property()
724 propname = &property->package.elements[0]; in acpi_data_get_property()
725 propvalue = &property->package.elements[1]; in acpi_data_get_property()
727 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property()
729 propvalue->type != type) in acpi_data_get_property()
730 return -EPROTO; in acpi_data_get_property()
738 return -EINVAL; in acpi_data_get_property()
742 * acpi_dev_get_property - return an ACPI property with given name.
743 * @adev: ACPI device to get the property from.
744 * @name: Name of the property.
745 * @type: Expected property type.
746 * @obj: Location to store the property value (if not %NULL).
751 return adev ? acpi_data_get_property(&adev->data, name, type, obj) : -EINVAL; in acpi_dev_get_property()
760 return &adev->data; in acpi_device_data_of_node()
764 return &dn->data; in acpi_device_data_of_node()
770 * acpi_node_prop_get - return an ACPI property with given name.
771 * @fwnode: Firmware node to get the property from.
772 * @propname: Name of the property.
773 * @valptr: Location to store a pointer to the property value (if not %NULL).
784 * acpi_data_get_property_array - return an ACPI array property with given name
785 * @data: ACPI data object to get the property from
786 * @name: Name of the property
787 * @type: Expected type of array elements
788 * @obj: Location to store a pointer to the property value (if not NULL)
790 * Look up an array property with @name and store a pointer to the resulting
796 * Return: %0 if array property (package) with @name has been found (success),
797 * %-EINVAL if the arguments are invalid,
798 * %-EINVAL if the property doesn't exist,
799 * %-EPROTO if the property is not a package or the type of its elements
816 for (i = 0; i < prop->package.count; i++) in acpi_data_get_property_array()
817 if (prop->package.elements[i].type != type) in acpi_data_get_property_array()
818 return -EPROTO; in acpi_data_get_property_array()
862 return obj->integer.value; in acpi_fwnode_get_args_count()
878 * the first reference (possibly represented as a string) or end of the in acpi_get_ref_args()
891 return -EINVAL; in acpi_get_ref_args()
895 return -EINVAL; in acpi_get_ref_args()
898 args->fwnode = ref_fwnode; in acpi_get_ref_args()
899 args->nargs = nargs; in acpi_get_ref_args()
901 args->args[i] = (*element)[i].integer.value; in acpi_get_ref_args()
918 scope = to_acpi_device_node(fwnode)->handle; in acpi_parse_string_ref()
920 scope = to_acpi_data_node(fwnode)->handle; in acpi_parse_string_ref()
944 return &dn->fwnode; in acpi_parse_string_ref()
961 return -ENOENT; in acpi_fwnode_get_reference_args()
965 return ret == -EINVAL ? -ENOENT : -EINVAL; in acpi_fwnode_get_reference_args()
967 switch (obj->type) { in acpi_fwnode_get_reference_args()
971 return -ENOENT; in acpi_fwnode_get_reference_args()
973 device = acpi_fetch_acpi_dev(obj->reference.handle); in acpi_fwnode_get_reference_args()
975 return -EINVAL; in acpi_fwnode_get_reference_args()
980 args->fwnode = acpi_fwnode_handle(device); in acpi_fwnode_get_reference_args()
981 args->nargs = 0; in acpi_fwnode_get_reference_args()
986 return -ENOENT; in acpi_fwnode_get_reference_args()
988 ref_fwnode = acpi_parse_string_ref(fwnode, obj->string.pointer); in acpi_fwnode_get_reference_args()
990 return -EINVAL; in acpi_fwnode_get_reference_args()
992 args->fwnode = ref_fwnode; in acpi_fwnode_get_reference_args()
993 args->nargs = 0; in acpi_fwnode_get_reference_args()
1003 * Here, REF may be either a local reference or a string. The in acpi_fwnode_get_reference_args()
1009 return -EINVAL; in acpi_fwnode_get_reference_args()
1012 if (index >= obj->package.count) in acpi_fwnode_get_reference_args()
1013 return -ENOENT; in acpi_fwnode_get_reference_args()
1015 element = obj->package.elements; in acpi_fwnode_get_reference_args()
1016 end = element + obj->package.count; in acpi_fwnode_get_reference_args()
1019 switch (element->type) { in acpi_fwnode_get_reference_args()
1021 device = acpi_fetch_acpi_dev(element->reference.handle); in acpi_fwnode_get_reference_args()
1023 return -EINVAL; in acpi_fwnode_get_reference_args()
1039 element->string.pointer); in acpi_fwnode_get_reference_args()
1041 return -EINVAL; in acpi_fwnode_get_reference_args()
1056 return -ENOENT; in acpi_fwnode_get_reference_args()
1060 return -EINVAL; in acpi_fwnode_get_reference_args()
1066 return -ENOENT; in acpi_fwnode_get_reference_args()
1070 * __acpi_node_get_property_reference - returns handle to the referenced object
1071 * @fwnode: Firmware node to get the property from
1072 * @propname: Name of the property
1078 * Find property with @name, verifify that it is a package containing at least
1080 * target object in @args->adev. If the reference includes arguments, store
1081 * them in the @args->args[] array.
1083 * If there's more than one reference in the property value package, @index is
1086 * It is possible to leave holes in the property value set like in the
1090 * "cs-gpios",
1099 * Calling this function with index %2 or index %3 return %-ENOENT. If the
1100 * property does not contain any more values %-ENOENT is returned. The NULL
1130 if (obj->integer.value > U8_MAX) in acpi_data_prop_read_single()
1131 return -EOVERFLOW; in acpi_data_prop_read_single()
1133 *(u8 *)val = obj->integer.value; in acpi_data_prop_read_single()
1136 if (obj->integer.value > U16_MAX) in acpi_data_prop_read_single()
1137 return -EOVERFLOW; in acpi_data_prop_read_single()
1139 *(u16 *)val = obj->integer.value; in acpi_data_prop_read_single()
1142 if (obj->integer.value > U32_MAX) in acpi_data_prop_read_single()
1143 return -EOVERFLOW; in acpi_data_prop_read_single()
1145 *(u32 *)val = obj->integer.value; in acpi_data_prop_read_single()
1149 *(u64 *)val = obj->integer.value; in acpi_data_prop_read_single()
1153 *(char **)val = obj->string.pointer; in acpi_data_prop_read_single()
1156 return -EINVAL; in acpi_data_prop_read_single()
1172 if (__items->type == ACPI_TYPE_BUFFER) { \
1173 __val[i] = __items->buffer.pointer[i]; \
1177 ret = -EPROTO; \
1185 ret = -EOVERFLOW; \
1201 return -EPROTO; in acpi_copy_property_array_string()
1203 val[i] = items[i].string.pointer; in acpi_copy_property_array_string()
1220 * The overflow error means that the property is there and it is in acpi_data_prop_read()
1221 * single-value, but its type does not match, so return. in acpi_data_prop_read()
1223 if (ret >= 0 || ret == -EOVERFLOW) in acpi_data_prop_read()
1227 * Reading this property as a single-value one failed, but its in acpi_data_prop_read()
1228 * value may still be represented as one-element array, so in acpi_data_prop_read()
1241 if (obj->type == ACPI_TYPE_BUFFER) in acpi_data_prop_read()
1242 return obj->buffer.length; in acpi_data_prop_read()
1244 return obj->package.count; in acpi_data_prop_read()
1251 if (obj->type == ACPI_TYPE_BUFFER) { in acpi_data_prop_read()
1252 if (nval > obj->buffer.length) in acpi_data_prop_read()
1253 return -EOVERFLOW; in acpi_data_prop_read()
1255 if (nval > obj->package.count) in acpi_data_prop_read()
1256 return -EOVERFLOW; in acpi_data_prop_read()
1261 if (obj->type == ACPI_TYPE_BUFFER) { in acpi_data_prop_read()
1263 return -EPROTO; in acpi_data_prop_read()
1266 items = obj->package.elements; in acpi_data_prop_read()
1283 nval = min_t(u32, nval, obj->package.count); in acpi_data_prop_read()
1285 return -ENODATA; in acpi_data_prop_read()
1290 ret = -EINVAL; in acpi_data_prop_read()
1297 * acpi_node_prop_read - retrieve the value of an ACPI property with given name.
1298 * @fwnode: Firmware node to get the property from.
1299 * @propname: Name of the property.
1300 * @proptype: Expected property type.
1301 * @val: Location to store the property value (if not %NULL).
1302 * @nval: Size of the array pointed to by @val.
1304 * If @val is %NULL, return the number of array elements comprising the value
1305 * of the property. Otherwise, read at most @nval values to the array at the
1333 * acpi_get_next_subnode - Return the next child node handle for a fwnode
1367 head = &adev->data.subnodes; in acpi_get_next_subnode()
1369 head = &data->data.subnodes; in acpi_get_next_subnode()
1378 next = dn->sibling.next; in acpi_get_next_subnode()
1386 return &dn->fwnode; in acpi_get_next_subnode()
1392 * acpi_get_next_present_subnode - Return the next present child node handle
1399 * Returns: The fwnode handle of the next present sub-node.
1414 * acpi_node_get_parent - Return parent fwnode of this fwnode
1425 return to_acpi_data_node(fwnode)->parent; in acpi_node_get_parent()
1451 name = to_acpi_data_node(fwnode)->name; in is_acpi_graph_node()
1459 * acpi_graph_get_next_endpoint - Get next endpoint ACPI firmware node
1479 * have a "reg" property that also has the number of the in acpi_graph_get_next_endpoint()
1481 * recognised as a port node from the "port" property. in acpi_graph_get_next_endpoint()
1504 * the number of the endpoint node and they also have a "reg" property in acpi_graph_get_next_endpoint()
1507 * "endpoint" property. in acpi_graph_get_next_endpoint()
1516 * acpi_graph_get_child_prop_value - Return a child with a given property value
1518 * @prop_name: The name of the property to look for
1519 * @val: the desired property value
1545 * acpi_graph_get_remote_endpoint - Parses and returns remote end of an endpoint
1559 ret = acpi_node_get_property_reference(__fwnode, "remote-endpoint", 0, in acpi_graph_get_remote_endpoint()
1638 return -ENXIO; in acpi_fwnode_property_read_int_array()
1668 return dn->name; in acpi_fwnode_get_name()
1710 endpoint->local_fwnode = fwnode; in acpi_fwnode_graph_parse_endpoint()
1712 if (fwnode_property_read_u32(port_fwnode, "reg", &endpoint->port)) in acpi_fwnode_graph_parse_endpoint()
1713 fwnode_property_read_u32(port_fwnode, "port", &endpoint->port); in acpi_fwnode_graph_parse_endpoint()
1714 if (fwnode_property_read_u32(fwnode, "reg", &endpoint->id)) in acpi_fwnode_graph_parse_endpoint()
1715 fwnode_property_read_u32(fwnode, "endpoint", &endpoint->id); in acpi_fwnode_graph_parse_endpoint()
1769 fwnode->ops == &acpi_device_fwnode_ops; in is_acpi_device_node()
1775 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &acpi_data_fwnode_ops; in is_acpi_data_node()