Home
last modified time | relevance | path

Searched refs:wp_gpio (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/iio/potentiometer/
Dx9250.c28 struct gpio_desc *wp_gpio; member
127 gpiod_set_value_cansleep(x9250->wp_gpio, 0); in x9250_write_raw()
129 gpiod_set_value_cansleep(x9250->wp_gpio, 1); in x9250_write_raw()
180 x9250->wp_gpio = devm_gpiod_get_optional(&spi->dev, "wp", GPIOD_OUT_LOW); in x9250_probe()
181 if (IS_ERR(x9250->wp_gpio)) in x9250_probe()
182 return dev_err_probe(&spi->dev, PTR_ERR(x9250->wp_gpio), in x9250_probe()
/linux-6.12.1/drivers/mtd/nand/raw/
Dlpc32xx_mlc.c179 struct gpio_desc *wp_gpio; member
374 if (host->wp_gpio) in lpc32xx_wp_enable()
375 gpiod_set_value_cansleep(host->wp_gpio, 1); in lpc32xx_wp_enable()
383 if (host->wp_gpio) in lpc32xx_wp_disable()
384 gpiod_set_value_cansleep(host->wp_gpio, 0); in lpc32xx_wp_disable()
720 host->wp_gpio = gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in lpc32xx_nand_probe()
721 res = PTR_ERR_OR_ZERO(host->wp_gpio); in lpc32xx_nand_probe()
729 gpiod_set_consumer_name(host->wp_gpio, "NAND WP"); in lpc32xx_nand_probe()
826 gpiod_put(host->wp_gpio); in lpc32xx_nand_probe()
852 gpiod_put(host->wp_gpio); in lpc32xx_nand_remove()
Dlpc32xx_slc.c218 struct gpio_desc *wp_gpio; member
311 if (host->wp_gpio) in lpc32xx_wp_enable()
312 gpiod_set_value_cansleep(host->wp_gpio, 1); in lpc32xx_wp_enable()
320 if (host->wp_gpio) in lpc32xx_wp_disable()
321 gpiod_set_value_cansleep(host->wp_gpio, 0); in lpc32xx_wp_disable()
857 host->wp_gpio = gpiod_get_optional(&pdev->dev, NULL, GPIOD_OUT_LOW); in lpc32xx_nand_probe()
858 res = PTR_ERR_OR_ZERO(host->wp_gpio); in lpc32xx_nand_probe()
866 gpiod_set_consumer_name(host->wp_gpio, "NAND WP"); in lpc32xx_nand_probe()
Dstm32_fmc2_nand.c236 struct gpio_desc *wp_gpio; member
1787 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_enable()
1788 gpiod_set_value(nand->wp_gpio, 1); in stm32_fmc2_nfc_wp_enable()
1793 if (nand->wp_gpio) in stm32_fmc2_nfc_wp_disable()
1794 gpiod_set_value(nand->wp_gpio, 0); in stm32_fmc2_nfc_wp_disable()
1835 nand->wp_gpio = devm_fwnode_gpiod_get(nfc->dev, of_fwnode_handle(dn), in stm32_fmc2_nfc_parse_child()
1837 if (IS_ERR(nand->wp_gpio)) { in stm32_fmc2_nfc_parse_child()
1838 ret = PTR_ERR(nand->wp_gpio); in stm32_fmc2_nfc_parse_child()
1843 nand->wp_gpio = NULL; in stm32_fmc2_nfc_parse_child()
Dtegra_nand.c184 struct gpio_desc *wp_gpio; member
1105 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in tegra_nand_chips_init()
1107 if (IS_ERR(nand->wp_gpio)) { in tegra_nand_chips_init()
1108 ret = PTR_ERR(nand->wp_gpio); in tegra_nand_chips_init()
/linux-6.12.1/drivers/mtd/nand/raw/ingenic/
Dingenic_nand_drv.c57 struct gpio_desc *wp_gpio; member
383 nand->wp_gpio = devm_gpiod_get_optional(dev, "wp", GPIOD_OUT_LOW); in ingenic_nand_init_chip()
385 if (IS_ERR(nand->wp_gpio)) { in ingenic_nand_init_chip()
386 ret = PTR_ERR(nand->wp_gpio); in ingenic_nand_init_chip()
/linux-6.12.1/drivers/nvmem/
Dinternals.h32 struct gpio_desc *wp_gpio; member
Dcore.c73 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write()
75 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in __nvmem_reg_write()
529 gpiod_put(nvmem->wp_gpio); in nvmem_release()
942 nvmem->wp_gpio = gpiod_get_optional(config->dev, "wp", in nvmem_register()
944 if (IS_ERR(nvmem->wp_gpio)) { in nvmem_register()
945 rval = PTR_ERR(nvmem->wp_gpio); in nvmem_register()
946 nvmem->wp_gpio = NULL; in nvmem_register()