/drivers/gpio/ |
D | gpio-mmio.c | 129 static unsigned long bgpio_pin2mask(struct gpio_chip *gc, unsigned int pin) in bgpio_pin2mask() argument 134 static unsigned long bgpio_pin2mask_be(struct gpio_chip *gc, in bgpio_pin2mask_be() argument 137 return BIT(gc->bgpio_bits - 1 - pin); in bgpio_pin2mask_be() 140 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() argument 142 unsigned long pinmask = gc->pin2mask(gc, gpio); in bgpio_get_set() 144 if (gc->bgpio_dir & pinmask) in bgpio_get_set() 145 return !!(gc->read_reg(gc->reg_set) & pinmask); in bgpio_get_set() 147 return !!(gc->read_reg(gc->reg_dat) & pinmask); in bgpio_get_set() 150 static int bgpio_get(struct gpio_chip *gc, unsigned int gpio) in bgpio_get() argument 152 return !!(gc->read_reg(gc->reg_dat) & gc->pin2mask(gc, gpio)); in bgpio_get() [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() argument 55 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc8572_gpio_get() 58 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 59 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() 60 out_shadow = gc->bgpio_data & out_mask; in mpc8572_gpio_get() 62 return !!((val | out_shadow) & gc->pin2mask(gc, gpio)); in mpc8572_gpio_get() 65 static int mpc5121_gpio_dir_out(struct gpio_chip *gc, in mpc5121_gpio_dir_out() argument 68 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc5121_gpio_dir_out() 73 return mpc8xxx_gc->direction_output(gc, gpio, val); in mpc5121_gpio_dir_out() [all …]
|
D | gpio-lpc18xx.c | 36 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_set() local 37 writeb(value ? 1 : 0, gc->base + offset); in lpc18xx_gpio_set() 42 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_get() local 43 return !!readb(gc->base + offset); in lpc18xx_gpio_get() 49 struct lpc18xx_gpio_chip *gc = gpiochip_get_data(chip); in lpc18xx_gpio_direction() local 56 spin_lock_irqsave(&gc->lock, flags); in lpc18xx_gpio_direction() 57 dir = readl(gc->base + LPC18XX_REG_DIR(port)); in lpc18xx_gpio_direction() 62 writel(dir, gc->base + LPC18XX_REG_DIR(port)); in lpc18xx_gpio_direction() 63 spin_unlock_irqrestore(&gc->lock, flags); in lpc18xx_gpio_direction() 95 struct lpc18xx_gpio_chip *gc; in lpc18xx_gpio_probe() local [all …]
|
D | gpio-mpc5200.c | 56 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() argument 58 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() 70 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument 72 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() 73 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_wkup_gpio_set() 85 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument 91 __mpc52xx_wkup_gpio_set(gc, gpio, 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() argument 100 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() 101 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_wkup_gpio_dir_in() [all …]
|
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() argument 62 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); in brcmstb_gpio_gc_to_priv() 69 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local 71 u32 mask = gc->pin2mask(gc, offset); in brcmstb_gpio_set_imask() 75 spin_lock_irqsave(&gc->bgpio_lock, flags); in brcmstb_gpio_set_imask() 76 imask = gc->read_reg(priv->reg_base + GIO_MASK(bank->id)); in brcmstb_gpio_set_imask() 81 gc->write_reg(priv->reg_base + GIO_MASK(bank->id), imask); in brcmstb_gpio_set_imask() 82 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in brcmstb_gpio_set_imask() 89 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in brcmstb_gpio_irq_mask() local [all …]
|
D | gpio-grgpio.c | 66 struct gpio_chip gc; member 98 struct gpio_chip *gc = &priv->gc; in grgpio_set_imask() local 99 unsigned long mask = gc->pin2mask(gc, offset); in grgpio_set_imask() 105 gc->write_reg(priv->regs + GRGPIO_IMASK, priv->imask); in grgpio_set_imask() 108 static int grgpio_to_irq(struct gpio_chip *gc, unsigned offset) in grgpio_to_irq() argument 110 struct grgpio_priv *priv = gpiochip_get_data(gc); in grgpio_to_irq() 112 if (offset >= gc->ngpio) in grgpio_to_irq() 154 spin_lock_irqsave(&priv->gc.bgpio_lock, flags); in grgpio_irq_set_type() 156 ipol = priv->gc.read_reg(priv->regs + GRGPIO_IPOL) & ~mask; in grgpio_irq_set_type() 157 iedge = priv->gc.read_reg(priv->regs + GRGPIO_IEDGE) & ~mask; in grgpio_irq_set_type() [all …]
|
D | gpio-loongson1.c | 23 static int ls1x_gpio_request(struct gpio_chip *gc, unsigned int offset) in ls1x_gpio_request() argument 25 unsigned long pinmask = gc->pin2mask(gc, offset); in ls1x_gpio_request() 28 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_request() 31 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_request() 36 static void ls1x_gpio_free(struct gpio_chip *gc, unsigned int offset) in ls1x_gpio_free() argument 38 unsigned long pinmask = gc->pin2mask(gc, offset); in ls1x_gpio_free() 41 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_free() 44 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1x_gpio_free() 50 struct gpio_chip *gc; in ls1x_gpio_probe() local 54 gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); in ls1x_gpio_probe() [all …]
|
D | gpio-tb10x.c | 60 struct gpio_chip gc; member 194 tb10x_gpio->gc.label = of_node_full_name(dn); in tb10x_gpio_probe() 195 tb10x_gpio->gc.parent = &pdev->dev; in tb10x_gpio_probe() 196 tb10x_gpio->gc.owner = THIS_MODULE; in tb10x_gpio_probe() 197 tb10x_gpio->gc.direction_input = tb10x_gpio_direction_in; in tb10x_gpio_probe() 198 tb10x_gpio->gc.get = tb10x_gpio_get; in tb10x_gpio_probe() 199 tb10x_gpio->gc.direction_output = tb10x_gpio_direction_out; in tb10x_gpio_probe() 200 tb10x_gpio->gc.set = tb10x_gpio_set; in tb10x_gpio_probe() 201 tb10x_gpio->gc.request = gpiochip_generic_request; in tb10x_gpio_probe() 202 tb10x_gpio->gc.free = gpiochip_generic_free; in tb10x_gpio_probe() [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() argument 66 struct pl061_gpio *chip = gpiochip_get_data(gc); in pl061_get_direction() 71 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument 73 struct pl061_gpio *chip = gpiochip_get_data(gc); in pl061_direction_input() 86 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument 89 struct pl061_gpio *chip = gpiochip_get_data(gc); in pl061_direction_output() 109 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument 111 struct pl061_gpio *chip = gpiochip_get_data(gc); in pl061_get_value() 116 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value() argument [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() argument 52 struct zx_gpio *chip = gpiochip_get_data(gc); in zx_direction_input() 56 if (offset >= gc->ngpio) in zx_direction_input() 68 static int zx_direction_output(struct gpio_chip *gc, unsigned offset, in zx_direction_output() argument 71 struct zx_gpio *chip = gpiochip_get_data(gc); in zx_direction_output() 75 if (offset >= gc->ngpio) in zx_direction_output() 92 static int zx_get_value(struct gpio_chip *gc, unsigned offset) in zx_get_value() argument 94 struct zx_gpio *chip = gpiochip_get_data(gc); in zx_get_value() 99 static void zx_set_value(struct gpio_chip *gc, unsigned offset, int value) in zx_set_value() argument [all …]
|
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 = gpiochip_get_data(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 = gpiochip_get_data(gc); in ucb1400_gpio_dir_out() 32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument 36 gpio = gpiochip_get_data(gc); in ucb1400_gpio_get() 40 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument 43 gpio = gpiochip_get_data(gc); in ucb1400_gpio_set() 59 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe() 60 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe() [all …]
|
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() argument 50 struct mockup_gpio_controller *cntr = gpiochip_get_data(gc); in mockup_gpio_get() 55 static void mockup_gpio_set(struct gpio_chip *gc, unsigned int offset, in mockup_gpio_set() argument 58 struct mockup_gpio_controller *cntr = gpiochip_get_data(gc); in mockup_gpio_set() 63 static int mockup_gpio_dirout(struct gpio_chip *gc, unsigned int offset, in mockup_gpio_dirout() argument 66 struct mockup_gpio_controller *cntr = gpiochip_get_data(gc); in mockup_gpio_dirout() 68 mockup_gpio_set(gc, offset, value); in mockup_gpio_dirout() 73 static int mockup_gpio_dirin(struct gpio_chip *gc, unsigned int offset) in mockup_gpio_dirin() argument 75 struct mockup_gpio_controller *cntr = gpiochip_get_data(gc); in mockup_gpio_dirin() [all …]
|
D | gpio-xlp.c | 132 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_disable() local 133 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_disable() 144 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_mask_ack() local 145 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_mask_ack() 157 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_irq_unmask() local 158 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_irq_unmask() 169 struct gpio_chip *gc = irq_data_get_irq_chip_data(d); in xlp_gpio_set_irq_type() local 170 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_set_irq_type() 233 static int xlp_gpio_dir_output(struct gpio_chip *gc, unsigned gpio, int state) in xlp_gpio_dir_output() argument 235 struct xlp_gpio_priv *priv = gpiochip_get_data(gc); in xlp_gpio_dir_output() [all …]
|
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() argument 48 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_request() 68 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free() argument 70 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_free() 83 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input() argument 85 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_input() 100 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output() argument 103 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_output() 125 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get() argument [all …]
|
D | gpio-amdpt.c | 29 struct gpio_chip gc; member 33 static int pt_gpio_request(struct gpio_chip *gc, unsigned offset) in pt_gpio_request() argument 35 struct pt_gpio_chip *pt_gpio = gpiochip_get_data(gc); in pt_gpio_request() 39 dev_dbg(gc->parent, "pt_gpio_request offset=%x\n", offset); in pt_gpio_request() 41 spin_lock_irqsave(&gc->bgpio_lock, flags); in pt_gpio_request() 45 dev_warn(gc->parent, "PT GPIO pin %x reconfigured\n", in pt_gpio_request() 47 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in pt_gpio_request() 53 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in pt_gpio_request() 58 static void pt_gpio_free(struct gpio_chip *gc, unsigned offset) in pt_gpio_free() argument 60 struct pt_gpio_chip *pt_gpio = gpiochip_get_data(gc); in pt_gpio_free() [all …]
|
D | gpio-dwapb.c | 75 struct gpio_chip gc; member 94 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read() local 97 return gc->read_reg(reg_base + offset); in dwapb_read() 103 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_write() local 106 gc->write_reg(reg_base + offset, val); in dwapb_write() 109 static int dwapb_gpio_to_irq(struct gpio_chip *gc, unsigned offset) in dwapb_gpio_to_irq() argument 111 struct dwapb_gpio_port *port = gpiochip_get_data(gc); in dwapb_gpio_to_irq() 121 if (gpio_get_value(gpio->ports[0].gc.base + offs)) in dwapb_toggle_trigger() 164 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_irq_enable() local 168 spin_lock_irqsave(&gc->bgpio_lock, flags); in dwapb_irq_enable() [all …]
|
/drivers/irqchip/ |
D | irq-atmel-aic.c | 63 struct irq_domain_chip_generic *dgc = aic_domain->gc; in aic_handle() 64 struct irq_chip_generic *gc = dgc->gc[0]; in aic_handle() local 68 irqnr = irq_reg_readl(gc, AT91_AIC_IVR); in aic_handle() 69 irqstat = irq_reg_readl(gc, AT91_AIC_ISR); in aic_handle() 72 irq_reg_writel(gc, 0, AT91_AIC_EOICR); in aic_handle() 79 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_retrigger() local 82 irq_gc_lock(gc); in aic_retrigger() 83 irq_reg_writel(gc, d->mask, AT91_AIC_ISCR); in aic_retrigger() 84 irq_gc_unlock(gc); in aic_retrigger() 91 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_set_type() local [all …]
|
D | irq-tb10x.c | 43 static inline void ab_irqctl_writereg(struct irq_chip_generic *gc, u32 reg, in ab_irqctl_writereg() argument 46 irq_reg_writel(gc, val, reg); in ab_irqctl_writereg() 49 static inline u32 ab_irqctl_readreg(struct irq_chip_generic *gc, u32 reg) in ab_irqctl_readreg() argument 51 return irq_reg_readl(gc, reg); in ab_irqctl_readreg() 56 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in tb10x_irq_set_type() local 61 irq_gc_lock(gc); in tb10x_irq_set_type() 63 mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im; in tb10x_irq_set_type() 64 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 82 irq_gc_unlock(gc); in tb10x_irq_set_type() 91 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod); in tb10x_irq_set_type() [all …]
|
D | irq-sunxi-nmi.c | 59 static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, in sunxi_sc_nmi_write() argument 62 irq_reg_writel(gc, val, off); in sunxi_sc_nmi_write() 65 static inline u32 sunxi_sc_nmi_read(struct irq_chip_generic *gc, u32 off) in sunxi_sc_nmi_read() argument 67 return irq_reg_readl(gc, off); in sunxi_sc_nmi_read() 83 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in sunxi_sc_nmi_set_type() local 84 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type() 90 irq_gc_lock(gc); in sunxi_sc_nmi_set_type() 107 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 116 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type() 120 src_type_reg = sunxi_sc_nmi_read(gc, ctrl_off); in sunxi_sc_nmi_set_type() [all …]
|
D | irq-stm32-exti.c | 27 struct irq_chip_generic *gc = domain->gc->gc[0]; in stm32_irq_handler() local 34 while ((pending = irq_reg_readl(gc, EXTI_PR))) { in stm32_irq_handler() 37 irq_reg_writel(gc, BIT(n), EXTI_PR); in stm32_irq_handler() 46 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in stm32_irq_set_type() local 50 irq_gc_lock(gc); in stm32_irq_set_type() 52 rtsr = irq_reg_readl(gc, EXTI_RTSR); in stm32_irq_set_type() 53 ftsr = irq_reg_readl(gc, EXTI_FTSR); in stm32_irq_set_type() 69 irq_gc_unlock(gc); in stm32_irq_set_type() 73 irq_reg_writel(gc, rtsr, EXTI_RTSR); in stm32_irq_set_type() 74 irq_reg_writel(gc, ftsr, EXTI_FTSR); in stm32_irq_set_type() [all …]
|
D | irq-atmel-aic5.c | 90 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_mask() local 97 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_mask() 98 irq_reg_writel(gc, 1, AT91_AIC5_IDCR); in aic5_mask() 99 gc->mask_cache &= ~d->mask; in aic5_mask() 107 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_unmask() local 114 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_unmask() 115 irq_reg_writel(gc, 1, AT91_AIC5_IECR); in aic5_unmask() 116 gc->mask_cache |= d->mask; in aic5_unmask() 156 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend() 158 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_suspend() local [all …]
|
D | irq-brcmstb-l2.c | 54 struct irq_chip_generic *gc = irq_get_domain_generic_chip(b->domain, 0); in brcmstb_l2_intc_irq_handle() local 61 status = irq_reg_readl(gc, CPU_STATUS) & in brcmstb_l2_intc_irq_handle() 62 ~(irq_reg_readl(gc, CPU_MASK_STATUS)); in brcmstb_l2_intc_irq_handle() 74 irq_reg_writel(gc, 1 << irq, CPU_CLEAR); in brcmstb_l2_intc_irq_handle() 84 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in brcmstb_l2_intc_suspend() local 85 struct brcmstb_l2_intc_data *b = gc->private; in brcmstb_l2_intc_suspend() 87 irq_gc_lock(gc); in brcmstb_l2_intc_suspend() 89 b->saved_mask = irq_reg_readl(gc, CPU_MASK_STATUS); in brcmstb_l2_intc_suspend() 93 irq_reg_writel(gc, ~gc->wake_active, CPU_MASK_SET); in brcmstb_l2_intc_suspend() 94 irq_reg_writel(gc, gc->wake_active, CPU_MASK_CLEAR); in brcmstb_l2_intc_suspend() [all …]
|
D | irq-orion.c | 35 struct irq_domain_chip_generic *dgc = orion_irq_domain->gc; in orion_handle_irq() 39 struct irq_chip_generic *gc = in orion_handle_irq() local 41 u32 stat = readl_relaxed(gc->reg_base + ORION_IRQ_CAUSE) & in orion_handle_irq() 42 gc->mask_cache; in orion_handle_irq() 46 gc->irq_base + hwirq, regs); in orion_handle_irq() 77 struct irq_chip_generic *gc = in orion_irq_init() local 86 gc->reg_base = ioremap(r.start, resource_size(&r)); in orion_irq_init() 87 if (!gc->reg_base) in orion_irq_init() 90 gc->chip_types[0].regs.mask = ORION_IRQ_MASK; in orion_irq_init() 91 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init() [all …]
|
D | irq-bcm7120-l2.c | 69 struct irq_chip_generic *gc = in bcm7120_l2_intc_irq_handle() local 74 irq_gc_lock(gc); in bcm7120_l2_intc_irq_handle() 75 pending = irq_reg_readl(gc, b->stat_offset[idx]) & in bcm7120_l2_intc_irq_handle() 76 gc->mask_cache & in bcm7120_l2_intc_irq_handle() 78 irq_gc_unlock(gc); in bcm7120_l2_intc_irq_handle() 89 static void bcm7120_l2_intc_suspend(struct irq_chip_generic *gc) in bcm7120_l2_intc_suspend() argument 91 struct bcm7120_l2_intc_data *b = gc->private; in bcm7120_l2_intc_suspend() 92 struct irq_chip_type *ct = gc->chip_types; in bcm7120_l2_intc_suspend() 94 irq_gc_lock(gc); in bcm7120_l2_intc_suspend() 96 irq_reg_writel(gc, gc->mask_cache | gc->wake_active, in bcm7120_l2_intc_suspend() [all …]
|
/drivers/input/joystick/ |
D | gamecon.c | 89 struct gc { struct 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() argument 152 struct parport *port = gc->pd->port; 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() argument 165 struct parport *port = gc->pd->port; in gc_n64_send_stop_bit() 181 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet() argument 191 gc_n64_send_command(gc, GC_N64_REQUEST_DATA, GC_N64_OUT); in gc_n64_read_packet() 192 gc_n64_send_stop_bit(gc, GC_N64_OUT); in gc_n64_read_packet() 207 parport_write_data(gc->pd->port, GC_N64_POWER_R); in gc_n64_read_packet() [all …]
|