| /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> 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 …]
|
| H A D | syscon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 static struct syscon *of_syscon_register(struct device_node *np, bool check_res) in of_syscon_register() 56 return ERR_PTR(-ENOMEM); in of_syscon_register() 59 return ERR_PTR(-ENOMEM); in of_syscon_register() 63 return ERR_PTR(-ENOMEM); in of_syscon_register() 66 if (of_property_read_bool(np, "big-endian")) in of_syscon_register() 68 else if (of_property_read_bool(np, "little-endian")) in of_syscon_register() 70 else if (of_property_read_bool(np, "native-endian")) in of_syscon_register() 74 * search for reg-io-width property in DT. If it is not provided, in of_syscon_register() 78 ret = of_property_read_u32(np, "reg-io-width", ®_io_width); in of_syscon_register() [all …]
|
| /linux/security/ipe/ |
| H A D | eval.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2020-2024 Microsoft Corporation. All rights reserved. 22 bool success_audit; 23 bool enforce = true; 24 #define INO_BLOCK_DEV(ino) ((ino)->i_sb->s_bdev) 26 #define FILE_SUPERBLOCK(f) ((f)->f_path.mnt->mnt_sb) 29 * build_ipe_sb_ctx() - Build initramfs field of an ipe evaluation context. 35 ctx->initramfs = ipe_sb(FILE_SUPERBLOCK(file))->initramfs; in build_ipe_sb_ctx() 40 * build_ipe_bdev_ctx() - Build ipe_bdev field of an evaluation context. 47 ctx->ipe_bdev = ipe_bdev(INO_BLOCK_DEV(ino)); in build_ipe_bdev_ctx() [all …]
|
| /linux/include/linux/ |
| H A D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 19 #include <linux/device-id/of.h> 20 #include <linux/property.h> 28 struct property { struct 32 struct property *next; argument 54 struct property *properties; argument 55 struct property *deadprops; /* removed properties */ 96 struct property *prop; 97 struct property *old_prop; [all …]
|
| H A 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 …]
|
| H A D | thunderbolt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 27 #include <linux/device-id/tb.h> 48 * enum tb_security_level - Thunderbolt security level 69 * struct tb - main thunderbolt bus structure 105 return (link - 1) / TB_LINKS_PER_PHY_PORT; in tb_phy_port_from_link() 109 * struct tb_property_dir - XDomain property directory 131 * struct tb_property - XDomai 176 tb_property_for_each(dir,property) global() argument [all...] |
| /linux/drivers/base/ |
| H A D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * property.c - Unified device property interface. 15 #include <linux/property.h> 23 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode() 24 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode() 30 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in __dev_fwnode_const() 31 of_fwnode_handle(dev->of_node) : dev->fwnode; in __dev_fwnode_const() 36 * device_property_present - check if a property of a device is present 37 * @dev: Device whose property is being checked 38 * @propname: Name of the property [all …]
|
| /linux/drivers/acpi/ |
| H A D | property.c | 1 // 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 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 */ 56 /* Storage device needs D3 GUID: 5025030f-842f-4ab4-a561-99a5189762d0 */ [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_atomic_uapi.c | 41 #include <linux/dma-fence.h> 59 * drm_atomic_set_mode_for_crtc - set mode for CRTC 61 * @mode: kernel-internal mode to use for the CRTC, or NULL to disable 64 * the enable property. 67 * Zero on success, error code on failure. Cannot return -EDEADLK. 72 struct drm_crtc *crtc = state->crtc; in drm_atomic_set_mode_for_crtc() 76 if (mode && memcmp(&state->mode, mode, sizeof(*mode)) == 0) in drm_atomic_set_mode_for_crtc() 79 drm_property_blob_put(state->mode_blob); in drm_atomic_set_mode_for_crtc() 80 state->mode_blob = NULL; in drm_atomic_set_mode_for_crtc() 86 blob = drm_property_create_blob(crtc->dev, in drm_atomic_set_mode_for_crtc() [all …]
|
| 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. 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 …]
|
| /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/include/drm/ |
| H A D | drm_connector.h | 58 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 62 * enum drm_connector_status - status for a &drm_connector 77 * nothing there. It is driver-dependent whether a connector with this 84 * flicker (like load-detection when the connector is in use), or when a 85 * hardware resource isn't available (like when load-detection needs a 95 * enum drm_connector_registration_state - userspace registration status for 128 * - An unregistered connector may only have its DPMS changed from 129 * On->Off. Once DPMS is changed to Off, it may not be switched back 131 * - Modesets are not allowed on unregistered connectors, unless they 135 * - Removing a CRTC from an unregistered connector is OK, but new [all …]
|
| /linux/Documentation/gpu/rfc/ |
| H A D | color_pipeline.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 We would like to support pre-, and post-blending complex color 12 HW-supported HDR use-cases, as well as to provide support to 13 color-managed applications, such as video or image editors. 22 implemented in fixed-function HW and therefore much more power efficient than 27 fixed-function blocks and shaders/CPU must be seamless with no visible 34 The most widely supported use-cases regard HDR content, whether video or 39 Drivers will then program their fixed-function HW accordingly to map from a 42 When fixed-function HW is not available the compositor will assemble a shader to 48 closed-source compositor code such a vendor will tune their color management [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. 36 * of_property_read_bool - Find a property 37 * @np: device node from which the property value is to be read. 38 * @propname: name of the property to be searched. 40 * Search for a boolean property in a device node. Usage on non-boolean 41 * property types is deprecated. 43 * Return: true if the property exists false otherwise. [all …]
|
| H A D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 60 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() 68 node_name = kbasename(np->full_name); in of_node_name_eq() 69 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 75 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() 80 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 84 static bool __of_node_is_typ [all...] |
| H A D | of_reserved_mem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 36 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap, in early_init_dt_alloc_reserved_memory_arch() 46 return -ENOMEM; in early_init_dt_alloc_reserved_memory_arch() 62 * alloc_reserved_mem_array() - allocate memory for the reserved_mem 83 ret = -EOVERFLOW; in alloc_reserved_mem_array() 89 ret = -ENOMEM; in alloc_reserved_mem_array() 96 ret = -EOVERFLOW; in alloc_reserved_mem_array() 100 memset_size = alloc_size - copy_size; in alloc_reserved_mem_array() 122 phys_addr_t size, bool nomap) in early_init_dt_reserve_memory() 132 return -EBUSY; in early_init_dt_reserve_memory() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | expr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 38 * struct expr - expression 51 bool val_is_valid; 57 #define EXPR_NOT(dep) (2-(dep)) 131 struct property *prop; 150 #define SYMBOL_WRITTEN 0x0800 /* track info to avoid double-write to .config */ 163 /* A property represent 188 struct property { global() struct 189 nextproperty global() argument 190 typeproperty global() argument 193 exprproperty global() argument 194 menuproperty global() argument 197 filenameproperty global() argument 198 linenoproperty global() argument [all...] |
| H A D | menu.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 22 * menu_next - return the next menu entry with depth-first traversal 24 * @root: root of the sub-tree to traverse. If NULL is given, the traveral 30 if (menu->list) in menu_next() 31 return menu->list; in menu_next() 33 while (menu != root && !menu->nex in menu_next() [all...] |
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | base_device.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 57 @property 58 def int_value(self) -> int: 62 def int_value(self, v: int) -> None: 65 @property 66 def str_value(self) -> str: 70 def str_value(self, v: str) -> None: 79 @property 80 def brightness(self) -> int: [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_atomic.c | 29 * See intel_plane.c for the plane-specific atomic functionality. 50 * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property. 51 * @connector: Connector to get the property for. 52 * @state: Connector state to retrieve the property from. 53 * @property: Property to retrieve. 54 * @val: Return value for the property. 56 * Returns the atomic property value for a digital connector. 60 struct drm_property *property, in intel_digital_connector_atomic_get_property() argument 63 struct intel_display *display = to_intel_display(connector->dev); in intel_digital_connector_atomic_get_property() 67 if (property == display->properties.force_audio) in intel_digital_connector_atomic_get_property() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_crtc.c | 1 // SPDX-License-Identifier: MIT 46 struct drm_crtc *crtc = &acrtc->base; in amdgpu_dm_crtc_handle_vblank() 47 struct drm_device *dev = crtc->dev; in amdgpu_dm_crtc_handle_vblank() 52 spin_lock_irqsave(&dev->event_lock, flags); in amdgpu_dm_crtc_handle_vblank() 54 /* Send completion event for cursor-only commits */ in amdgpu_dm_crtc_handle_vblank() 55 if (acrtc->event && acrtc->pflip_status != AMDGPU_FLIP_SUBMITTED) { in amdgpu_dm_crtc_handle_vblank() 56 drm_crtc_send_vblank_event(crtc, acrtc->event); in amdgpu_dm_crtc_handle_vblank() 58 acrtc->event = NULL; in amdgpu_dm_crtc_handle_vblank() 61 spin_unlock_irqrestore(&dev->event_lock, flags); in amdgpu_dm_crtc_handle_vblank() 65 bool amdgpu_dm_crtc_modeset_required(struct drm_crtc_state *crtc_state, in amdgpu_dm_crtc_modeset_required() [all …]
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 #include <asm/msr-index.h> 22 extern bool host_cpu_is_intel; 23 extern bool host_cpu_is_amd; 24 extern bool host_cpu_is_hygon; 25 extern bool host_cpu_is_amd_compatible; 43 #define X86_EFLAGS_FIXED BIT(1) /* Bit 1 - alway 744 this_cpu_property(struct kvm_x86_cpu_property property) this_cpu_property() argument 750 this_cpu_has_p(struct kvm_x86_cpu_property property) this_cpu_has_p() argument 985 kvm_cpu_property(struct kvm_x86_cpu_property property) kvm_cpu_property() argument 990 kvm_cpu_has_p(struct kvm_x86_cpu_property property) kvm_cpu_has_p() argument [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. 53 .name = "USB-HOST", 80 .name = "FAST-CHARGER", 85 .name = "SLOW-CHARGER", 112 .name = "LINE-IN", 117 .name = "LINE-OUT", 122 .name = "VIDEO-IN", 127 .name = "VIDEO-OUT", 132 .name = "SPDIF-IN", [all …]
|
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | phy-miphy365x.txt | 8 - compatible : Should be "st,miphy365x-phy" 9 - st,syscfg : Phandle / integer array property. Phandle of sysconfig group 11 an entry for each port sub-node, specifying the control 14 Required nodes : A sub-node is required for each channel the controller 16 'reg' and 'reg-names' properties are used inside these 21 - #phy-cells : Should be 1 (See second example) 23 - PHY_TYPE_SATA 24 - PHY_TYPE_PCI 25 - reg : Address and length of register sets for each device in 26 "reg-names" [all …]
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | omapdss-boot-init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * DT-data in generic manner, we convert the compatible strings of the panel and 10 * encoder nodes from "panel-foo" to "omapdss,panel-foo". This way we can have 29 bool root; 32 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() 34 const char *p = prop->value; in omapdss_count_strings() 38 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings() 47 struct property *prop; in omapdss_update_prop() 53 prop->name = "compatible"; in omapdss_update_prop() 54 prop->value = compat; in omapdss_update_prop() [all …]
|