Home
last modified time | relevance | path

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

12345678910>>...26

/Linux-v6.6/scripts/dtc/
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 …]
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 …]
/Linux-v6.6/drivers/soundwire/
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 …]
/Linux-v6.6/arch/powerpc/mm/
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 …]
/Linux-v6.6/drivers/staging/greybus/
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 …]
/Linux-v6.6/scripts/kconfig/
Dsymbol.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
43 enum symbol_type type = sym->type; in sym_get_type()
46 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type()
75 struct property *prop; in sym_get_choice_prop() local
77 for_all_choices(sym, prop) in sym_get_choice_prop()
78 return prop; in sym_get_choice_prop()
84 struct property *prop; in sym_get_default_prop() local
86 for_all_defaults(sym, prop) { in sym_get_default_prop()
87 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
[all …]
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 …]
/Linux-v6.6/drivers/base/test/
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 …]
/Linux-v6.6/drivers/platform/x86/amd/pmf/
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 …]
/Linux-v6.6/drivers/gpu/drm/
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 …]
/Linux-v6.6/drivers/misc/cxl/
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 …]
/Linux-v6.6/drivers/video/fbdev/omap2/omapfb/dss/
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 …]
/Linux-v6.6/drivers/input/
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 …]
/Linux-v6.6/arch/sparc/kernel/
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 …]
/Linux-v6.6/drivers/of/
Ddynamic.c1 // SPDX-License-Identifier: GPL-2.0
26 * of_node_get() - Increment refcount of a node
35 kobject_get(&node->kobj); in of_node_get()
41 * of_node_put() - Decrement refcount of a node
48 kobject_put(&node->kobj); in of_node_put()
75 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument
76 func("changeset: " prefix "%-15s %pOF%s%s\n", \
78 prop ? ":" : "", prop ? prop->name : ""); \
88 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify()
95 * of_reconfig_get_state_change() - Returns new state of device
[all …]
Dresolver.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle()
32 node->phandle > phandle) in live_tree_max_phandle()
33 phandle = node->phandle; in live_tree_max_phandle()
44 struct property *prop; in adjust_overlay_phandles() local
48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
49 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
52 for_each_property_of_node(overlay, prop) { in adjust_overlay_phandles()
54 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles()
[all …]
/Linux-v6.6/drivers/mfd/
Dcs42l43-sdw.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2022-2023 Cirrus Logic, Inc. and
11 #include <linux/mfd/cs42l43-regs.h>
47 struct sdw_slave_prop *prop = &sdw->prop; in cs42l43_read_prop() local
48 struct device *dev = &sdw->dev; in cs42l43_read_prop()
55 prop->use_domain_irq = true; in cs42l43_read_prop()
56 prop->paging_support = true; in cs42l43_read_prop()
57 prop->wake_capable = true; in cs42l43_read_prop()
58 prop->source_ports = BIT(CS42L43_DMIC_DEC_ASP_PORT) | BIT(CS42L43_SPK_TX_PORT); in cs42l43_read_prop()
59 prop->sink_ports = BIT(CS42L43_SPDIF_HP_PORT) | in cs42l43_read_prop()
[all …]
/Linux-v6.6/arch/powerpc/platforms/83xx/
Dusb_834x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local
30 return -ENOMEM; in mpc834x_usb_cfg()
38 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg()
42 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
44 if (prop && in mpc834x_usb_cfg()
45 (!strcmp(prop, "utmi") || !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg()
49 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg()
57 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg()
64 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg()
[all …]
/Linux-v6.6/fs/openpromfs/
Dinode.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 1996-1999 Jakub Jelinek (jakub@redhat.com)
34 struct property *prop; member
69 struct property *prop = f->private; in property_show() local
73 len = prop->length; in property_show()
74 pval = prop->value; in property_show()
84 len -= n + 1; in property_show()
92 len--; in property_show()
103 len -= 4; in property_show()
150 BUG_ON(oi->type != op_inode_prop); in property_open()
[all …]
/Linux-v6.6/drivers/iio/adc/
Dqcom-spmi-vadc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
10 #include <linux/iio/adc/qcom-vadc-common.h>
23 #include <dt-bindings/iio/qcom,spmi-vadc.h>
76 * struct vadc_channel_prop - VADC channel property.
101 * struct vadc_priv - VADC private structure.
141 return regmap_bulk_read(vadc->regmap, vadc->base + offset, data, 1); in vadc_read()
146 return regmap_write(vadc->regmap, vadc->base + offset, data); in vadc_write()
205 dev_err(vadc->dev, in vadc_show_status()
211 struct vadc_channel_prop *prop) in vadc_configure() argument
[all …]
Dqcom-spmi-adc5.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/iio/adc/qcom-vadc-common.h>
23 #include <dt-bindings/iio/qcom,spmi-vadc.h>
104 * struct adc5_channel_prop - ADC channel property.
133 * struct adc5_chip - ADC private structure.
160 return regmap_bulk_read(adc->regmap, adc->base + offset, data, len); in adc5_read()
165 return regmap_bulk_write(adc->regmap, adc->base + offset, data, len); in adc5_write()
170 return regmap_update_bits(adc->regmap, adc->base + offset, mask, val); in adc5_masked_write()
189 dev_err(adc->dev, "Invalid data:0x%x\n", *data); in adc5_read_voltage_data()
190 return -EINVAL; in adc5_read_voltage_data()
[all …]
/Linux-v6.6/sound/soc/codecs/
Dsdw-mockup.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // sdw-mockup.c -- a mockup SoundWire codec for tests where only the host
59 struct snd_soc_component *component = dai->component; in sdw_mockup_pcm_hw_params()
67 return -EINVAL; in sdw_mockup_pcm_hw_params()
69 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_params()
70 return -EINVAL; in sdw_mockup_pcm_hw_params()
75 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdw_mockup_pcm_hw_params()
80 ret = sdw_stream_add_slave(sdw_mockup->slave, &stream_config, in sdw_mockup_pcm_hw_params()
83 dev_err(dai->dev, "Unable to configure port\n"); in sdw_mockup_pcm_hw_params()
91 struct snd_soc_component *component = dai->component; in sdw_mockup_pcm_hw_free()
[all …]
/Linux-v6.6/drivers/power/supply/
Dpower_supply_hwmon.c1 // SPDX-License-Identifier: GPL-2.0
3 * power_supply_hwmon.c - power supply hwmon support.
33 return -EINVAL; in power_supply_hwmon_in_to_property()
47 return -EINVAL; in power_supply_hwmon_curr_to_property()
81 return -EINVAL; in power_supply_hwmon_temp_to_property()
96 return -EINVAL; in power_supply_hwmon_to_property()
128 for (i = 0; i < attr_list->n_attrs; ++i) { in power_supply_hwmon_has_input()
129 int prop = power_supply_hwmon_to_property(type, in power_supply_hwmon_has_input() local
130 attr_list->attrs[i], channel); in power_supply_hwmon_has_input()
132 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input()
[all …]
/Linux-v6.6/drivers/accel/habanalabs/common/mmu/
Dmmu_v1.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
21 hash_for_each_possible(ctx->mmu_shadow_hash, pgt_info, node, in get_pgt_info()
23 if (hop_addr == pgt_info->shadow_addr) in get_pgt_info()
31 struct hl_device *hdev = ctx->hdev; in _free_hop()
33 gen_pool_free(hdev->mmu_priv.dr.mmu_pgt_pool, pgt_info->phys_addr, in _free_hop()
34 hdev->asic_prop.mmu_hop_table_size); in _free_hop()
35 hash_del(&pgt_info->node); in _free_hop()
36 kfree((u64 *) (uintptr_t) pgt_info->shadow_addr); in _free_hop()
49 struct hl_device *hdev = ctx->hdev; in alloc_hop()
[all …]
Dmmu_v2_hr.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2020-2022 HabanaLabs, Ltd.
17 hash_for_each_possible(ctx->hr_mmu_phys_hash, pgt_info, node, in hl_mmu_v2_hr_get_pgt_info()
19 if (phys_hop_addr == pgt_info->phys_addr) in hl_mmu_v2_hr_get_pgt_info()
28 hash_add(ctx->hr_mmu_phys_hash, &pgt_info->node, phys_addr); in hl_mmu_v2_hr_add_pgt_info()
33 return &ctx->hdev->mmu_priv.hr.mmu_asid_hop0[ctx->asid]; in hl_mmu_v2_hr_get_hop0_pgt_info()
37 * hl_mmu_v2_hr_init() - initialize the MMU module.
41 * - Create a pool of pages for pgt_infos.
42 * - Create a shadow table for pgt
44 * Return: 0 for success, non-zero for failure.
[all …]

12345678910>>...26