| /kernel/linux/linux-5.10/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. 82 * drm_property_create - create a new property type 84 * @flags: flags specifying the property type 85 * @name: name of the property 86 * @num_values: number of pre-defined values [all …]
|
| D | drm_atomic_uapi.c | 36 #include <linux/dma-fence.h> 54 * drm_atomic_set_mode_for_crtc - set mode for CRTC 56 * @mode: kernel-internal mode to use for the CRTC, or NULL to disable 59 * the enable property. 62 * Zero on success, error code on failure. Cannot return -EDEADLK. 64 int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, in drm_atomic_set_mode_for_crtc() 67 struct drm_crtc *crtc = state->crtc; in drm_atomic_set_mode_for_crtc() 71 if (mode && memcmp(&state->mode, mode, sizeof(*mode)) == 0) in drm_atomic_set_mode_for_crtc() 74 drm_property_blob_put(state->mode_blob); in drm_atomic_set_mode_for_crtc() 75 state->mode_blob = NULL; in drm_atomic_set_mode_for_crtc() [all …]
|
| D | drm_mode_object.c | 39 int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj, in __drm_mode_object_add() 43 int ret; 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() [all …]
|
| D | drm_blend.c | 43 * sub-pixel accuracy, which is scaled up to a pixel-aligned destination 96 * plane-wide opacity, from transparent (0) to opaque (0xffff). It can be 99 * pre-multiplied by the global alpha associated to the plane. 104 * Without this property the rectangle is only scaled, but not rotated or 109 * "rotate-<degrees>": 113 * "reflect-<axis>": 117 * reflect-x:: 120 * | | -> | | 123 * reflect-y:: 126 * | | -> | | [all …]
|
| /kernel/linux/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. 82 * drm_property_create - create a new property type 84 * @flags: flags specifying the property type 85 * @name: name of the property 86 * @num_values: number of pre-defined values [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. 66 int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, in drm_atomic_set_mode_for_crtc() 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() [all …]
|
| D | drm_mode_object.c | 39 int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj, in __drm_mode_object_add() 43 int ret; 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() [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 22 #include <linux/property.h> 31 struct property { struct 33 int length; 35 struct property *next; argument 40 unsigned int unique_id; 57 struct property *properties; argument 58 struct property *deadprops; /* removed properties */ 68 unsigned int unique_id; [all …]
|
| D | extcon.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * - linux/include/linux/extcon.h for extcon consumer device driver. 73 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ 74 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ 78 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */ 92 * When adding the new extcon property, they *must* have 98 * The naming style of property 99 * : EXTCON_PROP_[type]_[property name] 101 * EXTCON_PROP_USB_[property name] : USB property 102 * EXTCON_PROP_CHG_[property name] : Charger property [all …]
|
| /kernel/linux/linux-6.6/scripts/dtc/libfdt/ |
| D | libfdt.h | 1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ 5 * libfdt - Flat Device Tree manipulation 22 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */ 24 /* FDT_ERR_EXISTS: Attempted to create a node or property which 35 * offset which is out-of-bounds, or which points to an 43 * This can be caused either by an invalid phandle property 44 * length, or the phandle value was either 0 or -1, which are 48 * tree created by the sequential-write functions, which is 53 /* FDT_ERR_TRUNCATED: FDT or a sub-block is improperly 58 * device tree at all - it is missing the flattened device [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 20 #include <linux/property.h> 28 struct property { struct 30 int length; 32 struct property *next; argument 37 unsigned int unique_id; 54 struct property *properties; argument 55 struct property *deadprops; /* removed properties */ 65 unsigned int unique_id; [all …]
|
| D | extcon.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * - linux/include/linux/extcon.h for extcon consumer device driver. 73 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ 74 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ 78 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */ 92 * When adding the new extcon property, they *must* have 98 * The naming style of property 99 * : EXTCON_PROP_[type]_[property name] 101 * EXTCON_PROP_USB_[property name] : USB property 102 * EXTCON_PROP_CHG_[property name] : Charger property [all …]
|
| /kernel/linux/linux-5.10/scripts/dtc/libfdt/ |
| D | libfdt.h | 1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */ 5 * libfdt - Flat Device Tree manipulation 21 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */ 23 /* FDT_ERR_EXISTS: Attempted to create a node or property which 34 * offset which is out-of-bounds, or which points to an 42 * This can be caused either by an invalid phandle property 43 * length, or the phandle value was either 0 or -1, which are 47 * tree created by the sequential-write functions, which is 52 /* FDT_ERR_TRUNCATED: FDT or a sub-block is improperly 57 * device tree at all - it is missing the flattened device [all …]
|
| /kernel/linux/linux-5.10/drivers/of/ |
| D | of_private.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 12 * struct alias_prop - Alias property in 'aliases' node 14 * @alias: Alias property name 19 * The structure represents one alias property of 'aliases' node as 26 int id; 43 extern int of_property_notify(int action, struct device_node *np, 44 struct property *prop, struct property *old_prop); 46 extern int __of_changeset_apply_entries(struct of_changeset *ocs, 47 int *ret_revert); [all …]
|
| 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. 33 * of_graph_is_present() - check graph's presence 36 * Return: True if @node has a port or ports (with a port) sub-node, 56 * of_property_count_elems_of_size - Count the number of elements in a property 58 * @np: device node from which the property value is to be read. 59 * @propname: name of the property to be searched. 62 * Search for a property in a device node and count the number of elements of [all …]
|
| /kernel/linux/linux-6.6/drivers/of/ |
| D | of_private.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 14 * struct alias_prop - Alias property in 'aliases' node 16 * @alias: Alias property name 21 * The structure represents one alias property of 'aliases' node as 28 int id; 46 extern int of_property_notify(int action, struct device_node *np, 47 struct property *prop, struct property *old_prop); 49 extern int __of_changeset_apply_entries(struct of_changeset *ocs, 50 int *ret_revert); [all …]
|
| 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, 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. 64 * Search for a property in a device node and count the number of elements of [all …]
|
| /kernel/linux/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 …]
|
| /kernel/linux/linux-5.10/drivers/thunderbolt/ |
| D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt XDomain property support 39 size_t block_len, unsigned int dir_offset, size_t dir_len, 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() 82 struct tb_property *property; in tb_property_alloc() local 84 property = kzalloc(sizeof(*property), GFP_KERNEL); in tb_property_alloc() 85 if (!property) in tb_property_alloc() [all …]
|
| /kernel/linux/linux-6.6/drivers/thunderbolt/ |
| D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt XDomain property support 39 size_t block_len, unsigned int dir_offset, size_t dir_len, 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() 82 struct tb_property *property; in tb_property_alloc() local 84 property = kzalloc(sizeof(*property), GFP_KERNEL); in tb_property_alloc() 85 if (!property) in tb_property_alloc() [all …]
|
| /kernel/linux/linux-5.10/drivers/base/ |
| D | property.c | 1 // 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. 42 * fwnode_property_present - check if a property of a firmware node is present [all …]
|
| /kernel/linux/linux-5.10/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> 23 int i; in si476x_core_element_is_in_array() 36 int i; in si476x_core_element_is_in_range() 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() 87 u16 property) in si476x_core_is_valid_property_a20() argument 100 return si476x_core_is_valid_property_a10(core, property) || in si476x_core_is_valid_property_a20() [all …]
|
| /kernel/linux/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> 23 int i; in si476x_core_element_is_in_array() 36 int i; in si476x_core_element_is_in_range() 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() 87 u16 property) in si476x_core_is_valid_property_a20() argument 100 return si476x_core_is_valid_property_a10(core, property) || in si476x_core_is_valid_property_a20() [all …]
|
| /kernel/linux/linux-6.6/include/drm/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/drm/ |
| D | drm_property.h | 33 * struct drm_property_enum - symbolic values for enumerations 34 * @value: numeric property value for this enum entry 39 * decoding for each value. This is used for example for the rotation property. 48 * struct drm_property - modeset object property 50 * This structure represent a modeset object property. It combines both the name 51 * of the property with the set of permissible values. This means that when a 52 * driver wants to use a property with the same name on different objects, but 53 * with different value ranges, then it must create property for each one. An 56 * property structure can be instantiated multiple times for the same object. 58 * symbolic property will have the same modeset object ID on all modeset [all …]
|