Home
last modified time | relevance | path

Searched refs:gpio_chip (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/drivers/gpio/
Dgpio-tps6586x.c26 struct gpio_chip gpio_chip; member
30 static int tps6586x_gpio_get(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_get()
43 static void tps6586x_gpio_set(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_set()
52 static int tps6586x_gpio_output(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_output()
67 static int tps6586x_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_to_irq()
88 tps6586x_gpio->gpio_chip.owner = THIS_MODULE; in tps6586x_gpio_probe()
89 tps6586x_gpio->gpio_chip.label = pdev->name; in tps6586x_gpio_probe()
90 tps6586x_gpio->gpio_chip.parent = &pdev->dev; in tps6586x_gpio_probe()
91 tps6586x_gpio->gpio_chip.ngpio = 4; in tps6586x_gpio_probe()
92 tps6586x_gpio->gpio_chip.can_sleep = true; in tps6586x_gpio_probe()
[all …]
Dgpio-rc5t583.c20 struct gpio_chip gpio_chip; member
24 static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_get()
38 static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in rc5t583_gpio_set()
48 static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_dir_input()
62 static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset, in rc5t583_gpio_dir_output()
78 static int rc5t583_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_to_irq()
88 static void rc5t583_gpio_free(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_free()
107 rc5t583_gpio->gpio_chip.label = "gpio-rc5t583", in rc5t583_gpio_probe()
108 rc5t583_gpio->gpio_chip.owner = THIS_MODULE, in rc5t583_gpio_probe()
109 rc5t583_gpio->gpio_chip.free = rc5t583_gpio_free, in rc5t583_gpio_probe()
[all …]
Dgpio-tps65910.c21 struct gpio_chip gpio_chip; member
25 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_get()
39 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_set()
53 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65910_gpio_output()
66 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65910_gpio_input()
121 tps65910_gpio->gpio_chip.owner = THIS_MODULE; in tps65910_gpio_probe()
122 tps65910_gpio->gpio_chip.label = tps65910->i2c_client->name; in tps65910_gpio_probe()
126 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
129 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe()
134 tps65910_gpio->gpio_chip.can_sleep = true; in tps65910_gpio_probe()
[all …]
Dgpio-rcar.c46 struct gpio_chip gpio_chip; member
97 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpio_rcar_irq_disable()
105 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpio_rcar_irq_enable()
148 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpio_rcar_irq_set_type()
185 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in gpio_rcar_irq_set_wake()
216 generic_handle_domain_irq(p->gpio_chip.irq.domain, in gpio_rcar_irq_handler()
224 static void gpio_rcar_config_general_input_output_mode(struct gpio_chip *chip, in gpio_rcar_config_general_input_output_mode()
254 static int gpio_rcar_request(struct gpio_chip *chip, unsigned offset) in gpio_rcar_request()
272 static void gpio_rcar_free(struct gpio_chip *chip, unsigned offset) in gpio_rcar_free()
287 static int gpio_rcar_get_direction(struct gpio_chip *chip, unsigned int offset) in gpio_rcar_get_direction()
[all …]
Dgpio-em.c28 struct gpio_chip gpio_chip; member
94 ret = gpiochip_lock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); in em_gio_irq_reqres()
96 dev_err(p->gpio_chip.parent, in em_gio_irq_reqres()
108 gpiochip_unlock_as_irq(&p->gpio_chip, irqd_to_hwirq(d)); in em_gio_irq_relres()
183 static inline struct em_gio_priv *gpio_to_priv(struct gpio_chip *chip) in gpio_to_priv()
188 static int em_gio_direction_input(struct gpio_chip *chip, unsigned offset) in em_gio_direction_input()
194 static int em_gio_get(struct gpio_chip *chip, unsigned offset) in em_gio_get()
199 static void __em_gio_set(struct gpio_chip *chip, unsigned int reg, in __em_gio_set()
207 static void em_gio_set(struct gpio_chip *chip, unsigned offset, int value) in em_gio_set()
216 static int em_gio_direction_output(struct gpio_chip *chip, unsigned offset, in em_gio_direction_output()
[all …]
Dgpio-moxtet.c30 struct gpio_chip gpio_chip; member
34 static int moxtet_gpio_get_value(struct gpio_chip *gc, unsigned int offset) in moxtet_gpio_get_value()
55 static void moxtet_gpio_set_value(struct gpio_chip *gc, unsigned int offset, in moxtet_gpio_set_value()
75 static int moxtet_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in moxtet_gpio_get_direction()
88 static int moxtet_gpio_direction_input(struct gpio_chip *gc, in moxtet_gpio_direction_input()
101 static int moxtet_gpio_direction_output(struct gpio_chip *gc, in moxtet_gpio_direction_output()
135 chip->gpio_chip.parent = dev; in moxtet_gpio_probe()
140 chip->gpio_chip.label = dev_name(dev); in moxtet_gpio_probe()
141 chip->gpio_chip.get_direction = moxtet_gpio_get_direction; in moxtet_gpio_probe()
142 chip->gpio_chip.direction_input = moxtet_gpio_direction_input; in moxtet_gpio_probe()
[all …]
Dgpio-madera.c20 struct gpio_chip gpio_chip; member
23 static int madera_gpio_get_direction(struct gpio_chip *chip, in madera_gpio_get_direction()
43 static int madera_gpio_direction_in(struct gpio_chip *chip, unsigned int offset) in madera_gpio_direction_in()
54 static int madera_gpio_get(struct gpio_chip *chip, unsigned int offset) in madera_gpio_get()
70 static int madera_gpio_direction_out(struct gpio_chip *chip, in madera_gpio_direction_out()
90 static void madera_gpio_set(struct gpio_chip *chip, unsigned int offset, in madera_gpio_set()
109 static const struct gpio_chip madera_gpio_chip = {
138 madera_gpio->gpio_chip = madera_gpio_chip; in madera_gpio_probe()
139 madera_gpio->gpio_chip.parent = pdev->dev.parent; in madera_gpio_probe()
143 madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS; in madera_gpio_probe()
[all …]
Dgpio-74x164.c21 struct gpio_chip gpio_chip; member
37 return spi_write(to_spi_device(chip->gpio_chip.parent), chip->buffer, in __gen_74x164_write_config()
41 static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset) in gen_74x164_get_value()
55 static void gen_74x164_set_value(struct gpio_chip *gc, in gen_74x164_set_value()
72 static void gen_74x164_set_multiple(struct gpio_chip *gc, unsigned long *mask, in gen_74x164_set_multiple()
93 static int gen_74x164_direction_output(struct gpio_chip *gc, in gen_74x164_direction_output()
134 chip->gpio_chip.label = spi->modalias; in gen_74x164_probe()
135 chip->gpio_chip.direction_output = gen_74x164_direction_output; in gen_74x164_probe()
136 chip->gpio_chip.get = gen_74x164_get_value; in gen_74x164_probe()
137 chip->gpio_chip.set = gen_74x164_set_value; in gen_74x164_probe()
[all …]
Dgpio-palmas.c19 struct gpio_chip gpio_chip; member
27 static int palmas_gpio_get(struct gpio_chip *gc, unsigned offset) in palmas_gpio_get()
58 static void palmas_gpio_set(struct gpio_chip *gc, unsigned offset, in palmas_gpio_set()
80 static int palmas_gpio_output(struct gpio_chip *gc, unsigned offset, in palmas_gpio_output()
103 static int palmas_gpio_input(struct gpio_chip *gc, unsigned offset) in palmas_gpio_input()
121 static int palmas_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in palmas_gpio_to_irq()
163 palmas_gpio->gpio_chip.owner = THIS_MODULE; in palmas_gpio_probe()
164 palmas_gpio->gpio_chip.label = dev_name(&pdev->dev); in palmas_gpio_probe()
165 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio; in palmas_gpio_probe()
166 palmas_gpio->gpio_chip.can_sleep = true; in palmas_gpio_probe()
[all …]
Dgpio-max77620.c18 struct gpio_chip gpio_chip; member
44 virq = irq_find_mapping(gpio->gpio_chip.irq.domain, offset); in max77620_gpio_irqhandler()
53 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); in max77620_gpio_irq_mask()
61 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); in max77620_gpio_irq_unmask()
69 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); in max77620_gpio_set_irq_type()
98 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); in max77620_gpio_bus_lock()
106 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); in max77620_gpio_bus_sync_unlock()
132 static int max77620_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_dir_input()
146 static int max77620_gpio_get(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_get()
164 static int max77620_gpio_dir_output(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_dir_output()
[all …]
Dgpio-wm8350.c24 struct gpio_chip gpio_chip; member
27 static int wm8350_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8350_gpio_direction_in()
36 static int wm8350_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8350_gpio_get()
52 static void wm8350_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8350_gpio_set()
63 static int wm8350_gpio_direction_out(struct gpio_chip *chip, in wm8350_gpio_direction_out()
81 static int wm8350_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm8350_gpio_to_irq()
92 static const struct gpio_chip template_chip = {
115 wm8350_gpio->gpio_chip = template_chip; in wm8350_gpio_probe()
116 wm8350_gpio->gpio_chip.ngpio = 13; in wm8350_gpio_probe()
117 wm8350_gpio->gpio_chip.parent = &pdev->dev; in wm8350_gpio_probe()
[all …]
Dgpio-exar.c29 struct gpio_chip gpio_chip; member
56 static int exar_get_direction(struct gpio_chip *chip, unsigned int offset) in exar_get_direction()
68 static int exar_get_value(struct gpio_chip *chip, unsigned int offset) in exar_get_value()
77 static void exar_set_value(struct gpio_chip *chip, unsigned int offset, in exar_set_value()
90 static int exar_direction_output(struct gpio_chip *chip, unsigned int offset, in exar_direction_output()
103 static int exar_direction_input(struct gpio_chip *chip, unsigned int offset) in exar_direction_input()
173 exar_gpio->gpio_chip.label = exar_gpio->name; in gpio_exar_probe()
174 exar_gpio->gpio_chip.parent = dev; in gpio_exar_probe()
175 exar_gpio->gpio_chip.direction_output = exar_direction_output; in gpio_exar_probe()
176 exar_gpio->gpio_chip.direction_input = exar_direction_input; in gpio_exar_probe()
[all …]
Dgpio-wm8994.c27 struct gpio_chip gpio_chip; member
30 static int wm8994_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_request()
53 static int wm8994_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_direction_in()
62 static int wm8994_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_get()
78 static int wm8994_gpio_direction_out(struct gpio_chip *chip, in wm8994_gpio_direction_out()
91 static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8994_gpio_set()
102 static int wm8994_gpio_set_config(struct gpio_chip *chip, unsigned int offset, in wm8994_gpio_set_config()
123 static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_to_irq()
187 static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm8994_gpio_dbg_show()
247 static const struct gpio_chip template_chip = {
[all …]
Dgpiolib-of.h6 struct gpio_chip;
14 int of_gpiochip_add(struct gpio_chip *gc);
15 void of_gpiochip_remove(struct gpio_chip *gc);
17 bool of_gpio_need_valid_mask(const struct gpio_chip *gc);
18 void of_gpio_dev_init(struct gpio_chip *gc, struct gpio_device *gdev);
27 static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; } in of_gpiochip_add()
28 static inline void of_gpiochip_remove(struct gpio_chip *gc) { } in of_gpiochip_remove()
33 static inline bool of_gpio_need_valid_mask(const struct gpio_chip *gc) in of_gpio_need_valid_mask()
37 static inline void of_gpio_dev_init(struct gpio_chip *gc, in of_gpio_dev_init()
Dgpio-wm831x.c26 struct gpio_chip gpio_chip; member
29 static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_direction_in()
43 static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_get()
59 static void wm831x_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm831x_gpio_set()
68 static int wm831x_gpio_direction_out(struct gpio_chip *chip, in wm831x_gpio_direction_out()
91 static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_to_irq()
129 static int wm831x_set_config(struct gpio_chip *chip, unsigned int offset, in wm831x_set_config()
154 static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm831x_gpio_dbg_show()
246 static const struct gpio_chip template_chip = {
271 wm831x_gpio->gpio_chip = template_chip; in wm831x_gpio_probe()
[all …]
Dgpio-ts5500.c34 struct gpio_chip gpio_chip; member
198 static int ts5500_gpio_input(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_input()
217 static int ts5500_gpio_get(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_get()
225 static int ts5500_gpio_output(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_output()
247 static void ts5500_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in ts5500_gpio_set()
261 static int ts5500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in ts5500_gpio_to_irq()
309 dev_err(priv->gpio_chip.parent, "invalid hwirq %d\n", in ts5500_disable_irq()
338 priv->gpio_chip.owner = THIS_MODULE; in ts5500_dio_probe()
339 priv->gpio_chip.label = name; in ts5500_dio_probe()
340 priv->gpio_chip.parent = dev; in ts5500_dio_probe()
[all …]
Dgpio-arizona.c24 struct gpio_chip gpio_chip; member
27 static int arizona_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in arizona_gpio_direction_in()
50 static int arizona_gpio_get(struct gpio_chip *chip, unsigned offset) in arizona_gpio_get()
96 static int arizona_gpio_direction_out(struct gpio_chip *chip, in arizona_gpio_direction_out()
125 static void arizona_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in arizona_gpio_set()
137 static const struct gpio_chip template_chip = {
160 arizona_gpio->gpio_chip = template_chip; in arizona_gpio_probe()
161 arizona_gpio->gpio_chip.parent = &pdev->dev; in arizona_gpio_probe()
163 arizona_gpio->gpio_chip.of_node = arizona->dev->of_node; in arizona_gpio_probe()
173 arizona_gpio->gpio_chip.ngpio = 5; in arizona_gpio_probe()
[all …]
Dgpiolib-acpi.h36 void acpi_gpiochip_add(struct gpio_chip *chip);
37 void acpi_gpiochip_remove(struct gpio_chip *chip);
39 void acpi_gpio_dev_init(struct gpio_chip *gc, struct gpio_device *gdev);
41 void acpi_gpiochip_request_interrupts(struct gpio_chip *chip);
42 void acpi_gpiochip_free_interrupts(struct gpio_chip *chip);
60 static inline void acpi_gpiochip_add(struct gpio_chip *chip) { } in acpi_gpiochip_add()
61 static inline void acpi_gpiochip_remove(struct gpio_chip *chip) { } in acpi_gpiochip_remove()
63 static inline void acpi_gpio_dev_init(struct gpio_chip *gc, struct gpio_device *gdev) { } in acpi_gpio_dev_init()
66 acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { } in acpi_gpiochip_request_interrupts()
69 acpi_gpiochip_free_interrupts(struct gpio_chip *chip) { } in acpi_gpiochip_free_interrupts()
Dgpio-ts4900.c35 struct gpio_chip gpio_chip; member
39 static int ts4900_gpio_get_direction(struct gpio_chip *chip, in ts4900_gpio_get_direction()
53 static int ts4900_gpio_direction_input(struct gpio_chip *chip, in ts4900_gpio_direction_input()
64 static int ts4900_gpio_direction_output(struct gpio_chip *chip, in ts4900_gpio_direction_output()
94 static int ts4900_gpio_get(struct gpio_chip *chip, unsigned int offset) in ts4900_gpio_get()
104 static void ts4900_gpio_set(struct gpio_chip *chip, unsigned int offset, in ts4900_gpio_set()
121 static const struct gpio_chip template_chip = {
159 priv->gpio_chip = template_chip; in ts4900_gpio_probe()
160 priv->gpio_chip.label = "ts4900-gpio"; in ts4900_gpio_probe()
161 priv->gpio_chip.ngpio = ngpio; in ts4900_gpio_probe()
[all …]
Dgpio-tps65218.c20 struct gpio_chip gpio_chip; member
23 static int tps65218_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_get()
37 static void tps65218_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65218_gpio_set()
54 static int tps65218_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65218_gpio_output()
62 static int tps65218_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_input()
67 static int tps65218_gpio_request(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_request()
138 static int tps65218_gpio_set_config(struct gpio_chip *gc, unsigned offset, in tps65218_gpio_set_config()
172 static const struct gpio_chip template_chip = {
197 tps65218_gpio->gpio_chip = template_chip; in tps65218_gpio_probe()
198 tps65218_gpio->gpio_chip.parent = &pdev->dev; in tps65218_gpio_probe()
[all …]
Dgpio-tps65912.c19 struct gpio_chip gpio_chip; member
23 static int tps65912_gpio_get_direction(struct gpio_chip *gc, in tps65912_gpio_get_direction()
40 static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_direction_input()
48 static int tps65912_gpio_direction_output(struct gpio_chip *gc, in tps65912_gpio_direction_output()
61 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_get()
76 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_set()
85 static const struct gpio_chip template_chip = {
108 gpio->gpio_chip = template_chip; in tps65912_gpio_probe()
109 gpio->gpio_chip.parent = tps->dev; in tps65912_gpio_probe()
111 return devm_gpiochip_add_data(&pdev->dev, &gpio->gpio_chip, gpio); in tps65912_gpio_probe()
/drivers/pinctrl/
Dpinctrl-stmfx.c85 struct gpio_chip gpio_chip; member
103 static int stmfx_gpio_get(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_get()
116 static void stmfx_gpio_set(struct gpio_chip *gc, unsigned int offset, int value) in stmfx_gpio_set()
126 static int stmfx_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_get_direction()
147 static int stmfx_gpio_direction_input(struct gpio_chip *gc, unsigned int offset) in stmfx_gpio_direction_input()
156 static int stmfx_gpio_direction_output(struct gpio_chip *gc, in stmfx_gpio_direction_output()
227 dir = stmfx_gpio_get_direction(&pctl->gpio_chip, pin); in stmfx_pinconf_get()
269 ret = stmfx_gpio_get(&pctl->gpio_chip, pin); in stmfx_pinconf_get()
333 ret = stmfx_gpio_direction_output(&pctl->gpio_chip, in stmfx_pinconf_set()
357 dir = stmfx_gpio_get_direction(&pctl->gpio_chip, offset); in stmfx_pinconf_dbg_show()
[all …]
/drivers/video/fbdev/via/
Dvia-gpio.c74 struct gpio_chip gpio_chip; member
83 static void via_gpio_set(struct gpio_chip *chip, unsigned int nr, in via_gpio_set()
103 static int via_gpio_dir_out(struct gpio_chip *chip, unsigned int nr, in via_gpio_dir_out()
114 static int via_gpio_dir_input(struct gpio_chip *chip, unsigned int nr) in via_gpio_dir_input()
128 static int via_gpio_get(struct gpio_chip *chip, unsigned int nr) in via_gpio_get()
144 .gpio_chip = {
181 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i += 2) in viafb_gpio_resume()
199 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i++) in viafb_gpio_lookup()
201 return viafb_gpio_config.gpio_chip.base + i; in viafb_gpio_lookup()
233 viafb_gpio_config.gpio_chip.ngpio = ngpio; in viafb_gpio_probe()
[all …]
/drivers/mfd/
Dhtc-i2cpld.c37 struct gpio_chip chip_out;
41 struct gpio_chip chip_in;
213 static void htcpld_chip_set(struct gpio_chip *chip, unsigned offset, int val) in htcpld_chip_set()
243 static int htcpld_chip_get(struct gpio_chip *chip, unsigned offset) in htcpld_chip_get()
258 static int htcpld_direction_output(struct gpio_chip *chip, in htcpld_direction_output()
265 static int htcpld_direction_input(struct gpio_chip *chip, in htcpld_direction_input()
275 static int htcpld_chip_to_irq(struct gpio_chip *chip, unsigned offset) in htcpld_chip_to_irq()
402 struct gpio_chip *gpio_chip; in htcpld_register_chip_gpio() local
412 gpio_chip = &(chip->chip_out); in htcpld_register_chip_gpio()
413 gpio_chip->label = "htcpld-out"; in htcpld_register_chip_gpio()
[all …]
/drivers/pinctrl/renesas/
Dgpio.c31 struct gpio_chip gpio_chip; member
38 static struct sh_pfc *gpio_to_pfc(struct gpio_chip *gc) in gpio_to_pfc()
131 static int gpio_pin_request(struct gpio_chip *gc, unsigned offset) in gpio_pin_request()
142 static void gpio_pin_free(struct gpio_chip *gc, unsigned offset) in gpio_pin_free()
166 static int gpio_pin_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_pin_direction_input()
171 static int gpio_pin_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_pin_direction_output()
179 static int gpio_pin_get(struct gpio_chip *gc, unsigned offset) in gpio_pin_get()
193 static void gpio_pin_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_pin_set()
198 static int gpio_pin_to_irq(struct gpio_chip *gc, unsigned offset) in gpio_pin_to_irq()
218 struct gpio_chip *gc = &chip->gpio_chip; in gpio_pin_setup()
[all …]

12345678910>>...13