Lines Matching refs:dvs
91 void *dvs; member
102 struct lp8788_buck1_dvs *dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_buck1_set_dvs() local
105 if (!dvs) in lp8788_buck1_set_dvs()
108 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs()
109 if (gpio_is_valid(dvs->gpio)) in lp8788_buck1_set_dvs()
110 gpio_set_value(dvs->gpio, pinstate); in lp8788_buck1_set_dvs()
115 struct lp8788_buck2_dvs *dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_buck2_set_dvs() local
118 if (!dvs) in lp8788_buck2_set_dvs()
121 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
142 if (gpio_is_valid(dvs->gpio[0])) in lp8788_buck2_set_dvs()
143 gpio_set_value(dvs->gpio[0], pin1); in lp8788_buck2_set_dvs()
145 if (gpio_is_valid(dvs->gpio[1])) in lp8788_buck2_set_dvs()
146 gpio_set_value(dvs->gpio[1], pin2); in lp8788_buck2_set_dvs()
213 b1_dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_select_buck_vout_addr()
226 b2_dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_select_buck_vout_addr()
263 if (buck->dvs) in lp8788_buck12_set_voltage_sel()
439 buck->dvs = pdata->buck1_dvs; in lp8788_dvs_gpio_request()
449 buck->dvs = pdata->buck2_dvs; in lp8788_dvs_gpio_request()