Lines Matching refs:uc_pdata
262 struct dm_regulator_uclass_platdata *uc_pdata; in pfuze100_regulator_probe() local
292 uc_pdata = dev_get_uclass_platdata(dev); in pfuze100_regulator_probe()
294 uc_pdata->type = desc->type; in pfuze100_regulator_probe()
295 if (uc_pdata->type == REGULATOR_TYPE_BUCK) { in pfuze100_regulator_probe()
297 uc_pdata->mode = pfuze_swbst_modes; in pfuze100_regulator_probe()
298 uc_pdata->mode_count = ARRAY_SIZE(pfuze_swbst_modes); in pfuze100_regulator_probe()
300 uc_pdata->mode = pfuze_sw_modes; in pfuze100_regulator_probe()
301 uc_pdata->mode_count = ARRAY_SIZE(pfuze_sw_modes); in pfuze100_regulator_probe()
303 } else if (uc_pdata->type == REGULATOR_TYPE_LDO) { in pfuze100_regulator_probe()
304 uc_pdata->mode = pfuze_ldo_modes; in pfuze100_regulator_probe()
305 uc_pdata->mode_count = ARRAY_SIZE(pfuze_ldo_modes); in pfuze100_regulator_probe()
307 uc_pdata->mode = NULL; in pfuze100_regulator_probe()
308 uc_pdata->mode_count = 0; in pfuze100_regulator_probe()
388 struct dm_regulator_uclass_platdata *uc_pdata = in pfuze100_regulator_enable() local
429 if (uc_pdata->type == REGULATOR_TYPE_LDO) { in pfuze100_regulator_enable()
431 } else if (uc_pdata->type == REGULATOR_TYPE_BUCK) { in pfuze100_regulator_enable()
453 struct dm_regulator_uclass_platdata *uc_pdata = in pfuze100_regulator_val() local
458 if (uc_pdata->type == REGULATOR_TYPE_FIXED) { in pfuze100_regulator_val()
467 if (uc_pdata->min_uV < 0) { in pfuze100_regulator_val()
475 *uV = uc_pdata->min_uV + (int)val * desc->uV_step; in pfuze100_regulator_val()
481 if (uc_pdata->type == REGULATOR_TYPE_FIXED) { in pfuze100_regulator_val()
497 if (uc_pdata->min_uV < 0) { in pfuze100_regulator_val()
503 (*uV - uc_pdata->min_uV) / desc->uV_step); in pfuze100_regulator_val()