Home
last modified time | relevance | path

Searched refs:dev_pdata (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/drivers/power/regulator/
H A Dgpio-regulator.c36 dev_pdata = dev_get_platdata(dev); in gpio_regulator_ofdata_to_platdata()
51 gpio = &dev_pdata->gpio; in gpio_regulator_ofdata_to_platdata()
77 if (!dev_pdata->gpio.dev) in gpio_regulator_get_value()
87 if (enable == dev_pdata->states[0]) in gpio_regulator_get_value()
88 return dev_pdata->voltages[0]; in gpio_regulator_get_value()
90 return dev_pdata->voltages[1]; in gpio_regulator_get_value()
99 if (!dev_pdata->gpio.dev) in gpio_regulator_set_value()
102 if (uV == dev_pdata->voltages[0]) in gpio_regulator_set_value()
103 enable = dev_pdata->states[0]; in gpio_regulator_set_value()
104 else if (uV == dev_pdata->voltages[1]) in gpio_regulator_set_value()
[all …]
H A Dfixed.c25 struct fixed_regulator_platdata *dev_pdata; in fixed_regulator_ofdata_to_platdata() local
30 dev_pdata = dev_get_platdata(dev); in fixed_regulator_ofdata_to_platdata()
42 gpio = &dev_pdata->gpio; in fixed_regulator_ofdata_to_platdata()
54 dev_pdata->off_on_delay_us = in fixed_regulator_ofdata_to_platdata()
97 if (!dev_pdata->gpio.dev) in fixed_regulator_get_enable()
110 dm_gpio_is_valid(&dev_pdata->gpio)); in fixed_regulator_set_enable()
112 if (!dm_gpio_is_valid(&dev_pdata->gpio)) { in fixed_regulator_set_enable()
125 if (enable && dev_pdata->startup_delay_us) in fixed_regulator_set_enable()
126 udelay(dev_pdata->startup_delay_us); in fixed_regulator_set_enable()
129 if (!enable && dev_pdata->off_on_delay_us) in fixed_regulator_set_enable()
[all …]
H A Dfan53555.c86 struct fan53555_platdata *dev_pdata = dev_get_platdata(dev); in fan53555_regulator_ofdata_to_platdata() local
103 dev_pdata->sleep_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()
104 dev_pdata->vol_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()
107 dev_pdata->sleep_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()
108 dev_pdata->vol_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxreg-hotplug.c94 struct mlxreg_core_hotplug_platform_data *dev_pdata = pdata; in mlxreg_hotplug_pdata_export() local
97 dev_pdata->regmap = regmap; in mlxreg_hotplug_pdata_export()