/Linux-v5.4/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> 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-v5.4/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 35 struct property *next; argument 57 struct property *properties; argument 58 struct property *deadprops; /* removed properties */ 99 struct property *prop; 100 struct property *old_prop; 109 kobject_init(&node->kobj, &of_node_ktype); in of_node_init() [all …]
|
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 …]
|
D | property.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * property.h - Unified device property interface. 36 bool device_property_present(struct device *dev, const char *propname); 52 bool fwnode_device_is_available(const struct fwnode_handle *fwnode); 53 bool fwnode_property_present(const struct fwnode_handle *fwnode, 118 static inline bool device_property_read_bool(struct device *dev, in device_property_read_bool() 168 static inline bool fwnode_property_read_bool(const struct fwnode_handle *fwnode, in fwnode_property_read_bool() 223 * struct property_entry - "Built-in" device property representation. 224 * @name: Name of the property. 226 * @is_array: True when the property is an array. [all …]
|
D | thunderbolt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 40 * enum tb_security_level - Thunderbolt security level 58 * struct tb - main thunderbolt bus structure 94 return (link - 1) / TB_LINKS_PER_PHY_PORT; in tb_phy_port_from_link() 98 * struct tb_property_dir - XDomain property directory 120 * struct tb_property - XDomain property 122 * @key: Key for the property (always terminated). 123 * @type: Type of the property 124 * @length: Length of the property data in dwords 125 * @value: Property value [all …]
|
/Linux-v5.4/scripts/dtc/ |
D | dtc.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 45 extern int auto_label_aliases; /* auto generate labels -> aliases */ 59 #define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) 92 for (; (m); (m) = (m)->next) 95 if ((m)->type == (t)) 121 bool data_is_one_string(struct data d); 130 bool deleted; 139 struct property { struct 140 bool deleted; 144 struct property *next; argument [all …]
|
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->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 …]
|
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(char *name, struct data val, in build_property() 42 struct property *new = xmalloc(sizeof(*new)); in build_property() 46 new->name = name; in build_property() 47 new->val = val; in build_property() [all …]
|
/Linux-v5.4/drivers/acpi/ |
D | property.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 * from different GUID appear in a property list of another, it will be 33 /* ACPI _DSD device properties GUID: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */ 36 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */ 39 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */ 42 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */ 45 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */ 50 /* ACPI _DSD data subnodes GUID: dbb8e3e6-5886-4ba6-8795-1319f52a966b */ 55 static bool acpi_enumerate_nondev_subnodes(acpi_handle scope, 59 static bool acpi_extract_properties(const union acpi_object *desc, [all …]
|
/Linux-v5.4/include/drm/ |
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. 64 * driver-specific information (like the internal native buffer object 106 * Except that there's no vtable for device-level helper callbacks 130 * - Checking that the modes, framebuffers, scaling and placement 133 * - Checking that any hidden shared resources are not oversubscribed. 138 * - Checking that virtualized resources exported to userspace are not 141 * example is dual-pipe operations (which generally should be hidden 148 * - Check that any transitional state is possible and that if [all …]
|
D | drm_connector.h | 50 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */ 54 * enum drm_connector_status - status for a &drm_connector 69 * nothing there. It is driver-dependent whether a connector with this 76 * flicker (like load-detection when the connector is in use), or when a 77 * hardware resource isn't available (like when load-detection needs a 87 * enum drm_connector_registration_status - userspace registration status for 120 * - An unregistered connector may only have its DPMS changed from 121 * On->Off. Once DPMS is changed to Off, it may not be switched back 123 * - Modesets are not allowed on unregistered connectors, unless they 127 * - Removing a CRTC from an unregistered connector is OK, but new [all …]
|
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 …]
|
/Linux-v5.4/drivers/thunderbolt/ |
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-v5.4/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. 35 bool device_property_present(struct device *dev, const char *propname) in device_property_present() [all …]
|
/Linux-v5.4/drivers/gpu/drm/ |
D | drm_mode_object.c | 40 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 …]
|
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. 58 static bool drm_property_flags_valid(u32 flags) in drm_property_flags_valid() 82 * drm_property_create - create a new property type 84 * @flags: flags specifying the property type 85 * @name: name of the property [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. 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() 79 state->mode_blob = in drm_atomic_set_mode_for_crtc() [all …]
|
/Linux-v5.4/scripts/kconfig/ |
D | lkc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 54 bool conf_set_all_new_symbols(enum conf_def_mode mode); 74 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep); 112 struct property *sym_get_range_prop(struct symbol *sym); 115 struct property *prop_alloc(enum prop_type type, struct symbol *sym); 116 struct symbol *prop_get_symbol(struct property *prop); 120 return sym->curr.tri; in sym_get_tristate_value() 126 return (struct symbol *)sym->curr.val; in sym_get_choice_value() 129 static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval) in sym_set_choice_value() [all …]
|
D | menu.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 25 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn() 31 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() 35 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn() 53 menu->sym = sym; in menu_add_entry() 54 menu->parent = current_menu; in menu_add_entry() 55 menu->file = current_file; in menu_add_entry() 56 menu->lineno = zconf_lineno(); in menu_add_entry() 59 last_entry_ptr = &menu->next; in menu_add_entry() [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/display/ |
D | intel_sdvo.c | 3 * Copyright © 2006-2007 Intel Corporation 59 #define IS_TV(c) (c->output_flag & SDVO_TV_MASK) 60 #define IS_TMDS(c) (c->output_flag & SDVO_TMDS_MASK) 61 #define IS_LVDS(c) (c->output_flag & SDVO_LVDS_MASK) 62 #define IS_TV_OR_LVDS(c) (c->output_flag & (SDVO_TV_MASK | SDVO_LVDS_MASK)) 63 #define IS_DIGITAL(c) (c->output_flag & (SDVO_TMDS_MASK | SDVO_LVDS_MASK)) 114 bool has_hdmi_monitor; 115 bool has_hdmi_audio; 121 * the sdvo flag gets lost in round trip: dtd->adjusted_mode->dtd 137 /* add the property for the SDVO-TV */ [all …]
|
/Linux-v5.4/drivers/of/ |
D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 58 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() 66 node_name = kbasename(np->full_name); in of_node_name_eq() 67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 73 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() 78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 82 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type() 94 if (np->parent) in of_n_addr_cells() 95 np = np->parent; in of_n_addr_cells() [all …]
|
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 44 struct property *prop, struct property *old_prop); 54 struct property *prop, struct property *old_prop) in of_property_notify() 62 int __of_add_property_sysfs(struct device_node *np, struct property *pp); 63 void __of_remove_property_sysfs(struct device_node *np, struct property *prop); 64 void __of_update_property_sysfs(struct device_node *np, struct property *newprop, [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/phy/ |
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-v5.4/drivers/hid/ |
D | hid-sensor-custom.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * hid-sensor-custom.c 17 #include <linux/hid-sensor-hub.h> 45 bool input_skip_sample; 46 bool enable; 65 {.name = "unit-expo", .mode = S_IRUGO}, 77 {0x200201, "event-sensor-state"}, 78 {0x200202, "event-sensor-event"}, 79 {0x200301, "property-friendly-name"}, 80 {0x200302, "property-persistent-unique-id"}, [all …]
|
/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/dss/ |
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 …]
|