Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A 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()
/openbmc/linux/drivers/gpio/
H A 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()
H A Dgpiolib-sysfs.c455 desc = gpio_to_desc(gpio); in export_store()
508 desc = gpio_to_desc(gpio); in unexport_store()
H A Dgpiolib-acpi.c795 desc = gpio_to_desc(agpio->pin_table[pin_index]); in acpi_populate_gpio_lookup()
H A Dgpiolib.c126 struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc() function
148 EXPORT_SYMBOL_GPL(gpio_to_desc);
/openbmc/linux/arch/sh/boards/mach-ap325rxa/
H A 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()
/openbmc/linux/include/linux/gpio/
H A 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
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-kernel/linux/linux-aspeed/
H A D0001-Add-NCSI-channel-selector.patch94 + desc = gpio_to_desc(chip->base + pin);
/openbmc/linux/drivers/leds/
H A Dleds-gpio.c250 gpiod = gpio_to_desc(template->gpio); in gpio_led_get_gpiod()
/openbmc/linux/sound/soc/
H A Dsoc-jack.c362 gpios[i].desc = gpio_to_desc(gpios[i].gpio); in snd_soc_jack_add_gpios()
/openbmc/linux/drivers/input/keyboard/
H A Dgpio_keys_polled.c323 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_polled_probe()
H A Dgpio_keys.c553 bdata->gpiod = gpio_to_desc(button->gpio); in gpio_keys_setup_key()
/openbmc/linux/drivers/media/pci/sta2x11/
H A Dsta2x11_vip.c894 struct gpio_desc *desc = gpio_to_desc(pin); in vip_gpio_reserve()
934 struct gpio_desc *desc = gpio_to_desc(pin); in vip_gpio_release()
/openbmc/linux/drivers/pinctrl/
H A 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()
/openbmc/linux/drivers/pcmcia/
H A Dsoc_common.c221 skt->stat[i].desc = gpio_to_desc(skt->stat[i].gpio); in soc_pcmcia_hw_init()
/openbmc/linux/Documentation/driver-api/gpio/
H A 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
/openbmc/linux/sound/soc/codecs/
H A Darizona-jack.c1336 info->micd_pol_gpio = gpio_to_desc(pdata->micd_pol_gpio); in arizona_jack_codec_dev_probe()
/openbmc/linux/drivers/usb/gadget/udc/
H A Dpxa27x_udc.c2370 udc->gpiod = gpio_to_desc(mach->gpio_pullup); in pxa_udc_probe()