Lines Matching refs:uc_pdata
143 struct dm_regulator_uclass_platdata *uc_pdata; in out_get_mode() local
149 uc_pdata = dev_get_uclass_platdata(dev); in out_get_mode()
158 for (i = 0; i < uc_pdata->mode_count; i++) { in out_get_mode()
159 if (reg_val == uc_pdata->mode[i].register_value) in out_get_mode()
160 return uc_pdata->mode[i].id; in out_get_mode()
169 struct dm_regulator_uclass_platdata *uc_pdata; in out_set_mode() local
175 uc_pdata = dev_get_uclass_platdata(dev); in out_set_mode()
177 if (mode >= uc_pdata->mode_count) in out_set_mode()
180 for (i = 0; i < uc_pdata->mode_count; i++) { in out_set_mode()
181 if (mode == uc_pdata->mode[i].id) { in out_set_mode()
182 reg_val = uc_pdata->mode[i].register_value; in out_set_mode()
249 struct dm_regulator_uclass_platdata *uc_pdata; in sandbox_buck_probe() local
251 uc_pdata = dev_get_uclass_platdata(dev); in sandbox_buck_probe()
253 uc_pdata->type = REGULATOR_TYPE_BUCK; in sandbox_buck_probe()
254 uc_pdata->mode = sandbox_buck_modes; in sandbox_buck_probe()
255 uc_pdata->mode_count = ARRAY_SIZE(sandbox_buck_modes); in sandbox_buck_probe()
325 struct dm_regulator_uclass_platdata *uc_pdata; in sandbox_ldo_probe() local
327 uc_pdata = dev_get_uclass_platdata(dev); in sandbox_ldo_probe()
329 uc_pdata->type = REGULATOR_TYPE_LDO; in sandbox_ldo_probe()
330 uc_pdata->mode = sandbox_ldo_modes; in sandbox_ldo_probe()
331 uc_pdata->mode_count = ARRAY_SIZE(sandbox_ldo_modes); in sandbox_ldo_probe()