Home
last modified time | relevance | path

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

12345678910>>...42

/linux-6.8/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 …]
/linux-6.8/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
19 #include <linux/property.h>
27 struct property { struct
31 struct property *next; argument
53 struct property *properties; argument
54 struct property *deadprops; /* removed properties */
95 struct property *prop;
96 struct property *old_prop;
103 * of_node_init - initialize a devicetree node
[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 …]
Dproperty.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * property.h - Unified device property interface.
43 bool device_property_present(const struct device *dev, const char *propname);
59 bool fwnode_property_present(const struct fwnode_handle *fwnode,
81 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
83 static inline bool fwnode_device_is_big_endian(const struct fwnode_handle *fwnode) in fwnode_device_is_big_endian()
85 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
88 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
94 bool fwnode_device_is_compatible(const struct fwnode_handle *fwnode, const char *compat) in fwnode_device_is_compatible()
100 * device_is_big_endian - check if a device has BE registers
[all …]
/linux-6.8/scripts/dtc/
Ddtc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
45 extern int auto_label_aliases; /* auto generate labels -> aliases */
54 static inline bool phandle_is_valid(cell_t phandle) in phandle_is_valid()
94 static inline bool strends(const char *str, const char *suffix) in strends()
102 return streq(str + len - suffix_len, suffix); in strends()
105 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
120 static inline bool is_type_marker(enum markertype type) in is_type_marker()
144 for (; (m); (m) = (m)->next)
147 if ((m)->type == (t))
152 if (is_type_marker(m->type)) in next_type_marker()
[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 …]
/linux-6.8/drivers/acpi/
Dproperty.c1 // 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
36 /* ACPI _DSD device properties GUID: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */
39 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */
42 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */
45 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */
48 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */
51 /* Storage device needs D3 GUID: 5025030f-842f-4ab4-a561-99a5189762d0 */
56 /* ACPI _DSD data subnodes GUID: dbb8e3e6-5886-4ba6-8795-1319f52a966b */
[all …]
/linux-6.8/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 …]
/linux-6.8/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 …]
/linux-6.8/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.
70 * driver-specific information (like the internal native buffer object
135 * - Checking that the modes, framebuffers, scaling and placement
138 * - Checking that any hidden shared resources are not oversubscribed.
143 * - Checking that virtualized resources exported to userspace are not
146 * example is dual-pipe operations (which generally should be hidden
153 * - Check that any transitional state is possible and that if
157 * - Check any other constraints the driver or hardware might have.
[all …]
Ddrm_property.h33 * struct drm_property_enum - symbolic values for enumerations
38 * decoding for each value. This is used for example for the rotation property.
42 * @value: numeric property value for this enum entry
44 * If the property has the type &DRM_MODE_PROP_BITMASK, @value stores a
46 * if the bit number @value is set in the property's value. This enum
55 * struct drm_property - modeset object property
57 * This structure represent a modeset object property. It combines both the name
58 * of the property with the set of permissible values. This means that when a
59 * driver wants to use a property with the same name on different objects, but
60 * with different value ranges, then it must create property for each one. An
[all …]
Ddrm_connector.h54 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
58 * enum drm_connector_status - status for a &drm_connector
73 * nothing there. It is driver-dependent whether a connector with this
80 * flicker (like load-detection when the connector is in use), or when a
81 * hardware resource isn't available (like when load-detection needs a
91 * enum drm_connector_registration_state - userspace registration status for
124 * - An unregistered connector may only have its DPMS changed from
125 * On->Off. Once DPMS is changed to Off, it may not be switched back
127 * - Modesets are not allowed on unregistered connectors, unless they
131 * - Removing a CRTC from an unregistered connector is OK, but new
[all …]
/linux-6.8/drivers/base/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0
3 * property.c - Unified device property interface.
17 #include <linux/property.h>
22 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode()
23 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode()
29 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode_const()
30 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const()
35 * device_property_present - check if a property of a device is present
36 * @dev: Device whose property is being checked
37 * @propname: Name of the property
[all …]
/linux-6.8/drivers/gpu/drm/logicvc/
Dlogicvc_of.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2019-2022 Bootlin
14 { "lvds-4bits", LOGICVC_DISPLAY_INTERFACE_LVDS_4BITS },
15 { "lvds-3bits", LOGICVC_DISPLAY_INTERFACE_LVDS_3BITS },
40 .name = "xylon,display-interface",
48 .name = "xylon,display-colorspace",
56 .name = "xylon,display-depth",
60 .name = "xylon,row-stride",
67 .name = "xylon,background-layer",
71 .name = "xylon,layers-configurable",
[all …]
/linux-6.8/drivers/gpu/drm/
Ddrm_property.c41 * configuration from userspace to the kernel. Properties have a well-defined
44 * property types and ranges.
50 * Property values are only 64bit. To support bigger piles of data (like gamma
51 * tables, color correction matrices or large structures) a property can instead
55 * per-object mapping from those names to the property ID used in the atomic
56 * IOCTL and in the get/set property IOCTL.
59 static bool drm_property_flags_valid(u32 flags) in drm_property_flags_valid()
83 * drm_property_create - create a new property type
85 * @flags: flags specifying the property type
86 * @name: name of the property
[all …]
Ddrm_mode_object.c40 uint32_t obj_type, bool register_obj, in __drm_mode_object_add()
45 WARN_ON(!dev->driver->load && dev->registered && !obj_free_cb); in __drm_mode_object_add()
47 mutex_lock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
48 ret = idr_alloc(&dev->mode_config.object_idr, register_obj ? obj : NULL, in __drm_mode_object_add()
55 obj->id = ret; in __drm_mode_object_add()
56 obj->type = obj_type; in __drm_mode_object_add()
58 obj->free_cb = obj_free_cb; in __drm_mode_object_add()
59 kref_init(&obj->refcount); in __drm_mode_object_add()
62 mutex_unlock(&dev->mode_config.idr_mutex); in __drm_mode_object_add()
68 * drm_mode_object_add - allocate a new modeset identifier
[all …]
Ddrm_atomic_uapi.c38 #include <linux/dma-fence.h>
56 * drm_atomic_set_mode_for_crtc - set mode for CRTC
58 * @mode: kernel-internal mode to use for the CRTC, or NULL to disable
61 * the enable property.
64 * Zero on success, error code on failure. Cannot return -EDEADLK.
69 struct drm_crtc *crtc = state->crtc; in drm_atomic_set_mode_for_crtc()
73 if (mode && memcmp(&state->mode, mode, sizeof(*mode)) == 0) in drm_atomic_set_mode_for_crtc()
76 drm_property_blob_put(state->mode_blob); in drm_atomic_set_mode_for_crtc()
77 state->mode_blob = NULL; in drm_atomic_set_mode_for_crtc()
83 blob = drm_property_create_blob(crtc->dev, in drm_atomic_set_mode_for_crtc()
[all …]
/linux-6.8/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mode.h40 #include <linux/i2c-algo-bit.h>
127 /* amdgpu gpio-based i2c
142 bool valid;
148 bool hw_capable;
149 /* uses multi-media i2c engine */
150 bool mm_i2c;
229 bool has_aux;
234 bool enabled;
236 bool last_buffer_filled_status;
251 bool connected;
[all …]
/linux-6.8/drivers/gpu/drm/i915/display/
Dintel_sdvo.c3 * Copyright © 2006-2007 Intel Corporation
64 #define IS_TV(c) ((c)->output_flag & SDVO_TV_MASK)
65 #define IS_TMDS(c) ((c)->output_flag & SDVO_TMDS_MASK)
66 #define IS_LVDS(c) ((c)->output_flag & SDVO_LVDS_MASK)
67 #define IS_TV_OR_LVDS(c) ((c)->output_flag & (SDVO_TV_MASK | SDVO_LVDS_MASK))
68 #define IS_DIGITAL(c) ((c)->output_flag & (SDVO_TMDS_MASK | SDVO_LVDS_MASK))
70 #define HAS_DDC(c) ((c)->output_flag & (SDVO_RGB_MASK | SDVO_TMDS_MASK | \
121 * the sdvo flag gets lost in round trip: dtd->adjusted_mode->dtd
137 /* add the property for the SDVO-TV */
155 /* add the property for the SDVO-TV/LVDS */
[all …]
Dintel_atomic.c29 * See intel_atomic_plane.c for the plane-specific atomic functionality.
48 * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property.
49 * @connector: Connector to get the property for.
50 * @state: Connector state to retrieve the property from.
51 * @property: Property to retrieve.
52 * @val: Return value for the property.
54 * Returns the atomic property value for a digital connector.
58 struct drm_property *property, in intel_digital_connector_atomic_get_property() argument
61 struct drm_device *dev = connector->dev; in intel_digital_connector_atomic_get_property()
66 if (property == dev_priv->display.properties.force_audio) in intel_digital_connector_atomic_get_property()
[all …]
/linux-6.8/drivers/of/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0+
3 * drivers/of/property.c - Procedures for accessing and interpreting
7 * file contains the OF property as well as the OF graph interface
11 * Copyright (C) 1996-2005 Paul Mackerras.
35 * of_graph_is_present() - check graph's presence
38 * Return: True if @node has a port or ports (with a port) sub-node,
41 bool of_graph_is_present(const struct device_node *node) in of_graph_is_present()
58 * of_property_count_elems_of_size - Count the number of elements in a property
60 * @np: device node from which the property value is to be read.
61 * @propname: name of the property to be searched.
[all …]
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
58 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
66 node_name = kbasename(np->full_name); in of_node_name_eq()
67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
73 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
82 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type()
93 for (; np; np = np->parent) in of_bus_n_addr_cells()
94 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells()
[all …]
/linux-6.8/drivers/hid/
Dhid-sensor-custom.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * hid-sensor-custom.c
19 #include <linux/hid-sensor-hub.h>
48 bool input_skip_sample;
49 bool enable;
69 {.name = "unit-expo", .mode = S_IRUGO},
81 {0x200201, "event-sensor-state"},
82 {0x200202, "event-sensor-event"},
83 {0x200301, "property-friendly-name"},
84 {0x200302, "property-persistent-unique-id"},
[all …]
/linux-6.8/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_crtc.c1 // SPDX-License-Identifier: MIT
39 struct drm_crtc *crtc = &acrtc->base; in amdgpu_dm_crtc_handle_vblank()
40 struct drm_device *dev = crtc->dev; in amdgpu_dm_crtc_handle_vblank()
45 spin_lock_irqsave(&dev->event_lock, flags); in amdgpu_dm_crtc_handle_vblank()
47 /* Send completion event for cursor-only commits */ in amdgpu_dm_crtc_handle_vblank()
48 if (acrtc->event && acrtc->pflip_status != AMDGPU_FLIP_SUBMITTED) { in amdgpu_dm_crtc_handle_vblank()
49 drm_crtc_send_vblank_event(crtc, acrtc->event); in amdgpu_dm_crtc_handle_vblank()
51 acrtc->event = NULL; in amdgpu_dm_crtc_handle_vblank()
54 spin_unlock_irqrestore(&dev->event_lock, flags); in amdgpu_dm_crtc_handle_vblank()
57 bool amdgpu_dm_crtc_modeset_required(struct drm_crtc_state *crtc_state, in amdgpu_dm_crtc_modeset_required()
[all …]

12345678910>>...42