Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-mmio.c125 static unsigned long bgpio_line2mask(struct gpio_chip *gc, unsigned int line) in bgpio_line2mask()
132 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set()
147 static int bgpio_get_set_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_set_multiple()
167 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get()
175 static int bgpio_get_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_multiple()
187 static int bgpio_get_multiple_be(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_multiple_be()
214 static void bgpio_set_none(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_none()
218 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set()
235 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear()
246 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set()
[all …]
Dgpiolib.c138 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, in gpiochip_get_desc()
212 struct gpio_chip *gc; in gpiod_get_direction() local
337 static int gpiochip_set_desc_names(struct gpio_chip *gc) in gpiochip_set_desc_names()
407 static unsigned long *gpiochip_allocate_mask(struct gpio_chip *gc) in gpiochip_allocate_mask()
421 static int gpiochip_alloc_valid_mask(struct gpio_chip *gc) in gpiochip_alloc_valid_mask()
433 static int gpiochip_init_valid_mask(struct gpio_chip *gc) in gpiochip_init_valid_mask()
443 static void gpiochip_free_valid_mask(struct gpio_chip *gc) in gpiochip_free_valid_mask()
449 static int gpiochip_add_pin_ranges(struct gpio_chip *gc) in gpiochip_add_pin_ranges()
457 bool gpiochip_line_is_valid(const struct gpio_chip *gc, in gpiochip_line_is_valid()
518 static void gpiochip_machine_hog(struct gpio_chip *gc, struct gpiod_hog *hog) in gpiochip_machine_hog()
[all …]
Dgpio-mpc5200.c44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get()
58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set()
73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set()
86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in()
109 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out()
139 struct gpio_chip *gc; in mpc52xx_wkup_gpiochip_probe() local
208 static int mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_get()
220 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_simple_gpio_set()
234 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_simple_gpio_set()
247 static int mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_simple_gpio_dir_in()
[all …]
Dgpio-reg.c14 struct gpio_chip gc; member
25 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset) in gpio_reg_get_direction()
33 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_reg_direction_output()
45 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_reg_direction_input()
52 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_reg_set()
69 static int gpio_reg_get(struct gpio_chip *gc, unsigned offset) in gpio_reg_get()
87 static void gpio_reg_set_multiple(struct gpio_chip *gc, unsigned long *mask, in gpio_reg_set_multiple()
99 static int gpio_reg_to_irq(struct gpio_chip *gc, unsigned offset) in gpio_reg_to_irq()
173 int gpio_reg_resume(struct gpio_chip *gc) in gpio_reg_resume()
Dgpio-mpc8xxx.c39 struct gpio_chip gc; member
65 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get()
78 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out()
89 static int mpc5125_gpio_dir_out(struct gpio_chip *gc, in mpc5125_gpio_dir_out()
100 static int mpc8xxx_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in mpc8xxx_gpio_to_irq()
113 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_gpio_irq_cascade() local
128 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_unmask() local
143 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_mask() local
158 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_ack() local
167 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_set_type() local
[all …]
Dgpio-pl061.c54 struct gpio_chip gc; member
63 static int pl061_get_direction(struct gpio_chip *gc, unsigned offset) in pl061_get_direction()
73 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input()
88 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output()
111 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value()
118 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value()
127 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_type() local
217 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in pl061_irq_handler() local
235 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_mask() local
248 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in pl061_irq_unmask() local
[all …]
Dgpio-max77650.c36 struct gpio_chip gc; member
40 static int max77650_gpio_direction_input(struct gpio_chip *gc, in max77650_gpio_direction_input()
51 static int max77650_gpio_direction_output(struct gpio_chip *gc, in max77650_gpio_direction_output()
65 static void max77650_gpio_set_value(struct gpio_chip *gc, in max77650_gpio_set_value()
79 static int max77650_gpio_get_value(struct gpio_chip *gc, in max77650_gpio_get_value()
93 static int max77650_gpio_get_direction(struct gpio_chip *gc, in max77650_gpio_get_direction()
107 static int max77650_gpio_set_config(struct gpio_chip *gc, in max77650_gpio_set_config()
133 static int max77650_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in max77650_gpio_to_irq()
Dgpio-mb86s7x.c37 struct gpio_chip gc; member
43 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request()
60 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free()
75 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input()
92 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output()
117 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get()
124 static void mb86s70_gpio_set(struct gpio_chip *gc, unsigned gpio, int value) in mb86s70_gpio_set()
142 static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in mb86s70_gpio_to_irq()
Dgpio-ep93xx.c51 struct gpio_chip gc; member
57 struct ep93xx_gpio_chip gc[EP93XX_GPIO_CHIP_NUM]; member
62 static struct ep93xx_gpio_irq_chip *to_ep93xx_gpio_irq_chip(struct gpio_chip *gc) in to_ep93xx_gpio_irq_chip()
95 static void ep93xx_gpio_int_debounce(struct gpio_chip *gc, in ep93xx_gpio_int_debounce()
113 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in ep93xx_gpio_ab_irq_handler() local
159 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_ack() local
174 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_mask_ack() local
190 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_mask() local
200 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_unmask() local
215 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in ep93xx_gpio_irq_type() local
[all …]
Dgpio-zx.c44 struct gpio_chip gc; member
47 static int zx_direction_input(struct gpio_chip *gc, unsigned offset) in zx_direction_input()
65 static int zx_direction_output(struct gpio_chip *gc, unsigned offset, in zx_direction_output()
89 static int zx_get_value(struct gpio_chip *gc, unsigned offset) in zx_get_value()
96 static void zx_set_value(struct gpio_chip *gc, unsigned offset, int value) in zx_set_value()
108 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_type() local
160 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in zx_irq_handler() local
179 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_mask() local
194 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in zx_irq_unmask() local
Dgpio-mockup.c48 struct gpio_chip gc; member
87 static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get()
99 static int gpio_mockup_get_multiple(struct gpio_chip *gc, in gpio_mockup_get_multiple()
121 static void gpio_mockup_set(struct gpio_chip *gc, in gpio_mockup_set()
131 static void gpio_mockup_set_multiple(struct gpio_chip *gc, in gpio_mockup_set_multiple()
148 struct gpio_chip *gc; in gpio_mockup_apply_pull() local
194 static int gpio_mockup_set_config(struct gpio_chip *gc, in gpio_mockup_set_config()
210 static int gpio_mockup_dirout(struct gpio_chip *gc, in gpio_mockup_dirout()
223 static int gpio_mockup_dirin(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_dirin()
234 static int gpio_mockup_get_direction(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get_direction()
[all …]
Dgpio-tps68470.c26 struct gpio_chip gc; member
29 static int tps68470_gpio_get(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_get()
50 static int tps68470_gpio_get_direction(struct gpio_chip *gc, in tps68470_gpio_get_direction()
73 static void tps68470_gpio_set(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_set()
88 static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_output()
106 static int tps68470_gpio_input(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_input()
Dgpio-tps65218.c23 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()
Dgpio-rc5t583.c24 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()
Dgpio-xtensa.c72 static int xtensa_impwire_get_direction(struct gpio_chip *gc, unsigned offset) in xtensa_impwire_get_direction()
77 static int xtensa_impwire_get_value(struct gpio_chip *gc, unsigned offset) in xtensa_impwire_get_value()
89 static void xtensa_impwire_set_value(struct gpio_chip *gc, unsigned offset, in xtensa_impwire_set_value()
95 static int xtensa_expstate_get_direction(struct gpio_chip *gc, unsigned offset) in xtensa_expstate_get_direction()
100 static int xtensa_expstate_get_value(struct gpio_chip *gc, unsigned offset) in xtensa_expstate_get_value()
112 static void xtensa_expstate_set_value(struct gpio_chip *gc, unsigned offset, in xtensa_expstate_set_value()
Dgpio-tps65912.c23 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()
Dgpio-amd-fch.c35 struct gpio_chip gc; member
47 static int amd_fch_gpio_direction_input(struct gpio_chip *gc, in amd_fch_gpio_direction_input()
61 static int amd_fch_gpio_direction_output(struct gpio_chip *gc, in amd_fch_gpio_direction_output()
84 static int amd_fch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) in amd_fch_gpio_get_direction()
98 static void amd_fch_gpio_set(struct gpio_chip *gc, in amd_fch_gpio_set()
118 static int amd_fch_gpio_get(struct gpio_chip *gc, in amd_fch_gpio_get()
Dgpio-dwapb.c92 struct gpio_chip gc; member
141 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read() local
150 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_write() local
173 struct gpio_chip *gc; in dwapb_toggle_trigger() local
194 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_do_irq() local
229 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in dwapb_irq_ack() local
241 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in dwapb_irq_mask() local
254 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in dwapb_irq_unmask() local
267 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in dwapb_irq_enable() local
281 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in dwapb_irq_disable() local
[all …]
/kernel/linux/linux-5.10/kernel/irq/
Dgeneric-chip.c38 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_disable_reg() local
57 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_set_bit() local
77 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_clr_bit() local
97 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_unmask_enable_reg() local
113 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_ack_set_bit() local
129 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_ack_clr_bit() local
152 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_disable_and_ack_set() local
169 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_eoi() local
189 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_set_wake() local
214 void irq_init_generic_chip(struct irq_chip_generic *gc, const char *name, in irq_init_generic_chip()
[all …]
/kernel/linux/linux-5.10/drivers/lightnvm/
Dpblk-gc.c33 struct pblk_gc *gc = &pblk->gc; in pblk_gc_write() local
57 static void pblk_gc_writer_kick(struct pblk_gc *gc) in pblk_gc_writer_kick()
91 struct pblk_gc *gc = &pblk->gc; in pblk_gc_line_ws() local
185 struct pblk_gc *gc = &pblk->gc; in pblk_gc_line_prepare_ws() local
304 struct pblk_gc *gc = &pblk->gc; in pblk_gc_line() local
323 static void pblk_gc_reader_kick(struct pblk_gc *gc) in pblk_gc_reader_kick()
330 struct pblk_gc *gc = &pblk->gc; in pblk_gc_kick() local
345 struct pblk_gc *gc = &pblk->gc; in pblk_gc_read() local
394 static bool pblk_gc_should_run(struct pblk_gc *gc, struct pblk_rl *rl) in pblk_gc_should_run()
410 struct pblk_gc *gc = &pblk->gc; in pblk_gc_free_full_lines() local
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Dgamecon.c73 struct gc { struct
75 struct gc_pad pads[GC_MAX_DEVICES]; argument
87 static struct gc *gc_base[3]; argument
133 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, in gc_n64_send_command()
147 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) in gc_n64_send_stop_bit()
165 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet()
205 static void gc_n64_process_packet(struct gc *gc) in gc_n64_process_packet()
255 struct gc *gc = input_get_drvdata(dev); in gc_n64_play_effect() local
341 static void gc_nes_read_packet(struct gc *gc, int length, unsigned char *data) in gc_nes_read_packet()
358 static void gc_nes_process_packet(struct gc *gc) in gc_nes_process_packet()
[all …]
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/
Dgpio.c38 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() local
253 static int gpio_function_request(struct gpio_chip *gc, unsigned offset) in gpio_function_request()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-da9062.c40 struct gpio_chip gc; member
80 static int da9062_gpio_get(struct gpio_chip *gc, unsigned int offset) in da9062_gpio_get()
109 static void da9062_gpio_set(struct gpio_chip *gc, unsigned int offset, in da9062_gpio_set()
119 static int da9062_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in da9062_gpio_get_direction()
141 static int da9062_gpio_direction_input(struct gpio_chip *gc, in da9062_gpio_direction_input()
168 static int da9062_gpio_direction_output(struct gpio_chip *gc, in da9062_gpio_direction_output()
184 static int da9062_gpio_set_config(struct gpio_chip *gc, unsigned int offset, in da9062_gpio_set_config()
230 static int da9062_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) in da9062_gpio_to_irq()
/kernel/linux/linux-5.10/include/linux/gpio/
Ddriver.h543 #define gpiochip_add_data(gc, data) ({ \ argument
549 #define devm_gpiochip_add_data(dev, gc, data) ({ \ argument
556 #define gpiochip_add_data(gc, data) gpiochip_add_data_with_key(gc, data, NULL, NULL) argument
557 #define devm_gpiochip_add_data(dev, gc, data) \ argument
561 static inline int gpiochip_add(struct gpio_chip *gc) in gpiochip_add()
607 static inline void *gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_twocell()
614 static inline void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc, in gpiochip_populate_parent_fwspec_fourcell()
665 static inline int gpiochip_irqchip_add_domain(struct gpio_chip *gc, in gpiochip_irqchip_add_domain()
681 static inline int gpiochip_irqchip_add(struct gpio_chip *gc, in gpiochip_irqchip_add()
695 static inline int gpiochip_irqchip_add_nested(struct gpio_chip *gc, in gpiochip_irqchip_add_nested()
[all …]

12345678910