| /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-4.19/drivers/gpu/drm/ |
| D | drm_property.c | 35 * 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. 77 * drm_property_create - create a new property type 79 * @flags: flags specifying the property type 80 * @name: name of the property 81 * @num_values: number of pre-defined values [all …]
|
| D | drm_mode_object.c | 34 int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj, in __drm_mode_object_add() 38 int ret; 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 [all …]
|
| /kernel/linux/linux-4.19/scripts/dtc/libfdt/ |
| D | libfdt.h | 4 * libfdt - Flat Device Tree manipulation 23 * MA 02110-1301 USA 62 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */ 64 /* FDT_ERR_EXISTS: Attempted to create a node or property which 75 * offset which is out-of-bounds, or which points to an 83 * This can be caused either by an invalid phandle property 84 * length, or the phandle value was either 0 or -1, which are 88 * tree created by the sequential-write functions, which is 97 * device tree at all - it is missing the flattened device 102 * read-write functions, this may mean that fdt_open_into() is [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-4.19/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; 35 extern int of_property_notify(int action, struct device_node *np, 36 struct property *prop, struct property *old_prop); 38 extern int __of_changeset_apply_entries(struct of_changeset *ocs, 39 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. 32 * of_property_count_elems_of_size - Count the number of elements in a property 34 * @np: device node from which the property value is to be read. 35 * @propname: name of the property to be searched. 38 * Search for a property in a device node and count the number of elements of 39 * size elem_size in it. Returns number of elements on sucess, -EINVAL if the 40 * property does not exist or its length does not match a multiple of elem_size [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 */ 90 * When adding the new extcon property, they *must* have 96 * The naming style of property 97 * : EXTCON_PROP_[type]_[property name] 99 * EXTCON_PROP_USB_[property name] : USB property 100 * EXTCON_PROP_CHG_[property name] : Charger property [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-4.19/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; 58 struct property *properties; argument 59 struct property *deadprops; /* removed properties */ 70 unsigned int unique_id; [all …]
|
| D | extcon.h | 3 * - linux/include/linux/extcon.h for extcon consumer device driver. 81 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */ 82 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */ 86 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */ 98 * When adding the new extcon property, they *must* have 104 * The naming style of property 105 * : EXTCON_PROP_[type]_[property name] 107 * EXTCON_PROP_USB_[property name] : USB property 108 * EXTCON_PROP_CHG_[property name] : Charger property 109 * EXTCON_PROP_JACK_[property name] : Jack 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-4.19/drivers/thunderbolt/ |
| D | property.c | 2 * Thunderbolt XDomain property support 42 size_t block_len, unsigned int dir_offset, size_t dir_len, 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() 85 struct tb_property *property; in tb_property_alloc() local 87 property = kzalloc(sizeof(*property), GFP_KERNEL); in tb_property_alloc() 88 if (!property) in tb_property_alloc() 91 strcpy(property->key, key); 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-4.19/drivers/base/ |
| D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * property.c - Unified device property interface. 17 #include <linux/property.h> 31 return !IS_ERR_OR_NULL(fwnode) && fwnode->ops == &pset_fwnode_ops; in is_pset_node() 49 if (!pset || !pset->properties) in pset_prop_get() 52 for (prop = pset->properties; prop->name; prop++) in pset_prop_get() 53 if (!strcmp(name, prop->name)) in pset_prop_get() 61 switch (prop->type) { in property_get_pointer() 63 if (prop->is_array) in property_get_pointer() 64 return prop->pointer.u8_data; in property_get_pointer() [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-4.19/drivers/mfd/ |
| D | si476x-prop.c | 2 * drivers/mfd/si476x-prop.c -- Subroutines to access 21 #include <linux/mfd/si476x-core.h> 31 int i; in si476x_core_element_is_in_array() 44 int i; in si476x_core_element_is_in_range() 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() 95 u16 property) in si476x_core_is_valid_property_a20() argument 108 return si476x_core_is_valid_property_a10(core, property) || in si476x_core_is_valid_property_a20() 109 si476x_core_element_is_in_range(property, valid_ranges, in si476x_core_is_valid_property_a20() [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 …]
|
| /kernel/linux/linux-4.19/include/drm/ |
| D | drm_property.h | 31 * struct drm_property_enum - symbolic values for enumerations 32 * @value: numeric property value for this enum entry 37 * decoding for each value. This is used for example for the rotation property. 46 * struct drm_property - modeset object property 48 * This structure represent a modeset object property. It combines both the name 49 * of the property with the set of permissible values. This means that when a 50 * driver wants to use a property with the same name on different objects, but 51 * with different value ranges, then it must create property for each one. An 54 * property structure can be instantiated multiple times for the same object. 56 * symbolic property will have the same modeset object ID on all modeset [all …]
|
| /kernel/linux/linux-5.10/arch/sparc/include/asm/ |
| D | oplib_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 extern unsigned int prom_rev, prom_prev; 37 * and usage utility functions. Only prom-lib should use these, 65 /* Enter the prom, with no chance of continuation for the stand-alone 74 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX 83 unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size); 86 int prom_version(void); 89 int prom_getrev(void); 92 int prom_getprev(void); 95 void prom_console_write_buf(const char *buf, int len); [all …]
|