Home
last modified time | relevance | path

Searched refs:prop_name (Results 1 – 25 of 75) sorted by relevance

123

/openbmc/u-boot/include/
H A Dfdtdec.h309 const char *prop_name, int index, int na, int ns,
331 int node, const char *prop_name, int index, fdt_size_t *sizep,
357 const char *prop_name, int index, fdt_size_t *sizep,
384 const char *prop_name);
412 const char *prop_name, fdt_size_t *sizep);
429 const char *prop_name, struct fdt_pci_addr *addr);
467 s32 fdtdec_get_int(const void *blob, int node, const char *prop_name,
480 unsigned int fdtdec_get_uint(const void *blob, int node, const char *prop_name,
506 uint64_t fdtdec_get_uint64(const void *blob, int node, const char *prop_name,
671 int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name);
[all …]
/openbmc/u-boot/drivers/core/
H A Dof_extra.c49 int ofnode_decode_region(ofnode node, const char *prop_name, fdt_addr_t *basep, in ofnode_decode_region() argument
55 debug("%s: %s: %s\n", __func__, ofnode_get_name(node), prop_name); in ofnode_decode_region()
56 cell = ofnode_get_property(node, prop_name, &len); in ofnode_decode_region()
74 char prop_name[50]; in ofnode_decode_memory_region() local
90 snprintf(prop_name, sizeof(prop_name), "%s-memory%s", mem_type, in ofnode_decode_memory_region()
92 mem = ofnode_read_string(config_node, prop_name); in ofnode_decode_memory_region()
95 prop_name); in ofnode_decode_memory_region()
115 snprintf(prop_name, sizeof(prop_name), "%s-offset%s", mem_type, in ofnode_decode_memory_region()
117 if (ofnode_decode_region(config_node, prop_name, &offset, in ofnode_decode_memory_region()
120 prop_name); in ofnode_decode_memory_region()
/openbmc/u-boot/lib/
H A Dfdtdec_common.c21 int fdtdec_get_int(const void *blob, int node, const char *prop_name, in fdtdec_get_int() argument
27 debug("%s: %s: ", __func__, prop_name); in fdtdec_get_int()
28 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_int()
39 unsigned int fdtdec_get_uint(const void *blob, int node, const char *prop_name, in fdtdec_get_uint() argument
45 debug("%s: %s: ", __func__, prop_name); in fdtdec_get_uint()
46 cell = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_uint()
H A Dfdtdec.c80 const char *prop_name, int index, int na, in fdtdec_get_addr_size_fixed() argument
89 debug("%s: %s: ", __func__, prop_name); in fdtdec_get_addr_size_fixed()
91 prop = fdt_getprop(blob, node, prop_name, &len); in fdtdec_get_addr_size_fixed()
126 int node, const char *prop_name, in fdtdec_get_addr_size_auto_parent() argument
148 return fdtdec_get_addr_size_fixed(blob, node, prop_name, index, na, in fdtdec_get_addr_size_auto_parent()
153 const char *prop_name, int index, in fdtdec_get_addr_size_auto_noparent() argument
167 return fdtdec_get_addr_size_auto_parent(blob, parent, node, prop_name, in fdtdec_get_addr_size_auto_noparent()
172 const char *prop_name, fdt_size_t *sizep) in fdtdec_get_addr_size() argument
176 return fdtdec_get_addr_size_fixed(blob, node, prop_name, 0, in fdtdec_get_addr_size()
181 fdt_addr_t fdtdec_get_addr(const void *blob, int node, const char *prop_name) in fdtdec_get_addr() argument
[all …]
/openbmc/u-boot/tools/dtoc/
H A Dfdt.py316 def DeleteProp(self, prop_name): argument
326 CheckErr(self._fdt._fdt_obj.delprop(self.Offset(), prop_name),
327 "Node '%s': delete property: '%s'" % (self.path, prop_name))
328 del self.props[prop_name]
331 def AddZeroProp(self, prop_name): argument
337 self.props[prop_name] = Prop(self, None, prop_name, '\0' * 4)
339 def AddEmptyProp(self, prop_name, len): argument
350 self.props[prop_name] = Prop(self, None, prop_name, value)
352 def SetInt(self, prop_name, val): argument
364 self.props[prop_name].SetInt(val)
[all …]
/openbmc/linux/drivers/of/
H A Dproperty.c1110 const char *prop_name, int index, in parse_prop_cells() argument
1116 if (strcmp(prop_name, list_name)) in parse_prop_cells()
1128 const char *prop_name, int index) \
1130 return parse_prop_cells(np, prop_name, index, name, cells); \
1164 const char *prop_name, int index, in parse_suffix_prop_cells() argument
1170 if (strcmp_suffix(prop_name, suffix)) in parse_suffix_prop_cells()
1173 if (of_parse_phandle_with_args(np, prop_name, cells_name, index, in parse_suffix_prop_cells()
1182 const char *prop_name, int index) \
1184 return parse_suffix_prop_cells(np, prop_name, index, suffix, cells); \
1209 const char *prop_name, int index);
[all …]
H A Dcpu.c53 const char *prop_name, int cpu, unsigned int *thread) in __of_find_n_match_cpu_property() argument
60 cell = of_get_property(cpun, prop_name, &prop_len); in __of_find_n_match_cpu_property()
H A Dresolver.c77 char *value, *cur, *end, *node_path, *prop_name, *s; in update_usages_of_a_phandle_reference() local
98 prop_name = s; in update_usages_of_a_phandle_reference()
115 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference()
/openbmc/linux/drivers/misc/cxl/
H A Dof.c17 const char *prop_name) in read_prop_string() argument
21 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
23 pr_info("%s: %s\n", prop_name, (char *) prop); in read_prop_string()
28 const char *prop_name, u32 *val) in read_prop_dword() argument
32 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
36 pr_info("%s: %#x (%u)\n", prop_name, *val, *val); in read_prop_dword()
41 const char *prop_name, u64 *val) in read_prop64_dword() argument
45 prop = of_get_property(np, prop_name, NULL); in read_prop64_dword()
49 pr_info("%s: %#llx (%llu)\n", prop_name, *val, *val); in read_prop64_dword()
69 static int read_phys_addr(struct device_node *np, char *prop_name, in read_phys_addr() argument
[all …]
H A Dflash.c150 char *prop_name; in update_node() local
152 prop_name = prop_data; in update_node()
153 prop_data += strlen(prop_name) + 1; in update_node()
158 ret = update_property(dn, prop_name, vd, in update_node()
162 prop_name, ret); in update_node()
/openbmc/qemu/hw/xen/
H A Dxen-pvh-common.c310 #define OC_MEMMAP_PROP_BASE(c, prop_name, name) \ in xen_pvh_class_setup_common_props() argument
312 object_class_property_add(c, prop_name "-base", "uint64_t", \ in xen_pvh_class_setup_common_props()
315 object_class_property_set_description(oc, prop_name "-base", \ in xen_pvh_class_setup_common_props()
316 "Set base address for " prop_name); \ in xen_pvh_class_setup_common_props()
319 #define OC_MEMMAP_PROP_SIZE(c, prop_name, name) \ in xen_pvh_class_setup_common_props() argument
321 object_class_property_add(c, prop_name "-size", "uint64_t", \ in xen_pvh_class_setup_common_props()
324 object_class_property_set_description(oc, prop_name "-size", \ in xen_pvh_class_setup_common_props()
325 "Set memory range size for " prop_name); \ in xen_pvh_class_setup_common_props()
328 #define OC_MEMMAP_PROP(c, prop_name, name) \ in xen_pvh_class_setup_common_props() argument
330 OC_MEMMAP_PROP_BASE(c, prop_name, name); \ in xen_pvh_class_setup_common_props()
[all …]
/openbmc/u-boot/common/
H A Dimage-fit.c112 char *prop_name, int err) in fit_get_debug() argument
115 prop_name, (ulong)fit, noffset, fit_get_name(fit, noffset, NULL), in fit_get_debug()
1686 const char *prop_name) in fit_conf_get_prop_node_count() argument
1688 return fdt_stringlist_count(fit, noffset, prop_name); in fit_conf_get_prop_node_count()
1692 const char *prop_name, int index) in fit_conf_get_prop_node_index() argument
1698 uname = fdt_stringlist_get(fit, noffset, prop_name, index, &len); in fit_conf_get_prop_node_index()
1706 const char *prop_name) in fit_conf_get_prop_node() argument
1708 return fit_conf_get_prop_node_index(fit, noffset, prop_name, 0); in fit_conf_get_prop_node()
1727 int fit_get_node_from_config(bootm_headers_t *images, const char *prop_name, in fit_get_node_from_config() argument
1735 prop_name, images->fit_uname_cfg, addr); in fit_get_node_from_config()
[all …]
/openbmc/linux/drivers/ufs/host/
H A Dufshcd-pltfrm.c126 char prop_name[MAX_PROP_SIZE]; in ufshcd_populate_vreg() local
135 snprintf(prop_name, MAX_PROP_SIZE, "%s-supply", name); in ufshcd_populate_vreg()
136 if (!phandle_exists(np, prop_name, 0)) { in ufshcd_populate_vreg()
138 __func__, prop_name); in ufshcd_populate_vreg()
150 snprintf(prop_name, MAX_PROP_SIZE, "%s-max-microamp", name); in ufshcd_populate_vreg()
151 if (of_property_read_u32(np, prop_name, &vreg->max_uA)) { in ufshcd_populate_vreg()
152 dev_info(dev, "%s: unable to find %s\n", __func__, prop_name); in ufshcd_populate_vreg()
/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_sandbox.c95 char prop_name[20]; in sandbox_tpm_read_state() local
97 sprintf(prop_name, "nvdata%d", i); in sandbox_tpm_read_state()
98 prop = fdt_getprop(blob, node, prop_name, &len); in sandbox_tpm_read_state()
128 char prop_name[20]; in sandbox_tpm_write_state() local
131 sprintf(prop_name, "nvdata%d", i); in sandbox_tpm_write_state()
132 fdt_setprop(blob, node, prop_name, in sandbox_tpm_write_state()
/openbmc/u-boot/drivers/pinctrl/
H A Dpinctrl-sti.c213 const char *prop_name; in sti_pinctrl_set_state() local
231 fdt_getprop_by_offset(blob, property_offset, &prop_name, in sti_pinctrl_set_state()
236 prop_name, "#gpio-cells", in sti_pinctrl_set_state()
253 prop_name, cells, in sti_pinctrl_set_state()
/openbmc/qemu/hw/i386/
H A Dpc_sysfw.c112 char *prop_name; in pc_system_flash_cleanup_unused() local
119 prop_name = g_strdup_printf("pflash%d", i); in pc_system_flash_cleanup_unused()
120 object_property_del(OBJECT(pcms), prop_name); in pc_system_flash_cleanup_unused()
121 g_free(prop_name); in pc_system_flash_cleanup_unused()
/openbmc/u-boot/arch/sandbox/cpu/
H A Dstate.c308 int state_setprop(int node, const char *prop_name, const void *data, int size) in state_setprop() argument
314 fdt_getprop(state->state_fdt, node, prop_name, &len); in state_setprop()
317 ret = state_ensure_space(size - len + strlen(prop_name) + 32); in state_setprop()
323 ret = fdt_setprop(blob, node, prop_name, data, size); in state_setprop()
326 __func__, prop_name, fdt_get_name(blob, node, NULL), in state_setprop()
/openbmc/skeleton/pyinventorymgr/
H A Dsync_inventory_items.py166 prop_name = opt.p variable
171 inv_mac = get_bmc_mac_address(bus, prop_name)
183 inv_uuid = get_uuid(bus, prop_name)
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dmobility.c224 char *prop_name; in update_dt_node() local
226 prop_name = prop_data; in update_dt_node()
227 prop_data += strlen(prop_name) + 1; in update_dt_node()
238 prop_name, NULL)); in update_dt_node()
243 rc = update_dt_property(dn, &prop, prop_name, in update_dt_node()
247 prop_name, rc); in update_dt_node()
/openbmc/qemu/scripts/
H A Dcompare-machine-types.py110 def get_prop(self, driver: str, prop_name: str) -> str:
115 if prop['name'] == prop_name:
126 def get_prop(self, driver: str, prop_name: str) -> str:
136 return str(self.cached[name].get(prop_name, 'Unknown property'))
146 def get_prop(self, driver: str, prop_name: str) -> str:
151 if prop['name'] == prop_name:
/openbmc/boost-dbus/test/
H A Davahi.cpp250 std::string intf_name, prop_name; in TEST() local
254 s.unpack(intf_name, prop_name); in TEST()
257 EXPECT_EQ(prop_name, "State"); in TEST()
308 std::string intf_name, prop_name; in TEST() local
309 s.unpack(intf_name, prop_name); in TEST()
312 EXPECT_EQ(prop_name, "State"); in TEST()
/openbmc/linux/drivers/power/supply/
H A Dpower_supply_sysfs.c24 const char *prop_name; member
34 .prop_name = #_name, \
367 if (!power_supply_attrs[attrno].prop_name) in power_supply_attr_is_visible()
418 if (!power_supply_attrs[i].prop_name) { in power_supply_init_attrs()
463 pwr_attr->prop_name, prop_buf); in add_prop_uevent()
/openbmc/u-boot/scripts/dtc/pylibfdt/
H A Dlibfdt.i_shipped400 def getprop(self, nodeoffset, prop_name, quiet=()):
405 prop_name: Name of property to get
416 pdata = check_err_null(fdt_getprop(self._fdt, nodeoffset, prop_name),
420 return Property(prop_name, bytearray(pdata[0]))
555 def setprop(self, nodeoffset, prop_name, val, quiet=()):
560 prop_name: Name of property
570 return check_err(fdt_setprop(self._fdt, nodeoffset, prop_name, val,
573 def setprop_u32(self, nodeoffset, prop_name, val, quiet=()):
578 prop_name: Name of property
588 return check_err(fdt_setprop_u32(self._fdt, nodeoffset, prop_name, val),
[all …]
/openbmc/linux/include/linux/
H A Dof.h309 struct device_node *from, const char *prop_name);
545 struct device_node *from, const char *prop_name) in of_find_node_with_property() argument
1453 #define for_each_node_with_property(dn, prop_name) \ argument
1454 for (dn = of_find_node_with_property(NULL, prop_name); dn; \
1455 dn = of_find_node_with_property(dn, prop_name))
1602 const char *prop_name, const char *str);
1605 const char *prop_name,
1609 const char *prop_name,
1613 const char *prop_name, in of_changeset_add_prop_u32() argument
1616 return of_changeset_add_prop_u32_array(ocs, np, prop_name, &val, 1); in of_changeset_add_prop_u32()
/openbmc/linux/drivers/gpio/
H A Dgpiolib-of.c649 char prop_name[32]; /* 32 is max size of property name */ in of_find_gpio() local
658 snprintf(prop_name, sizeof(prop_name), "%s-%s", con_id, in of_find_gpio()
661 snprintf(prop_name, sizeof(prop_name), "%s", in of_find_gpio()
664 desc = of_get_named_gpiod_flags(np, prop_name, idx, &of_flags); in of_find_gpio()

123