Lines Matching refs:desc

73 	struct regulator_desc desc;  member
93 if (min_uV < info->desc.min_uV || min_uV > info->max_uV) in check_range()
106 if (rdev->desc->n_voltages == 1) in da903x_set_voltage_sel()
122 if (rdev->desc->n_voltages == 1) in da903x_get_voltage_sel()
200 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage()
202 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
205 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
218 volt = rdev->desc->min_uV + in da9030_list_ldo14_voltage()
219 rdev->desc->uV_step * (3 - (selector & ~0x4)); in da9030_list_ldo14_voltage()
221 volt = (info->max_uV + rdev->desc->min_uV) / 2 + in da9030_list_ldo14_voltage()
222 rdev->desc->uV_step * (selector & ~0x4); in da9030_list_ldo14_voltage()
311 .desc = { \
331 .desc = { \
424 if (ri->desc.id == id) in find_regulator_info()
443 if (ri->desc.id == DA9034_ID_LDO12) { in da903x_regulator_probe()
444 ri->desc.ops = &da9034_regulator_ldo12_ops; in da903x_regulator_probe()
445 ri->desc.n_voltages = 16; in da903x_regulator_probe()
446 ri->desc.linear_ranges = da9034_ldo12_ranges; in da903x_regulator_probe()
447 ri->desc.n_linear_ranges = ARRAY_SIZE(da9034_ldo12_ranges); in da903x_regulator_probe()
450 if (ri->desc.id == DA9030_ID_LDO14) in da903x_regulator_probe()
451 ri->desc.ops = &da9030_regulator_ldo14_ops; in da903x_regulator_probe()
453 if (ri->desc.id == DA9030_ID_LDO1 || ri->desc.id == DA9030_ID_LDO15) in da903x_regulator_probe()
454 ri->desc.ops = &da9030_regulator_ldo1_15_ops; in da903x_regulator_probe()
460 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in da903x_regulator_probe()
463 ri->desc.name); in da903x_regulator_probe()