Home
last modified time | relevance | path

Searched defs:gc (Results 1 – 25 of 147) sorted by relevance

123456

/drivers/gpio/
Dgpio-mmio.c129 static unsigned long bgpio_pin2mask(struct gpio_chip *gc, unsigned int pin) in bgpio_pin2mask()
134 static unsigned long bgpio_pin2mask_be(struct gpio_chip *gc, in bgpio_pin2mask_be()
140 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set()
150 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get()
155 static void bgpio_set_none(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_none()
159 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set()
176 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear()
187 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set()
204 static void bgpio_multiple_get_masks(struct gpio_chip *gc, in bgpio_multiple_get_masks()
226 static void bgpio_set_multiple_single_reg(struct gpio_chip *gc, in bgpio_set_multiple_single_reg()
[all …]
Dgpio-mpc5200.c56 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get()
70 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set()
85 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set()
98 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in()
121 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out()
151 struct gpio_chip *gc; in mpc52xx_wkup_gpiochip_probe() local
220 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get()
232 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set()
246 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set()
259 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in()
[all …]
Dgpio-mpc8xxx.c36 struct gpio_chip gc; member
52 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get()
65 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out()
76 static int mpc5125_gpio_dir_out(struct gpio_chip *gc, in mpc5125_gpio_dir_out()
87 static int mpc8xxx_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in mpc8xxx_gpio_to_irq()
101 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_gpio_irq_cascade() local
116 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_unmask() local
131 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_mask() local
146 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_ack() local
155 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_set_type() local
[all …]
Dgpio-pl061.c57 struct gpio_chip gc; member
64 static int pl061_get_direction(struct gpio_chip *gc, unsigned offset) in pl061_get_direction()
71 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input()
86 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output()
109 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value()
116 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value()
125 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_type() local
215 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in pl061_irq_handler() local
233 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_mask() local
246 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_unmask() local
[all …]
Dgpio-zx.c47 struct gpio_chip gc; member
50 static int zx_direction_input(struct gpio_chip *gc, unsigned offset) in zx_direction_input()
68 static int zx_direction_output(struct gpio_chip *gc, unsigned offset, in zx_direction_output()
92 static int zx_get_value(struct gpio_chip *gc, unsigned offset) in zx_get_value()
99 static void zx_set_value(struct gpio_chip *gc, unsigned offset, int value) in zx_set_value()
111 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_type() local
163 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in zx_irq_handler() local
182 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_mask() local
197 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_unmask() local
Dgpio-tps65218.c26 static int tps65218_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_get()
40 static void tps65218_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65218_gpio_set()
57 static int tps65218_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65218_gpio_output()
65 static int tps65218_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_input()
70 static int tps65218_gpio_request(struct gpio_chip *gc, unsigned offset) in tps65218_gpio_request()
141 static int tps65218_gpio_set_single_ended(struct gpio_chip *gc, in tps65218_gpio_set_single_ended()
Dgpio-max77620.c100 static int max77620_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_dir_input()
114 static int max77620_gpio_get(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_get()
132 static int max77620_gpio_dir_output(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_dir_output()
158 static int max77620_gpio_set_debounce(struct gpio_chip *gc, in max77620_gpio_set_debounce()
192 static void max77620_gpio_set(struct gpio_chip *gc, unsigned int offset, in max77620_gpio_set()
208 static int max77620_gpio_set_single_ended(struct gpio_chip *gc, in max77620_gpio_set_single_ended()
230 static int max77620_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in max77620_gpio_to_irq()
Dgpio-mb86s7x.c40 struct gpio_chip gc; member
46 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request()
68 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free()
83 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input()
100 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output()
125 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get()
132 static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) in mb86s70_gpio_set()
Dgpio-rc5t583.c36 static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_get()
50 static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in rc5t583_gpio_set()
60 static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_dir_input()
74 static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset, in rc5t583_gpio_dir_output()
90 static int rc5t583_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_to_irq()
100 static void rc5t583_gpio_free(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_free()
Dgpio-xtensa.c76 static int xtensa_impwire_get_direction(struct gpio_chip *gc, unsigned offset) in xtensa_impwire_get_direction()
81 static int xtensa_impwire_get_value(struct gpio_chip *gc, unsigned offset) in xtensa_impwire_get_value()
93 static void xtensa_impwire_set_value(struct gpio_chip *gc, unsigned offset, in xtensa_impwire_set_value()
99 static int xtensa_expstate_get_direction(struct gpio_chip *gc, unsigned offset) in xtensa_expstate_get_direction()
104 static int xtensa_expstate_get_value(struct gpio_chip *gc, unsigned offset) in xtensa_expstate_get_value()
116 static void xtensa_expstate_set_value(struct gpio_chip *gc, unsigned offset, in xtensa_expstate_set_value()
Dgpio-dwapb.c75 struct gpio_chip gc; member
94 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read() local
103 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_write() local
109 static int dwapb_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in dwapb_gpio_to_irq()
164 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_enable() local
179 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_disable() local
194 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_reqres() local
208 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_relres() local
217 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_set_type() local
261 static int dwapb_gpio_set_debounce(struct gpio_chip *gc, in dwapb_gpio_set_debounce()
[all …]
Dgpio-tps65912.c31 static int tps65912_gpio_get_direction(struct gpio_chip *gc, in tps65912_gpio_get_direction()
48 static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_direction_input()
56 static int tps65912_gpio_direction_output(struct gpio_chip *gc, in tps65912_gpio_direction_output()
69 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_get()
84 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_set()
Dgpio-mockup.c38 struct gpio_chip gc; member
48 static int mockup_gpio_get(struct gpio_chip *gc, unsigned int offset) in mockup_gpio_get()
55 static void mockup_gpio_set(struct gpio_chip *gc, unsigned int offset, in mockup_gpio_set()
63 static int mockup_gpio_dirout(struct gpio_chip *gc, unsigned int offset, in mockup_gpio_dirout()
73 static int mockup_gpio_dirin(struct gpio_chip *gc, unsigned int offset) in mockup_gpio_dirin()
81 static int mockup_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in mockup_gpio_get_direction()
Dgpio-xlp.c132 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_disable() local
144 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_mask_ack() local
157 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_unmask() local
169 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_set_irq_type() local
233 static int xlp_gpio_dir_output(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_dir_output()
243 static int xlp_gpio_dir_input(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_dir_input()
253 static int xlp_gpio_get(struct gpio_chip *gc, unsigned gpio) in xlp_gpio_get()
261 static void xlp_gpio_set(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_set()
300 struct gpio_chip *gc; in xlp_gpio_probe() local
Dgpio-brcmstb.c37 struct gpio_chip gc; member
60 brcmstb_gpio_gc_to_priv(struct gpio_chip *gc) in brcmstb_gpio_gc_to_priv()
69 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local
89 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in brcmstb_gpio_irq_mask() local
97 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in brcmstb_gpio_irq_unmask() local
105 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in brcmstb_gpio_irq_set_type() local
186 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in brcmstb_gpio_irq_set_wake() local
233 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in brcmstb_gpio_irq_handler() local
304 static int brcmstb_gpio_of_xlate(struct gpio_chip *gc, in brcmstb_gpio_of_xlate()
452 struct gpio_chip *gc; in brcmstb_gpio_probe() local
Dgpio-lpc18xx.c36 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_set() local
42 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_get() local
49 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_direction() local
95 struct lpc18xx_gpio_chip *gc; in lpc18xx_gpio_probe() local
139 struct lpc18xx_gpio_chip *gc = platform_get_drvdata(pdev); in lpc18xx_gpio_remove() local
Dgpio-ucb1400.c15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_dir_in()
23 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_dir_out()
32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get()
40 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set()
Dgpio-74xx-mmio.c23 struct gpio_chip gc; member
80 static int mmio_74xx_get_direction(struct gpio_chip *gc, unsigned offset) in mmio_74xx_get_direction()
87 static int mmio_74xx_dir_in(struct gpio_chip *gc, unsigned int gpio) in mmio_74xx_dir_in()
94 static int mmio_74xx_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mmio_74xx_dir_out()
Dgpio-ks8695.c99 static int ks8695_gpio_direction_input(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_direction_input()
125 static int ks8695_gpio_direction_output(struct gpio_chip *gc, in ks8695_gpio_direction_output()
160 static void ks8695_gpio_set_value(struct gpio_chip *gc, in ks8695_gpio_set_value()
185 static int ks8695_gpio_get_value(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_get_value()
200 static int ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) in ks8695_gpio_to_irq()
/drivers/input/joystick/
Dgamecon.c89 struct gc { struct
91 struct gc_pad pads[GC_MAX_DEVICES]; argument
103 static struct gc *gc_base[3]; argument
149 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, in gc_n64_send_command()
163 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) in gc_n64_send_stop_bit()
181 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet()
221 static void gc_n64_process_packet(struct gc *gc) in gc_n64_process_packet()
271 struct gc *gc = input_get_drvdata(dev); in gc_n64_play_effect() local
357 static void gc_nes_read_packet(struct gc *gc, int length, unsigned char *data) in gc_nes_read_packet()
374 static void gc_nes_process_packet(struct gc *gc) in gc_nes_process_packet()
[all …]
/drivers/irqchip/
Dirq-atmel-aic.c64 struct irq_chip_generic *gc = dgc->gc[0]; in aic_handle() local
79 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_retrigger() local
91 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_set_type() local
108 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_suspend() local
118 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_resume() local
128 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_pm_shutdown() local
143 struct irq_chip_generic *gc = irq_get_domain_generic_chip(domain, 0); in aic_hw_init() local
178 struct irq_chip_generic *gc; in aic_irq_domain_xlate() local
244 struct irq_chip_generic *gc; in aic_of_init() local
Dirq-stm32-exti.c27 struct irq_chip_generic *gc = domain->gc->gc[0]; in stm32_irq_handler() local
46 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in stm32_irq_set_type() local
83 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in stm32_irq_set_wake() local
104 struct irq_chip_generic *gc = d->gc->gc[0]; in stm32_exti_alloc() local
137 struct irq_chip_generic *gc; in stm32_exti_init() local
/drivers/pinctrl/sh-pfc/
Dgpio.c41 static struct sh_pfc *gpio_to_pfc(struct gpio_chip *gc) in gpio_to_pfc()
134 static int gpio_pin_request(struct gpio_chip *gc, unsigned offset) in gpio_pin_request()
145 static void gpio_pin_free(struct gpio_chip *gc, unsigned offset) in gpio_pin_free()
169 static int gpio_pin_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_pin_direction_input()
174 static int gpio_pin_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_pin_direction_output()
182 static int gpio_pin_get(struct gpio_chip *gc, unsigned offset) in gpio_pin_get()
196 static void gpio_pin_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_pin_set()
201 static int gpio_pin_to_irq(struct gpio_chip *gc, unsigned offset) in gpio_pin_to_irq()
224 struct gpio_chip *gc = &chip->gpio_chip; in gpio_pin_setup() local
258 static int gpio_function_request(struct gpio_chip *gc, unsigned offset) in gpio_function_request()
[all …]
/drivers/pinctrl/
Dpinctrl-amd.c39 static int amd_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in amd_gpio_direction_input()
54 static int amd_gpio_direction_output(struct gpio_chip *gc, unsigned offset, in amd_gpio_direction_output()
74 static int amd_gpio_get_value(struct gpio_chip *gc, unsigned offset) in amd_gpio_get_value()
87 static void amd_gpio_set_value(struct gpio_chip *gc, unsigned offset, int value) in amd_gpio_set_value()
103 static int amd_gpio_set_debounce(struct gpio_chip *gc, unsigned offset, in amd_gpio_set_debounce()
169 static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc) in amd_gpio_dbg_show()
314 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in amd_gpio_irq_enable() local
329 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in amd_gpio_irq_disable() local
344 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in amd_gpio_irq_mask() local
358 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in amd_gpio_irq_unmask() local
[all …]
/drivers/pinctrl/bcm/
Dpinctrl-iproc-gpio.c104 struct gpio_chip gc; member
159 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in iproc_gpio_irq_handler() local
192 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in iproc_gpio_irq_ack() local
211 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in iproc_gpio_irq_set_mask() local
220 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in iproc_gpio_irq_mask() local
231 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in iproc_gpio_irq_unmask() local
242 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in iproc_gpio_irq_set_type() local
303 static int iproc_gpio_request(struct gpio_chip *gc, unsigned offset) in iproc_gpio_request()
315 static void iproc_gpio_free(struct gpio_chip *gc, unsigned offset) in iproc_gpio_free()
326 static int iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in iproc_gpio_direction_input()
[all …]

123456