/drivers/gpio/ |
D | gpio-mmio.c | 129 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 …]
|
D | gpio-mpc5200.c | 56 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 …]
|
D | gpio-mpc8xxx.c | 36 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 …]
|
D | gpio-pl061.c | 57 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 …]
|
D | gpio-zx.c | 47 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
|
D | gpio-tps65218.c | 26 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()
|
D | gpio-max77620.c | 100 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()
|
D | gpio-mb86s7x.c | 40 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()
|
D | gpio-rc5t583.c | 36 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()
|
D | gpio-xtensa.c | 76 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()
|
D | gpio-dwapb.c | 75 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 …]
|
D | gpio-tps65912.c | 31 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()
|
D | gpio-mockup.c | 38 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()
|
D | gpio-xlp.c | 132 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
|
D | gpio-brcmstb.c | 37 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
|
D | gpio-lpc18xx.c | 36 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
|
D | gpio-ucb1400.c | 15 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()
|
D | gpio-74xx-mmio.c | 23 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()
|
D | gpio-ks8695.c | 99 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/ |
D | gamecon.c | 89 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/ |
D | irq-atmel-aic.c | 64 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
|
D | irq-stm32-exti.c | 27 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/ |
D | gpio.c | 41 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/ |
D | pinctrl-amd.c | 39 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/ |
D | pinctrl-iproc-gpio.c | 104 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 …]
|