Lines Matching full:dvs
91 void *dvs; member
104 struct lp8788_buck1_dvs *dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_buck1_set_dvs() local
107 if (!dvs) in lp8788_buck1_set_dvs()
110 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs()
116 struct lp8788_buck2_dvs *dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_buck2_set_dvs() local
119 if (!dvs) in lp8788_buck2_set_dvs()
122 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
251 if (buck->dvs) in lp8788_buck12_set_voltage_sel()
419 buck->gpio1 = devm_gpiod_get(dev, "dvs", GPIOD_OUT_LOW); in lp8788_dvs_gpio_request()
424 buck->dvs = pdata->buck1_dvs; in lp8788_dvs_gpio_request()
427 buck->gpio1 = devm_gpiod_get_index(dev, "dvs", 0, GPIOD_OUT_LOW); in lp8788_dvs_gpio_request()
432 buck->gpio2 = devm_gpiod_get_index(dev, "dvs", 1, GPIOD_OUT_LOW); in lp8788_dvs_gpio_request()
437 buck->dvs = pdata->buck2_dvs; in lp8788_dvs_gpio_request()
454 /* no dvs for buck3, 4 */ in lp8788_init_dvs()
458 /* no dvs platform data, then dvs will be selected by I2C registers */ in lp8788_init_dvs()