• Home
  • Raw
  • Download

Lines Matching refs:uc_pdata

27 	struct dm_regulator_uclass_platdata *uc_pdata;  in do_dev()  local
45 uc_pdata = dev_get_uclass_platdata(currdev); in do_dev()
46 if (!uc_pdata) { in do_dev()
51 printf("dev: %s @ %s\n", uc_pdata->name, currdev->name); in do_dev()
58 struct dm_regulator_uclass_platdata **uc_pdata, in curr_dev_and_platdata() argument
62 *uc_pdata = NULL; in curr_dev_and_platdata()
71 *uc_pdata = dev_get_uclass_platdata(*devp); in curr_dev_and_platdata()
72 if (!*uc_pdata) { in curr_dev_and_platdata()
77 if (!allow_type_fixed && (*uc_pdata)->type == REGULATOR_TYPE_FIXED) { in curr_dev_and_platdata()
87 struct dm_regulator_uclass_platdata *uc_pdata; in do_list() local
101 uc_pdata = dev_get_uclass_platdata(dev); in do_list()
104 LIMIT_OFNAME, LIMIT_OFNAME, uc_pdata->name, in do_list()
143 struct dm_regulator_uclass_platdata *uc_pdata; in do_info() local
150 ret = curr_dev_and_platdata(&dev, &uc_pdata, true); in do_info()
158 LIMIT_INFO, "* regulator-name:", uc_pdata->name, in do_info()
164 constraint(" - min uV:", uc_pdata->min_uV, NULL); in do_info()
165 constraint(" - max uV:", uc_pdata->max_uV, NULL); in do_info()
166 constraint(" - min uA:", uc_pdata->min_uA, NULL); in do_info()
167 constraint(" - max uA:", uc_pdata->max_uA, NULL); in do_info()
168 constraint(" - always on:", uc_pdata->always_on, in do_info()
169 uc_pdata->always_on ? "true" : "false"); in do_info()
170 constraint(" - boot on:", uc_pdata->boot_on, in do_info()
171 uc_pdata->boot_on ? "true" : "false"); in do_info()
183 struct dm_regulator_uclass_platdata *uc_pdata) in do_status_detail() argument
189 printf("Regulator %s status:\n", uc_pdata->name); in do_status_detail()
201 mode_name = get_mode_name(uc_pdata->mode, uc_pdata->mode_count, mode); in do_status_detail()
236 struct dm_regulator_uclass_platdata *uc_pdata; in do_status() local
241 ret = curr_dev_and_platdata(&dev, &uc_pdata, true); in do_status()
244 do_status_detail(dev, uc_pdata); in do_status()
261 struct dm_regulator_uclass_platdata *uc_pdata; in do_value() local
266 ret = curr_dev_and_platdata(&dev, &uc_pdata, argc == 1); in do_value()
274 uc_pdata->name); in do_value()
288 if ((value < uc_pdata->min_uV || value > uc_pdata->max_uV) && !force) { in do_value()
290 uc_pdata->min_uV, uc_pdata->max_uV); in do_value()
300 uc_pdata->name); in do_value()
310 struct dm_regulator_uclass_platdata *uc_pdata; in do_current() local
314 ret = curr_dev_and_platdata(&dev, &uc_pdata, argc == 1); in do_current()
322 uc_pdata->name); in do_current()
331 if (current < uc_pdata->min_uA || current > uc_pdata->max_uA) { in do_current()
339 uc_pdata->name); in do_current()
349 struct dm_regulator_uclass_platdata *uc_pdata; in do_mode() local
353 ret = curr_dev_and_platdata(&dev, &uc_pdata, false); in do_mode()
361 uc_pdata->name); in do_mode()
374 uc_pdata->name); in do_mode()
384 struct dm_regulator_uclass_platdata *uc_pdata; in do_enable() local
387 ret = curr_dev_and_platdata(&dev, &uc_pdata, true); in do_enable()
393 printf("Regulator: %s - can't enable!\n", uc_pdata->name); in do_enable()
403 struct dm_regulator_uclass_platdata *uc_pdata; in do_disable() local
406 ret = curr_dev_and_platdata(&dev, &uc_pdata, true); in do_disable()
412 printf("Regulator: %s - can't disable!\n", uc_pdata->name); in do_disable()