/drivers/gpio/ |
H A D | gpio-ucb1400.c | 17 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) argument 20 gpio = container_of(gc, struct ucb1400_gpio, gc); 25 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) argument 28 gpio = container_of(gc, struct ucb1400_gpio, gc); 34 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) argument 37 gpio = container_of(gc, struct ucb1400_gpio, gc); 41 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigne argument [all...] |
H A D | gpio-mpc5200.c | 57 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument 59 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 71 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 73 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 87 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 93 __mpc52xx_wkup_gpio_set(gc, gpio, val); 100 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 102 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 124 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 126 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 155 struct gpio_chip *gc; local 219 mpc52xx_simple_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument 231 __mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 246 mpc52xx_simple_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 259 mpc52xx_simple_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 283 mpc52xx_simple_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 314 struct gpio_chip *gc; local [all...] |
H A D | gpio-tps65910.c | 23 static int tps65910_gpio_get(struct gpio_chip *gc, unsigned offset) argument 25 struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio); 36 static void tps65910_gpio_set(struct gpio_chip *gc, unsigned offset, argument 39 struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio); 49 static int tps65910_gpio_output(struct gpio_chip *gc, unsigned offset, argument 52 struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio); 55 tps65910_gpio_set(gc, offset, value); 61 static int tps65910_gpio_input(struct gpio_chip *gc, unsigned offset) argument 63 struct tps65910 *tps65910 = container_of(gc, struct tps65910, gpio);
|
H A D | gpio-generic.c | 118 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) argument 120 struct bgpio_chip *bgc = to_bgpio_chip(gc); 125 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 127 struct bgpio_chip *bgc = to_bgpio_chip(gc); 143 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, argument 146 struct bgpio_chip *bgc = to_bgpio_chip(gc); 155 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 157 struct bgpio_chip *bgc = to_bgpio_chip(gc); 173 static int bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 178 static int bgpio_simple_dir_out(struct gpio_chip *gc, unsigne argument 186 bgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 201 bgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 218 bgpio_dir_in_inv(struct gpio_chip *gc, unsigned int gpio) argument 233 bgpio_dir_out_inv(struct gpio_chip *gc, unsigned int gpio, int val) argument [all...] |
H A D | gpio-pl061.c | 61 struct gpio_chip gc; member in struct:pl061_gpio 68 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) argument 70 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); 74 if (offset >= gc->ngpio) 86 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, argument 89 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); 93 if (offset >= gc->ngpio) 112 static int pl061_get_value(struct gpio_chip *gc, unsigne argument 119 pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) argument 126 pl061_to_irq(struct gpio_chip *gc, unsigned offset) argument 138 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local [all...] |
H A D | gpio-xilinx.c | 38 * @gc: Pointer to gpio_chip device structure. 44 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) argument 46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 53 * @gc: Pointer to gpio_chip device structure. 60 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 63 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 81 * @gc: Pointer to gpio_chip device structure. 88 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 91 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); 108 * @gc 116 xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument [all...] |
H A D | gpio-tps65912.c | 29 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) argument 31 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); 42 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, argument 45 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); 55 static int tps65912_gpio_output(struct gpio_chip *gc, unsigned offset, argument 58 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); 61 tps65912_gpio_set(gc, offset, value); 67 static int tps65912_gpio_input(struct gpio_chip *gc, unsigned offset) argument 69 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio);
|
H A D | gpio-mxs.c | 69 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local 70 struct mxs_gpio_port *port = gc->private; 141 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local 142 struct mxs_gpio_port *port = gc->private; 154 struct irq_chip_generic *gc; local 157 gc = irq_alloc_generic_chip("gpio-mxs", 1, port->virtual_irq_start, 159 gc->private = port; 161 ct = gc->chip_types; 170 irq_setup_generic_chip(gc, IRQ_MSK(32), 0, IRQ_NOREQUEST, 0); 173 static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigne argument [all...] |
H A D | gpio-mpc8xxx.c | 67 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument 70 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); 78 static int mpc8xxx_gpio_get(struct gpio_chip *gc, unsigned int gpio) argument 80 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); 85 static void mpc8xxx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) argument 87 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); 103 static int mpc8xxx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) argument 105 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); 118 static int mpc8xxx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 120 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); 135 mpc5121_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) argument 144 mpc8xxx_gpio_to_irq(struct gpio_chip *gc, unsigned offset) argument 333 struct gpio_chip *gc; local [all...] |
H A D | gpio-74x164.c | 27 static struct gen_74x164_chip *gpio_to_74x164_chip(struct gpio_chip *gc) argument 29 return container_of(gc, struct gen_74x164_chip, gpio_chip); 38 static int gen_74x164_get_value(struct gpio_chip *gc, unsigned offset) argument 40 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc); 50 static void gen_74x164_set_value(struct gpio_chip *gc, argument 53 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc); 65 static int gen_74x164_direction_output(struct gpio_chip *gc, argument 68 gen_74x164_set_value(gc, offset, val);
|
H A D | gpio-timberdale.c | 228 struct gpio_chip *gc; local 266 gc = &tgpio->gpio; 268 gc->label = dev_name(&pdev->dev); 269 gc->owner = THIS_MODULE; 270 gc->dev = &pdev->dev; 271 gc->direction_input = timbgpio_gpio_direction_input; 272 gc->get = timbgpio_gpio_get; 273 gc->direction_output = timbgpio_gpio_direction_output; 274 gc->set = timbgpio_gpio_set; 275 gc [all...] |
H A D | gpio-adp5520.c | 94 struct gpio_chip *gc; local 125 gc = &dev->gpio_chip; 126 gc->direction_input = adp5520_gpio_direction_input; 127 gc->direction_output = adp5520_gpio_direction_output; 128 gc->get = adp5520_gpio_get_value; 129 gc->set = adp5520_gpio_set_value; 130 gc->can_sleep = 1; 132 gc->base = pdata->gpio_start; 133 gc->ngpio = gpios; 134 gc [all...] |
H A D | gpio-da9052.c | 64 static int da9052_gpio_get(struct gpio_chip *gc, unsigned offset) argument 66 struct da9052_gpio *gpio = to_da9052_gpio(gc); 106 static void da9052_gpio_set(struct gpio_chip *gc, unsigned offset, int value) argument 108 struct da9052_gpio *gpio = to_da9052_gpio(gc); 132 static int da9052_gpio_direction_input(struct gpio_chip *gc, unsigned offset) argument 134 struct da9052_gpio *gpio = to_da9052_gpio(gc); 157 static int da9052_gpio_direction_output(struct gpio_chip *gc, argument 160 struct da9052_gpio *gpio = to_da9052_gpio(gc); 183 static int da9052_gpio_to_irq(struct gpio_chip *gc, u32 offset) argument 185 struct da9052_gpio *gpio = to_da9052_gpio(gc); [all...] |
H A D | gpio-sch.c | 44 static int sch_gpio_core_direction_in(struct gpio_chip *gc, unsigned gpio_num) argument 63 static int sch_gpio_core_get(struct gpio_chip *gc, unsigned gpio_num) argument 75 static void sch_gpio_core_set(struct gpio_chip *gc, unsigned gpio_num, int val) argument 94 static int sch_gpio_core_direction_out(struct gpio_chip *gc, argument 100 sch_gpio_core_set(gc, gpio_num, val); 124 static int sch_gpio_resume_direction_in(struct gpio_chip *gc, argument 140 static int sch_gpio_resume_get(struct gpio_chip *gc, unsigned gpio_num) argument 145 static void sch_gpio_resume_set(struct gpio_chip *gc, argument 162 static int sch_gpio_resume_direction_out(struct gpio_chip *gc, argument 167 sch_gpio_resume_set(gc, gpio_nu [all...] |
H A D | gpio-pca953x.c | 142 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) argument 148 chip = container_of(gc, struct pca953x_chip, gpio_chip); 172 static int pca953x_gpio_direction_output(struct gpio_chip *gc, argument 179 chip = container_of(gc, struct pca953x_chip, gpio_chip); 223 static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) argument 229 chip = container_of(gc, struct pca953x_chip, gpio_chip); 253 static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) argument 259 chip = container_of(gc, struct pca953x_chip, gpio_chip); 286 struct gpio_chip *gc; local 288 gc 305 pca953x_gpio_to_irq(struct gpio_chip *gc, unsigned off) argument [all...] |
H A D | gpio-max732x.c | 181 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) argument 187 chip = container_of(gc, struct max732x_chip, gpio_chip); 196 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) argument 202 chip = container_of(gc, struct max732x_chip, gpio_chip); 222 static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigned off) argument 227 chip = container_of(gc, struct max732x_chip, gpio_chip); 240 max732x_gpio_set_value(gc, off, 1); 245 static int max732x_gpio_direction_output(struct gpio_chip *gc, argument 251 chip = container_of(gc, struct max732x_chip, gpio_chip); 259 max732x_gpio_set_value(gc, of 322 max732x_gpio_to_irq(struct gpio_chip *gc, unsigned off) argument 533 struct gpio_chip *gc = &chip->gpio_chip; local [all...] |
H A D | gpio-mxc.c | 148 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local 149 struct mxc_gpio_port *port = gc->private; 281 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); local 282 struct mxc_gpio_port *port = gc->private; 301 struct irq_chip_generic *gc; local 304 gc = irq_alloc_generic_chip("gpio-mxc", 1, port->virtual_irq_start, 306 gc->private = port; 308 ct = gc->chip_types; 317 irq_setup_generic_chip(gc, IRQ_MSK(32), IRQ_GC_INIT_NESTED_LOCK, 349 static int mxc_gpio_to_irq(struct gpio_chip *gc, unsigne argument [all...] |
H A D | gpio-adp5588.c | 354 struct gpio_chip *gc; local 376 gc = &dev->gpio_chip; 377 gc->direction_input = adp5588_gpio_direction_input; 378 gc->direction_output = adp5588_gpio_direction_output; 379 gc->get = adp5588_gpio_get_value; 380 gc->set = adp5588_gpio_set_value; 381 gc->can_sleep = 1; 383 gc->base = pdata->gpio_start; 384 gc->ngpio = ADP5588_MAXGPIO; 385 gc [all...] |
/drivers/input/joystick/ |
H A D | gamecon.c | 89 struct gc { struct 102 static struct gc *gc_base[3]; 148 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, argument 151 struct parport *port = gc->pd->port; 162 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) argument 164 struct parport *port = gc->pd->port; 180 static void gc_n64_read_packet(struct gc *gc, unsigne argument 220 gc_n64_process_packet(struct gc *gc) argument 270 struct gc *gc = input_get_drvdata(dev); local 356 gc_nes_read_packet(struct gc *gc, int length, unsigned char *data) argument 373 gc_nes_process_packet(struct gc *gc) argument 475 gc_multi_read_packet(struct gc *gc, int length, unsigned char *data) argument 485 gc_multi_process_packet(struct gc *gc) argument 565 gc_psx_command(struct gc *gc, int b, unsigned char *data) argument 596 gc_psx_read_packet(struct gc *gc, unsigned char data[GC_MAX_DEVICES][GC_PSX_BYTES], unsigned char id[GC_MAX_DEVICES]) argument 724 gc_psx_process_packet(struct gc *gc) argument 746 struct gc *gc = (void *) private; local 784 struct gc *gc = input_get_drvdata(dev); local 803 struct gc *gc = input_get_drvdata(dev); local 814 gc_setup_pad(struct gc *gc, int idx, int pad_type) argument 931 struct gc *gc; local 997 gc_remove(struct gc *gc) argument [all...] |
/drivers/of/ |
H A D | gpio.c | 38 struct gpio_chip *gc; local 48 gc = of_node_to_gpiochip(gpiospec.np); 49 if (!gc) { 56 if (gpiospec.args_count != gc->of_gpio_n_cells) { 67 ret = gc->of_xlate(gc, &gpiospec, flags); 71 ret += gc->base; 116 * @gc: pointer to the gpio_chip structure 125 int of_gpio_simple_xlate(struct gpio_chip *gc, argument 134 if (gc 175 struct gpio_chip *gc = &mm_gc->gc; local [all...] |
/drivers/scsi/ |
H A D | eata_pio.c | 657 static void print_pio_config(struct get_conf *gc) argument 660 printk("LEN: %d ver:%d OCS:%d TAR:%d TRNXFR:%d MORES:%d\n", be32_to_cpu(gc->len), gc->version, gc->OCS_enabled, gc->TAR_support, gc->TRNXFR, gc->MORE_support); 661 printk("HAAV:%d SCSIID0:%d ID1:%d ID2:%d QUEUE:%d SG:%d SEC:%d\n", gc->HAA_valid, gc->scsi_id[3], gc 692 register_pio_HBA(long base, struct get_conf *gc, struct pci_dev *pdev) argument 951 struct get_conf gc; local [all...] |
/drivers/staging/vme/devices/ |
H A D | vme_pio2_gpio.c | 32 return container_of(chip, struct pio2_card, gc); 202 card->gc.label = label; 204 card->gc.ngpio = PIO2_NUM_CHANNELS; 206 card->gc.base = -1; 208 card->gc.direction_input = pio2_gpio_dir_in; 209 card->gc.direction_output = pio2_gpio_dir_out; 210 card->gc.get = pio2_gpio_get; 211 card->gc.set = pio2_gpio_set; 214 retval = gpiochip_add(&(card->gc)); 217 kfree(card->gc [all...] |
/drivers/mfd/ |
H A D | jz4740-adc.c | 60 struct irq_chip_generic *gc; member in struct:jz4740_adc 70 struct irq_chip_generic *gc = irq_desc_get_handler_data(desc); local 74 status = readb(gc->reg_base + JZ_REG_ADC_STATUS); 78 generic_handle_irq(gc->irq_base + i); 207 struct irq_chip_generic *gc; local 269 gc = irq_alloc_generic_chip("INTC", 1, irq_base, adc->base, 272 ct = gc->chip_types; 279 irq_setup_generic_chip(gc, IRQ_MSK(5), 0, 0, IRQ_NOPROBE | IRQ_LEVEL); 281 adc->gc = gc; [all...] |
/drivers/input/keyboard/ |
H A D | adp5588-keys.c | 52 struct gpio_chip gc; member in struct:adp5588_kpad 77 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc); 87 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc); 106 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc); 124 struct adp5588_kpad *kpad = container_of(chip, struct adp5588_kpad, gc); 183 kpad->gc.ngpio = adp5588_build_gpiomap(kpad, pdata); 184 if (kpad->gc.ngpio == 0) { 191 kpad->gc.direction_input = adp5588_gpio_direction_input; 192 kpad->gc.direction_output = adp5588_gpio_direction_output; 193 kpad->gc [all...] |
/drivers/input/touchscreen/ |
H A D | ad7879.c | 115 struct gpio_chip gc; member in struct:ad7879 381 struct ad7879 *ts = container_of(chip, struct ad7879, gc); 395 struct ad7879 *ts = container_of(chip, struct ad7879, gc); 414 struct ad7879 *ts = container_of(chip, struct ad7879, gc); 427 struct ad7879 *ts = container_of(chip, struct ad7879, gc); 447 ts->gc.direction_input = ad7879_gpio_direction_input; 448 ts->gc.direction_output = ad7879_gpio_direction_output; 449 ts->gc.get = ad7879_gpio_get_value; 450 ts->gc.set = ad7879_gpio_set_value; 451 ts->gc [all...] |