• Home
  • Raw
  • Download

Lines Matching refs:fwnode

79 	fwnode_init(&dn->fwnode, &acpi_data_fwnode_ops);  in acpi_nondev_subnode_extract()
99 &dn->fwnode)) in acpi_nondev_subnode_extract()
102 &dn->fwnode)) { in acpi_nondev_subnode_extract()
545 acpi_device_data_of_node(const struct fwnode_handle *fwnode) in acpi_device_data_of_node() argument
547 if (is_acpi_device_node(fwnode)) { in acpi_device_data_of_node()
548 const struct acpi_device *adev = to_acpi_device_node(fwnode); in acpi_device_data_of_node()
550 } else if (is_acpi_data_node(fwnode)) { in acpi_device_data_of_node()
551 const struct acpi_data_node *dn = to_acpi_data_node(fwnode); in acpi_device_data_of_node()
563 int acpi_node_prop_get(const struct fwnode_handle *fwnode, in acpi_node_prop_get() argument
566 return acpi_data_get_property(acpi_device_data_of_node(fwnode), in acpi_node_prop_get()
615 acpi_fwnode_get_named_child_node(const struct fwnode_handle *fwnode, in acpi_fwnode_get_named_child_node() argument
620 fwnode_for_each_child_node(fwnode, child) { in acpi_fwnode_get_named_child_node()
670 int __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, in __acpi_node_get_property_reference() argument
680 data = acpi_device_data_of_node(fwnode); in __acpi_node_get_property_reference()
700 args->fwnode = acpi_fwnode_handle(device); in __acpi_node_get_property_reference()
765 args->fwnode = ref_fwnode; in __acpi_node_get_property_reference()
1002 static int acpi_node_prop_read(const struct fwnode_handle *fwnode, in acpi_node_prop_read() argument
1006 return acpi_data_prop_read(acpi_device_data_of_node(fwnode), in acpi_node_prop_read()
1015 struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode, in acpi_get_next_subnode() argument
1018 const struct acpi_device *adev = to_acpi_device_node(fwnode); in acpi_get_next_subnode()
1050 const struct acpi_data_node *data = to_acpi_data_node(fwnode); in acpi_get_next_subnode()
1060 adev = to_acpi_device_node(fwnode); in acpi_get_next_subnode()
1081 return &dn->fwnode; in acpi_get_next_subnode()
1093 struct fwnode_handle *acpi_node_get_parent(const struct fwnode_handle *fwnode) in acpi_node_get_parent() argument
1095 if (is_acpi_data_node(fwnode)) { in acpi_node_get_parent()
1097 return to_acpi_data_node(fwnode)->parent; in acpi_node_get_parent()
1098 } else if (is_acpi_device_node(fwnode)) { in acpi_node_get_parent()
1099 struct device *dev = to_acpi_device_node(fwnode)->dev.parent; in acpi_node_get_parent()
1112 static bool is_acpi_graph_node(struct fwnode_handle *fwnode, in is_acpi_graph_node() argument
1118 if (!len || !is_acpi_data_node(fwnode)) in is_acpi_graph_node()
1121 name = to_acpi_data_node(fwnode)->name; in is_acpi_graph_node()
1123 return (fwnode_property_present(fwnode, "reg") && in is_acpi_graph_node()
1125 fwnode_property_present(fwnode, str); in is_acpi_graph_node()
1138 const struct fwnode_handle *fwnode, struct fwnode_handle *prev) in acpi_graph_get_next_endpoint() argument
1145 port = fwnode_get_next_child_node(fwnode, port); in acpi_graph_get_next_endpoint()
1165 port = fwnode_get_next_child_node(fwnode, port); in acpi_graph_get_next_endpoint()
1195 const struct fwnode_handle *fwnode, const char *prop_name, in acpi_graph_get_child_prop_value() argument
1200 fwnode_for_each_child_node(fwnode, child) { in acpi_graph_get_child_prop_value()
1223 struct fwnode_handle *fwnode; in acpi_graph_get_remote_endpoint() local
1235 if (!is_acpi_device_node(args.fwnode)) in acpi_graph_get_remote_endpoint()
1236 return args.nargs ? NULL : args.fwnode; in acpi_graph_get_remote_endpoint()
1245 fwnode = args.fwnode; in acpi_graph_get_remote_endpoint()
1249 fwnode = acpi_graph_get_child_prop_value(fwnode, "port", port_nr); in acpi_graph_get_remote_endpoint()
1251 return acpi_graph_get_child_prop_value(fwnode, "endpoint", endpoint_nr); in acpi_graph_get_remote_endpoint()
1254 static bool acpi_fwnode_device_is_available(const struct fwnode_handle *fwnode) in acpi_fwnode_device_is_available() argument
1256 if (!is_acpi_device_node(fwnode)) in acpi_fwnode_device_is_available()
1259 return acpi_device_is_present(to_acpi_device_node(fwnode)); in acpi_fwnode_device_is_available()
1262 static bool acpi_fwnode_property_present(const struct fwnode_handle *fwnode, in acpi_fwnode_property_present() argument
1265 return !acpi_node_prop_get(fwnode, propname, NULL); in acpi_fwnode_property_present()
1269 acpi_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, in acpi_fwnode_property_read_int_array() argument
1293 return acpi_node_prop_read(fwnode, propname, type, val, nval); in acpi_fwnode_property_read_int_array()
1297 acpi_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, in acpi_fwnode_property_read_string_array() argument
1301 return acpi_node_prop_read(fwnode, propname, DEV_PROP_STRING, in acpi_fwnode_property_read_string_array()
1306 acpi_fwnode_get_reference_args(const struct fwnode_handle *fwnode, in acpi_fwnode_get_reference_args() argument
1311 return __acpi_node_get_property_reference(fwnode, prop, index, in acpi_fwnode_get_reference_args()
1315 static const char *acpi_fwnode_get_name(const struct fwnode_handle *fwnode) in acpi_fwnode_get_name() argument
1321 parent = fwnode_get_parent(fwnode); in acpi_fwnode_get_name()
1327 if (is_acpi_data_node(fwnode)) { in acpi_fwnode_get_name()
1328 const struct acpi_data_node *dn = to_acpi_data_node(fwnode); in acpi_fwnode_get_name()
1333 adev = to_acpi_device_node(fwnode); in acpi_fwnode_get_name()
1341 acpi_fwnode_get_name_prefix(const struct fwnode_handle *fwnode) in acpi_fwnode_get_name_prefix() argument
1346 parent = fwnode_get_parent(fwnode); in acpi_fwnode_get_name_prefix()
1362 acpi_fwnode_get_parent(struct fwnode_handle *fwnode) in acpi_fwnode_get_parent() argument
1364 return acpi_node_get_parent(fwnode); in acpi_fwnode_get_parent()
1367 static int acpi_fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, in acpi_fwnode_graph_parse_endpoint() argument
1370 struct fwnode_handle *port_fwnode = fwnode_get_parent(fwnode); in acpi_fwnode_graph_parse_endpoint()
1372 endpoint->local_fwnode = fwnode; in acpi_fwnode_graph_parse_endpoint()
1376 if (fwnode_property_read_u32(fwnode, "reg", &endpoint->id)) in acpi_fwnode_graph_parse_endpoint()
1377 fwnode_property_read_u32(fwnode, "endpoint", &endpoint->id); in acpi_fwnode_graph_parse_endpoint()
1383 acpi_fwnode_device_get_match_data(const struct fwnode_handle *fwnode, in acpi_fwnode_device_get_match_data() argument
1417 bool is_acpi_device_node(const struct fwnode_handle *fwnode) in is_acpi_device_node() argument
1419 return !IS_ERR_OR_NULL(fwnode) && in is_acpi_device_node()
1420 fwnode->ops == &acpi_device_fwnode_ops; in is_acpi_device_node()
1424 bool is_acpi_data_node(const struct fwnode_handle *fwnode) in is_acpi_data_node() argument
1426 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &acpi_data_fwnode_ops; in is_acpi_data_node()