Home
last modified time | relevance | path

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

12345678910>>...43

/Linux-v5.4/drivers/gpu/drm/
Ddrm_property.c40 * 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.
82 * drm_property_create - create a new property type
84 * @flags: flags specifying the property type
85 * @name: name of the property
86 * @num_values: number of pre-defined values
[all …]
Ddrm_atomic_uapi.c36 #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.
64 int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, in drm_atomic_set_mode_for_crtc()
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()
[all …]
Ddrm_mode_object.c39 int __drm_mode_object_add(struct drm_device *dev, struct drm_mode_object *obj, in __drm_mode_object_add()
43 int ret; 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()
[all …]
Ddrm_blend.c43 * sub-pixel accuracy, which is scaled up to a pixel-aligned destination
96 * plane-wide opacity, from transparent (0) to opaque (0xffff). It can be
99 * pre-multiplied by the global alpha associated to the plane.
104 * Without this property the rectangle is only scaled, but not rotated or
109 * "rotate-<degrees>":
113 * "reflect-<axis>":
117 * reflect-x::
120 * | | -> | |
123 * reflect-y::
126 * | | -> | |
[all …]
Ddrm_connector.c43 * Hence they are reference-counted using drm_connector_get() and
59 * For connectors which are not fixed (like built-in panels) the driver needs to
67 int type;
78 { DRM_MODE_CONNECTOR_DVII, "DVI-I" },
79 { DRM_MODE_CONNECTOR_DVID, "DVI-D" },
80 { DRM_MODE_CONNECTOR_DVIA, "DVI-A" },
87 { DRM_MODE_CONNECTOR_HDMIA, "HDMI-A" },
88 { DRM_MODE_CONNECTOR_HDMIB, "HDMI-B" },
100 int i; in drm_connector_ida_init()
108 int i; in drm_connector_ida_destroy()
[all …]
/Linux-v5.4/scripts/dtc/libfdt/
Dlibfdt.h1 /* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) */
5 * libfdt - Flat Device Tree manipulation
17 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */
19 /* FDT_ERR_EXISTS: Attempted to create a node or property which
30 * offset which is out-of-bounds, or which points to an
38 * This can be caused either by an invalid phandle property
39 * length, or the phandle value was either 0 or -1, which are
43 * tree created by the sequential-write functions, which is
48 /* FDT_ERR_TRUNCATED: FDT or a sub-block is improperly
53 * device tree at all - it is missing the flattened device
[all …]
/Linux-v5.4/drivers/of/
Dof_private.h1 /* 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
26 int id;
43 extern int of_property_notify(int action, struct device_node *np,
44 struct property *prop, struct property *old_prop);
46 extern int __of_changeset_apply_entries(struct of_changeset *ocs,
47 int *ret_revert);
[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.
32 * of_property_count_elems_of_size - Count the number of elements in a property
34 * @np: device node from which the property value is to be read.
35 * @propname: name of the property to be searched.
38 * Search for a property in a device node and count the number of elements of
39 * size elem_size in it. Returns number of elements on sucess, -EINVAL if the
40 * property does not exist or its length does not match a multiple of elem_size
[all …]
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
66 node_name = kbasename(np->full_name); in of_node_name_eq()
67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
89 int of_n_addr_cells(struct device_node *np) in of_n_addr_cells()
94 if (np->parent) in of_n_addr_cells()
95 np = np->parent; in of_n_addr_cells()
96 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_n_addr_cells()
98 } while (np->parent); in of_n_addr_cells()
[all …]
/Linux-v5.4/include/linux/
Dof.h1 /* SPDX-License-Identifier: GPL-2.0+ */
8 * Copyright (C) 1996-2005 Paul Mackerras.
22 #include <linux/property.h>
31 struct property { struct
33 int length;
35 struct property *next; argument
40 unsigned int unique_id;
57 struct property *properties; argument
58 struct property *deadprops; /* removed properties */
68 unsigned int unique_id;
[all …]
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 */
90 * When adding the new extcon property, they *must* have
96 * The naming style of property
97 * : EXTCON_PROP_[type]_[property name]
99 * EXTCON_PROP_USB_[property name] : USB property
100 * EXTCON_PROP_CHG_[property name] : Charger property
[all …]
/Linux-v5.4/drivers/base/
Dproperty.c1 // 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.
42 * fwnode_property_present - check if a property of a firmware node is present
[all …]
/Linux-v5.4/drivers/thunderbolt/
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-v5.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>
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-v5.4/include/drm/
Ddrm_property.h33 * 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 …]
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.
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 …]
/Linux-v5.4/arch/sparc/include/asm/
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 …]
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 …]
/Linux-v5.4/scripts/dtc/
Ddtc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
37 extern int quiet; /* Level of quietness */
38 extern 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 alignsize; /* Additional padding to blob accroding to the alignsize */
42 extern int phandle_format; /* Use linux,phandle or phandle properties */
43 extern int generate_symbols; /* generate symbols for nodes with labels */
44 extern int generate_fixups; /* generate fixups */
45 extern int auto_label_aliases; /* auto generate labels -> aliases */
[all …]
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->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/
Dproperty.c1 // SPDX-License-Identifier: GPL-2.0-only
19 static int acpi_data_get_property_array(const struct acpi_device_data *data,
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 */
75 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
[all …]
/Linux-v5.4/arch/m68k/include/asm/
Doplib.h1 /* SPDX-License-Identifier: GPL-2.0 */
27 extern unsigned int prom_rev, prom_prev;
32 extern int prom_root_node;
35 * and usage utility functions. Only prom-lib should use these,
59 extern char *prom_mapio(char *virt_hint, int io_space, unsigned int phys_addr, unsigned int num_byt…
60 extern void prom_unmapio(char *virt_addr, unsigned int num_bytes);
65 * of the string is different on V0 vs. V2->higher proms. The caller must
66 * know what he/she is doing! Returns the device descriptor, an int.
68 extern int prom_devopen(char *device_string);
73 extern int prom_devclose(int device_handle);
[all …]
/Linux-v5.4/drivers/bus/
Dtegra-gmi.c53 static int tegra_gmi_enable(struct tegra_gmi *gmi) in tegra_gmi_enable()
55 int err; in tegra_gmi_enable()
57 err = clk_prepare_enable(gmi->clk); in tegra_gmi_enable()
59 dev_err(gmi->dev, "failed to enable clock: %d\n", err); in tegra_gmi_enable()
63 reset_control_assert(gmi->rst); in tegra_gmi_enable()
65 reset_control_deassert(gmi->rst); in tegra_gmi_enable()
67 writel(gmi->snor_timing0, gmi->base + TEGRA_GMI_TIMING0); in tegra_gmi_enable()
68 writel(gmi->snor_timing1, gmi->base + TEGRA_GMI_TIMING1); in tegra_gmi_enable()
70 gmi->snor_config |= TEGRA_GMI_CONFIG_GO; in tegra_gmi_enable()
71 writel(gmi->snor_config, gmi->base + TEGRA_GMI_CONFIG); in tegra_gmi_enable()
[all …]
/Linux-v5.4/arch/powerpc/platforms/pseries/
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-v5.4/drivers/gpu/drm/i915/display/
Dintel_atomic.c29 * See intel_atomic_plane.c for the plane-specific atomic functionality.
43 * intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property.
44 * @connector: Connector to get the property for.
45 * @state: Connector state to retrieve the property from.
46 * @property: Property to retrieve.
47 * @val: Return value for the property.
49 * Returns the atomic property value for a digital connector.
51 int intel_digital_connector_atomic_get_property(struct drm_connector *connector, in intel_digital_connector_atomic_get_property()
53 struct drm_property *property, in intel_digital_connector_atomic_get_property() argument
56 struct drm_device *dev = connector->dev; in intel_digital_connector_atomic_get_property()
[all …]

12345678910>>...43