/linux/drivers/gpio/ |
A D | gpio-mmio.c | 230 gc->write_reg(gc->reg_dat, gc->bgpio_data); in bgpio_set() 258 gc->write_reg(gc->reg_set, gc->bgpio_data); in bgpio_set_set() 341 gc->set(gc, gpio, val); in bgpio_simple_dir_out() 355 gc->write_reg(gc->reg_dir_in, ~gc->bgpio_dir); in bgpio_dir_in() 357 gc->write_reg(gc->reg_dir_out, gc->bgpio_dir); in bgpio_dir_in() 395 gc->write_reg(gc->reg_dir_in, ~gc->bgpio_dir); in bgpio_dir_out() 397 gc->write_reg(gc->reg_dir_out, gc->bgpio_dir); in bgpio_dir_out() 633 gc->bgpio_data = gc->read_reg(gc->reg_dat); in bgpio_init() 636 gc->bgpio_data = gc->read_reg(gc->reg_set); in bgpio_init() 647 gc->bgpio_dir = gc->read_reg(gc->reg_dir_out); in bgpio_init() [all …]
|
A D | gpiolib.c | 234 ret = gc->get_direction(gc, offset); in gpiod_get_direction() 462 return gc->init_valid_mask(gc, in gpiochip_init_valid_mask() 478 return gc->add_pin_ranges(gc); in gpiochip_add_pin_ranges() 635 if (gc->parent && gc->parent->driver) in gpiochip_add_data_with_key() 1736 pin_range->range.gc = gc; in gpiochip_add_pingroup_range() 1794 pin_range->range.gc = gc; in gpiochip_add_pin_range() 1873 ret = gc->request(gc, offset); in gpiod_request_commit() 2507 value = gc->get ? gc->get(gc, offset) : -EIO; in gpiod_get_raw_value_commit() 2522 value = gc->get(gc, i); in gpio_chip_get_multiple() 4350 gc->get ? (gc->get(gc, i) ? "hi" : "lo") : "? ", in gpiolib_dbg_show() [all …]
|
A D | gpio-mpc8xxx.c | 42 struct gpio_chip gc; member 116 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_gpio_irq_cascade() local 131 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_unmask() local 146 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_mask() local 161 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_ack() local 170 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc8xxx_irq_set_type() local 200 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc512x_irq_set_type() local 218 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 226 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 233 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift))); in mpc512x_irq_set_type() [all …]
|
A D | gpio-reg.c | 14 struct gpio_chip gc; member 27 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() 36 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() 41 gc->set(gc, offset, value); in gpio_reg_direction_output() 148 r->gc.label = label; in gpio_reg_init() 152 r->gc.set = gpio_reg_set; in gpio_reg_init() 153 r->gc.get = gpio_reg_get; in gpio_reg_init() 156 r->gc.to_irq = gpio_reg_to_irq; in gpio_reg_init() 157 r->gc.base = base; in gpio_reg_init() 158 r->gc.ngpio = num; in gpio_reg_init() [all …]
|
A D | gpio-mpc5200.c | 79 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set() 118 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_dir_out() 139 struct gpio_chip *gc; in mpc52xx_wkup_gpiochip_probe() local 148 gc = &chip->mmchip.gc; in mpc52xx_wkup_gpiochip_probe() 150 gc->ngpio = 8; in mpc52xx_wkup_gpiochip_probe() 153 gc->get = mpc52xx_wkup_gpio_get; in mpc52xx_wkup_gpiochip_probe() 240 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_set() 280 __mpc52xx_simple_gpio_set(gc, gpio, val); in mpc52xx_simple_gpio_dir_out() 300 struct gpio_chip *gc; in mpc52xx_simple_gpiochip_probe() local 310 gc = &chip->mmchip.gc; in mpc52xx_simple_gpiochip_probe() [all …]
|
A D | gpio-max77650.c | 36 struct gpio_chip gc; member 162 chip->gc.base = -1; in max77650_gpio_probe() 163 chip->gc.ngpio = 1; in max77650_gpio_probe() 164 chip->gc.label = i2c->name; in max77650_gpio_probe() 165 chip->gc.parent = dev; in max77650_gpio_probe() 166 chip->gc.owner = THIS_MODULE; in max77650_gpio_probe() 167 chip->gc.can_sleep = true; in max77650_gpio_probe() 171 chip->gc.set = max77650_gpio_set_value; in max77650_gpio_probe() 172 chip->gc.get = max77650_gpio_get_value; in max77650_gpio_probe() 174 chip->gc.set_config = max77650_gpio_set_config; in max77650_gpio_probe() [all …]
|
A D | gpio-brcmstb.c | 49 struct gpio_chip gc; member 111 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local 316 i += bank->gc.ngpio; in brcmstb_gpio_hwirq_to_bank() 515 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_bank_save() local 527 struct gpio_chip *gc; in brcmstb_gpio_quiesce() local 535 gc = &bank->gc; in brcmstb_gpio_quiesce() 560 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_bank_restore() local 696 gc = &bank->gc; in brcmstb_gpio_probe() 706 gc->of_node = np; in brcmstb_gpio_probe() 709 if (!gc->label) { in brcmstb_gpio_probe() [all …]
|
A D | gpio-tps68470.c | 26 struct gpio_chip gc; member 99 tps68470_gpio_set(gc, offset, value); in tps68470_gpio_output() 135 tps68470_gpio->gc.label = "tps68470-gpio"; in tps68470_gpio_probe() 136 tps68470_gpio->gc.owner = THIS_MODULE; in tps68470_gpio_probe() 139 tps68470_gpio->gc.get = tps68470_gpio_get; in tps68470_gpio_probe() 141 tps68470_gpio->gc.set = tps68470_gpio_set; in tps68470_gpio_probe() 142 tps68470_gpio->gc.can_sleep = true; in tps68470_gpio_probe() 143 tps68470_gpio->gc.names = tps68470_names; in tps68470_gpio_probe() 144 tps68470_gpio->gc.ngpio = TPS68470_N_GPIO; in tps68470_gpio_probe() 145 tps68470_gpio->gc.base = -1; in tps68470_gpio_probe() [all …]
|
A D | gpio-grgpio.c | 61 struct gpio_chip gc; member 93 struct gpio_chip *gc = &priv->gc; in grgpio_set_imask() local 106 if (offset >= gc->ngpio) in grgpio_to_irq() 332 struct gpio_chip *gc; in grgpio_probe() local 348 gc = &priv->gc; in grgpio_probe() 361 gc->of_node = np; in grgpio_probe() 362 gc->owner = THIS_MODULE; in grgpio_probe() 365 gc->base = -1; in grgpio_probe() 373 gc->ngpio = prop; in grgpio_probe() 385 size, gc->ngpio); in grgpio_probe() [all …]
|
A D | gpio-tb10x.c | 45 struct gpio_chip gc; member 130 tb10x_gpio->gc.label = in tb10x_gpio_probe() 132 if (!tb10x_gpio->gc.label) in tb10x_gpio_probe() 151 tb10x_gpio->gc.base = -1; in tb10x_gpio_probe() 152 tb10x_gpio->gc.parent = dev; in tb10x_gpio_probe() 158 tb10x_gpio->gc.ngpio = ngpio; in tb10x_gpio_probe() 187 tb10x_gpio->gc.ngpio, in tb10x_gpio_probe() 194 tb10x_gpio->gc.ngpio, 1, tb10x_gpio->gc.label, in tb10x_gpio_probe() 200 gc = tb10x_gpio->domain->gc->gc[0]; in tb10x_gpio_probe() 218 if (tb10x_gpio->gc.to_irq) { in tb10x_gpio_remove() [all …]
|
A D | gpio-mockup.c | 49 struct gpio_chip gc; member 147 struct gpio_chip *gc = &chip->gc; in gpio_mockup_apply_pull() local 275 gc = &chip->gc; in gpio_mockup_debugfs_read() 353 gc = &chip->gc; in gpio_mockup_debugfs_setup() 379 struct gpio_chip *gc = &chip->gc; in gpio_mockup_dispose_mappings() local 418 gc = &chip->gc; in gpio_mockup_probe() 419 gc->base = base; in gpio_mockup_probe() 420 gc->ngpio = ngpio; in gpio_mockup_probe() 421 gc->label = name; in gpio_mockup_probe() 423 gc->parent = dev; in gpio_mockup_probe() [all …]
|
A D | gpio-raspberrypi-exp.c | 26 struct gpio_chip gc; member 60 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get_polarity() 80 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_in() 109 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_out() 138 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get_direction() 145 dev_err(gc->parent, in rpi_exp_gpio_get_direction() 170 dev_err(gc->parent, in rpi_exp_gpio_get() 192 dev_err(gc->parent, in rpi_exp_gpio_set() 221 rpi_gpio->gc.parent = dev; in rpi_exp_gpio_probe() 224 rpi_gpio->gc.of_node = np; in rpi_exp_gpio_probe() [all …]
|
A D | gpio-ep93xx.c | 53 struct gpio_chip gc; member 131 generic_handle_domain_irq(epg->gc[0].gc.irq.domain, in ep93xx_gpio_ab_irq_handler() 136 generic_handle_domain_irq(epg->gc[1].gc.irq.domain, in ep93xx_gpio_ab_irq_handler() 224 gc->direction_input(gc, offset); in ep93xx_gpio_irq_type() 250 if (gc->get(gc, offset)) in ep93xx_gpio_irq_type() 339 struct gpio_chip *gc = &egc->gc; in ep93xx_gpio_add_bank() local 348 gc->label = bank->label; in ep93xx_gpio_add_bank() 349 gc->base = bank->base; in ep93xx_gpio_add_bank() 351 girq = &gc->irq; in ep93xx_gpio_add_bank() 355 gc->set_config = ep93xx_gpio_set_config; in ep93xx_gpio_add_bank() [all …]
|
A D | gpio-pl061.c | 54 struct gpio_chip gc; member 140 dev_err(gc->parent, in pl061_irq_type() 303 pl061->gc.free = gpiochip_generic_free; in pl061_probe() 304 pl061->gc.base = -1; in pl061_probe() 308 pl061->gc.get = pl061_get_value; in pl061_probe() 309 pl061->gc.set = pl061_set_value; in pl061_probe() 310 pl061->gc.ngpio = PL061_GPIO_NR; in pl061_probe() 311 pl061->gc.label = dev_name(dev); in pl061_probe() 312 pl061->gc.parent = dev; in pl061_probe() 313 pl061->gc.owner = THIS_MODULE; in pl061_probe() [all …]
|
A D | gpio-mb86s7x.c | 37 struct gpio_chip gc; member 186 gchip->gc.free = mb86s70_gpio_free; in mb86s70_gpio_probe() 187 gchip->gc.get = mb86s70_gpio_get; in mb86s70_gpio_probe() 188 gchip->gc.set = mb86s70_gpio_set; in mb86s70_gpio_probe() 189 gchip->gc.to_irq = mb86s70_gpio_to_irq; in mb86s70_gpio_probe() 190 gchip->gc.label = dev_name(&pdev->dev); in mb86s70_gpio_probe() 191 gchip->gc.ngpio = 32; in mb86s70_gpio_probe() 192 gchip->gc.owner = THIS_MODULE; in mb86s70_gpio_probe() 193 gchip->gc.parent = &pdev->dev; in mb86s70_gpio_probe() 194 gchip->gc.base = -1; in mb86s70_gpio_probe() [all …]
|
/linux/kernel/irq/ |
A D | generic-chip.c | 43 irq_gc_lock(gc); in irq_gc_mask_disable_reg() 248 if (gc) { in irq_alloc_generic_chip() 252 return gc; in irq_alloc_generic_chip() 300 if (d->gc) in __irq_alloc_domain_generic_chips() 326 dgc->gc[i] = gc = tmp; in __irq_alloc_domain_generic_chips() 370 return !IS_ERR(gc) ? gc : NULL; in irq_get_domain_generic_chip() 443 if (!gc) in irq_unmap_generic_chip() 507 gc->irq_cnt = i - gc->irq_base; in irq_setup_generic_chip() 580 virq = irq_find_mapping(gc->domain, gc->irq_base + __ffs(gc->installed)); in irq_gc_get_irq_data() 600 gc->suspend(gc); in irq_gc_suspend() [all …]
|
/linux/drivers/irqchip/ |
A D | irq-atmel-aic.c | 64 struct irq_chip_generic *gc = dgc->gc[0]; in aic_handle() local 82 irq_gc_lock(gc); in aic_retrigger() 84 irq_gc_unlock(gc); in aic_retrigger() 110 irq_gc_lock(gc); in aic_suspend() 111 irq_reg_writel(gc, gc->mask_cache, AT91_AIC_IDCR); in aic_suspend() 112 irq_reg_writel(gc, gc->wake_active, AT91_AIC_IECR); in aic_suspend() 120 irq_gc_lock(gc); in aic_resume() 121 irq_reg_writel(gc, gc->wake_active, AT91_AIC_IDCR); in aic_resume() 122 irq_reg_writel(gc, gc->mask_cache, AT91_AIC_IECR); in aic_resume() 130 irq_gc_lock(gc); in aic_pm_shutdown() [all …]
|
A D | irq-tb10x.c | 34 irq_reg_writel(gc, val, reg); in ab_irqctl_writereg() 39 return irq_reg_readl(gc, reg); in ab_irqctl_readreg() 49 irq_gc_lock(gc); in tb10x_irq_set_type() 71 irq_gc_unlock(gc); in tb10x_irq_set_type() 80 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod); in tb10x_irq_set_type() 82 ab_irqctl_writereg(gc, AB_IRQCTL_INT_STATUS, im); in tb10x_irq_set_type() 84 irq_gc_unlock(gc); in tb10x_irq_set_type() 102 struct irq_chip_generic *gc; in of_tb10x_init_irq() local 144 gc = domain->gc->gc[0]; in of_tb10x_init_irq() 154 gc->chip_types[1].chip.name = gc->chip_types[0].chip.name; in of_tb10x_init_irq() [all …]
|
A D | irq-sunxi-nmi.c | 79 irq_reg_writel(gc, val, off); in sunxi_sc_nmi_write() 84 return irq_reg_readl(gc, off); in sunxi_sc_nmi_read() 100 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type() 106 irq_gc_lock(gc); in sunxi_sc_nmi_set_type() 123 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 132 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type() 141 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 150 struct irq_chip_generic *gc; in sunxi_sc_nmi_irq_init() local 179 if (IS_ERR(gc->reg_base)) { in sunxi_sc_nmi_irq_init() 181 ret = PTR_ERR(gc->reg_base); in sunxi_sc_nmi_irq_init() [all …]
|
A D | irq-loongson-liointc.c | 44 struct irq_chip_generic *gc; member 55 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() local 89 gc->reg_base + offset); in liointc_set_bit() 92 gc->reg_base + offset); in liointc_set_bit() 142 writel(gc->mask_cache, gc->reg_base + LIOINTC_REG_INTC_ENABLE); in liointc_resume() 267 gc->private = priv; in liointc_of_init() 268 gc->reg_base = base; in liointc_of_init() 269 gc->domain = domain; in liointc_of_init() 272 ct = gc->chip_types; in liointc_of_init() 280 gc->mask_cache = 0; in liointc_of_init() [all …]
|
A D | irq-orion.c | 39 struct irq_chip_generic *gc = in orion_handle_irq() local 42 gc->mask_cache; in orion_handle_irq() 46 gc->irq_base + hwirq); in orion_handle_irq() 77 struct irq_chip_generic *gc = in orion_irq_init() local 87 if (!gc->reg_base) in orion_irq_init() 90 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init() 95 writel(0, gc->reg_base + ORION_IRQ_MASK); in orion_irq_init() 115 gc->mask_cache; in orion_bridge_irq_handler() 144 struct irq_chip_generic *gc; in orion_bridge_irq_init() local 182 gc = irq_get_domain_generic_chip(domain, 0); in orion_bridge_irq_init() [all …]
|
A D | irq-atmel-aic5.c | 98 irq_reg_writel(gc, 1, AT91_AIC5_IDCR); in aic5_mask() 99 gc->mask_cache &= ~d->mask; in aic5_mask() 115 irq_reg_writel(gc, 1, AT91_AIC5_IECR); in aic5_unmask() 116 gc->mask_cache |= d->mask; in aic5_unmask() 173 if ((mask & gc->mask_cache) == (mask & gc->wake_active)) in aic5_suspend() 177 if (mask & gc->wake_active) in aic5_suspend() 209 ((mask & gc->mask_cache) == (mask & gc->wake_active))) in aic5_resume() 213 if (mask & gc->mask_cache) in aic5_resume() 263 irq_reg_writel(gc, 0, AT91_AIC5_DCR); in aic5_hw_init() 267 irq_reg_writel(gc, i, AT91_AIC5_SSR); in aic5_hw_init() [all …]
|
/linux/include/linux/gpio/ |
A D | driver.h | 227 int (*init_hw)(struct gpio_chip *gc); 382 int (*request)(struct gpio_chip *gc, 384 void (*free)(struct gpio_chip *gc, 392 int (*get)(struct gpio_chip *gc, 397 void (*set)(struct gpio_chip *gc, 405 int (*to_irq)(struct gpio_chip *gc, 409 struct gpio_chip *gc); 488 int (*of_xlate)(struct gpio_chip *gc, 541 #define gpiochip_add_data(gc, data) ({ \ argument 554 #define gpiochip_add_data(gc, data) gpiochip_add_data_with_key(gc, data, NULL, NULL) argument [all …]
|
/linux/drivers/input/joystick/ |
A D | gamecon.c | 73 struct gc { struct 205 static void gc_n64_process_packet(struct gc *gc) in gc_n64_process_packet() argument 255 struct gc *gc = input_get_drvdata(dev); in gc_n64_play_effect() local 358 static void gc_nes_process_packet(struct gc *gc) in gc_nes_process_packet() argument 581 static void gc_psx_read_packet(struct gc *gc, in gc_psx_read_packet() argument 732 struct gc *gc = from_timer(gc, t, timer); in gc_timer() local 770 struct gc *gc = input_get_drvdata(dev); in gc_open() local 789 struct gc *gc = input_get_drvdata(dev); in gc_close() local 924 struct gc *gc; in gc_attach() local 956 gc = kzalloc(sizeof(struct gc), GFP_KERNEL); in gc_attach() [all …]
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | gdma_main.c | 25 gc->db_page_size = mana_gd_r32(gc, GDMA_REG_DB_PAGE_SIZE) & 0xFFFF; in mana_gd_init_registers() 27 gc->db_page_base = gc->bar0_va + in mana_gd_init_registers() 30 gc->shm_base = gc->bar0_va + mana_gd_r64(gc, GDMA_REG_SHM_OFFSET); in mana_gd_init_registers() 73 if (gc->max_num_queues > gc->num_msix_usable - 1) in mana_gd_query_max_resources() 74 gc->max_num_queues = gc->num_msix_usable - 1; in mana_gd_query_max_resources() 110 gc->mana.gdma_context = gc; in mana_gd_detect_devices() 1267 mana_smc_init(&gc->shm_channel, gc->dev, gc->shm_base); in mana_gd_setup() 1332 gc = vzalloc(sizeof(*gc)); in mana_gd_probe() 1333 if (!gc) in mana_gd_probe() 1363 vfree(gc); in mana_gd_probe() [all …]
|