Lines Matching refs:parent

98 	return rdev_get_dev(rdev)->parent->parent;  in to_tps80031_dev()
104 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_is_enabled() local
111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled()
124 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_enable() local
130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable()
143 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_disable() local
149 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable()
182 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_set_voltage_sel() local
187 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
195 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
204 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
215 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_get_voltage_sel() local
220 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
231 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
245 struct device *parent = to_tps80031_dev(rdev); in tps80031_ldo_list_voltage() local
251 if (((tps80031_get_chip_info(parent) == TPS80031) || in tps80031_ldo_list_voltage()
252 ((tps80031_get_chip_info(parent) == TPS80032) && in tps80031_ldo_list_voltage()
253 (tps80031_get_pmu_version(parent) == 0x0))) && in tps80031_ldo_list_voltage()
269 struct device *parent = to_tps80031_dev(rdev); in tps80031_ldo_map_voltage() local
274 if (((tps80031_get_chip_info(parent) == TPS80031) || in tps80031_ldo_map_voltage()
275 ((tps80031_get_chip_info(parent) == TPS80032) && in tps80031_ldo_map_voltage()
276 (tps80031_get_pmu_version(parent) == 0x0)))) { in tps80031_ldo_map_voltage()
288 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_is_enabled() local
293 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_is_enabled()
300 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_is_enabled()
315 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_enable() local
318 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_enable()
326 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_enable()
339 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_disable() local
343 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
352 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
360 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
370 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
507 static int tps80031_power_req_config(struct device *parent, in tps80031_power_req_config() argument
516 ret = tps80031_ext_power_req_config(parent, ri->ext_ctrl_flag, in tps80031_power_req_config()
526 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_power_req_config()
538 static int tps80031_regulator_config(struct device *parent, in tps80031_regulator_config() argument
554 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_regulator_config()
567 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_regulator_config()
588 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, in tps80031_regulator_config()
600 static int check_smps_mode_mult(struct device *parent, in check_smps_mode_mult() argument
608 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, in check_smps_mode_mult()
611 dev_err(parent, "Error in reading smps offset register\n"); in check_smps_mode_mult()
615 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, in check_smps_mode_mult()
618 dev_err(parent, "Error in reading smps mult register\n"); in check_smps_mode_mult()
683 struct tps80031 *tps80031_mfd = dev_get_drvdata(pdev->dev.parent); in tps80031_regulator_probe()
687 pdata = dev_get_platdata(pdev->dev.parent); in tps80031_regulator_probe()
705 check_smps_mode_mult(pdev->dev.parent, ri); in tps80031_regulator_probe()
715 ret = tps80031_regulator_config(pdev->dev.parent, in tps80031_regulator_probe()
723 ret = tps80031_power_req_config(pdev->dev.parent, in tps80031_regulator_probe()