/linux/scripts/dtc/ |
H A D | checks.c | 63 struct property *prop, in check_msg() argument 74 if (prop && prop->srcpos) in check_msg() 75 pos = prop->srcpos; in check_msg() 93 if (prop) in check_msg() 94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 105 if (!prop && pos) { in check_msg() 127 #define FAIL_PROP(c, dti, node, prop, ...) \ argument 131 check_msg((c), dti, node, prop, __VA_ARGS__); \ 210 struct property *prop; in check_is_string() local 213 prop = get_property(node, propname); in check_is_string() [all …]
|
H A D | livetree.c | 267 void add_property(struct node *node, struct property *prop) in add_property() argument 271 prop->next = NULL; in add_property() 277 *p = prop; in add_property() 282 struct property *prop = node->proplist; in delete_property_by_name() local 284 while (prop) { in delete_property_by_name() 285 if (streq(prop->name, name)) { in delete_property_by_name() 286 delete_property(prop); in delete_property_by_name() 289 prop = prop->next; in delete_property_by_name() 293 void delete_property(struct property *prop) in delete_property() argument 295 prop->deleted = 1; in delete_property() [all …]
|
H A D | treesource.c | 142 static void add_string_markers(struct property *prop) in add_string_markers() argument 144 int l, len = prop->val.len; in add_string_markers() 145 const char *p = prop->val.val; in add_string_markers() 157 nextp = &prop->val.markers; in add_string_markers() 164 static enum markertype guess_value_type(struct property *prop) in guess_value_type() argument 166 int len = prop->val.len; in guess_value_type() 167 const char *p = prop->val.val; in guess_value_type() 168 struct marker *m = prop->val.markers; in guess_value_type() 181 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type() 190 add_string_markers(prop); in guess_value_type() [all …]
|
/linux/arch/powerpc/mm/ |
H A D | drmem.c | 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() 65 struct property *prop) in drmem_update_dt_v1() argument 72 new_prop = clone_property(prop, prop->length); in drmem_update_dt_v1() 104 struct property *prop) in drmem_update_dt_v2() argument 130 new_prop = clone_property(prop, prop_sz); in drmem_update_dt_v2() 175 struct property *prop; in drmem_update_dt() local 187 prop = of_find_property(memory, "ibm,dynamic-memory", NULL); in drmem_update_dt() 188 if (prop) { in drmem_update_dt() 189 rc = drmem_update_dt_v1(memory, prop); in drmem_update_dt() [all …]
|
/linux/drivers/staging/greybus/ |
H A D | power_supply.c | 18 enum power_supply_property prop; member 82 enum power_supply_property prop; member 85 struct gb_power_supply_prop *prop); 89 struct gb_power_supply_prop *prop); 92 { .prop = GB_POWER_SUPPLY_PROP_STATUS, 96 { .prop = GB_POWER_SUPPLY_PROP_TEMP, 100 { .prop = GB_POWER_SUPPLY_PROP_ONLINE, 108 int prop; in get_psp_from_gb_prop() local 112 prop = POWER_SUPPLY_PROP_STATUS; in get_psp_from_gb_prop() 115 prop = POWER_SUPPLY_PROP_CHARGE_TYPE; in get_psp_from_gb_prop() [all …]
|
/linux/drivers/base/test/ |
H A D | property-entry-test.c | 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() 47 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uints() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_mode_config.c | 221 struct drm_property *prop; in drm_mode_create_standard_properties() local 228 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties() 231 if (!prop) in drm_mode_create_standard_properties() 233 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 235 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 237 if (!prop) in drm_mode_create_standard_properties() 239 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 241 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 243 if (!prop) in drm_mode_create_standard_properties() 245 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() [all …]
|
/linux/scripts/kconfig/ |
H A D | menu.c | 52 static void prop_warn(const struct property *prop, const char *fmt, ...) in prop_warn() argument 56 fprintf(stderr, "%s:%d:warning: ", prop->filename, prop->lineno); in prop_warn() 153 struct property *prop; in menu_add_prop() local 155 prop = xmalloc(sizeof(*prop)); in menu_add_prop() 156 memset(prop, 0, sizeof(*prop)); in menu_add_prop() 157 prop->type = type; in menu_add_prop() 158 prop->filename = cur_filename; in menu_add_prop() 159 prop->lineno = cur_lineno; in menu_add_prop() 160 prop->menu = current_entry; in menu_add_prop() 161 prop->expr = expr; in menu_add_prop() [all …]
|
H A D | symbol.c | 122 struct property *prop; in sym_get_default_prop() local 124 for_all_defaults(sym, prop) { in sym_get_default_prop() 125 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop() 126 if (prop->visible.tri != no) in sym_get_default_prop() 127 return prop; in sym_get_default_prop() 134 struct property *prop; in sym_get_range_prop() local 136 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop() 137 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop() 138 if (prop->visible.tri != no) in sym_get_range_prop() 139 return prop; in sym_get_range_prop() [all …]
|
H A D | parser.y | 494 struct property *prop; variable 497 for (prop = menu->sym->prop; prop; prop = prop->next) { 498 if (prop->type == P_DEFAULT) { 500 prop->filename, prop->lineno, 505 if (prop->menu != menu && prop->type == P_PROMPT && 506 prop->menu->parent != menu->parent) { 508 prop->filename, prop->lineno, 631 struct property *prop; in print_symbol() local 657 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol() 658 if (prop->menu != menu) in print_symbol() [all …]
|
/linux/tools/testing/selftests/power_supply/ |
H A D | helpers.sh | 12 PROP="$1" 15 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP" 16 TEST_NAME="$DEVNAME".sysfs."$PROP" 57 PROP=$1 59 PROP_PATH="$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP" 60 TEST_NAME="$DEVNAME".sysfs."$PROP" 77 PROP=$1 80 TEST_NAME="$DEVNAME".sysfs."$PROP" 82 _check_sysfs_prop_available "$PROP" || return 83 DATA=$(cat "$SYSFS_SUPPLIES"/"$DEVNAME"/"$PROP") [all …]
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | omapdss-boot-init.c | 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() 54 prop->value = compat; in omapdss_update_prop() 55 prop->length = len; in omapdss_update_prop() 57 of_update_property(node, prop); in omapdss_update_prop() [all …]
|
/linux/drivers/of/ |
H A D | dynamic.c | 77 #define _do_print(func, prefix, action, node, prop, ...) ({ \ argument 80 prop ? ":" : "", prop ? prop->name : ""); \ 90 of_changeset_action_debug("notify: ", action, pr->dn, pr->prop); in of_reconfig_notify() 109 struct property *prop, *old_prop = NULL; in of_reconfig_get_state_change() local 116 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change() 120 prop = pr->prop; in of_reconfig_get_state_change() 123 prop = pr->prop; in of_reconfig_get_state_change() 136 if (prop && !strcmp(prop->name, "status")) { in of_reconfig_get_state_change() 138 status_state = !strcmp(prop->value, "okay") || in of_reconfig_get_state_change() 139 !strcmp(prop->value, "ok"); in of_reconfig_get_state_change() [all …]
|
H A D | resolver.c | 45 const struct property *prop; in adjust_overlay_phandles() local 53 for_each_property_of_node(overlay, prop) { in adjust_overlay_phandles() 55 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles() 56 of_prop_cmp(prop->name, "linux,phandle")) in adjust_overlay_phandles() 59 if (prop->length < 4) in adjust_overlay_phandles() 62 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles() 66 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles() 77 const struct property *prop; in update_usages_of_a_phandle_reference() local 111 for_each_property_of_node(refnode, prop) { in update_usages_of_a_phandle_reference() 112 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference() [all …]
|
/linux/drivers/input/ |
H A D | touchscreen.c | 57 * @prop: pointer to a struct touchscreen_properties into which to store 66 struct touchscreen_properties *prop) in touchscreen_parse_properties() argument 119 if (!prop) in touchscreen_parse_properties() 122 prop->max_x = input_abs_get_max(input, axis_x); in touchscreen_parse_properties() 123 prop->max_y = input_abs_get_max(input, axis_y); in touchscreen_parse_properties() 125 prop->invert_x = in touchscreen_parse_properties() 127 if (prop->invert_x) { in touchscreen_parse_properties() 133 prop->invert_y = in touchscreen_parse_properties() 135 if (prop->invert_y) { in touchscreen_parse_properties() 141 prop->swap_x_y = in touchscreen_parse_properties() [all …]
|
/linux/drivers/platform/x86/amd/pmf/ |
H A D | sps.c | 70 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults() 71 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults() 72 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults() 73 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults() 74 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults() 76 data->prop[i][j].stt_skin_temp[STT_TEMP_APU]); in amd_pmf_dump_sps_defaults() 78 data->prop[i][j].stt_skin_temp[STT_TEMP_HS2]); in amd_pmf_dump_sps_defaults() 176 config_store.prop[i][j].spl = output.prop[idx].spl; in amd_pmf_load_defaults_sps() 177 config_store.prop[i][j].sppt = output.prop[idx].sppt; in amd_pmf_load_defaults_sps() 178 config_store.prop[i][j].sppt_apu_only = in amd_pmf_load_defaults_sps() [all …]
|
/linux/fs/openpromfs/ |
H A D | inode.c | 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() 155 m->private = oi->u.prop; in property_open() 185 struct property *prop; in openpromfs_lookup() local 217 prop = dp->properties; in openpromfs_lookup() 218 while (prop) { in openpromfs_lookup() 219 int n = strlen(prop->name); in openpromfs_lookup() 221 if (len == n && !strncmp(prop->name, name, len)) { in openpromfs_lookup() [all …]
|
/linux/arch/powerpc/platforms/83xx/ |
H A D | usb_834x.c | 26 const void *prop, *dr_mode; in mpc834x_usb_cfg() local 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() 68 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 69 if (prop) { in mpc834x_usb_cfg() 74 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() 75 if (prop) { in mpc834x_usb_cfg()
|
/linux/drivers/power/supply/ |
H A D | power_supply_hwmon.c | 144 int prop = power_supply_hwmon_to_property(type, in power_supply_hwmon_has_input() local 147 if (prop >= 0 && test_bit(prop, psyhw->props)) in power_supply_hwmon_has_input() 178 int prop; in power_supply_hwmon_is_visible() local 187 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_is_visible() 188 if (prop < 0 || !test_bit(prop, psyhw->props)) in power_supply_hwmon_is_visible() 191 if (power_supply_property_is_writeable(psyhw->psy, prop) > 0 && in power_supply_hwmon_is_visible() 227 int ret, prop; in power_supply_hwmon_read() local 229 prop = power_supply_hwmon_to_property(type, attr, channel); in power_supply_hwmon_read() 230 if (prop < 0) in power_supply_hwmon_read() 231 return prop; in power_supply_hwmon_read() [all …]
|
/linux/sound/soc/codecs/ |
H A D | sdw-mockup.c | 135 struct sdw_slave_prop *prop = &slave->prop; in sdw_mockup_read_prop() local 142 prop->paging_support = false; in sdw_mockup_read_prop() 151 prop->source_ports = BIT(8); in sdw_mockup_read_prop() 152 prop->sink_ports = BIT(1); in sdw_mockup_read_prop() 154 nval = hweight32(prop->source_ports); in sdw_mockup_read_prop() 155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() 156 sizeof(*prop->src_dpn_prop), in sdw_mockup_read_prop() 158 if (!prop->src_dpn_prop) in sdw_mockup_read_prop() 162 dpn = prop->src_dpn_prop; in sdw_mockup_read_prop() 163 addr = prop->source_ports; in sdw_mockup_read_prop() [all …]
|
/linux/scripts/dtc/libfdt/ |
H A D | fdt_rw.c | 185 int len, struct fdt_property **prop) in fdt_resize_property_() argument 190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 191 if (!*prop) in fdt_resize_property_() 194 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_() 198 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_() 203 int len, struct fdt_property **prop) in fdt_add_property_() argument 218 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_() 219 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_() 221 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_() 229 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in fdt_add_property_() [all …]
|
/linux/drivers/accel/habanalabs/common/mmu/ |
H A D | mmu_v2_hr.c | 48 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v2_hr_init() local 50 return hl_mmu_hr_init(hdev, &hdev->mmu_priv.hr, prop->pmmu.hop_table_size, in hl_mmu_v2_hr_init() 51 prop->mmu_pgt_size); in hl_mmu_v2_hr_init() 66 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v2_hr_fini() local 68 hl_mmu_hr_fini(hdev, &hdev->mmu_priv.hr, prop->pmmu.hop_table_size); in hl_mmu_v2_hr_fini() 121 struct asic_fixed_properties *prop; in _hl_mmu_v2_hr_unmap() local 126 prop = &hdev->asic_prop; in _hl_mmu_v2_hr_unmap() 129 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in _hl_mmu_v2_hr_unmap() 214 struct asic_fixed_properties *prop = &hdev->asic_prop; in _hl_mmu_v2_hr_map() local 226 mmu_prop = &prop->dmmu; in _hl_mmu_v2_hr_map() [all …]
|
H A D | mmu_v1.c | 29 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_init() local 34 if ((!prop->dram_supports_virtual_memory) || in dram_default_mapping_init() 39 num_of_hop3 = prop->dram_size_for_default_page_mapping; in dram_default_mapping_init() 40 do_div(num_of_hop3, prop->dram_page_size); in dram_default_mapping_init() 97 pte_val = (prop->mmu_dram_default_page_addr & HOP_PHYS_ADDR_MASK) | in dram_default_mapping_init() 129 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_fini() local 134 if ((!prop->dram_supports_virtual_memory) || in dram_default_mapping_fini() 139 num_of_hop3 = prop->dram_size_for_default_page_mapping; in dram_default_mapping_fini() 140 do_div(num_of_hop3, prop->dram_page_size); in dram_default_mapping_fini() 224 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v1_unmap() local [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | prom_parse.c | 16 const __be32 *prop; in of_parse_dma_window() local 22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window() 23 if (!prop) in of_parse_dma_window() 24 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window() 26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window() 31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window() 32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
|
/linux/arch/sparc/kernel/ |
H A D | prom_32.c | 78 struct property *prop; in sbus_path_component() local 80 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 81 if (!prop) in sbus_path_component() 84 regs = prop->value; in sbus_path_component() 96 struct property *prop; in pci_path_component() local 99 prop = of_find_property(dp, "reg", NULL); in pci_path_component() 100 if (!prop) in pci_path_component() 103 regs = prop->value; in pci_path_component() 122 struct property *prop; in ebus_path_component() local 124 prop = of_find_property(dp, "reg", NULL); in ebus_path_component() [all …]
|