Home
last modified time | relevance | path

Searched refs:propval (Results 1 – 19 of 19) sorted by relevance

/openbmc/u-boot/test/dm/
H A Dofnode.c23 const char propval[] = "denx,u-boot-fdt-test"; in dm_test_ofnode_by_prop_value() local
28 node = ofnode_by_prop_value(node, propname, propval, sizeof(propval)); in dm_test_ofnode_by_prop_value()
31 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value()
35 node = ofnode_by_prop_value(node, propname, propval, in dm_test_ofnode_by_prop_value()
36 sizeof(propval)); in dm_test_ofnode_by_prop_value()
40 ut_assert(str && !strcmp(str, propval)); in dm_test_ofnode_by_prop_value()
/openbmc/linux/scripts/dtc/libfdt/
H A Dfdt_wip.c18 void *propval; in fdt_setprop_inplace_namelen_partial() local
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
23 if (!propval) in fdt_setprop_inplace_namelen_partial()
29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial()
36 const void *propval; in fdt_setprop_inplace() local
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
40 if (!propval) in fdt_setprop_inplace()
H A Dfdt_ro.c656 const void *propval, int proplen) in fdt_node_offset_by_prop_value() argument
674 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
H A Dlibfdt.h1016 const void *propval, int proplen);
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_wip.c63 void *propval; in fdt_setprop_inplace_namelen_partial() local
66 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
68 if (!propval) in fdt_setprop_inplace_namelen_partial()
74 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial()
81 const void *propval; in fdt_setprop_inplace() local
84 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
85 if (!propval) in fdt_setprop_inplace()
H A Dfdt_ro.c570 const void *propval, int proplen) in fdt_node_offset_by_prop_value() argument
588 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
H A Dlibfdt.h887 const void *propval, int proplen);
/openbmc/linux/drivers/video/backlight/
H A Drt4831-backlight.c93 u8 propval; in rt4831_parse_backlight_properties() local
119 ret = device_property_read_u8(dev, "richtek,bled-ovp-sel", &propval); in rt4831_parse_backlight_properties()
121 propval = RT4831_BLOVPLVL_21V; in rt4831_parse_backlight_properties()
123 propval = min_t(u8, propval, RT4831_BLOVPLVL_29V); in rt4831_parse_backlight_properties()
125 propval << RT4831_BLOVP_SHIFT); in rt4831_parse_backlight_properties()
154 ret = device_property_read_u8(dev, "richtek,channel-use", &propval); in rt4831_parse_backlight_properties()
160 if (!(propval & RT4831_BLCH_MASK)) { in rt4831_parse_backlight_properties()
165 return regmap_update_bits(priv->regmap, RT4831_REG_ENABLE, RT4831_BLCH_MASK, propval); in rt4831_parse_backlight_properties()
/openbmc/linux/arch/powerpc/boot/
H A Dops.h48 const char *propval, int proplen);
146 const char *propval, int proplen) in find_node_by_prop_value() argument
150 propval, proplen); in find_node_by_prop_value()
157 const char *propval) in find_node_by_prop_value_str() argument
159 return find_node_by_prop_value(prev, propname, propval, in find_node_by_prop_value_str()
160 strlen(propval) + 1); in find_node_by_prop_value_str()
/openbmc/linux/drivers/virt/
H A Dfsl_hypervisor.c337 void *propval; in ioctl_dtprop() local
346 upropval = (void __user *)(uintptr_t)param.propval; in ioctl_dtprop()
363 propval = kmalloc(param.proplen, GFP_KERNEL); in ioctl_dtprop()
364 if (!propval) { in ioctl_dtprop()
370 if (copy_from_user(propval, upropval, param.proplen)) { in ioctl_dtprop()
378 virt_to_phys(propval), in ioctl_dtprop()
384 virt_to_phys(propval), in ioctl_dtprop()
388 if (copy_to_user(upropval, propval, param.proplen) || in ioctl_dtprop()
400 kfree(propval); in ioctl_dtprop()
/openbmc/linux/drivers/regulator/
H A Drt6245-regulator.c126 u8 propval; in rt6245_init_device_properties() local
130 ret = device_property_read_u8(dev, rt6245_props[i].name, &propval); in rt6245_init_device_properties()
134 ret = regmap_write(regmap, rt6245_props[i].reg, propval); in rt6245_init_device_properties()
136 dev_err(dev, "Fail to apply [%s:%d]\n", rt6245_props[i].name, propval); in rt6245_init_device_properties()
/openbmc/u-boot/drivers/core/
H A Dof_access.c380 const char *propname, const void *propval, in of_device_has_prop_value() argument
387 return !memcmp(prop->value, propval, proplen); in of_device_has_prop_value()
392 const void *propval, int proplen) in of_find_node_by_prop_value() argument
397 if (of_device_has_prop_value(np, propname, propval, proplen) && in of_find_node_by_prop_value()
H A Dofnode.c791 const void *propval, int proplen) in ofnode_by_prop_value() argument
796 propval, proplen)); in ofnode_by_prop_value()
800 propname, propval, proplen)); in ofnode_by_prop_value()
/openbmc/linux/include/uapi/linux/
H A Dfsl_hypervisor.h180 __u64 propval; member
/openbmc/u-boot/include/dm/
H A Dof_access.h210 const void *propval,
H A Dofnode.h727 const void *propval, int proplen);
/openbmc/linux/drivers/power/supply/
H A Dpmu_battery.c21 int propval; member
/openbmc/u-boot/lib/libfdt/
H A Dfdt_ro.c479 const void *propval, int proplen) in fdt_node_offset_by_prop_value() argument
497 && (memcmp(val, propval, len) == 0)) in fdt_node_offset_by_prop_value()
/openbmc/linux/drivers/peci/controller/
H A Dpeci-aspeed.c443 u32 min, u32 max, u32 default_val, u32 *propval) in aspeed_peci_property_sanitize() argument
458 *propval = val; in aspeed_peci_property_sanitize()