/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 …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 bool "Integrity Policy Enforcement (IPE)" 18 allowing users to define a policy to enforce a trust-based access 36 bool "IPE policy update verification with secondary keyring" 46 bool "IPE policy update verification with platform keyring" 57 bool "Enable support for dm-verit [all...] |
/linux/scripts/dtc/ |
H A 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) - 206 struct property { global() struct 211 nextproperty global() argument 220 srcposproperty global() argument [all...] |
H A 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->war in check_msg() [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->delete in delete_labels() [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/thunderbolt/ |
H A 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/drivers/of/ |
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 51 struct property *prop, struct property *old_prop); 61 struct property *prop, struct property *old_prop) in of_property_notify() 75 int __of_add_property_sysfs(struct device_node *np, struct property *pp); 76 void __of_remove_property_sysfs(struct device_node *np, const struct property *prop); 77 void __of_update_property_sysfs(struct device_node *np, struct property *newprop, [all …]
|
H A D | of_reserved_mem.c | 1 // SPDX-License-Identifier: GPL-2.0+ 28 #include <linux/dma-map-ops.h> 38 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap, in early_init_dt_alloc_reserved_memory_arch() 48 return -ENOMEM; in early_init_dt_alloc_reserved_memory_arch() 64 * alloc_reserved_mem_array() - allocate memory for the reserved_mem 81 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -EOVERFLOW); in alloc_reserved_mem_array() 87 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -ENOMEM); in alloc_reserved_mem_array() 95 pr_err("Failed to allocate memory for reserved_mem array with err: %d", -EOVERFLOW); in alloc_reserved_mem_array() 99 memset_size = alloc_size - copy_size; in alloc_reserved_mem_array() 109 * fdt_reserved_mem_save_node() - save fdt node for second pass initialization [all …]
|
/linux/include/drm/ |
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 120 * - Checking that the modes, framebuffers, scaling and placement 123 * - Checking that any hidden shared resources are not oversubscribed. 128 * - Checking that virtualized resources exported to userspace are not 131 * example is dual-pipe operations (which generally should be hidden 138 * - Check that any transitional state is possible and that if 142 * - Check any other constraints the driver or hardware might have. [all …]
|
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 …]
|
/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. 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/linux/ |
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 | property.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * property.h - Unified device property interface. 40 bool device_property_present(const struct device *dev, const char *propname); 41 bool device_property_read_bool(const struct device *dev, const char *propname); 57 bool fwnode_property_presen [all...] |
H A D | thunderbolt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 46 * enum tb_security_level - Thunderbolt security level 67 * struct tb - main thunderbolt bus structure 103 return (link - 1) / TB_LINKS_PER_PHY_PORT; in tb_phy_port_from_link() 107 * struct tb_property_dir - XDomain property directory 129 * struct tb_property - XDomain property 131 * @key: Key for the property (always terminated). 132 * @type: Type of the property 133 * @length: Length of the property data in dwords 134 * @value: Property value [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 the config options that can be associated 175 * list of property types! 188 struct property { struct [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->next) in menu_next() 34 menu = menu->parent; in menu_next() 39 return menu->next; in menu_next() 46 fprintf(stderr, "%s:%d:warning: ", menu->filename, menu->lineno); in menu_warn() [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/hid/ |
H A 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/rust/kernel/device/ |
H A D | property.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! Unified device property interface. 5 //! C header: [`include/linux/property.h`](srctree/include/linux/property.h) 20 /// A reference-counted fwnode_handle. 32 /// Instances of this type are always reference-counted, that is, a call to 42 /// - The reference count was incremented at least once. 43 /// - The 65 is_of_node(&self) -> bool is_of_node() argument 98 property_present(&self, name: &CStr) -> bool property_present() argument 104 property_read_bool(&self, name: &CStr) -> bool property_read_bool() argument 349 is_empty(&self) -> bool is_empty() argument 436 pub trait Property: Sized + Sealed { global() interface 543 impl Property for $int { global() impl 550 impl<const N: usize> Property for [$int; N] { global() impl [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; 105 * Pack the information into a 64-bit value so that each X86_FEATURE_XXX can be 233 * Same idea as X86_FEATURE_XXX, but X86_PROPERTY_XXX retrieves a multi-bit 234 * value/property as opposed to a single-bit feature. Again, pack the info 235 * into a 64-bit value to pass by value with no overhead. 246 struct kvm_x86_cpu_property property = { \ 259 kvm_static_assert(idx < BIT(sizeof(property.index) * BITS_PER_BYTE)); \ [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 …]
|