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_get_index_gpiod_from_child(tps->dev, in tps65132_of_parse_cb()
141 if (IS_ERR_OR_NULL(rpdata->en_gpiod)) { in tps65132_of_parse_cb()
142 ret = PTR_ERR(rpdata->en_gpiod); in tps65132_of_parse_cb()
150 rpdata->act_dis_gpiod = devm_fwnode_get_index_gpiod_from_child( in tps65132_of_parse_cb()
153 if (IS_ERR_OR_NULL(rpdata->act_dis_gpiod)) { in tps65132_of_parse_cb()
154 ret = PTR_ERR(rpdata->act_dis_gpiod); in tps65132_of_parse_cb()
164 &rpdata->act_dis_time_us); in tps65132_of_parse_cb()