Home
last modified time | relevance | path

Searched +full:bool +full:- +full:property (Results 1 – 25 of 1024) sorted by relevance

12345678910>>...41

/linux-6.14.4/drivers/mfd/
Dsi476x-prop.c1 // 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 …]
/linux-6.14.4/security/ipe/
Deval.c1 // 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 …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
7 bool "Integrity Policy Enforcement (IPE)"
17 allowing users to define a policy to enforce a trust-based access
35 bool "IPE policy update verification with secondary keyring"
45 bool "IPE policy update verification with platform keyring"
56 bool "Enable support for dm-verity based on root hash"
59 This option enables the 'dmverity_roothash' property within IPE
60 policies. The property evaluates to TRUE when a file from a dm-verity
65 bool "Enable support for dm-verity based on root hash signature"
68 This option enables the 'dmverity_signature' property within IPE
[all …]
/linux-6.14.4/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
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;
104 * of_node_init - initialize a devicetree node
[all …]
Dextcon-provider.h1 /* 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 …]
Dproperty.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * property.h - Unified device property interface.
39 bool device_property_present(const struct device *dev, const char *propname);
40 bool device_property_read_bool(const struct device *dev, const char *propname);
56 bool fwnode_property_present(const struct fwnode_handle *fwnode,
58 bool fwnode_property_read_bool(const struct fwnode_handle *fwnode,
80 bool fwnode_device_is_available(const struct fwnode_handle *fwnode);
82 static inline bool fwnode_device_is_big_endian(const struct fwnode_handle *fwnode) in fwnode_device_is_big_endian()
84 if (fwnode_property_present(fwnode, "big-endian")) in fwnode_device_is_big_endian()
87 fwnode_property_present(fwnode, "native-endian")) in fwnode_device_is_big_endian()
[all …]
/linux-6.14.4/scripts/dtc/
Ddtc.h1 /* 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) - 1) & ~((a) - 1))
120 static inline bool is_type_marker(enum markertype type) in is_type_marker()
144 for (; (m); (m) = (m)->next)
147 if ((m)->type == (t))
152 if (is_type_marker(m->type)) in next_type_marker()
[all …]
Dchecks.c1 // 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->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()
[all …]
/linux-6.14.4/drivers/acpi/
Dproperty.c1 // 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-6.14.4/Documentation/devicetree/bindings/
Dexample-schema.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 # All the top-level keys are standard json-schema keywords except for
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
17 - Rob Herring <[email protected]>
20 A more detailed multi-line description of the binding.
44 - items:
45 # items is a list of possible values for the property. The number of
[all …]
/linux-6.14.4/drivers/base/
Dproperty.c1 // 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-6.14.4/drivers/thunderbolt/
Dproperty.c1 // 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-6.14.4/include/drm/
Ddrm_mode_config.h42 * 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 …]
Ddrm_property.h33 * 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 …]
Ddrm_connector.h58 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-6.14.4/drivers/gpu/drm/logicvc/
Dlogicvc_of.c1 // 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-6.14.4/drivers/gpu/drm/
Ddrm_property.c41 * 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 …]
Ddrm_mode_object.c40 uint32_t obj_type, bool register_obj, 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()
68 * drm_mode_object_add - allocate a new modeset identifier
[all …]
Ddrm_atomic_uapi.c38 #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.
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()
83 blob = drm_property_create_blob(crtc->dev, in drm_atomic_set_mode_for_crtc()
[all …]
/linux-6.14.4/tools/testing/selftests/hid/tests/
Dbase_device.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
55 @property
56 def int_value(self) -> int:
60 def int_value(self, v: int) -> None:
63 @property
64 def str_value(self) -> str:
68 def str_value(self, v: str) -> None:
77 @property
78 def brightness(self) -> int:
[all …]
/linux-6.14.4/drivers/of/
Dof_private.h1 /* 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 …]
Dproperty.c1 // 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 …]
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
59 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq()
67 node_name = kbasename(np->full_name); in of_node_name_eq()
68 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
74 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix()
79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
83 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type()
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()
[all …]
/linux-6.14.4/scripts/kconfig/
Dexpr.h1 /* 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;
149 #define SYMBOL_WRITTEN 0x0800 /* track info to avoid double-write to .config */
162 /* A property represent the config options that can be associated
174 * list of property types!
187 struct property { struct
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mode.h40 #include <linux/i2c-algo-bit.h>
128 /* amdgpu gpio-based i2c
143 bool valid;
149 bool hw_capable;
150 /* uses multi-media i2c engine */
151 bool mm_i2c;
230 bool has_aux;
235 bool enabled;
237 bool last_buffer_filled_status;
252 bool connected;
[all …]

12345678910>>...41