Lines Matching refs:rpdata

65 	struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id];  in tps65132_regulator_enable()  local
68 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_enable()
69 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in tps65132_regulator_enable()
70 rpdata->ena_gpio_state = 1; in tps65132_regulator_enable()
91 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_disable() local
93 if (!IS_ERR(rpdata->en_gpiod)) { in tps65132_regulator_disable()
94 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in tps65132_regulator_disable()
95 rpdata->ena_gpio_state = 0; in tps65132_regulator_disable()
98 if (!IS_ERR(rpdata->act_dis_gpiod)) { in tps65132_regulator_disable()
99 gpiod_set_value_cansleep(rpdata->act_dis_gpiod, 1); in tps65132_regulator_disable()
100 usleep_range(rpdata->act_dis_time_us, rpdata->act_dis_time_us + in tps65132_regulator_disable()
102 gpiod_set_value_cansleep(rpdata->act_dis_gpiod, 0); in tps65132_regulator_disable()
112 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[id]; in tps65132_regulator_is_enabled() local
114 if (!IS_ERR(rpdata->en_gpiod)) in tps65132_regulator_is_enabled()
115 return rpdata->ena_gpio_state; in tps65132_regulator_is_enabled()
136 struct tps65132_reg_pdata *rpdata = &tps->reg_pdata[desc->id]; in tps65132_of_parse_cb() local
139 rpdata->en_gpiod = devm_fwnode_gpiod_get(tps->dev, of_fwnode_handle(np), in tps65132_of_parse_cb()
142 if (IS_ERR(rpdata->en_gpiod)) { in tps65132_of_parse_cb()
143 ret = PTR_ERR(rpdata->en_gpiod); in tps65132_of_parse_cb()
151 rpdata->act_dis_gpiod = devm_fwnode_gpiod_get(tps->dev, in tps65132_of_parse_cb()
156 if (IS_ERR(rpdata->act_dis_gpiod)) { in tps65132_of_parse_cb()
157 ret = PTR_ERR(rpdata->act_dis_gpiod); in tps65132_of_parse_cb()
167 &rpdata->act_dis_time_us); in tps65132_of_parse_cb()