/linux/drivers/gpu/drm/ |
H A D | drm_property.c | 41 * 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. 83 * drm_property_create - create a new property type 85 * @flags: flags specifying the property type 86 * @name: name of the property 87 * @num_values: number of pre-defined values [all …]
|
H A 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 …]
|
/linux/scripts/dtc/libfdt/ |
H A 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 …]
|
/linux/drivers/of/ |
H A 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_property_read_bool - Find a property 36 * @np: device node from which the property value is to be read. 37 * @propname: name of the property to be searched. 39 * Search for a boolean property in a device node. Usage on non-boolean 40 * property types is deprecated. 42 * Return: true if the property exists false otherwise. [all …]
|
H A D | of_private.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 15 * struct alias_prop - Alias property in 'aliases' node 17 * @alias: Alias property name 22 * The structure represents one alias property of 'aliases' node as 29 int id; 50 extern int of_property_notify(int action, struct device_node *np, 51 struct property *prop, struct property *old_prop); 53 extern int __of_changeset_apply_entries(struct of_changeset *ocs, 54 int *ret_revert); [all …]
|
H A D | dynamic.c | 1 // SPDX-License-Identifier: GPL-2.0 28 * of_node_get() - Increment refcount of a node 37 kobject_get(&node->kobj); in of_node_get() 43 * of_node_put() - Decrement refcount of a node 50 kobject_put(&node->kobj); in of_node_put() 56 int of_reconfig_notifier_register(struct notifier_block *nb) in of_reconfig_notifier_register() 62 int of_reconfig_notifier_unregister(struct notifier_block *nb) in of_reconfig_notifier_unregister() 78 func("changeset: " prefix "%-15s %pOF%s%s\n", \ 80 prop ? ":" : "", prop ? prop->name : ""); \ 85 int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p) in of_reconfig_notify() [all …]
|
H A D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 67 node_name = kbasename(np->full_name); in of_node_name_eq() 68 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 95 int of_bus_n_addr_cells(struct device_node *np) in of_bus_n_addr_cells() 99 for (; np; np = np->parent) { in of_bus_n_addr_cells() 100 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells() 103 * Default root value and walking parent nodes for "#address-cells" in of_bus_n_addr_cells() 108 "Missing '#address-cells' in %pOF\n", np); in of_bus_n_addr_cells() [all …]
|
/linux/drivers/thunderbolt/ |
H A 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 …]
|
/linux/drivers/mfd/ |
H A 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 …]
|
/linux/include/drm/ |
H A 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 …]
|
H A 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 119 * - Checking that the modes, framebuffers, scaling and placement 122 * - Checking that any hidden shared resources are not oversubscribed. 127 * - Checking that virtualized resources exported to userspace are not 130 * example is dual-pipe operations (which generally should be hidden 137 * - Check that any transitional state is possible and that if 141 * - Check any other constraints the driver or hardware might have. [all …]
|
/linux/include/linux/ |
H A 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 …]
|
/linux/drivers/gpu/drm/logicvc/ |
H A 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/arch/sparc/include/asm/ |
H A D | oplib_64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 extern int prom_stdout; 44 extern int prom_mmu_ihandle_cache; 45 extern unsigned int prom_boot_mapped_pc; 46 extern unsigned int prom_boot_mapping_mode; 85 /* Enter the prom, with no chance of continuation for the stand-alone 90 /* Halt and power-off the machine. */ 97 unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size); 100 void prom_console_write_buf(const char *buf, int len); 104 void prom_write(const char *buf, unsigned int len); [all …]
|
H A 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 …]
|
/linux/arch/m68k/include/asm/ |
H A D | oplib.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 extern unsigned int prom_rev, prom_prev; 34 extern int prom_root_node; 37 * and usage utility functions. Only prom-lib should use these, 61 extern char *prom_mapio(char *virt_hint, int io_space, unsigned int phys_addr, unsigned int num_byt… 62 extern void prom_unmapio(char *virt_addr, unsigned int num_bytes); 67 * of the string is different on V0 vs. V2->higher proms. The caller must 68 * know what he/she is doing! Returns the device descriptor, an int. 70 extern int prom_devopen(char *device_string); 75 extern int prom_devclose(int device_handle); [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | reconfig.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI 23 static int pSeries_reconfig_add_node(const char *path, struct property *proplist) in pSeries_reconfig_add_node() 26 int err = -ENOMEM; in pSeries_reconfig_add_node() 32 np->full_name = kstrdup(kbasename(path), GFP_KERNEL); in pSeries_reconfig_add_node() 33 if (!np->full_name) in pSeries_reconfig_add_node() 36 np->properties = proplist; in pSeries_reconfig_add_node() 40 np->parent = pseries_of_derive_parent(path); in pSeries_reconfig_add_node() 41 if (IS_ERR(np->parent)) { in pSeries_reconfig_add_node() 42 err = PTR_ERR(np->parent); in pSeries_reconfig_add_node() [all …]
|
/linux/drivers/acpi/ |
H A D | property.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2014 - 2023, Intel Corporation 22 static int acpi_data_get_property_array(const struct acpi_device_data *data, 32 * from different GUID appear in a property list of another, it will be 38 * https://github.com/UEFI/DSD-Guide/blob/main/src/dsd-guide.adoc 41 /* ACPI _DSD device properties GUID [1]: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */ 44 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */ 47 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */ 50 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */ 53 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */ [all …]
|
/linux/scripts/dtc/ |
H A D | dtc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 37 extern int quiet; /* Level of quietness */ 38 extern unsigned int reservenum; /* Number of memory reservation slots */ 39 extern int minsize; /* Minimum blob size */ 40 extern int padsize; /* Additional padding to blob */ 41 extern int alignsize; /* Additional padding to blob accroding to the alignsize */ 42 extern int phandle_format; /* Use linux,phandle or phandle properties */ 43 extern int generate_symbols; /* generate symbols for nodes with labels */ 44 extern int generate_fixups; /* generate fixups */ 45 extern int auto_label_aliases; /* auto generate labels -> aliases */ [all …]
|
H A 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(const char *name, struct data val, in build_property() 42 struct property *new = xmalloc(sizeof(*new)); in build_property() 46 new->name = xstrdup(name); in build_property() 47 new->val = val; in build_property() [all …]
|
H A D | checks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 fprintf(stderr, "=== %s: ", (c)->name); \ 38 int num_prereqs; 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() 83 } else if (streq(dti->outname, "-")) { in check_msg() [all …]
|
/linux/drivers/extcon/ |
H A D | extcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/extcon/extcon.c - External Connector (extcon) framework. 33 unsigned int type; 34 unsigned int id; 53 .name = "USB-HOST", 80 .name = "FAST-CHARGER", 85 .name = "SLOW-CHARGER", 112 .name = "LINE-IN", 117 .name = "LINE-OUT", 122 .name = "VIDEO-IN", [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_atomic.c | 29 * See intel_atomic_plane.c for the plane-specific atomic functionality. 49 * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property. 50 * @connector: Connector to get the property for. 51 * @state: Connector state to retrieve the property from. 52 * @property: Property to retrieve. 53 * @val: Return value for the property. 55 * Returns the atomic property value for a digital connector. 57 int intel_digital_connector_atomic_get_property(struct drm_connector *connector, in intel_digital_connector_atomic_get_property() 59 struct drm_property *property, in intel_digital_connector_atomic_get_property() argument 62 struct drm_device *dev = connector->dev; in intel_digital_connector_atomic_get_property() [all …]
|
/linux/include/linux/platform_data/ |
H A D | wilco-ec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * struct wilco_ec_device - Wilco Embedded Controller handle. 34 * @debugfs_pdev: The child platform_device used by the debugfs sub-driver. 35 * @rtc_pdev: The child platform_device used by the RTC sub-driver. 36 * @charger_pdev: Child platform_device used by the charger config sub-driver. 37 * @telem_pdev: The child platform_device used by the telemetry sub-driver. 54 * struct wilco_ec_request - Mailbox request message format. 72 * struct wilco_ec_response - Mailbox response message format. 75 * @result: Result code from the EC. Non-zero indicates an error. 90 * enum wilco_ec_msg_type - Message type to select a set of command codes. [all …]
|
/linux/arch/sparc/prom/ |
H A D | tree_32.c | 1 // SPDX-License-Identifier: GPL-2.0 30 cnode = prom_nodeops->no_child(node); in __prom_getchild() 44 if ((s32)node == -1) in prom_getchild() 48 if (cnode == 0 || (s32)cnode == -1) in prom_getchild() 62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling() 76 if ((s32)node == -1) in prom_getsibling() 80 if (sibnode == 0 || (s32)sibnode == -1) in prom_getsibling() 87 /* Return the length in bytes of property 'prop' at node 'node'. 88 * Return -1 on error. 90 int prom_getproplen(phandle node, const char *prop) in prom_getproplen() [all …]
|