Home
last modified time | relevance | path

Searched +full:prop +full:- (Results 1 – 25 of 928) sorted by relevance

12345678910>>...38

/openbmc/qemu/hw/core/
H A Dqdev-properties.c2 #include "hw/qdev-properties.h"
4 #include "qapi/qapi-types-misc.h"
7 #include "qemu/error-report.h"
11 #include "qdev-prop-internal.h"
12 #include "qom/qom-qobject.h"
17 if (dev->id) { in qdev_prop_set_after_realize()
19 "(type '%s') after it was realized", name, dev->id, in qdev_prop_set_after_realize()
34 if (dev->realized && !info->realized_set_allowed) { in qdev_prop_allow_set()
47 if (dev->realized) { in qdev_prop_allow_set_link_before_realize()
50 name, dev->id, object_get_typename(obj)); in qdev_prop_allow_set_link_before_realize()
[all …]
/openbmc/u-boot/scripts/dtc/
H A Dchecks.c17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 fprintf(stderr, "=== %s: ", (c)->name); \
77 struct property *prop, in check_msg() argument
83 if ((c->warn && (quiet < 1)) in check_msg()
84 || (c->error && (quiet < 2))) { in check_msg()
86 strcmp(dti->outname, "-") ? dti->outname : "<stdout>", in check_msg()
87 (c->error) ? "ERROR" : "Warning", c->name); in check_msg()
89 fprintf(stderr, "%s", node->fullpath); in check_msg()
90 if (prop) in check_msg()
91 fprintf(stderr, ":%s", prop->name); in check_msg()
[all …]
H A Dlivetree.c17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
33 if (streq(new->label, label)) { in add_label()
34 new->deleted = 0; in add_label()
40 new->label = label; in add_label()
41 new->next = *labels; in add_label()
50 label->deleted = 1; in delete_labels()
59 new->name = name; in build_property()
60 new->val = val; in build_property()
71 new->name = name; in build_property_delete()
72 new->deleted = 1; in build_property_delete()
[all …]
/openbmc/linux/drivers/soundwire/
H A Dmipi_disco.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 // Copyright(c) 2015-17 Intel Corporation.
27 * sdw_master_read_prop() - Read Master properties
32 struct sdw_master_prop *prop = &bus->prop; in sdw_master_read_prop() local
37 device_property_read_u32(bus->dev, in sdw_master_read_prop()
38 "mipi-sdw-sw-interface-revision", in sdw_master_read_prop()
39 &prop->revision); in sdw_master_read_prop()
43 "mipi-sdw-link-%d-subproperties", bus->link_id); in sdw_master_read_prop()
45 link = device_get_named_child_node(bus->dev, name); in sdw_master_read_prop()
47 dev_err(bus->dev, "Master node %s not found\n", name); in sdw_master_read_prop()
[all …]
/openbmc/linux/scripts/dtc/
H A Dchecks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 fprintf(stderr, "=== %s: ", (c)->name); \
63 struct property *prop, in check_msg() argument
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()
83 } else if (streq(dti->outname, "-")) { in check_msg()
86 xasprintf(&str, "%s", dti->outname); in check_msg()
[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->deleted = 1; in delete_labels()
46 new->name = name; in build_property()
47 new->val = val; in build_property()
48 new->srcpos = srcpos_copy(srcpos); in build_property()
59 new->name = name; in build_property_delete()
[all …]
/openbmc/linux/arch/powerpc/mm/
H A Ddrmem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max()
28 return last_lmb->base_addr + drmem_lmb_size(); in drmem_lmb_memory_max()
37 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags()
40 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument
48 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
49 new_prop->value = kzalloc(prop_sz, GFP_KERNEL); in clone_property()
50 if (!new_prop->name || !new_prop->value) { in clone_property()
51 kfree(new_prop->name); in clone_property()
52 kfree(new_prop->value); in clone_property()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Dpower_supply.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2014-2015 Google Inc.
6 * Copyright 2014-2015 Linaro Ltd.
18 enum power_supply_property prop; member
63 #define POWER_SUPPLY_PROP_VOLTAGE_BOOT -1
66 #define POWER_SUPPLY_PROP_CURRENT_BOOT -1
69 #define POWER_SUPPLY_PROP_CALIBRATE -1
76 * back-off exponential
82 enum power_supply_property prop; member
85 struct gb_power_supply_prop *prop);
[all …]
/openbmc/linux/scripts/kconfig/
H A Dmenu.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
26 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn()
32 static void prop_warn(struct property *prop, const char *fmt, ...) in prop_warn() argument
36 fprintf(stderr, "%s:%d:warning: ", prop->file->name, prop->lineno); in prop_warn()
54 menu->sym = sym; in menu_add_entry()
55 menu->parent = current_menu; in menu_add_entry()
56 menu->file = current_file; in menu_add_entry()
57 menu->lineno = zconf_lineno(); in menu_add_entry()
60 last_entry_ptr = &menu->next; in menu_add_entry()
[all …]
H A Dsymbol.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
47 enum symbol_type type = sym->type; in sym_get_type()
50 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
79 struct property *prop; in sym_get_choice_prop() local
81 for_all_choices(sym, prop) in sym_get_choice_prop()
82 return prop; in sym_get_choice_prop()
88 struct property *prop; in sym_get_default_prop() local
90 for_all_defaults(sym, prop) { in sym_get_default_prop()
91 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
[all …]
/openbmc/u-boot/scripts/kconfig/
H A Dsymbol.c2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() local
42 prop->expr = expr_alloc_symbol(sym_lookup(def, SYMBOL_CONST)); in sym_add_default()
58 sym->type = S_STRING; in sym_init()
59 sym->flags |= SYMBOL_AUTO; in sym_init()
65 enum symbol_type type = sym->type; in sym_get_type()
68 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
99 struct property *prop; in sym_get_choice_prop() local
101 for_all_choices(sym, prop) in sym_get_choice_prop()
102 return prop; in sym_get_choice_prop()
[all …]
H A Dmenu.c2 * 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() argument
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()
67 last_entry_ptr = &current_entry->list; in menu_add_menu()
[all …]
/openbmc/u-boot/tools/binman/
H A Dfdt_test.py1 # SPDX-License-Identifier: GPL-2.0+
46 node = dt.GetNode('/binman/intel-me')
47 self.assertEquals('intel-me', node.name)
52 prop = node.props['intval']
53 self.assertEquals(fdt.TYPE_INT, prop.type)
56 prop = node.props['intarray']
57 self.assertEquals(fdt.TYPE_INT, prop.type)
58 self.assertEquals(list, type(prop.value))
59 self.assertEquals(2, len(prop.value))
61 [fdt_util.fdt32_to_cpu(val) for val in prop.value])
[all …]
/openbmc/qemu/qom/
H A Dobject.c10 * See the COPYING file in the top-level directory.
14 #include "hw/qdev-core.h"
21 #include "qapi/string-input-visitor.h"
22 #include "qapi/string-output-visitor.h"
23 #include "qapi/qobject-input-visitor.h"
24 #include "qapi/forward-visitor.h"
25 #include "qapi/qapi-builtin-visit.h"
31 #include "qom/qom-qobject.h"
36 #include "qemu/error-report.h"
95 g_hash_table_insert(type_table_get(), (void *)ti->name, ti); in type_table_add()
[all …]
H A Dqom-qmp-cmds.c10 * the COPYING file in the top-level directory.
12 * Contributions after 2012-01-13 are licensed under the terms of the
18 #include "hw/qdev-core.h"
20 #include "qapi/qapi-commands-qdev.h"
21 #include "qapi/qapi-commands-qom.h"
22 #include "qapi/qapi-visit-qom.h"
25 #include "qapi/qobject-input-visitor.h"
26 #include "qapi/qobject-output-visitor.h"
29 #include "qom/qom-qobject.h"
36 ObjectProperty *prop; in qmp_qom_list() local
[all …]
/openbmc/linux/drivers/base/test/
H A Dproperty-entry-test.c1 // SPDX-License-Identifier: GPL-2.0
13 PROPERTY_ENTRY_U8("prop-u8", 8), in pe_test_uints()
14 PROPERTY_ENTRY_U16("prop-u16", 16), in pe_test_uints()
15 PROPERTY_ENTRY_U32("prop-u32", 32), in pe_test_uints()
16 PROPERTY_ENTRY_U64("prop-u64", 64), in pe_test_uints()
30 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints()
33 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints()
37 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints()
41 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints()
44 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints()
[all …]
/openbmc/linux/drivers/platform/x86/amd/pmf/
H A Dsps.c1 // SPDX-License-Identifier: GPL-2.0
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
46 pr_debug("Static Slider Data - BEGIN\n"); in amd_pmf_dump_sps_defaults()
50 pr_debug("--- Source:%s Mode:%s ---\n", source_as_str(i), slider_as_str(j)); in amd_pmf_dump_sps_defaults()
51 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults()
52 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults()
53 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults()
54 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults()
55 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults()
57 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); in amd_pmf_dump_sps_defaults()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_mode_config.c32 #include <linux/dma-resv.h>
80 * drm_mode_getresources - get graphics configuration
109 return -EOPNOTSUPP; in drm_mode_getresources()
111 mutex_lock(&file_priv->fbs_lock); in drm_mode_getresources()
113 fb_id = u64_to_user_ptr(card_res->fb_id_ptr); in drm_mode_getresources()
114 list_for_each_entry(fb, &file_priv->fbs, filp_head) { in drm_mode_getresources()
115 if (count < card_res->count_fbs && in drm_mode_getresources()
116 put_user(fb->base.id, fb_id + count)) { in drm_mode_getresources()
117 mutex_unlock(&file_priv->fbs_lock); in drm_mode_getresources()
118 return -EFAULT; in drm_mode_getresources()
[all …]
/openbmc/u-boot/tools/dtoc/
H A Dtest_fdt2 # SPDX-License-Identifier: GPL-2.0+
28 """Low-level function to get the property value based on its offset
40 Prop object found
43 prop = node.props[prop_name]
46 offset = prop.GetOffset() + 12
47 data = dtb.GetContents()[offset:offset + len(prop.value)]
48 return prop, [chr(x) for x in data]
76 node = self.dtb.GetNode('/spl-test')
100 """Tetst that we can access the raw device-tree data"""
105 node = self.dtb.GetNode('/spl-test')
[all …]
H A Dtest_fdt.py2 # SPDX-License-Identifier: GPL-2.0+
28 """Low-level function to get the property value based on its offset
40 Prop object found
43 prop = node.props[prop_name]
46 offset = prop.GetOffset() + 12
47 data = dtb.GetContents()[offset:offset + len(prop.value)]
48 return prop, [chr(x) for x in data]
76 node = self.dtb.GetNode('/spl-test')
100 """Tetst that we can access the raw device-tree data"""
105 node = self.dtb.GetNode('/spl-test')
[all …]
/openbmc/linux/drivers/misc/cxl/
H A Dof.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 const __be32 *prop; in read_prop_string() local
21 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
22 if (cxl_verbose && prop) in read_prop_string()
23 pr_info("%s: %s\n", prop_name, (char *) prop); in read_prop_string()
24 return prop; in read_prop_string()
30 const __be32 *prop; in read_prop_dword() local
32 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
33 if (prop) in read_prop_dword()
34 *val = be32_to_cpu(prop[0]); in read_prop_dword()
[all …]
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Domapdss-boot-init.c1 // 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
32 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() argument
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() local
49 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in omapdss_update_prop()
50 if (!prop) in omapdss_update_prop()
53 prop->name = "compatible"; in omapdss_update_prop()
[all …]
/openbmc/linux/drivers/input/
H A Dtouchscreen.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic helper functions for touchscreens and other two-dimensional
39 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params()
40 dev_warn(&dev->dev, in touchscreen_set_params()
46 absinfo = &dev->absinfo[axis]; in touchscreen_set_params()
47 absinfo->minimum = min; in touchscreen_set_params()
48 absinfo->maximum = max; in touchscreen_set_params()
49 absinfo->fuzz = fuzz; in touchscreen_set_params()
53 * touchscreen_parse_properties - parse common touchscreen properties
56 * single-touch or multi-touch axes
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dprom_64.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 1996-2005 Paul Mackerras.
77 regs = rprop->value; in sun4v_path_component()
78 if (!of_node_is_root(dp->parent)) { in sun4v_path_component()
81 (unsigned int) (regs->phys_addr >> 32UL), in sun4v_path_component()
82 (unsigned int) (regs->phys_addr & 0xffffffffUL)); in sun4v_path_component()
86 type = regs->phys_addr >> 60UL; in sun4v_path_component()
87 high_bits = (regs->phys_addr >> 32UL) & 0x0fffffffUL; in sun4v_path_component()
88 low_bits = (regs->phys_addr & 0xffffffffUL); in sun4v_path_component()
112 struct property *prop; in sun4u_path_component() local
[all …]
/openbmc/linux/drivers/of/
H A Ddynamic.c1 // SPDX-License-Identifier: GPL-2.0
27 * of_node_get() - Increment refcount of a node
36 kobject_get(&node->kobj); in of_node_get()
42 * of_node_put() - Decrement refcount of a node
49 kobject_put(&node->kobj); in of_node_put()
76 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument
77 func("changeset: " prefix "%-15s %pOF%s%s\n", \
79 prop ? ":" : "", prop ? prop->name : ""); \
89 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
96 * of_reconfig_get_state_change() - Returns new state of device
[all …]

12345678910>>...38