Home
last modified time | relevance | path

Searched +full:bool +full:- +full:property (Results 1 – 25 of 1025) sorted by relevance

12345678910>>...41

/kernel/linux/linux-5.10/drivers/mfd/
Dsi476x-prop.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * drivers/mfd/si476x-prop.c -- Subroutines to access
13 #include <linux/mfd/si476x-core.h>
19 static bool si476x_core_element_is_in_array(u16 element, in si476x_core_element_is_in_array()
32 static bool si476x_core_element_is_in_range(u16 element, in si476x_core_element_is_in_range()
45 static bool si476x_core_is_valid_property_a10(struct si476x_core *core, in si476x_core_is_valid_property_a10()
46 u16 property) in si476x_core_is_valid_property_a10() argument
80 return si476x_core_element_is_in_range(property, valid_ranges, in si476x_core_is_valid_property_a10()
82 si476x_core_element_is_in_array(property, valid_properties, in si476x_core_is_valid_property_a10()
86 static bool si476x_core_is_valid_property_a20(struct si476x_core *core, in si476x_core_is_valid_property_a20()
[all …]
/kernel/linux/linux-4.19/drivers/mfd/
Dsi476x-prop.c2 * drivers/mfd/si476x-prop.c -- Subroutines to access
21 #include <linux/mfd/si476x-core.h>
27 static bool si476x_core_element_is_in_array(u16 element, in si476x_core_element_is_in_array()
40 static bool si476x_core_element_is_in_range(u16 element, in si476x_core_element_is_in_range()
53 static bool si476x_core_is_valid_property_a10(struct si476x_core *core, in si476x_core_is_valid_property_a10()
54 u16 property) in si476x_core_is_valid_property_a10() argument
88 return si476x_core_element_is_in_range(property, valid_ranges, in si476x_core_is_valid_property_a10()
90 si476x_core_element_is_in_array(property, valid_properties, in si476x_core_is_valid_property_a10()
94 static bool si476x_core_is_valid_property_a20(struct si476x_core *core, in si476x_core_is_valid_property_a20()
95 u16 property) in si476x_core_is_valid_property_a20() argument
[all …]
/kernel/linux/linux-5.10/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
22 #include <linux/property.h>
31 struct property { struct
35 struct property *next; argument
57 struct property *properties; argument
58 struct property *deadprops; /* removed properties */
99 struct property *prop;
100 struct property *old_prop;
109 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
[all …]
Dextcon-provider.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon-provider.h for extcon provider device driver.
34 /* Synchronize the state and property value for each external connector. */
42 bool state);
44 bool state);
47 * Following APIs set the property of each external connector.
49 * and the 'prop' indicates the extcon property.
51 * And extcon_set_property_capability() set the capability of the property
53 * property of each external connector based on the id and property.
75 return -EINVAL; in devm_extcon_dev_register()
[all …]
/kernel/linux/linux-4.19/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
22 #include <linux/property.h>
31 struct property { struct
35 struct property *next; argument
58 struct property *properties; argument
59 struct property *deadprops; /* removed properties */
101 struct property *prop;
102 struct property *old_prop;
111 kobject_init(&node->kobj, &of_node_ktype); in of_node_init()
[all …]
Dextcon-provider.h3 * - linux/include/linux/extcon-provider.h for extcon provider device driver.
42 /* Synchronize the state and property value for each external connector. */
50 bool state);
52 bool state);
55 * Following APIs set the property of each external connector.
57 * and the 'prop' indicates the extcon property.
59 * And extcon_set_property_capability() set the capability of the property
61 * property of each external connector based on the id and property.
83 return -EINVAL; in devm_extcon_dev_register()
91 return ERR_PTR(-ENOSYS); in extcon_dev_allocate()
[all …]
/kernel/linux/linux-5.10/scripts/dtc/
Ddtc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
45 extern int auto_label_aliases; /* auto generate labels -> aliases */
90 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
123 for (; (m); (m) = (m)->next)
126 if ((m)->type == (t))
152 bool data_is_one_string(struct data d);
161 bool deleted;
170 struct property { struct
171 bool deleted;
175 struct property *next; argument
[all …]
Dchecks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 fprintf(stderr, "=== %s: ", (c)->name); \
35 bool warn, error;
37 bool inprogress;
63 struct property *prop, in check_msg()
71 if (!(c->warn && (quiet < 1)) && !(c->error && (quiet < 2))) in check_msg()
74 if (prop && prop->srcpos) in check_msg()
75 pos = prop->srcpos; in check_msg()
76 else if (node && node->srcpos) in check_msg()
77 pos = node->srcpos; in check_msg()
[all …]
Dlivetree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 if (streq(new->label, label)) { in add_label()
20 new->deleted = 0; in add_label()
26 new->label = label; in add_label()
27 new->next = *labels; in add_label()
36 label->deleted = 1; in delete_labels()
39 struct property *build_property(char *name, struct data val, in build_property()
42 struct property *new = xmalloc(sizeof(*new)); in build_property()
46 new->name = name; in build_property()
47 new->val = val; in build_property()
[all …]
/kernel/linux/linux-4.19/scripts/dtc/
Ddtc.h20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
60 extern int auto_label_aliases; /* auto generate labels -> aliases */
73 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
99 for (; (m); (m) = (m)->next)
102 if ((m)->type == (t))
126 bool data_is_one_string(struct data d);
135 bool deleted;
144 struct property { struct
145 bool deleted;
149 struct property *next; argument
[all …]
Dchecks.c17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 fprintf(stderr, "=== %s: ", (c)->name); \
49 bool warn, error;
51 bool inprogress;
77 struct property *prop, in check_msg()
83 if ((c->warn && (quiet < 1)) in check_msg()
84 || (c->error && (quiet < 2))) { in check_msg()
86 strcmp(dti->outname, "-") ? dti->outname : "<stdout>", in check_msg()
87 (c->error) ? "ERROR" : "Warning", c->name); in check_msg()
89 fprintf(stderr, "%s", node->fullpath); in check_msg()
[all …]
/kernel/linux/linux-4.19/drivers/acpi/
Dproperty.c27 /* ACPI _DSD device properties GUID: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */
31 /* ACPI _DSD data subnodes GUID: dbb8e3e6-5886-4ba6-8795-1319f52a966b */
36 static bool acpi_enumerate_nondev_subnodes(acpi_handle scope,
40 static bool acpi_extract_properties(const union acpi_object *desc,
43 static bool acpi_nondev_subnode_extract(const union acpi_object *desc, in acpi_nondev_subnode_extract()
50 bool result; in acpi_nondev_subnode_extract()
56 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
57 dn->fwnode.ops = &acpi_data_fwnode_ops; in acpi_nondev_subnode_extract()
58 dn->parent = parent; in acpi_nondev_subnode_extract()
59 INIT_LIST_HEAD(&dn->data.subnodes); in acpi_nondev_subnode_extract()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/
Dexample-schema.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 # All the top-level keys are standard json-schema keywords except for
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
17 - Rob Herring <robh@kernel.org>
20 A more detailed multi-line description of the binding.
44 - items:
45 # items is a list of possible values for the property. The number of
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_mode_config.h42 * struct drm_mode_config_funcs - basic driver provided mode setting functions
44 * Some global (i.e. not per-CRTC, connector, etc) mode setting functions that
59 * ie. when (@mode_cmd->flags & DRM_MODE_FB_MODIFIERS) == 0.
64 * driver-specific information (like the internal native buffer object
106 * Except that there's no vtable for device-level helper callbacks
130 * - Checking that the modes, framebuffers, scaling and placement
133 * - Checking that any hidden shared resources are not oversubscribed.
138 * - Checking that virtualized resources exported to userspace are not
141 * example is dual-pipe operations (which generally should be hidden
148 * - Check that any transitional state is possible and that if
[all …]
Ddrm_connector.h50 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
54 * enum drm_connector_status - status for a &drm_connector
69 * nothing there. It is driver-dependent whether a connector with this
76 * flicker (like load-detection when the connector is in use), or when a
77 * hardware resource isn't available (like when load-detection needs a
87 * enum drm_connector_registration_status - userspace registration status for
120 * - An unregistered connector may only have its DPMS changed from
121 * On->Off. Once DPMS is changed to Off, it may not be switched back
123 * - Modesets are not allowed on unregistered connectors, unless they
127 * - Removing a CRTC from an unregistered connector is OK, but new
[all …]
/kernel/linux/linux-5.10/drivers/acpi/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0-only
29 * from different GUID appear in a property list of another, it will be
33 /* ACPI _DSD device properties GUID: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */
36 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */
39 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */
42 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */
45 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */
48 /* Storage device needs D3 GUID: 5025030f-842f-4ab4-a561-99a5189762d0 */
53 /* ACPI _DSD data subnodes GUID: dbb8e3e6-5886-4ba6-8795-1319f52a966b */
58 static bool acpi_enumerate_nondev_subnodes(acpi_handle scope,
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0
3 * Thunderbolt XDomain property support
40 bool is_root);
52 static bool tb_property_entry_valid(const struct tb_property_entry *entry, in tb_property_entry_valid()
55 switch (entry->type) { in tb_property_entry_valid()
59 if (entry->length > block_len) in tb_property_entry_valid()
61 if (entry->value + entry->length > block_len) in tb_property_entry_valid()
66 if (entry->length != 1) in tb_property_entry_valid()
74 static bool tb_property_key_valid(const char *key) in tb_property_key_valid()
82 struct tb_property *property; in tb_property_alloc() local
[all …]
/kernel/linux/linux-4.19/drivers/thunderbolt/
Dproperty.c2 * Thunderbolt XDomain property support
43 bool is_root);
55 static bool tb_property_entry_valid(const struct tb_property_entry *entry, in tb_property_entry_valid()
58 switch (entry->type) { in tb_property_entry_valid()
62 if (entry->length > block_len) in tb_property_entry_valid()
64 if (entry->value + entry->length > block_len) in tb_property_entry_valid()
69 if (entry->length != 1) in tb_property_entry_valid()
77 static bool tb_property_key_valid(const char *key) in tb_property_key_valid()
85 struct tb_property *property; in tb_property_alloc() local
87 property = kzalloc(sizeof(*property), GFP_KERNEL); in tb_property_alloc()
[all …]
/kernel/linux/linux-4.19/include/drm/
Ddrm_connector.h48 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
52 * enum drm_connector_status - status for a &drm_connector
67 * nothing there. It is driver-dependent whether a connector with this
74 * flicker (like load-detection when the connector is in use), or when a
75 * hardware resource isn't available (like when load-detection needs a
101 bool supported;
105 bool low_rates;
109 * struct drm_scdc - Information about scdc capabilities of a HDMI 2.0 sink
118 bool supported;
122 bool read_request;
[all …]
Ddrm_mode_config.h42 * struct drm_mode_config_funcs - basic driver provided mode setting functions
44 * Some global (i.e. not per-CRTC, connector, etc) mode setting functions that
58 * driver-specific information (like the internal native buffer object
100 * Except that there's no vtable for device-level helper callbacks
124 * - Checking that the modes, framebuffers, scaling and placement
127 * - Checking that any hidden shared resources are not oversubscribed.
132 * - Checking that virtualized resources exported to userspace are not
135 * example is dual-pipe operations (which generally should be hidden
142 * - Check that any transitional state is possible and that if
146 * - Check any other constraints the driver or hardware might have.
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0
3 * property.c - Unified device property interface.
17 #include <linux/property.h>
23 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in dev_fwnode()
24 &dev->of_node->fwnode : dev->fwnode; in dev_fwnode()
29 * device_property_present - check if a property of a device is present
30 * @dev: Device whose property is being checked
31 * @propname: Name of the property
33 * Check if property @propname is present in the device firmware description.
35 bool device_property_present(struct device *dev, const char *propname) in device_property_present()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/
Ddrm_mode_object.c35 uint32_t obj_type, bool register_obj, in __drm_mode_object_add()
40 mutex_lock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
41 ret = idr_alloc(&dev->mode_config.crtc_idr, register_obj ? obj : NULL, 1, 0, GFP_KERNEL); in __drm_mode_object_add()
47 obj->id = ret; in __drm_mode_object_add()
48 obj->type = obj_type; in __drm_mode_object_add()
50 obj->free_cb = obj_free_cb; in __drm_mode_object_add()
51 kref_init(&obj->refcount); in __drm_mode_object_add()
54 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
60 * drm_mode_object_add - allocate a new modeset identifier
80 mutex_lock(&dev->mode_config.idr_mutex); in drm_mode_object_register()
[all …]
Ddrm_property.c35 * configuration from userspace to the kernel. Properties have a well-defined
38 * property types and ranges.
44 * Property values are only 64bit. To support bigger piles of data (like gamma
45 * tables, color correction matrices or large structures) a property can instead
49 * per-object mapping from those names to the property ID used in the atomic
50 * IOCTL and in the get/set property IOCTL.
53 static bool drm_property_flags_valid(u32 flags) in drm_property_flags_valid()
77 * drm_property_create - create a new property type
79 * @flags: flags specifying the property type
80 * @name: name of the property
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_property.c40 * configuration from userspace to the kernel. Properties have a well-defined
43 * property types and ranges.
49 * Property values are only 64bit. To support bigger piles of data (like gamma
50 * tables, color correction matrices or large structures) a property can instead
54 * per-object mapping from those names to the property ID used in the atomic
55 * IOCTL and in the get/set property IOCTL.
58 static bool drm_property_flags_valid(u32 flags) in drm_property_flags_valid()
82 * drm_property_create - create a new property type
84 * @flags: flags specifying the property type
85 * @name: name of the property
[all …]
/kernel/linux/linux-4.19/drivers/of/
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
57 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
65 node_name = kbasename(np->full_name); in of_node_name_eq()
66 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
72 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
77 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
86 if (np->parent) in of_n_addr_cells()
87 np = np->parent; in of_n_addr_cells()
88 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_n_addr_cells()
[all …]

12345678910>>...41