Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/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()
504 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-v6.6/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-v6.6/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-v6.6/drivers/leds/
Dleds-gpio.c250 gpiod = gpio_to_desc(template->gpio); in gpio_led_get_gpiod()
/Linux-v6.6/sound/soc/
Dsoc-jack.c362 gpios[i].desc = gpio_to_desc(gpios[i].gpio); in snd_soc_jack_add_gpios()
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/pcmcia/
Dsoc_common.c221 skt->stat[i].desc = gpio_to_desc(skt->stat[i].gpio); in soc_pcmcia_hw_init()
/Linux-v6.6/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-v6.6/sound/soc/codecs/
Darizona-jack.c1336 info->micd_pol_gpio = gpio_to_desc(pdata->micd_pol_gpio); in arizona_jack_codec_dev_probe()
/Linux-v6.6/drivers/usb/gadget/udc/
Dpxa27x_udc.c2370 udc->gpiod = gpio_to_desc(mach->gpio_pullup); in pxa_udc_probe()