/linux-6.3-rc2/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 | 235 ret = gc->get_direction(gc, offset); in gpiod_get_direction() 520 return gc->init_valid_mask(gc, in gpiochip_init_valid_mask() 544 return gc->add_pin_ranges(gc); in gpiochip_add_pin_ranges() 710 if (gc->parent && gc->parent->driver) in gpiochip_add_data_with_key() 1867 pin_range->range.gc = gc; in gpiochip_add_pingroup_range() 1925 pin_range->range.gc = gc; in gpiochip_add_pin_range() 2004 ret = gc->request(gc, offset); in gpiod_request_commit() 2675 return gc->get ? gc->get(gc, gpio_chip_hwgpio(desc)) : -EIO; in gpio_chip_get_value() 2721 value = gc->get(gc, i); in gpio_chip_get_multiple() 3018 gc->set_multiple(gc, mask, bits); in gpio_chip_set_multiple() [all …]
|
A D | gpio-mpc8xxx.c | 39 struct gpio_chip gc; member 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 198 struct gpio_chip *gc = &mpc8xxx_gc->gc; in mpc512x_irq_set_type() local 216 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 224 gc->write_reg(reg, (gc->read_reg(reg) & ~(3 << shift)) in mpc512x_irq_set_type() 231 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-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-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 | 50 struct gpio_chip gc; member 148 struct gpio_chip *gc = &chip->gc; in gpio_mockup_apply_pull() local 276 gc = &chip->gc; in gpio_mockup_debugfs_read() 354 gc = &chip->gc; in gpio_mockup_debugfs_setup() 387 struct gpio_chip *gc = &chip->gc; in gpio_mockup_dispose_mappings() local 426 gc = &chip->gc; in gpio_mockup_probe() 427 gc->base = base; in gpio_mockup_probe() 428 gc->ngpio = ngpio; in gpio_mockup_probe() 429 gc->label = name; in gpio_mockup_probe() 431 gc->parent = dev; in gpio_mockup_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() 227 gc->direction_input(gc, offset); in ep93xx_gpio_irq_type() 253 if (gc->get(gc, offset)) in ep93xx_gpio_irq_type() 330 seq_printf(p, dev_name(gc->parent)); in ep93xx_irq_print_chip() 352 struct gpio_chip *gc = &egc->gc; in ep93xx_gpio_add_bank() local 361 gc->label = bank->label; in ep93xx_gpio_add_bank() 362 gc->base = bank->base; in ep93xx_gpio_add_bank() 364 girq = &gc->irq; in ep93xx_gpio_add_bank() [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->owner = THIS_MODULE; in grgpio_probe() 364 gc->base = -1; in grgpio_probe() 372 gc->ngpio = prop; in grgpio_probe() 381 if (size < gc->ngpio) { in grgpio_probe() 384 size, gc->ngpio); in grgpio_probe() [all …]
|
A D | gpio-brcmstb.c | 39 struct gpio_chip gc; member 101 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local 306 i += bank->gc.ngpio; in brcmstb_gpio_hwirq_to_bank() 500 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_bank_save() local 512 struct gpio_chip *gc; in brcmstb_gpio_quiesce() local 520 gc = &bank->gc; in brcmstb_gpio_quiesce() 545 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_bank_restore() local 647 struct gpio_chip *gc; in brcmstb_gpio_probe() local 681 gc = &bank->gc; in brcmstb_gpio_probe() 693 if (!gc->label) { in brcmstb_gpio_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() 162 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get() 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() [all …]
|
A D | gpio-loongson1.c | 28 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_request() 40 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_free() 49 struct gpio_chip *gc; in ls1x_gpio_probe() local 52 gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); in ls1x_gpio_probe() 53 if (!gc) in ls1x_gpio_probe() 66 gc->owner = THIS_MODULE; in ls1x_gpio_probe() 67 gc->request = ls1x_gpio_request; in ls1x_gpio_probe() 68 gc->free = ls1x_gpio_free; in ls1x_gpio_probe() 69 gc->base = pdev->id * 32; in ls1x_gpio_probe() 71 ret = devm_gpiochip_add_data(dev, gc, NULL); in ls1x_gpio_probe() [all …]
|
A D | gpio-pl061.c | 55 struct gpio_chip gc; member 140 dev_err(gc->parent, in pl061_irq_type() 255 gpiochip_enable_irq(gc, d->hwirq); in pl061_irq_unmask() 326 pl061->gc.base = -1; in pl061_probe() 330 pl061->gc.get = pl061_get_value; in pl061_probe() 331 pl061->gc.set = pl061_set_value; in pl061_probe() 332 pl061->gc.ngpio = PL061_GPIO_NR; in pl061_probe() 333 pl061->gc.label = dev_name(dev); in pl061_probe() 334 pl061->gc.parent = dev; in pl061_probe() 335 pl061->gc.owner = THIS_MODULE; in pl061_probe() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 | 54 struct irq_chip_generic *gc; member 69 struct irq_chip_generic *gc = handler->priv->gc; in liointc_chained_handle_irq() local 103 gc->reg_base + offset); in liointc_set_bit() 106 gc->reg_base + offset); in liointc_set_bit() 166 writel(gc->mask_cache, gc->reg_base + LIOINTC_REG_INTC_ENABLE); in liointc_resume() 281 gc->private = priv; in liointc_init() 282 gc->reg_base = base; in liointc_init() 283 gc->domain = domain; in liointc_init() 287 ct = gc->chip_types; in liointc_init() 295 gc->mask_cache = 0; in liointc_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-6.3-rc2/include/linux/gpio/ |
A D | driver.h | 253 int (*init_hw)(struct gpio_chip *gc); 414 int (*request)(struct gpio_chip *gc, 416 void (*free)(struct gpio_chip *gc, 424 int (*get)(struct gpio_chip *gc, 429 void (*set)(struct gpio_chip *gc, 437 int (*to_irq)(struct gpio_chip *gc, 441 struct gpio_chip *gc); 519 int (*of_xlate)(struct gpio_chip *gc, 572 #define gpiochip_add_data(gc, data) ({ \ argument 585 #define gpiochip_add_data(gc, data) gpiochip_add_data_with_key(gc, data, NULL, NULL) argument [all …]
|
/linux-6.3-rc2/drivers/input/joystick/ |
A D | gamecon.c | 70 struct gc { struct 202 static void gc_n64_process_packet(struct gc *gc) in gc_n64_process_packet() argument 252 struct gc *gc = input_get_drvdata(dev); in gc_n64_play_effect() local 355 static void gc_nes_process_packet(struct gc *gc) in gc_nes_process_packet() argument 578 static void gc_psx_read_packet(struct gc *gc, in gc_psx_read_packet() argument 729 struct gc *gc = from_timer(gc, t, timer); in gc_timer() local 767 struct gc *gc = input_get_drvdata(dev); in gc_open() local 786 struct gc *gc = input_get_drvdata(dev); in gc_close() local 921 struct gc *gc; in gc_attach() local 953 gc = kzalloc(sizeof(struct gc), GFP_KERNEL); in gc_attach() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/microsoft/mana/ |
A D | gdma_main.c | 28 gc->db_page_base = gc->bar0_va + in mana_gd_init_pf_regs() 44 gc->db_page_base = gc->bar0_va + in mana_gd_init_vf_regs() 47 gc->phys_db_page_base = gc->bar0_pa + in mana_gd_init_vf_regs() 50 gc->shm_base = gc->bar0_va + mana_gd_r64(gc, GDMA_REG_SHM_OFFSET); in mana_gd_init_vf_regs() 57 if (gc->is_pf) in mana_gd_init_registers() 103 if (gc->max_num_queues > gc->num_msix_usable - 1) in mana_gd_query_max_resources() 104 gc->max_num_queues = gc->num_msix_usable - 1; in mana_gd_query_max_resources() 140 gc->mana.gdma_context = gc; in mana_gd_detect_devices() 1329 mana_smc_init(&gc->shm_channel, gc->dev, gc->shm_base); in mana_gd_setup() 1405 gc = vzalloc(sizeof(*gc)); in mana_gd_probe() [all …]
|