/linux-6.6/drivers/mfd/ |
D | si476x-prop.c | 1 // 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.6/include/linux/ |
D | of.h | 1 /* 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 …]
|
D | extcon-provider.h | 1 /* 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 …]
|
D | property.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * property.h - Unified device property interface. 42 bool device_property_present(const struct device *dev, const char *propname); 58 bool fwnode_property_present(const struct fwnode_handle *fwnode, 80 bool fwnode_device_is_available(const struct fwnode_handle *fwnode); 83 bool fwnode_device_is_compatible(const struct fwnode_handle *fwnode, const char *compat) in fwnode_device_is_compatible() 89 * device_is_compatible - match 'compatible' property of the device with a given string 91 * @compat: The string to match 'compatible' property with 95 static inline bool device_is_compatible(const struct device *dev, const char *compat) in device_is_compatible() 123 bool fwnode_is_ancestor_of(const struct fwnode_handle *ancestor, const struct fwnode_handle *child); [all …]
|
D | thunderbolt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 40 * enum tb_security_level - Thunderbolt security level 61 * struct tb - main thunderbolt bus structure 97 return (link - 1) / TB_LINKS_PER_PHY_PORT; in tb_phy_port_from_link() 101 * struct tb_property_dir - XDomain property directory 123 * struct tb_property - XDomain property 125 * @key: Key for the property (always terminated). 126 * @type: Type of the property 127 * @length: Length of the property data in dwords 128 * @value: Property value [all …]
|
/linux-6.6/scripts/dtc/ |
D | dtc.h | 1 /* 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 …]
|
D | checks.c | 1 // 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 …]
|
D | livetree.c | 1 // 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.6/drivers/acpi/ |
D | property.c | 1 // 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 */ 62 static bool acpi_enumerate_nondev_subnodes(acpi_handle scope, [all …]
|
/linux-6.6/Documentation/devicetree/bindings/ |
D | example-schema.yaml | 1 # 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.6/drivers/thunderbolt/ |
D | property.c | 1 // 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.6/drivers/base/ |
D | property.c | 1 // 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.6/include/drm/ |
D | drm_mode_config.h | 42 * 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 …]
|
D | drm_connector.h | 54 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 …]
|
D | drm_property.h | 33 * 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 …]
|
/linux-6.6/drivers/gpu/drm/logicvc/ |
D | logicvc_of.c | 1 // 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.6/drivers/of/ |
D | property.c | 1 // 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 …]
|
D | base.c | 1 // 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.6/drivers/gpu/drm/ |
D | drm_property.c | 40 * 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 …]
|
D | drm_mode_object.c | 40 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 …]
|
D | drm_atomic_uapi.c | 38 #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.6/drivers/gpu/drm/i915/display/ |
D | intel_sdvo.c | 3 * Copyright © 2006-2007 Intel Corporation 63 #define IS_TV(c) (c->output_flag & SDVO_TV_MASK) 64 #define IS_TMDS(c) (c->output_flag & SDVO_TMDS_MASK) 65 #define IS_LVDS(c) (c->output_flag & SDVO_LVDS_MASK) 66 #define IS_TV_OR_LVDS(c) (c->output_flag & (SDVO_TV_MASK | SDVO_LVDS_MASK)) 67 #define IS_DIGITAL(c) (c->output_flag & (SDVO_TMDS_MASK | SDVO_LVDS_MASK)) 124 * the sdvo flag gets lost in round trip: dtd->adjusted_mode->dtd 140 /* add the property for the SDVO-TV */ 158 /* add the property for the SDVO-TV/LVDS */ 167 bool is_hdmi; [all …]
|
D | intel_atomic.c | 29 * 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.6/drivers/hid/ |
D | hid-sensor-custom.c | 1 // 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.6/tools/testing/selftests/kvm/include/x86_64/ |
D | processor.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 #include <asm/msr-index.h> 22 extern bool host_cpu_is_intel; 23 extern bool host_cpu_is_amd; 95 * Pack the information into a 64-bit value so that each X86_FEATURE_XXX can be 216 * Same idea as X86_FEATURE_XXX, but X86_PROPERTY_XXX retrieves a multi-bit 217 * value/property as opposed to a single-bit feature. Again, pack the info 218 * into a 64-bit value to pass by value with no overhead. 229 struct kvm_x86_cpu_property property = { \ 242 kvm_static_assert(idx < BIT(sizeof(property.index) * BITS_PER_BYTE)); \ [all …]
|