/drivers/input/joystick/ |
D | gamecon.c | 89 struct gc { struct 102 static struct gc *gc_base[3]; argument 148 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, in gc_n64_send_command() argument 151 struct parport *port = gc->pd->port; in gc_n64_send_command() 162 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) in gc_n64_send_stop_bit() argument 164 struct parport *port = gc->pd->port; in gc_n64_send_stop_bit() 180 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet() argument 190 gc_n64_send_command(gc, GC_N64_REQUEST_DATA, GC_N64_OUT); in gc_n64_read_packet() 191 gc_n64_send_stop_bit(gc, GC_N64_OUT); in gc_n64_read_packet() 206 parport_write_data(gc->pd->port, GC_N64_POWER_R); in gc_n64_read_packet() [all …]
|
/drivers/gpio/ |
D | gpio-ucb1400.c | 15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_dir_in() argument 18 gpio = container_of(gc, struct ucb1400_gpio, gc); 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() argument 26 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_dir_out() 32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument 35 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_get() 39 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument 42 gpio = container_of(gc, struct ucb1400_gpio, gc); in ucb1400_gpio_set() 58 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe() 59 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe() [all …]
|
D | gpio-mpc5200.c | 57 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() argument 59 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() 71 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument 73 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() 87 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument 93 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set() 100 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() argument 102 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() 124 mpc52xx_wkup_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_dir_out() argument 126 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_out() [all …]
|
D | gpio-generic.c | 138 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get() argument 140 struct bgpio_chip *bgc = to_bgpio_chip(gc); in bgpio_get() 145 static void bgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set() argument 147 struct bgpio_chip *bgc = to_bgpio_chip(gc); in bgpio_set() 163 static void bgpio_set_with_clear(struct gpio_chip *gc, unsigned int gpio, in bgpio_set_with_clear() argument 166 struct bgpio_chip *bgc = to_bgpio_chip(gc); in bgpio_set_with_clear() 175 static void bgpio_set_set(struct gpio_chip *gc, unsigned int gpio, int val) in bgpio_set_set() argument 177 struct bgpio_chip *bgc = to_bgpio_chip(gc); in bgpio_set_set() 193 static int bgpio_simple_dir_in(struct gpio_chip *gc, unsigned int gpio) in bgpio_simple_dir_in() argument 198 static int bgpio_simple_dir_out(struct gpio_chip *gc, unsigned int gpio, in bgpio_simple_dir_out() argument [all …]
|
D | gpio-pl061.c | 57 struct gpio_chip gc; member 82 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument 84 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_direction_input() 88 if (offset >= gc->ngpio) in pl061_direction_input() 100 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument 103 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_direction_output() 107 if (offset >= gc->ngpio) in pl061_direction_output() 126 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument 128 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_get_value() 133 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value() argument [all …]
|
D | gpiolib-of.c | 34 static int of_gpiochip_find_and_xlate(struct gpio_chip *gc, void *data) in of_gpiochip_find_and_xlate() argument 39 if ((gc->of_node != gg_data->gpiospec.np) || in of_gpiochip_find_and_xlate() 40 (gc->of_gpio_n_cells != gg_data->gpiospec.args_count) || in of_gpiochip_find_and_xlate() 41 (!gc->of_xlate)) in of_gpiochip_find_and_xlate() 44 ret = gc->of_xlate(gc, &gg_data->gpiospec, gg_data->flags); in of_gpiochip_find_and_xlate() 48 gg_data->out_gpio = ret + gc->base; in of_gpiochip_find_and_xlate() 102 int of_gpio_simple_xlate(struct gpio_chip *gc, in of_gpio_simple_xlate() argument 111 if (gc->of_gpio_n_cells < 2) { in of_gpio_simple_xlate() 116 if (WARN_ON(gpiospec->args_count < gc->of_gpio_n_cells)) in of_gpio_simple_xlate() 119 if (gpiospec->args[0] >= gc->ngpio) in of_gpio_simple_xlate() [all …]
|
D | gpio-ge.c | 122 gef_gpio_chip->gc.of_gpio_n_cells = 2; in gef_gpio_init() 123 gef_gpio_chip->gc.ngpio = 19; in gef_gpio_init() 124 gef_gpio_chip->gc.direction_input = gef_gpio_dir_in; in gef_gpio_init() 125 gef_gpio_chip->gc.direction_output = gef_gpio_dir_out; in gef_gpio_init() 126 gef_gpio_chip->gc.get = gef_gpio_get; in gef_gpio_init() 127 gef_gpio_chip->gc.set = gef_gpio_set; in gef_gpio_init() 150 gef_gpio_chip->gc.of_gpio_n_cells = 2; in gef_gpio_init() 151 gef_gpio_chip->gc.ngpio = 6; in gef_gpio_init() 152 gef_gpio_chip->gc.direction_input = gef_gpio_dir_in; in gef_gpio_init() 153 gef_gpio_chip->gc.direction_output = gef_gpio_dir_out; in gef_gpio_init() [all …]
|
D | gpio-mvebu.c | 294 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mvebu_gpio_irq_ack() local 295 struct mvebu_gpio_chip *mvchip = gc->private; in mvebu_gpio_irq_ack() 296 u32 mask = ~(1 << (d->irq - gc->irq_base)); in mvebu_gpio_irq_ack() 298 irq_gc_lock(gc); in mvebu_gpio_irq_ack() 300 irq_gc_unlock(gc); in mvebu_gpio_irq_ack() 305 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mvebu_gpio_edge_irq_mask() local 306 struct mvebu_gpio_chip *mvchip = gc->private; in mvebu_gpio_edge_irq_mask() 307 u32 mask = 1 << (d->irq - gc->irq_base); in mvebu_gpio_edge_irq_mask() 309 irq_gc_lock(gc); in mvebu_gpio_edge_irq_mask() 310 gc->mask_cache &= ~mask; in mvebu_gpio_edge_irq_mask() [all …]
|
D | gpio-stp-xway.c | 82 struct gpio_chip gc; member 101 static void xway_stp_set(struct gpio_chip *gc, unsigned gpio, int val) in xway_stp_set() argument 104 container_of(gc, struct xway_stp, gc); in xway_stp_set() 122 static int xway_stp_dir_out(struct gpio_chip *gc, unsigned gpio, int val) in xway_stp_dir_out() argument 124 xway_stp_set(gc, gpio, val); in xway_stp_dir_out() 136 static int xway_stp_request(struct gpio_chip *gc, unsigned gpio) in xway_stp_request() argument 139 container_of(gc, struct xway_stp, gc); in xway_stp_request() 142 dev_err(gc->dev, "GPIO %d is driven by hardware\n", gpio); in xway_stp_request() 221 chip->gc.dev = &pdev->dev; in xway_stp_probe() 222 chip->gc.label = "stp-xway"; in xway_stp_probe() [all …]
|
D | gpio-mpc8xxx.c | 67 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() argument 70 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8572_gpio_get() 78 static int mpc8xxx_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8xxx_gpio_get() argument 80 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_get() 85 static void mpc8xxx_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc8xxx_gpio_set() argument 87 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_set() 103 static int mpc8xxx_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc8xxx_gpio_dir_in() argument 105 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_dir_in() 118 static int mpc8xxx_gpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in mpc8xxx_gpio_dir_out() argument 120 struct of_mm_gpio_chip *mm = to_of_mm_gpio_chip(gc); in mpc8xxx_gpio_dir_out() [all …]
|
D | gpio-palmas.c | 39 static int palmas_gpio_get(struct gpio_chip *gc, unsigned offset) in palmas_gpio_get() argument 41 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_get() 48 dev_err(gc->dev, "GPIO_DATA_IN read failed, err = %d\n", ret); in palmas_gpio_get() 54 static void palmas_gpio_set(struct gpio_chip *gc, unsigned offset, in palmas_gpio_set() argument 57 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_set() 68 dev_err(gc->dev, "%s write failed, err = %d\n", in palmas_gpio_set() 73 static int palmas_gpio_output(struct gpio_chip *gc, unsigned offset, in palmas_gpio_output() argument 76 struct palmas_gpio *pg = to_palmas_gpio(gc); in palmas_gpio_output() 81 palmas_gpio_set(gc, offset, value); in palmas_gpio_output() 86 dev_err(gc->dev, "GPIO_DATA_DIR write failed, err = %d\n", ret); in palmas_gpio_output() [all …]
|
D | gpio-grgpio.c | 95 static inline struct grgpio_priv *grgpio_gc_to_priv(struct gpio_chip *gc) in grgpio_gc_to_priv() argument 97 struct bgpio_chip *bgc = to_bgpio_chip(gc); in grgpio_gc_to_priv() 120 static int grgpio_to_irq(struct gpio_chip *gc, unsigned offset) in grgpio_to_irq() argument 122 struct grgpio_priv *priv = grgpio_gc_to_priv(gc); in grgpio_to_irq() 124 if (offset > gc->ngpio) in grgpio_to_irq() 205 int ngpio = priv->bgc.gc.ngpio; in grgpio_irq_handler() 301 int ngpio = priv->bgc.gc.ngpio; in grgpio_irq_unmap() 346 struct gpio_chip *gc; in grgpio_probe() local 378 gc = &bgc->gc; in grgpio_probe() 379 gc->of_node = np; in grgpio_probe() [all …]
|
D | gpio-xilinx.c | 44 static int xgpio_get(struct gpio_chip *gc, unsigned int gpio) in xgpio_get() argument 46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_get() 60 static void xgpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_set() argument 63 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_set() 88 static int xgpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in xgpio_dir_in() argument 91 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_in() 116 static int xgpio_dir_out(struct gpio_chip *gc, unsigned int gpio, int val) in xgpio_dir_out() argument 119 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in xgpio_dir_out() 184 chip->mmchip.gc.ngpio = 32; /* By default assume full GPIO controller */ in xgpio_of_probe() 190 chip->mmchip.gc.ngpio = be32_to_cpup(tree_info); in xgpio_of_probe() [all …]
|
D | gpio-rc5t583.c | 42 static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_get() argument 44 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); in rc5t583_gpio_get() 56 static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in rc5t583_gpio_set() argument 58 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); in rc5t583_gpio_set() 66 static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_dir_input() argument 68 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); in rc5t583_gpio_dir_input() 80 static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset, in rc5t583_gpio_dir_output() argument 83 struct rc5t583_gpio *rc5t583_gpio = to_rc5t583_gpio(gc); in rc5t583_gpio_dir_output() 87 rc5t583_gpio_set(gc, offset, value); in rc5t583_gpio_dir_output() 96 static int rc5t583_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in rc5t583_gpio_to_irq() argument [all …]
|
D | gpio-da9055.c | 43 static int da9055_gpio_get(struct gpio_chip *gc, unsigned offset) in da9055_gpio_get() argument 45 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_get() 72 static void da9055_gpio_set(struct gpio_chip *gc, unsigned offset, int value) in da9055_gpio_set() argument 74 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_set() 82 static int da9055_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in da9055_gpio_direction_input() argument 84 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_direction_input() 97 static int da9055_gpio_direction_output(struct gpio_chip *gc, in da9055_gpio_direction_output() argument 100 struct da9055_gpio *gpio = to_da9055_gpio(gc); in da9055_gpio_direction_output() 115 da9055_gpio_set(gc, offset, value); in da9055_gpio_direction_output() 120 static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset) in da9055_gpio_to_irq() argument [all …]
|
D | gpio-adp5520.c | 94 struct gpio_chip *gc; in adp5520_gpio_probe() local 125 gc = &dev->gpio_chip; in adp5520_gpio_probe() 126 gc->direction_input = adp5520_gpio_direction_input; in adp5520_gpio_probe() 127 gc->direction_output = adp5520_gpio_direction_output; in adp5520_gpio_probe() 128 gc->get = adp5520_gpio_get_value; in adp5520_gpio_probe() 129 gc->set = adp5520_gpio_set_value; in adp5520_gpio_probe() 130 gc->can_sleep = 1; in adp5520_gpio_probe() 132 gc->base = pdata->gpio_start; in adp5520_gpio_probe() 133 gc->ngpio = gpios; in adp5520_gpio_probe() 134 gc->label = pdev->name; in adp5520_gpio_probe() [all …]
|
D | gpio-tps65912.c | 29 static int tps65912_gpio_get(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_get() argument 31 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); in tps65912_gpio_get() 42 static void tps65912_gpio_set(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_set() argument 45 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); in tps65912_gpio_set() 55 static int tps65912_gpio_output(struct gpio_chip *gc, unsigned offset, in tps65912_gpio_output() argument 58 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); in tps65912_gpio_output() 61 tps65912_gpio_set(gc, offset, value); in tps65912_gpio_output() 67 static int tps65912_gpio_input(struct gpio_chip *gc, unsigned offset) in tps65912_gpio_input() argument 69 struct tps65912 *tps65912 = container_of(gc, struct tps65912, gpio); in tps65912_gpio_input()
|
D | gpio-mxs.c | 88 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mxs_gpio_set_irq_type() local 89 struct mxs_gpio_port *port = gc->private; in mxs_gpio_set_irq_type() 96 val = gpio_get_value(port->bgc.gc.base + d->hwirq); in mxs_gpio_set_irq_type() 188 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in mxs_gpio_set_wake_irq() local 189 struct mxs_gpio_port *port = gc->private; in mxs_gpio_set_wake_irq() 201 struct irq_chip_generic *gc; in mxs_gpio_init_gc() local 204 gc = irq_alloc_generic_chip("gpio-mxs", 1, irq_base, in mxs_gpio_init_gc() 206 gc->private = port; in mxs_gpio_init_gc() 208 ct = gc->chip_types; in mxs_gpio_init_gc() 217 irq_setup_generic_chip(gc, IRQ_MSK(32), 0, IRQ_NOREQUEST, 0); in mxs_gpio_init_gc() [all …]
|
D | gpio-tps6586x.c | 46 static int tps6586x_gpio_get(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_get() argument 48 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); in tps6586x_gpio_get() 59 static void tps6586x_gpio_set(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_set() argument 62 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); in tps6586x_gpio_set() 68 static int tps6586x_gpio_output(struct gpio_chip *gc, unsigned offset, in tps6586x_gpio_output() argument 71 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); in tps6586x_gpio_output() 74 tps6586x_gpio_set(gc, offset, value); in tps6586x_gpio_output() 83 static int tps6586x_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in tps6586x_gpio_to_irq() argument 85 struct tps6586x_gpio *tps6586x_gpio = to_tps6586x_gpio(gc); in tps6586x_gpio_to_irq()
|
D | gpio-mm-lantiq.c | 62 static void ltq_mm_set(struct gpio_chip *gc, unsigned offset, int value) in ltq_mm_set() argument 64 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in ltq_mm_set() 83 static int ltq_mm_dir_out(struct gpio_chip *gc, unsigned offset, int value) in ltq_mm_dir_out() argument 85 ltq_mm_set(gc, offset, value); in ltq_mm_dir_out() 121 chip->mmchip.gc.ngpio = 16; in ltq_mm_probe() 122 chip->mmchip.gc.label = "gpio-mm-ltq"; in ltq_mm_probe() 123 chip->mmchip.gc.direction_output = ltq_mm_dir_out; in ltq_mm_probe() 124 chip->mmchip.gc.set = ltq_mm_set; in ltq_mm_probe()
|
D | gpio-max732x.c | 181 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) in max732x_gpio_get_value() argument 187 chip = container_of(gc, struct max732x_chip, gpio_chip); in max732x_gpio_get_value() 196 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) in max732x_gpio_set_value() argument 202 chip = container_of(gc, struct max732x_chip, gpio_chip); in max732x_gpio_set_value() 222 static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigned off) in max732x_gpio_direction_input() argument 227 chip = container_of(gc, struct max732x_chip, gpio_chip); in max732x_gpio_direction_input() 240 max732x_gpio_set_value(gc, off, 1); in max732x_gpio_direction_input() 245 static int max732x_gpio_direction_output(struct gpio_chip *gc, in max732x_gpio_direction_output() argument 251 chip = container_of(gc, struct max732x_chip, gpio_chip); in max732x_gpio_direction_output() 259 max732x_gpio_set_value(gc, off, val); in max732x_gpio_direction_output() [all …]
|
/drivers/pinctrl/sh-pfc/ |
D | gpio.c | 41 static struct sh_pfc_chip *gpio_to_pfc_chip(struct gpio_chip *gc) in gpio_to_pfc_chip() argument 43 return container_of(gc, struct sh_pfc_chip, gpio_chip); in gpio_to_pfc_chip() 46 static struct sh_pfc *gpio_to_pfc(struct gpio_chip *gc) in gpio_to_pfc() argument 48 return gpio_to_pfc_chip(gc)->pfc; in gpio_to_pfc() 137 static int gpio_pin_request(struct gpio_chip *gc, unsigned offset) in gpio_pin_request() argument 139 struct sh_pfc *pfc = gpio_to_pfc(gc); in gpio_pin_request() 148 static void gpio_pin_free(struct gpio_chip *gc, unsigned offset) in gpio_pin_free() argument 172 static int gpio_pin_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_pin_direction_input() argument 177 static int gpio_pin_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_pin_direction_output() argument 180 gpio_pin_set_value(gpio_to_pfc_chip(gc), offset, value); in gpio_pin_direction_output() [all …]
|
/drivers/scsi/ |
D | eata_pio.c | 621 static void print_pio_config(struct get_conf *gc) in print_pio_config() argument 624 …AR:%d TRNXFR:%d MORES:%d\n", be32_to_cpu(gc->len), gc->version, gc->OCS_enabled, gc->TAR_support, … in print_pio_config() 625 … SG:%d SEC:%d\n", gc->HAA_valid, gc->scsi_id[3], gc->scsi_id[2], gc->scsi_id[1], be16_to_cpu(gc->q… in print_pio_config() 626 …intk("IRQ:%d IRQT:%d FORCADR:%d MCH:%d RIDQ:%d\n", gc->IRQ, gc->IRQ_TR, gc->FORCADR, gc->MAX_CHAN,… in print_pio_config() 656 static int register_pio_HBA(long base, struct get_conf *gc, struct pci_dev *pdev) in register_pio_HBA() argument 665 DBG(DBG_REGISTER, print_pio_config(gc)); in register_pio_HBA() 667 if (gc->DMA_support) { in register_pio_HBA() 673 …ff = get_pio_board_data(base, gc->IRQ, gc->scsi_id[3], cplen = (cpu_to_be32(gc->cplen) + 1) / 2, c… in register_pio_HBA() 683 size = sizeof(hostdata) + (sizeof(struct eata_ccb) * be16_to_cpu(gc->queuesiz)); in register_pio_HBA() 689 if (!reg_IRQ[gc->IRQ]) { /* Interrupt already registered ? */ in register_pio_HBA() [all …]
|
/drivers/staging/vme/devices/ |
D | vme_pio2_gpio.c | 31 return container_of(chip, struct pio2_card, gc); in gpio_to_pio2_card() 199 card->gc.label = label; in pio2_gpio_init() 201 card->gc.ngpio = PIO2_NUM_CHANNELS; in pio2_gpio_init() 203 card->gc.base = -1; in pio2_gpio_init() 205 card->gc.direction_input = pio2_gpio_dir_in; in pio2_gpio_init() 206 card->gc.direction_output = pio2_gpio_dir_out; in pio2_gpio_init() 207 card->gc.get = pio2_gpio_get; in pio2_gpio_init() 208 card->gc.set = pio2_gpio_set; in pio2_gpio_init() 211 retval = gpiochip_add(&(card->gc)); in pio2_gpio_init() 214 kfree(card->gc.label); in pio2_gpio_init() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-exynos5440.c | 115 struct gpio_chip *gc; member 549 static void exynos5440_gpio_set(struct gpio_chip *gc, unsigned offset, int value) in exynos5440_gpio_set() argument 551 struct exynos5440_pinctrl_priv_data *priv = dev_get_drvdata(gc->dev); in exynos5440_gpio_set() 563 static int exynos5440_gpio_get(struct gpio_chip *gc, unsigned offset) in exynos5440_gpio_get() argument 565 struct exynos5440_pinctrl_priv_data *priv = dev_get_drvdata(gc->dev); in exynos5440_gpio_get() 576 static int exynos5440_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in exynos5440_gpio_direction_input() argument 578 struct exynos5440_pinctrl_priv_data *priv = dev_get_drvdata(gc->dev); in exynos5440_gpio_direction_input() 595 static int exynos5440_gpio_direction_output(struct gpio_chip *gc, unsigned offset, in exynos5440_gpio_direction_output() argument 598 struct exynos5440_pinctrl_priv_data *priv = dev_get_drvdata(gc->dev); in exynos5440_gpio_direction_output() 602 exynos5440_gpio_set(gc, offset, value); in exynos5440_gpio_direction_output() [all …]
|