Home
last modified time | relevance | path

Searched refs:gpio_to_desc (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/include/linux/
Dgpio.h86 return gpiod_direction_input(gpio_to_desc(gpio)); in gpio_direction_input()
90 return gpiod_direction_output_raw(gpio_to_desc(gpio), value); in gpio_direction_output()
95 return gpiod_get_raw_value_cansleep(gpio_to_desc(gpio)); in gpio_get_value_cansleep()
99 return gpiod_set_raw_value_cansleep(gpio_to_desc(gpio), value); in gpio_set_value_cansleep()
104 return gpiod_get_raw_value(gpio_to_desc(gpio)); in gpio_get_value()
108 return gpiod_set_raw_value(gpio_to_desc(gpio), value); in gpio_set_value()
113 return gpiod_to_irq(gpio_to_desc(gpio)); in gpio_to_irq()
/linux-6.6.21/drivers/gpio/
Dgpiolib-legacy.c11 gpiod_free(gpio_to_desc(gpio)); in gpio_free()
26 desc = gpio_to_desc(gpio); in gpio_request_one()
58 struct gpio_desc *desc = gpio_to_desc(gpio); in gpio_request()
Dgpiolib-sysfs.c454 desc = gpio_to_desc(gpio); in export_store()
507 desc = gpio_to_desc(gpio); in unexport_store()
Dgpiolib-acpi.c778 desc = gpio_to_desc(agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
Dgpiolib.c125 struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc() function
147 EXPORT_SYMBOL_GPL(gpio_to_desc);
/linux-6.6.21/arch/sh/boards/mach-ap325rxa/
Dsetup.c415 gpiod_export(gpio_to_desc(GPIO_PTX5), 0); in ap325rxa_devices_setup()
419 gpiod_export(gpio_to_desc(GPIO_PTX4), 0); in ap325rxa_devices_setup()
424 gpiod_export(gpio_to_desc(GPIO_PTF7), 0); in ap325rxa_devices_setup()
/linux-6.6.21/include/linux/gpio/
Dconsumer.h172 struct gpio_desc *gpio_to_desc(unsigned gpio);
538 static inline struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc() function
/linux-6.6.21/drivers/leds/
Dleds-gpio.c250 gpiod = gpio_to_desc(template->gpio); in gpio_led_get_gpiod()
/linux-6.6.21/sound/soc/
Dsoc-jack.c362 gpios[i].desc = gpio_to_desc(gpios[i].gpio); in snd_soc_jack_add_gpios()
/linux-6.6.21/drivers/input/keyboard/
Dgpio_keys_polled.c325 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_polled_probe()
Dgpio_keys.c553 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_setup_key()
/linux-6.6.21/drivers/media/pci/sta2x11/
Dsta2x11_vip.c893 struct gpio_desc *desc = gpio_to_desc(pin); in vip_gpio_reserve()
933 struct gpio_desc *desc = gpio_to_desc(pin); in vip_gpio_release()
/linux-6.6.21/drivers/pinctrl/
Dcore.c340 struct gpio_chip *chip = gpiod_to_chip(gpio_to_desc(gpio)); in pinctrl_ready_for_gpio_range()
1679 chip = gpiod_to_chip(gpio_to_desc(gpio_num)); in pinctrl_pins_show()
/linux-6.6.21/drivers/pcmcia/
Dsoc_common.c221 skt->stat[i].desc = gpio_to_desc(skt->stat[i].gpio); in soc_pcmcia_hw_init()
/linux-6.6.21/Documentation/driver-api/gpio/
Dconsumer.rst459 struct gpio_desc *gpio_to_desc(unsigned gpio)
463 All the same, a GPIO number passed to gpio_to_desc() must first be properly
/linux-6.6.21/sound/soc/codecs/
Darizona-jack.c1336 info->micd_pol_gpio = gpio_to_desc(pdata->micd_pol_gpio); in arizona_jack_codec_dev_probe()
/linux-6.6.21/drivers/usb/gadget/udc/
Dpxa27x_udc.c2370 udc->gpiod = gpio_to_desc(mach->gpio_pullup); in pxa_udc_probe()