Lines Matching +full:bool +full:- +full:property

1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * property.h - Unified device property interface.
39 bool device_property_present(const struct device *dev, const char *propname);
40 bool device_property_read_bool(const struct device *dev, const char *propname);
56 bool fwnode_property_present(const struct fwnode_handle *fwnode,
58 bool fwnode_property_read_bool(const struct fwnode_handle *fwnode,
80 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
82 static inline bool fwnode_device_is_big_endian(const struct fwnode_handle *fwnode) in fwnode_device_is_big_endian()
84 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
87 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
93 bool fwnode_device_is_compatible(const struct fwnode_handle *fwnode, const char *compat) in fwnode_device_is_compatible()
99 * device_is_big_endian - check if a device has BE registers
102 * Returns: true if the device has a "big-endian" property, or if the kernel
103 * was compiled for BE *and* the device has a "native-endian" property.
109 static inline bool device_is_big_endian(const struct device *dev) in device_is_big_endian()
115 * device_is_compatible - match 'compatible' property of the device with a given string
117 * @compat: The string to match 'compatible' property with
121 static inline bool device_is_compatible(const struct device *dev, const char *compat) in device_is_compatible()
149 bool fwnode_name_eq(const struct fwnode_handle *fwnode, const char *name);
194 * fwnode_handle_put - Drop reference to a device node
321 * struct software_node_ref_args - Reference property with additional arguments
340 * struct property_entry - "Built-in" device property representation.
341 * @name: Name of the property.
343 * @is_inline: True when the property value is stored inline.
345 * @pointer: Pointer to the property when it is not stored inline.
346 * @value: Value of the property when it is stored inline.
351 bool is_inline;
367 * crafted to avoid gcc-4.4.4's problems with initialization of anon unions
448 bool device_dma_supported(const struct device *dev);
469 static inline bool fwnode_graph_is_endpoint(const struct fwnode_handle *fwnode) in fwnode_graph_is_endpoint()
471 return fwnode_property_present(fwnode, "remote-endpoint"); in fwnode_graph_is_endpoint()
520 /* -------------------------------------------------------------------------- */
521 /* Software fwnode support - when HW description is incomplete or missing */
524 * struct software_node - Software node description
542 bool is_software_node(const struct fwnode_handle *fwnode);