Home
last modified time | relevance | path

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

12345678910>>...41

/linux/scripts/dtc/libfdt/
H A Dlibfdt.h1 /* 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 whic
151 fdt32_st(void * property,uint32_t value) fdt32_st() argument
175 fdt64_st(void * property,uint64_t value) fdt64_st() argument
653 fdt_for_each_property_offset(property,fdt,node) global() argument
[all...]
/linux/drivers/gpu/drm/
H A 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.
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 …]
/linux/drivers/base/
H A 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/drivers/of/
H A 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
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 Ddynamic.c1 // 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 Dkobj.c1 // SPDX-License-Identifier: GPL-2.0
8 static int of_node_is_initialized(const struct device_node *node) in of_node_is_initialized()
10 return node && node->kobj.state_initialized; in of_node_is_initialized()
14 int of_node_is_attached(const struct device_node *node) in of_node_is_attached()
16 return node && node->kobj.state_in_sysfs; in of_node_is_attached()
35 struct property *pp = container_of(bin_attr, struct property, attr); in of_node_property_read()
36 return memory_read_from_buffer(buf, count, &offset, pp->value, pp->length); in of_node_property_read()
44 int i = 0; in safe_name()
47 while (i < 16 && (kn = sysfs_get_dirent(kobj->sd, name))) { in safe_name()
63 int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs()
[all …]
/linux/drivers/thunderbolt/
H A Dproperty.c1 // 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 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>
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/linux/
H A Dextcon.h1 /* 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/include/drm/
H A 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 …]
H A 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
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 …]
/linux/arch/sparc/include/asm/
H A Doplib_64.h1 /* 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 Doplib_32.h1 /* 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/drivers/gpu/drm/logicvc/
H A 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/arch/m68k/include/asm/
H A Doplib.h1 /* 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 Dreconfig.c1 // 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/scripts/dtc/
H A Ddtc.h1 /* 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 alignsiz
206 struct property { global() struct
211 nextproperty global() argument
220 srcposproperty global() argument
[all...]
H A Dlivetree.c1 // 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...]
H A Dchecks.c1 // 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->erro in check_msg()
[all...]
H A Dfdtget.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Portions from U-Boot cmd_fdt.c (C) Copyright 2007
31 int type; /* data type (s/i/u/x or 0 for default) */
32 int size; /* data size (1/2/4) */
34 const char *default_val; /* default value if node/property not found */
37 static void report_error(const char *where, int err) in report_error()
51 * @return 0 if ok, -1 if data does not match format
53 static int show_data(struct display_info *disp, const char *data, int len) in show_data()
55 int i, size; in show_data()
58 int value; in show_data()
[all …]
/linux/drivers/extcon/
H A Dextcon.c1 // 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/arch/sparc/prom/
H A Dtree_32.c1 // 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 …]
/linux/include/linux/platform_data/
H A Dwilco-ec.h1 /* 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/rust/kernel/device/
H A Dproperty.rs1 // 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
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/include/linux/mfd/
H A Dsyscon.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
24 const char *property);
26 const char *property,
27 int arg_count,
28 unsigned int *out_args);
30 const char *property);
31 int of_syscon_register_regmap(struct device_node *np,
36 return ERR_PTR(-ENOTSUPP); in device_node_to_regmap()
41 return ERR_PTR(-ENOTSUPP); in syscon_node_to_regmap()
46 return ERR_PTR(-ENOTSUPP); in syscon_regmap_lookup_by_compatible()
[all …]

12345678910>>...41