Lines Matching full:ri

268 					     struct tps6586x_regulator *ri)  in tps6586x_regulator_preinit()  argument
273 if (ri->enable_reg[0] == ri->enable_reg[1] && in tps6586x_regulator_preinit()
274 ri->enable_bit[0] == ri->enable_bit[1]) in tps6586x_regulator_preinit()
277 ret = tps6586x_read(parent, ri->enable_reg[0], &val1); in tps6586x_regulator_preinit()
281 ret = tps6586x_read(parent, ri->enable_reg[1], &val2); in tps6586x_regulator_preinit()
285 if (!(val2 & (1 << ri->enable_bit[1]))) in tps6586x_regulator_preinit()
292 if (!(val1 & (1 << ri->enable_bit[0]))) { in tps6586x_regulator_preinit()
293 ret = tps6586x_set_bits(parent, ri->enable_reg[0], in tps6586x_regulator_preinit()
294 1 << ri->enable_bit[0]); in tps6586x_regulator_preinit()
299 return tps6586x_clr_bits(parent, ri->enable_reg[1], in tps6586x_regulator_preinit()
300 1 << ri->enable_bit[1]); in tps6586x_regulator_preinit()
335 struct tps6586x_regulator *ri; in find_regulator_info() local
360 ri = &table[i]; in find_regulator_info()
361 if (ri->desc.id == id) in find_regulator_info()
362 return ri; in find_regulator_info()
367 ri = &tps6586x_regulator[i]; in find_regulator_info()
368 if (ri->desc.id == id) in find_regulator_info()
369 return ri; in find_regulator_info()
450 struct tps6586x_regulator *ri = NULL; in tps6586x_regulator_probe() local
477 ri = find_regulator_info(id, version); in tps6586x_regulator_probe()
479 if (!ri) { in tps6586x_regulator_probe()
484 err = tps6586x_regulator_preinit(pdev->dev.parent, ri); in tps6586x_regulator_probe()
493 config.driver_data = ri; in tps6586x_regulator_probe()
498 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in tps6586x_regulator_probe()
501 ri->desc.name); in tps6586x_regulator_probe()