Home
last modified time | relevance | path

Searched refs:gpio_desc (Results 1 – 25 of 39) sorted by relevance

12

/drivers/gpio/
Dgpiolib.c50 static struct gpio_desc gpio_desc[ARCH_NR_GPIOS]; variable
58 static inline void desc_set_label(struct gpio_desc *d, const char *label) in desc_set_label()
66 struct gpio_desc *gpio_to_desc(unsigned gpio) in gpio_to_desc()
71 return &gpio_desc[gpio]; in gpio_to_desc()
78 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, in gpiochip_get_desc()
92 int desc_to_gpio(const struct gpio_desc *desc) in desc_to_gpio()
94 return desc - &gpio_desc[0]; in desc_to_gpio()
103 struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc) in gpiod_to_chip()
141 int gpiod_get_direction(const struct gpio_desc *desc) in gpiod_get_direction()
159 clear_bit(FLAG_IS_OUT, &((struct gpio_desc *)desc)->flags); in gpiod_get_direction()
[all …]
Ddevres.c26 struct gpio_desc **desc = res; in devm_gpiod_release()
33 struct gpio_desc **this = res, **gpio = data; in devm_gpiod_match()
48 struct gpio_desc *__must_check __devm_gpiod_get(struct device *dev, in __devm_gpiod_get()
66 struct gpio_desc *__must_check __devm_gpiod_get_optional(struct device *dev, in __devm_gpiod_get_optional()
85 struct gpio_desc *__must_check __devm_gpiod_get_index(struct device *dev, in __devm_gpiod_get_index()
90 struct gpio_desc **dr; in __devm_gpiod_get_index()
91 struct gpio_desc *desc; in __devm_gpiod_get_index()
93 dr = devres_alloc(devm_gpiod_release, sizeof(struct gpio_desc *), in __devm_gpiod_get_index()
123 struct gpio_desc *__must_check __devm_gpiod_get_index_optional(struct device *dev, in __devm_gpiod_get_index_optional()
128 struct gpio_desc *desc; in __devm_gpiod_get_index_optional()
[all …]
Dgpiolib.h37 struct gpio_desc *acpi_get_gpiod_by_index(struct device *dev, int index,
49 static inline struct gpio_desc *
57 struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np,
60 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, u16 hwnum);
65 struct gpio_desc { struct
88 int gpiod_request(struct gpio_desc *desc, const char *label); argument
89 void gpiod_free(struct gpio_desc *desc);
94 static int __maybe_unused gpio_chip_hwgpio(const struct gpio_desc *desc) in gpio_chip_hwgpio()
Dgpiolib-sysfs.c44 const struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_direction_show()
65 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_direction_store()
91 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_value_show()
108 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_value_store()
142 static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev, in gpio_setup_irq()
235 const struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_edge_show()
262 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_edge_store()
289 static int sysfs_set_active_low(struct gpio_desc *desc, struct device *dev, in sysfs_set_active_low()
317 const struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_active_low_show()
336 struct gpio_desc *desc = dev_get_drvdata(dev); in gpio_active_low_store()
[all …]
Dgpiolib-acpi.c28 struct gpio_desc *desc;
34 struct gpio_desc *desc;
67 static struct gpio_desc *acpi_get_gpiod(char *path, int pin) in acpi_get_gpiod()
119 struct gpio_desc *desc; in acpi_gpiochip_request_interrupt()
277 struct gpio_desc *desc; in acpi_gpiochip_free_interrupts()
293 struct gpio_desc *desc;
335 struct gpio_desc *acpi_get_gpiod_by_index(struct device *dev, int index, in acpi_get_gpiod_by_index()
406 struct gpio_desc *desc; in acpi_gpio_adr_space_handler()
Dgpiolib-of.c33 struct gpio_desc *out_gpio;
73 struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, in of_get_named_gpiod_flags()
109 struct gpio_desc *desc; in of_get_named_gpio_flags()
Dgpiolib-legacy.c22 struct gpio_desc *desc; in gpio_request_one()
/drivers/video/fbdev/omap2/displays-new/
Dpanel-sharp-ls037v7dw01.c32 struct gpio_desc *resb_gpio; /* low = reset active min 20 us */
33 struct gpio_desc *ini_gpio; /* high = power on */
34 struct gpio_desc *mo_gpio; /* low = 480x640, high = 240x320 */
35 struct gpio_desc *lr_gpio; /* high = conventional horizontal scanning */
36 struct gpio_desc *ud_gpio; /* high = conventional vertical scanning */
201 char *desc, struct gpio_desc **gpiod) in sharp_ls_get_gpio()
203 struct gpio_desc *gd; in sharp_ls_get_gpio()
268 const char *desc, struct gpio_desc **gpiod) in sharp_ls_get_gpio_of()
270 struct gpio_desc *gd; in sharp_ls_get_gpio_of()
Dpanel-dpi.c34 struct gpio_desc *enable_gpio;
210 struct gpio_desc *gpio; in panel_dpi_probe_of()
Dpanel-lgphilips-lb035q02.c56 struct gpio_desc *enable_gpio;
286 struct gpio_desc *gpio; in lb035q02_probe_of()
/drivers/tty/serial/
Dserial_mctrl_gpio.h59 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
91 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, in mctrl_gpio_to_gpiod()
Dserial_mctrl_gpio.c26 struct gpio_desc *gpio[UART_GPIO_MAX];
59 struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, in mctrl_gpio_to_gpiod()
/drivers/mmc/core/
Dslot-gpio.c22 struct gpio_desc *ro_gpio;
23 struct gpio_desc *cd_gpio;
299 struct gpio_desc *desc; in mmc_gpiod_request_cd()
352 struct gpio_desc *desc; in mmc_gpiod_request_ro()
/drivers/clk/
Dclk-gpio-gate.c71 const char *parent_name, struct gpio_desc *gpiod, in clk_register_gpio_gate()
152 struct gpio_desc *gpiod; in of_clk_gpio_gate_delayed_register_get()
/drivers/power/reset/
Dgpio-poweroff.c26 static struct gpio_desc *reset_gpio;
Dgpio-restart.c27 struct gpio_desc *reset_gpio;
Dltc2952-poweroff.c82 struct gpio_desc *gpio[3];
/drivers/input/misc/
Dgpio-beeper.c23 struct gpio_desc *desc;
Dsoc_button_array.c55 struct gpio_desc *desc; in soc_button_lookup_gpio()
/drivers/gpu/drm/tilcdc/
Dtilcdc_panel.c33 struct gpio_desc *enable_gpio;
60 struct gpio_desc *gpio = panel_encoder->mod->enable_gpio; in panel_encoder_dpms()
/drivers/mfd/
Dintel_soc_pmic_core.c36 struct gpio_desc *desc; in intel_soc_pmic_find_gpio_irq()
/drivers/input/keyboard/
Dclps711x-keypad.c26 struct gpio_desc *desc;
/drivers/i2c/muxes/
Di2c-mux-pca954x.c189 struct gpio_desc *gpio; in pca954x_probe()
/drivers/hsi/clients/
Dnokia-modem.c38 struct gpio_desc *gpio;
/drivers/gpu/drm/panel/
Dpanel-ld9040.c95 struct gpio_desc *reset_gpio;

12