/linux-6.6.21/drivers/power/reset/ |
D | gpio-poweroff.c | 24 static struct gpio_desc *reset_gpio; variable 31 BUG_ON(!reset_gpio); in gpio_poweroff_do_poweroff() 34 gpiod_direction_output(reset_gpio, 1); in gpio_poweroff_do_poweroff() 38 gpiod_set_value_cansleep(reset_gpio, 0); in gpio_poweroff_do_poweroff() 42 gpiod_set_value_cansleep(reset_gpio, 1); in gpio_poweroff_do_poweroff() 74 reset_gpio = devm_gpiod_get(&pdev->dev, NULL, flags); in gpio_poweroff_probe() 75 if (IS_ERR(reset_gpio)) in gpio_poweroff_probe() 76 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.6.21/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 39 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on() 50 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_sd8787_power_off() 60 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_wilc1000_pre_power_on() 67 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_wilc1000_power_off() 104 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in mmc_pwrseq_sd8787_probe() 105 if (IS_ERR(pwrseq->reset_gpio)) in mmc_pwrseq_sd8787_probe() 106 return PTR_ERR(pwrseq->reset_gpio); in mmc_pwrseq_sd8787_probe()
|
/linux-6.6.21/drivers/gpu/drm/panel/ |
D | panel-sharp-ls043t1le01.c | 28 struct gpio_desc *reset_gpio; member 112 if (sharp_nt->reset_gpio) in sharp_nt_panel_unprepare() 113 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare() 134 if (sharp_nt->reset_gpio) { in sharp_nt_panel_prepare() 135 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 137 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 139 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare() 161 if (sharp_nt->reset_gpio) in sharp_nt_panel_prepare() 162 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare() 216 sharp_nt->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in sharp_nt_panel_add() [all …]
|
D | panel-samsung-s6e88a0-ams452ef01.c | 20 struct gpio_desc *reset_gpio; member 33 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset() 35 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_reset() 37 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset() 132 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_prepare() 155 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_unprepare() 220 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in s6e88a0_ams452ef01_probe() 221 if (IS_ERR(ctx->reset_gpio)) { in s6e88a0_ams452ef01_probe() 222 ret = PTR_ERR(ctx->reset_gpio); in s6e88a0_ams452ef01_probe()
|
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-jdi-fhd-r63452.c | 23 struct gpio_desc *reset_gpio; member 34 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset() 36 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_reset() 38 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset() 168 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_prepare() 189 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_unprepare() 244 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in jdi_fhd_r63452_probe() 245 if (IS_ERR(ctx->reset_gpio)) in jdi_fhd_r63452_probe() 246 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 37 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset() 39 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_reset() 41 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset() 152 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_prepare() 180 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_unprepare() 253 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sharp_ls060_probe() 254 if (IS_ERR(ctx->reset_gpio)) in sharp_ls060_probe() 255 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-visionox-vtdr6130.c | 21 struct gpio_desc *reset_gpio; member 33 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in visionox_vtdr6130_reset() 35 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in visionox_vtdr6130_reset() 37 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in visionox_vtdr6130_reset() 173 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in visionox_vtdr6130_prepare() 195 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in visionox_vtdr6130_unprepare() 287 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in visionox_vtdr6130_probe() 288 if (IS_ERR(ctx->reset_gpio)) in visionox_vtdr6130_probe() 289 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in visionox_vtdr6130_probe()
|
D | panel-auo-a030jtn01.c | 47 struct gpio_desc *reset_gpio; member 71 gpiod_set_value_cansleep(priv->reset_gpio, 1); in a030jtn01_prepare() 73 gpiod_set_value_cansleep(priv->reset_gpio, 0); in a030jtn01_prepare() 99 gpiod_set_value_cansleep(priv->reset_gpio, 1); in a030jtn01_prepare() 108 gpiod_set_value_cansleep(priv->reset_gpio, 1); in a030jtn01_unprepare() 222 priv->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in a030jtn01_probe() 223 if (IS_ERR(priv->reset_gpio)) in a030jtn01_probe() 224 return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), "Failed to get reset GPIO"); in a030jtn01_probe()
|
/linux-6.6.21/sound/arm/ |
D | pxa2xx-ac97-lib.c | 33 static int reset_gpio; variable 147 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x() 150 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x() 337 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe() 340 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe() 343 reset_gpio = 113; in pxa2xx_ac97_hw_probe() 349 pdata->reset_gpio); in pxa2xx_ac97_hw_probe() 355 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe() 357 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe() 358 pdata->reset_gpio = -1; in pxa2xx_ac97_hw_probe() [all …]
|
/linux-6.6.21/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.6.21/arch/arm/mach-pxa/ |
D | reset.c | 17 static int reset_gpio = -1; variable 41 reset_gpio = gpio; in init_gpio_reset() 53 BUG_ON(reset_gpio == -1); in do_gpio_reset() 56 gpio_direction_output(reset_gpio, 0); in do_gpio_reset() 59 gpio_set_value(reset_gpio, 1); in do_gpio_reset() 62 gpio_set_value(reset_gpio, 0); in do_gpio_reset()
|
/linux-6.6.21/drivers/mfd/ |
D | lp87565.c | 67 lp87565->reset_gpio = devm_gpiod_get_optional(lp87565->dev, "reset", in lp87565_probe() 69 if (IS_ERR(lp87565->reset_gpio)) { in lp87565_probe() 70 ret = PTR_ERR(lp87565->reset_gpio); in lp87565_probe() 75 if (lp87565->reset_gpio) { in lp87565_probe() 76 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_probe() 80 gpiod_set_value_cansleep(lp87565->reset_gpio, 0); in lp87565_probe() 108 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_shutdown()
|
/linux-6.6.21/drivers/hid/i2c-hid/ |
D | i2c-hid-of-goodix.c | 30 struct gpio_desc *reset_gpio; member 47 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in goodix_i2c_hid_power_up() 60 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 0); in goodix_i2c_hid_power_up() 73 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in goodix_i2c_hid_power_down() 92 ihid_goodix->reset_gpio = in i2c_hid_of_goodix_probe() 94 if (IS_ERR(ihid_goodix->reset_gpio)) in i2c_hid_of_goodix_probe() 95 return PTR_ERR(ihid_goodix->reset_gpio); in i2c_hid_of_goodix_probe()
|
D | i2c-hid-of.c | 39 struct gpio_desc *reset_gpio; member 61 gpiod_set_value_cansleep(ihid_of->reset_gpio, 0); in i2c_hid_of_power_up() 72 gpiod_set_value_cansleep(ihid_of->reset_gpio, 1); in i2c_hid_of_power_down() 117 ihid_of->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in i2c_hid_of_probe() 118 if (IS_ERR(ihid_of->reset_gpio)) in i2c_hid_of_probe() 119 return PTR_ERR(ihid_of->reset_gpio); in i2c_hid_of_probe()
|
D | i2c-hid-of-elan.c | 33 struct gpio_desc *reset_gpio; member 58 gpiod_set_value_cansleep(ihid_elan->reset_gpio, 0); in elan_i2c_hid_power_up() 70 gpiod_set_value_cansleep(ihid_elan->reset_gpio, 1); in elan_i2c_hid_power_down() 91 ihid_elan->reset_gpio = in i2c_hid_of_elan_probe() 93 if (IS_ERR(ihid_elan->reset_gpio)) in i2c_hid_of_elan_probe() 94 return PTR_ERR(ihid_elan->reset_gpio); in i2c_hid_of_elan_probe()
|
/linux-6.6.21/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.6.21/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.6.21/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()
|