• Home
  • Raw
  • Download

Lines Matching refs:parent

83 	return rdev_get_dev(rdev)->parent->parent;  in to_tps80031_dev()
89 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_is_enabled() local
96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled()
109 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_enable() local
115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable()
128 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_disable() local
134 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable()
167 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_set_voltage_sel() local
172 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
180 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
189 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
200 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_get_voltage_sel() local
205 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
216 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_get_voltage_sel()
230 struct device *parent = to_tps80031_dev(rdev); in tps80031_ldo_list_voltage() local
236 if (((tps80031_get_chip_info(parent) == TPS80031) || in tps80031_ldo_list_voltage()
237 ((tps80031_get_chip_info(parent) == TPS80032) && in tps80031_ldo_list_voltage()
238 (tps80031_get_pmu_version(parent) == 0x0))) && in tps80031_ldo_list_voltage()
254 struct device *parent = to_tps80031_dev(rdev); in tps80031_ldo_map_voltage() local
259 if (((tps80031_get_chip_info(parent) == TPS80031) || in tps80031_ldo_map_voltage()
260 ((tps80031_get_chip_info(parent) == TPS80032) && in tps80031_ldo_map_voltage()
261 (tps80031_get_pmu_version(parent) == 0x0)))) { in tps80031_ldo_map_voltage()
273 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_is_enabled() local
278 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_is_enabled()
285 ret = tps80031_read(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_is_enabled()
300 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_enable() local
303 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_enable()
311 ret = tps80031_set_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_enable()
324 struct device *parent = to_tps80031_dev(rdev); in tps80031_vbus_disable() local
328 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
337 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
345 ret = tps80031_clr_bits(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
355 ret = tps80031_write(parent, TPS80031_SLAVE_ID2, in tps80031_vbus_disable()
492 static int tps80031_power_req_config(struct device *parent, in tps80031_power_req_config() argument
501 ret = tps80031_ext_power_req_config(parent, ri->ext_ctrl_flag, in tps80031_power_req_config()
511 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_power_req_config()
523 static int tps80031_regulator_config(struct device *parent, in tps80031_regulator_config() argument
540 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_regulator_config()
553 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, in tps80031_regulator_config()
574 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, in tps80031_regulator_config()
586 static int check_smps_mode_mult(struct device *parent, in check_smps_mode_mult() argument
594 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, in check_smps_mode_mult()
597 dev_err(parent, "Error in reading smps offset register\n"); in check_smps_mode_mult()
601 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, in check_smps_mode_mult()
604 dev_err(parent, "Error in reading smps mult register\n"); in check_smps_mode_mult()
669 struct tps80031 *tps80031_mfd = dev_get_drvdata(pdev->dev.parent); in tps80031_regulator_probe()
673 pdata = dev_get_platdata(pdev->dev.parent); in tps80031_regulator_probe()
691 check_smps_mode_mult(pdev->dev.parent, ri); in tps80031_regulator_probe()
701 ret = tps80031_regulator_config(pdev->dev.parent, in tps80031_regulator_probe()
709 ret = tps80031_power_req_config(pdev->dev.parent, in tps80031_regulator_probe()