Lines Matching refs:rpdata
51 struct DIO5632_reg_pdata *rpdata = &dio->reg_pdata[id]; in DIO5632_regulator_enable() local
54 if (!IS_ERR(rpdata->en_gpiod)) { in DIO5632_regulator_enable()
55 gpiod_set_value_cansleep(rpdata->en_gpiod, 1); in DIO5632_regulator_enable()
56 rpdata->ena_gpio_state = 1; in DIO5632_regulator_enable()
77 struct DIO5632_reg_pdata *rpdata = &dio->reg_pdata[id]; in DIO5632_regulator_disable() local
79 if (!IS_ERR(rpdata->en_gpiod)) { in DIO5632_regulator_disable()
80 gpiod_set_value_cansleep(rpdata->en_gpiod, 0); in DIO5632_regulator_disable()
81 rpdata->ena_gpio_state = 0; in DIO5632_regulator_disable()
91 struct DIO5632_reg_pdata *rpdata = &dio->reg_pdata[id]; in DIO5632_regulator_is_enabled() local
93 if (!IS_ERR(rpdata->en_gpiod)) in DIO5632_regulator_is_enabled()
94 return rpdata->ena_gpio_state; in DIO5632_regulator_is_enabled()
115 struct DIO5632_reg_pdata *rpdata = &dio->reg_pdata[desc->id]; in DIO5632_of_parse_cb() local
118 rpdata->en_gpiod = devm_fwnode_get_index_gpiod_from_child(dio->dev, in DIO5632_of_parse_cb()
121 if (IS_ERR_OR_NULL(rpdata->en_gpiod)) { in DIO5632_of_parse_cb()
122 ret = PTR_ERR(rpdata->en_gpiod); in DIO5632_of_parse_cb()