Home
last modified time | relevance | path

Searched refs:prop_val (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/video/backlight/
H A Dmt6370-backlight.c133 u8 prop_val; in mt6370_init_backlight_properties() local
148 &prop_val); in mt6370_init_backlight_properties()
150 prop_val = clamp_val(prop_val, in mt6370_init_backlight_properties()
153 prop_val = prop_val <= 1 ? 0 : in mt6370_init_backlight_properties()
154 prop_val <= 4 ? 1 : in mt6370_init_backlight_properties()
155 prop_val <= 16 ? 2 : 3; in mt6370_init_backlight_properties()
156 val |= prop_val; in mt6370_init_backlight_properties()
217 &prop_val); in mt6370_init_backlight_properties()
223 if (!prop_val || prop_val > MT6370_BL_MAX_CH) { in mt6370_init_backlight_properties()
226 prop_val); in mt6370_init_backlight_properties()
[all …]
/linux/include/linux/
H A Dextcon-provider.h57 union extcon_property_value prop_val);
60 union extcon_property_value prop_val);
116 union extcon_property_value prop_val) in extcon_set_property() argument
123 union extcon_property_value prop_val) in extcon_set_property_sync() argument
H A Dextcon.h188 union extcon_property_value *prop_val);
242 union extcon_property_value *prop_val) in extcon_get_property() argument
/linux/drivers/extcon/
H A Dextcon.c626 union extcon_property_value *prop_val) in extcon_get_property() argument
632 *prop_val = (union extcon_property_value){0}; in extcon_get_property()
669 *prop_val = cable->usb_propval[prop - EXTCON_PROP_USB_MIN]; in extcon_get_property()
672 *prop_val = cable->chg_propval[prop - EXTCON_PROP_CHG_MIN]; in extcon_get_property()
675 *prop_val = cable->jack_propval[prop - EXTCON_PROP_JACK_MIN]; in extcon_get_property()
678 *prop_val = cable->disp_propval[prop - EXTCON_PROP_DISP_MIN]; in extcon_get_property()
705 union extcon_property_value prop_val) in extcon_set_property() argument
736 cable->usb_propval[prop - EXTCON_PROP_USB_MIN] = prop_val; in extcon_set_property()
739 cable->chg_propval[prop - EXTCON_PROP_CHG_MIN] = prop_val; in extcon_set_property()
742 cable->jack_propval[prop - EXTCON_PROP_JACK_MIN] = prop_val; in extcon_set_property()
[all …]
/linux/drivers/watchdog/
H A Dcpwd.c516 const void *prop_val; in cpwd_probe() local
545 prop_val = of_get_property(options, "watchdog-enable?", NULL); in cpwd_probe()
546 p->enabled = (prop_val ? true : false); in cpwd_probe()
548 prop_val = of_get_property(options, "watchdog-reboot?", NULL); in cpwd_probe()
549 p->reboot = (prop_val ? true : false); in cpwd_probe()
/linux/tools/testing/selftests/powerpc/syscalls/
H A Drtas_filter.c55 char **prop_val, size_t *prop_len) in get_property() argument
63 return read_file_alloc(path, prop_val, prop_len); in get_property()
/linux/sound/soc/codecs/
H A Dwcd938x.c3210 u32 prop_val = 0; in wcd938x_dt_parse_micbias_info() local
3213 rc = of_property_read_u32(np, "qcom,micbias1-microvolt", &prop_val); in wcd938x_dt_parse_micbias_info()
3215 wcd->micb1_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3219 rc = of_property_read_u32(np, "qcom,micbias2-microvolt", &prop_val); in wcd938x_dt_parse_micbias_info()
3221 wcd->micb2_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3225 rc = of_property_read_u32(np, "qcom,micbias3-microvolt", &prop_val); in wcd938x_dt_parse_micbias_info()
3227 wcd->micb3_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
3231 rc = of_property_read_u32(np, "qcom,micbias4-microvolt", &prop_val); in wcd938x_dt_parse_micbias_info()
3233 wcd->micb4_mv = prop_val/1000; in wcd938x_dt_parse_micbias_info()
H A Dwcd939x.c3189 u32 prop_val = 0; in wcd939x_dt_parse_micbias_info() local
3192 rc = of_property_read_u32(np, "qcom,micbias1-microvolt", &prop_val); in wcd939x_dt_parse_micbias_info()
3194 wcd->micb1_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3198 rc = of_property_read_u32(np, "qcom,micbias2-microvolt", &prop_val); in wcd939x_dt_parse_micbias_info()
3200 wcd->micb2_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3204 rc = of_property_read_u32(np, "qcom,micbias3-microvolt", &prop_val); in wcd939x_dt_parse_micbias_info()
3206 wcd->micb3_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
3210 rc = of_property_read_u32(np, "qcom,micbias4-microvolt", &prop_val); in wcd939x_dt_parse_micbias_info()
3212 wcd->micb4_mv = prop_val / 1000; in wcd939x_dt_parse_micbias_info()
H A Dwcd937x.c2627 u32 prop_val = 0; in wcd937x_dt_parse_micbias_info() local
2630 ret = of_property_read_u32(np, "qcom,micbias1-microvolt", &prop_val); in wcd937x_dt_parse_micbias_info()
2632 wcd->micb1_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
2636 ret = of_property_read_u32(np, "qcom,micbias2-microvolt", &prop_val); in wcd937x_dt_parse_micbias_info()
2638 wcd->micb2_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
2642 ret = of_property_read_u32(np, "qcom,micbias3-microvolt", &prop_val); in wcd937x_dt_parse_micbias_info()
2644 wcd->micb3_mv = prop_val / 1000; in wcd937x_dt_parse_micbias_info()
/linux/drivers/staging/greybus/
H A Dpower_supply.c610 val = le32_to_cpu(resp.prop_val); in __gb_power_supply_property_update()
785 req.prop_val = cpu_to_le32((s32)val); in gb_power_supply_property_set()
/linux/include/linux/greybus/
H A Dgreybus_protocols.h588 __le32 prop_val; member
594 __le32 prop_val; member