Lines Matching refs:ri

74 static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri,  in tps65090_reg_set_overcurrent_wait()  argument
81 ri->overcurrent_wait << CTRL_WT_BIT); in tps65090_reg_set_overcurrent_wait()
265 struct tps65090_regulator *ri, bool enable) in tps65090_config_ext_control() argument
268 struct device *parent = ri->dev->parent; in tps65090_config_ext_control()
269 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_config_ext_control()
276 dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg); in tps65090_config_ext_control()
281 struct tps65090_regulator *ri, in tps65090_regulator_disable_ext_control() argument
285 struct device *parent = ri->dev->parent; in tps65090_regulator_disable_ext_control()
286 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_regulator_disable_ext_control()
296 dev_err(ri->dev, "Error in set reg 0x%x\n", reg_en_reg); in tps65090_regulator_disable_ext_control()
300 return tps65090_config_ext_control(ri, false); in tps65090_regulator_disable_ext_control()
414 struct tps65090_regulator *ri = NULL; in tps65090_regulator_probe() local
443 ri = &pmic[num]; in tps65090_regulator_probe()
444 ri->dev = &pdev->dev; in tps65090_regulator_probe()
445 ri->desc = &tps65090_regulator_desc[num]; in tps65090_regulator_probe()
447 ri->overcurrent_wait_valid = in tps65090_regulator_probe()
449 ri->overcurrent_wait = tps_pdata->overcurrent_wait; in tps65090_regulator_probe()
460 ri->desc->ops = &tps65090_ext_control_ops; in tps65090_regulator_probe()
463 ri, tps_pdata); in tps65090_regulator_probe()
473 config.driver_data = ri; in tps65090_regulator_probe()
484 rdev = devm_regulator_register(&pdev->dev, ri->desc, &config); in tps65090_regulator_probe()
487 ri->desc->name); in tps65090_regulator_probe()
490 ri->rdev = rdev; in tps65090_regulator_probe()
492 if (ri->overcurrent_wait_valid) { in tps65090_regulator_probe()
493 ret = tps65090_reg_set_overcurrent_wait(ri, rdev); in tps65090_regulator_probe()
501 ret = tps65090_config_ext_control(ri, true); in tps65090_regulator_probe()