| /kernel/linux/linux-5.10/scripts/dtc/ |
| D | checks.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/soundwire/ |
| D | mipi_disco.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/soundwire/ |
| D | mipi_disco.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/scripts/dtc/ |
| D | checks.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/arch/powerpc/mm/ |
| D | drmem.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/arch/powerpc/mm/ |
| D | drmem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1]; in drmem_lmb_memory_max() 27 return last_lmb->base_addr + drmem_lmb_size(); in drmem_lmb_memory_max() 36 return lmb->flags & ~DRMEM_LMB_RESERVED; in drmem_lmb_flags() 39 static struct property *clone_property(struct property *prop, u32 prop_sz) in clone_property() argument 47 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property() 48 new_prop->value = kzalloc(prop_sz, GFP_KERNEL); in clone_property() 49 if (!new_prop->name || !new_prop->value) { in clone_property() 50 kfree(new_prop->name); in clone_property() 51 kfree(new_prop->value); in clone_property() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/greybus/ |
| D | power_supply.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/staging/greybus/ |
| D | power_supply.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/scripts/kconfig/ |
| D | menu.c | 1 // 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 …]
|
| D | symbol.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/scripts/kconfig/ |
| 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() 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() [all …]
|
| D | symbol.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org> 44 enum symbol_type type = sym->type; in sym_get_type() 47 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() 76 struct property *prop; in sym_get_choice_prop() local 78 for_all_choices(sym, prop) in sym_get_choice_prop() 79 return prop; in sym_get_choice_prop() 85 struct property *prop; in sym_get_default_prop() local 87 for_all_defaults(sym, prop) { in sym_get_default_prop() 88 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_mode_config.c | 31 #include <linux/dma-resv.h> 77 * drm_mode_getresources - get graphics configuration 106 return -EOPNOTSUPP; in drm_mode_getresources() 108 mutex_lock(&file_priv->fbs_lock); in drm_mode_getresources() 110 fb_id = u64_to_user_ptr(card_res->fb_id_ptr); in drm_mode_getresources() 111 list_for_each_entry(fb, &file_priv->fbs, filp_head) { in drm_mode_getresources() 112 if (count < card_res->count_fbs && in drm_mode_getresources() 113 put_user(fb->base.id, fb_id + count)) { in drm_mode_getresources() 114 mutex_unlock(&file_priv->fbs_lock); in drm_mode_getresources() 115 return -EFAULT; in drm_mode_getresources() [all …]
|
| /kernel/linux/linux-6.6/drivers/base/test/ |
| D | property-entry-test.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/platform/x86/amd/pmf/ |
| D | sps.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| D | drm_mode_config.c | 32 #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 …]
|
| /kernel/linux/linux-5.10/drivers/misc/cxl/ |
| D | of.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/misc/cxl/ |
| D | of.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/base/test/ |
| D | property-entry-test.c | 1 // 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_read_u8(node, "prop-u8", &val_u8); in pe_test_uints() 34 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints() 38 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints() 41 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints() 44 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uints() [all …]
|
| /kernel/linux/linux-6.6/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 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 …]
|
| /kernel/linux/linux-5.10/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 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 …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/ |
| D | usb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 33 return -ENOMEM; in mpc834x_usb_cfg() 41 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg() 45 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 47 if (prop && (!strcmp(prop, "utmi") || in mpc834x_usb_cfg() 48 !strcmp(prop, "utmi_wide"))) { in mpc834x_usb_cfg() 52 } else if (prop && !strcmp(prop, "serial")) { in mpc834x_usb_cfg() 60 } else if (prop && !strcmp(prop, "ulpi")) { in mpc834x_usb_cfg() 67 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg() [all …]
|
| /kernel/linux/linux-5.10/drivers/input/touchscreen/ |
| D | of_touchscreen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 38 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params() 39 dev_warn(&dev->dev, in touchscreen_set_params() 45 absinfo = &dev->absinfo[axis]; in touchscreen_set_params() 46 absinfo->minimum = min; in touchscreen_set_params() 47 absinfo->maximum = max; in touchscreen_set_params() 48 absinfo->fuzz = fuzz; in touchscreen_set_params() 52 * touchscreen_parse_properties - parse common touchscreen DT properties 55 * single-touch or multi-touch axes 56 * @prop: pointer to a struct touchscreen_properties into which to store [all …]
|
| /kernel/linux/linux-6.6/drivers/input/ |
| D | touchscreen.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/ |
| D | omapdss-boot-init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ 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() [all …]
|