/linux-6.1.9/drivers/power/reset/ |
D | gpio-poweroff.c | 23 static struct gpio_desc *reset_gpio; variable 30 BUG_ON(!reset_gpio); in gpio_poweroff_do_poweroff() 33 gpiod_direction_output(reset_gpio, 1); in gpio_poweroff_do_poweroff() 37 gpiod_set_value_cansleep(reset_gpio, 0); in gpio_poweroff_do_poweroff() 41 gpiod_set_value_cansleep(reset_gpio, 1); in gpio_poweroff_do_poweroff() 73 reset_gpio = devm_gpiod_get(&pdev->dev, NULL, flags); in gpio_poweroff_probe() 74 if (IS_ERR(reset_gpio)) in gpio_poweroff_probe() 75 return PTR_ERR(reset_gpio); in gpio_poweroff_probe()
|
D | gpio-restart.c | 19 struct gpio_desc *reset_gpio; member 33 gpiod_direction_output(gpio_restart->reset_gpio, 1); in gpio_restart_notify() 37 gpiod_set_value(gpio_restart->reset_gpio, 0); in gpio_restart_notify() 41 gpiod_set_value(gpio_restart->reset_gpio, 1); in gpio_restart_notify() 65 gpio_restart->reset_gpio = devm_gpiod_get(&pdev->dev, NULL, in gpio_restart_probe() 67 ret = PTR_ERR_OR_ZERO(gpio_restart->reset_gpio); in gpio_restart_probe()
|
/linux-6.1.9/drivers/mmc/core/ |
D | pwrseq_emmc.c | 27 struct gpio_desc *reset_gpio; member 36 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset() 38 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset() 47 gpiod_set_value(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset_nb() 49 gpiod_set_value(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset_nb() 68 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in mmc_pwrseq_emmc_probe() 69 if (IS_ERR(pwrseq->reset_gpio)) in mmc_pwrseq_emmc_probe() 70 return PTR_ERR(pwrseq->reset_gpio); in mmc_pwrseq_emmc_probe() 72 if (!gpiod_cansleep(pwrseq->reset_gpio)) { in mmc_pwrseq_emmc_probe()
|
D | pwrseq_sd8787.c | 29 struct gpio_desc *reset_gpio; member 40 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on() 51 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_sd8787_power_off() 86 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in mmc_pwrseq_sd8787_probe() 87 if (IS_ERR(pwrseq->reset_gpio)) in mmc_pwrseq_sd8787_probe() 88 return PTR_ERR(pwrseq->reset_gpio); in mmc_pwrseq_sd8787_probe()
|
/linux-6.1.9/sound/arm/ |
D | pxa2xx-ac97-lib.c | 33 static int reset_gpio; variable 36 extern void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio); 149 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x() 152 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x() 339 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe() 342 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe() 345 reset_gpio = 113; in pxa2xx_ac97_hw_probe() 351 pdata->reset_gpio); in pxa2xx_ac97_hw_probe() 357 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe() 359 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe() [all …]
|
/linux-6.1.9/drivers/gpu/drm/panel/ |
D | panel-sharp-ls043t1le01.c | 28 struct gpio_desc *reset_gpio; member 128 if (sharp_nt->reset_gpio) in sharp_nt_panel_unprepare() 129 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare() 150 if (sharp_nt->reset_gpio) { in sharp_nt_panel_prepare() 151 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 153 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 155 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 177 if (sharp_nt->reset_gpio) in sharp_nt_panel_prepare() 178 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 248 sharp_nt->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in sharp_nt_panel_add() [all …]
|
D | panel-ebbg-ft8719.c | 38 struct gpio_desc *reset_gpio; member 49 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ebbg_ft8719_reset() 51 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_reset() 53 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ebbg_ft8719_reset() 130 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_prepare() 147 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_unprepare() 221 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ebbg_ft8719_probe() 222 if (IS_ERR(ctx->reset_gpio)) in ebbg_ft8719_probe() 223 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in ebbg_ft8719_probe()
|
D | panel-samsung-s6e88a0-ams452ef01.c | 20 struct gpio_desc *reset_gpio; member 41 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset() 43 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_reset() 45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset() 140 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_prepare() 163 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_unprepare() 228 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in s6e88a0_ams452ef01_probe() 229 if (IS_ERR(ctx->reset_gpio)) { in s6e88a0_ams452ef01_probe() 230 ret = PTR_ERR(ctx->reset_gpio); in s6e88a0_ams452ef01_probe()
|
D | panel-jdi-fhd-r63452.c | 23 struct gpio_desc *reset_gpio; member 50 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset() 52 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_reset() 54 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset() 184 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_prepare() 205 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_unprepare() 260 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in jdi_fhd_r63452_probe() 261 if (IS_ERR(ctx->reset_gpio)) in jdi_fhd_r63452_probe() 262 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in jdi_fhd_r63452_probe()
|
D | panel-visionox-rm69299.c | 21 struct gpio_desc *reset_gpio; member 45 gpiod_set_value(ctx->reset_gpio, 1); in visionox_rm69299_power_on() 47 gpiod_set_value(ctx->reset_gpio, 0); in visionox_rm69299_power_on() 49 gpiod_set_value(ctx->reset_gpio, 1); in visionox_rm69299_power_on() 57 gpiod_set_value(ctx->reset_gpio, 0); in visionox_rm69299_power_off() 215 ctx->reset_gpio = devm_gpiod_get(ctx->panel.dev, in visionox_rm69299_probe() 217 if (IS_ERR(ctx->reset_gpio)) { in visionox_rm69299_probe() 218 dev_err(dev, "cannot get reset gpio %ld\n", PTR_ERR(ctx->reset_gpio)); in visionox_rm69299_probe() 219 return PTR_ERR(ctx->reset_gpio); in visionox_rm69299_probe()
|
D | panel-sharp-ls060t1sx01.c | 26 struct gpio_desc *reset_gpio; member 43 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset() 45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_reset() 47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset() 167 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_prepare() 195 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_unprepare() 268 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sharp_ls060_probe() 269 if (IS_ERR(ctx->reset_gpio)) in sharp_ls060_probe() 270 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in sharp_ls060_probe()
|
D | panel-samsung-s6d16d0.c | 21 struct gpio_desc *reset_gpio; member 62 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_unprepare() 81 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_prepare() 84 gpiod_set_value_cansleep(s6->reset_gpio, 0); in s6d16d0_prepare() 194 s6->reset_gpio = devm_gpiod_get_optional(dev, "reset", in s6d16d0_probe() 196 if (IS_ERR(s6->reset_gpio)) { in s6d16d0_probe() 197 ret = PTR_ERR(s6->reset_gpio); in s6d16d0_probe()
|
D | panel-innolux-ej030na.c | 37 struct gpio_desc *reset_gpio; member 98 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_prepare() 100 gpiod_set_value_cansleep(priv->reset_gpio, 0); in ej030na_prepare() 121 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_unprepare() 228 priv->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ej030na_probe() 229 if (IS_ERR(priv->reset_gpio)) in ej030na_probe() 230 return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), in ej030na_probe()
|
D | panel-khadas-ts050.c | 26 struct gpio_desc *reset_gpio; member 600 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_prepare() 604 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 0); in khadas_ts050_panel_prepare() 658 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_prepare() 682 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_unprepare() 780 khadas_ts050->reset_gpio = devm_gpiod_get(dev, "reset", in khadas_ts050_panel_add() 782 if (IS_ERR(khadas_ts050->reset_gpio)) in khadas_ts050_panel_add() 783 return dev_err_probe(dev, PTR_ERR(khadas_ts050->reset_gpio), in khadas_ts050_panel_add()
|
D | panel-samsung-sofef00.c | 26 struct gpio_desc *reset_gpio; member 47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset() 49 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_reset() 51 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset() 140 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_prepare() 277 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sofef00_panel_probe() 278 if (IS_ERR(ctx->reset_gpio)) in sofef00_panel_probe() 279 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in sofef00_panel_probe()
|
/linux-6.1.9/sound/soc/codecs/ |
D | ak5386.c | 24 int reset_gpio; member 114 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params() 115 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params() 126 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free() 127 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free() 171 priv->reset_gpio = -EINVAL; in ak5386_probe() 183 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe() 186 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe() 187 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe() 190 priv->reset_gpio = -EINVAL; in ak5386_probe()
|
D | bd28623.c | 26 struct gpio_desc *reset_gpio; member 57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on() 65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off() 201 bd->reset_gpio = devm_gpiod_get_optional(dev, "reset", in bd28623_probe() 203 if (IS_ERR(bd->reset_gpio)) { in bd28623_probe() 205 PTR_ERR(bd->reset_gpio)); in bd28623_probe() 206 return PTR_ERR(bd->reset_gpio); in bd28623_probe()
|
D | cs4349.c | 46 struct gpio_desc *reset_gpio; member 294 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe() 296 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe() 297 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe() 299 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe() 313 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove() 329 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend() 343 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
|
/linux-6.1.9/arch/arm/mach-pxa/ |
D | reset.c | 16 static int reset_gpio = -1; variable 40 reset_gpio = gpio; in init_gpio_reset() 52 BUG_ON(reset_gpio == -1); in do_gpio_reset() 55 gpio_direction_output(reset_gpio, 0); in do_gpio_reset() 58 gpio_set_value(reset_gpio, 1); in do_gpio_reset() 61 gpio_set_value(reset_gpio, 0); in do_gpio_reset()
|
/linux-6.1.9/drivers/mfd/ |
D | lp87565.c | 68 lp87565->reset_gpio = devm_gpiod_get_optional(lp87565->dev, "reset", in lp87565_probe() 70 if (IS_ERR(lp87565->reset_gpio)) { in lp87565_probe() 71 ret = PTR_ERR(lp87565->reset_gpio); in lp87565_probe() 76 if (lp87565->reset_gpio) { in lp87565_probe() 77 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_probe() 81 gpiod_set_value_cansleep(lp87565->reset_gpio, 0); in lp87565_probe() 109 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_shutdown()
|
/linux-6.1.9/drivers/hid/i2c-hid/ |
D | i2c-hid-of-goodix.c | 30 struct gpio_desc *reset_gpio; member 40 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 0); in goodix_i2c_hid_deassert_reset() 71 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in ihid_goodix_vdd_notify() 104 ihid_goodix->reset_gpio = in i2c_hid_of_goodix_probe() 106 if (IS_ERR(ihid_goodix->reset_gpio)) in i2c_hid_of_goodix_probe() 107 return PTR_ERR(ihid_goodix->reset_gpio); in i2c_hid_of_goodix_probe() 141 if (ihid_goodix->reset_gpio && regulator_is_enabled(ihid_goodix->vdd)) { in i2c_hid_of_goodix_probe()
|
D | i2c-hid-of-elan.c | 31 struct gpio_desc *reset_gpio; member 54 gpiod_set_value_cansleep(ihid_elan->reset_gpio, 0); in elan_i2c_hid_power_up() 66 gpiod_set_value_cansleep(ihid_elan->reset_gpio, 1); in elan_i2c_hid_power_down() 84 ihid_elan->reset_gpio = in i2c_hid_of_elan_probe() 86 if (IS_ERR(ihid_elan->reset_gpio)) in i2c_hid_of_elan_probe() 87 return PTR_ERR(ihid_elan->reset_gpio); in i2c_hid_of_elan_probe()
|
/linux-6.1.9/drivers/reset/ |
D | reset-tps380x.c | 22 struct gpio_desc *reset_gpio; member 43 gpiod_set_value_cansleep(tps380x->reset_gpio, 1); in tps380x_reset_assert() 53 gpiod_set_value_cansleep(tps380x->reset_gpio, 0); in tps380x_reset_deassert() 85 tps380x->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in tps380x_reset_probe() 86 if (IS_ERR(tps380x->reset_gpio)) in tps380x_reset_probe() 87 return dev_err_probe(dev, PTR_ERR(tps380x->reset_gpio), in tps380x_reset_probe()
|
/linux-6.1.9/drivers/net/ethernet/arc/ |
D | emac_mdio.c | 113 if (data->reset_gpio) { in arc_mdio_reset() 114 gpiod_set_value_cansleep(data->reset_gpio, 1); in arc_mdio_reset() 116 gpiod_set_value_cansleep(data->reset_gpio, 0); in arc_mdio_reset() 152 data->reset_gpio = devm_gpiod_get_optional(priv->dev, "phy-reset", in arc_mdio_probe() 154 if (IS_ERR(data->reset_gpio)) { in arc_mdio_probe() 156 return dev_err_probe(priv->dev, PTR_ERR(data->reset_gpio), in arc_mdio_probe()
|
/linux-6.1.9/arch/mips/pci/ |
D | pci-lantiq.c | 65 static struct gpio_desc *reset_gpio; variable 127 reset_gpio = devm_gpiod_get_optional(&pdev->dev, "reset", in ltq_pci_startup() 129 error = PTR_ERR_OR_ZERO(reset_gpio); in ltq_pci_startup() 134 gpiod_set_consumer_name(reset_gpio, "pci_reset"); in ltq_pci_startup() 196 if (reset_gpio) { in ltq_pci_startup() 197 gpiod_set_value_cansleep(reset_gpio, 1); in ltq_pci_startup() 200 gpiod_set_value_cansleep(reset_gpio, 0); in ltq_pci_startup()
|