/Linux-v5.4/drivers/gpio/ |
D | gpio-mmio.c | 125 static unsigned long bgpio_line2mask(struct gpio_chip *gc, unsigned int line) in bgpio_line2mask() argument 127 if (gc->be_bits) in bgpio_line2mask() 128 return BIT(gc->bgpio_bits - 1 - line); in bgpio_line2mask() 132 static int bgpio_get_set(struct gpio_chip *gc, unsigned int gpio) in bgpio_get_set() argument 134 unsigned long pinmask = bgpio_line2mask(gc, gpio); in bgpio_get_set() 135 bool dir = !!(gc->bgpio_dir & pinmask); in bgpio_get_set() 138 return !!(gc->read_reg(gc->reg_set) & pinmask); in bgpio_get_set() 140 return !!(gc->read_reg(gc->reg_dat) & pinmask); in bgpio_get_set() 147 static int bgpio_get_set_multiple(struct gpio_chip *gc, unsigned long *mask, in bgpio_get_set_multiple() argument 156 set_mask = *mask & gc->bgpio_dir; in bgpio_get_set_multiple() [all …]
|
D | gpio-mpc8xxx.c | 38 struct gpio_chip gc; member 56 static int ls1028a_gpio_dir_in_init(struct gpio_chip *gc) in ls1028a_gpio_dir_in_init() argument 59 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in ls1028a_gpio_dir_in_init() 61 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1028a_gpio_dir_in_init() 63 gc->write_reg(mpc8xxx_gc->regs + GPIO_IBE, 0xffffffff); in ls1028a_gpio_dir_in_init() 65 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in ls1028a_gpio_dir_in_init() 85 static int mpc8572_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc8572_gpio_get() argument 88 struct mpc8xxx_gpio_chip *mpc8xxx_gc = gpiochip_get_data(gc); in mpc8572_gpio_get() 91 out_mask = gc->read_reg(mpc8xxx_gc->regs + GPIO_DIR); in mpc8572_gpio_get() 92 val = gc->read_reg(mpc8xxx_gc->regs + GPIO_DAT) & ~out_mask; in mpc8572_gpio_get() [all …]
|
D | gpio-reg.c | 14 struct gpio_chip gc; member 23 #define to_gpio_reg(x) container_of(x, struct gpio_reg, gc) 25 static int gpio_reg_get_direction(struct gpio_chip *gc, unsigned offset) in gpio_reg_get_direction() argument 27 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_get_direction() 32 static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset, in gpio_reg_direction_output() argument 35 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_output() 40 gc->set(gc, offset, value); in gpio_reg_direction_output() 44 static int gpio_reg_direction_input(struct gpio_chip *gc, unsigned offset) in gpio_reg_direction_input() argument 46 struct gpio_reg *r = to_gpio_reg(gc); in gpio_reg_direction_input() 51 static void gpio_reg_set(struct gpio_chip *gc, unsigned offset, int value) in gpio_reg_set() argument [all …]
|
D | gpio-mpc5200.c | 44 static int mpc52xx_wkup_gpio_get(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_get() argument 46 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_get() 58 __mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in __mpc52xx_wkup_gpio_set() argument 60 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in __mpc52xx_wkup_gpio_set() 61 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in __mpc52xx_wkup_gpio_set() 73 mpc52xx_wkup_gpio_set(struct gpio_chip *gc, unsigned int gpio, int val) in mpc52xx_wkup_gpio_set() argument 79 __mpc52xx_wkup_gpio_set(gc, gpio, val); in mpc52xx_wkup_gpio_set() 86 static int mpc52xx_wkup_gpio_dir_in(struct gpio_chip *gc, unsigned int gpio) in mpc52xx_wkup_gpio_dir_in() argument 88 struct of_mm_gpio_chip *mm_gc = to_of_mm_gpio_chip(gc); in mpc52xx_wkup_gpio_dir_in() 89 struct mpc52xx_gpiochip *chip = gpiochip_get_data(gc); in mpc52xx_wkup_gpio_dir_in() [all …]
|
D | gpio-max77650.c | 36 struct gpio_chip gc; member 40 static int max77650_gpio_direction_input(struct gpio_chip *gc, in max77650_gpio_direction_input() argument 43 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_direction_input() 51 static int max77650_gpio_direction_output(struct gpio_chip *gc, in max77650_gpio_direction_output() argument 54 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_direction_output() 65 static void max77650_gpio_set_value(struct gpio_chip *gc, in max77650_gpio_set_value() argument 68 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_set_value() 76 dev_err(gc->parent, "cannot set GPIO value: %d\n", rv); in max77650_gpio_set_value() 79 static int max77650_gpio_get_value(struct gpio_chip *gc, in max77650_gpio_get_value() argument 82 struct max77650_gpio_chip *chip = gpiochip_get_data(gc); in max77650_gpio_get_value() [all …]
|
D | gpio-mockup.c | 54 struct gpio_chip gc; member 93 static int gpio_mockup_get(struct gpio_chip *gc, unsigned int offset) in gpio_mockup_get() argument 95 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get() 105 static int gpio_mockup_get_multiple(struct gpio_chip *gc, in gpio_mockup_get_multiple() argument 108 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_get_multiple() 112 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple() 127 static void gpio_mockup_set(struct gpio_chip *gc, in gpio_mockup_set() argument 130 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set() 137 static void gpio_mockup_set_multiple(struct gpio_chip *gc, in gpio_mockup_set_multiple() argument 140 struct gpio_mockup_chip *chip = gpiochip_get_data(gc); in gpio_mockup_set_multiple() [all …]
|
D | gpio-tps68470.c | 26 struct gpio_chip gc; member 29 static int tps68470_gpio_get(struct gpio_chip *gc, unsigned int offset) in tps68470_gpio_get() argument 31 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get() 43 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get() 51 static int tps68470_gpio_get_direction(struct gpio_chip *gc, in tps68470_gpio_get_direction() argument 54 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_get_direction() 64 dev_err(tps68470_gpio->gc.parent, "reg 0x%x read failed\n", in tps68470_gpio_get_direction() 73 static void tps68470_gpio_set(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_set() argument 76 struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc); in tps68470_gpio_set() 88 static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset, in tps68470_gpio_output() argument [all …]
|
D | gpio-tb10x.c | 45 struct gpio_chip gc; member 65 spin_lock_irqsave(&gpio->gc.bgpio_lock, flags); in tb10x_set_bits() 72 spin_unlock_irqrestore(&gpio->gc.bgpio_lock, flags); in tb10x_set_bits() 130 tb10x_gpio->gc.label = in tb10x_gpio_probe() 132 if (!tb10x_gpio->gc.label) in tb10x_gpio_probe() 140 ret = bgpio_init(&tb10x_gpio->gc, dev, 4, in tb10x_gpio_probe() 151 tb10x_gpio->gc.base = -1; in tb10x_gpio_probe() 152 tb10x_gpio->gc.parent = dev; in tb10x_gpio_probe() 153 tb10x_gpio->gc.owner = THIS_MODULE; in tb10x_gpio_probe() 158 tb10x_gpio->gc.ngpio = ngpio; in tb10x_gpio_probe() [all …]
|
D | gpio-grgpio.c | 61 struct gpio_chip gc; member 93 struct gpio_chip *gc = &priv->gc; in grgpio_set_imask() local 99 gc->write_reg(priv->regs + GRGPIO_IMASK, priv->imask); in grgpio_set_imask() 102 static int grgpio_to_irq(struct gpio_chip *gc, unsigned offset) in grgpio_to_irq() argument 104 struct grgpio_priv *priv = gpiochip_get_data(gc); in grgpio_to_irq() 106 if (offset >= gc->ngpio) in grgpio_to_irq() 148 spin_lock_irqsave(&priv->gc.bgpio_lock, flags); in grgpio_irq_set_type() 150 ipol = priv->gc.read_reg(priv->regs + GRGPIO_IPOL) & ~mask; in grgpio_irq_set_type() 151 iedge = priv->gc.read_reg(priv->regs + GRGPIO_IEDGE) & ~mask; in grgpio_irq_set_type() 153 priv->gc.write_reg(priv->regs + GRGPIO_IPOL, ipol | pol); in grgpio_irq_set_type() [all …]
|
D | gpio-raspberrypi-exp.c | 26 struct gpio_chip gc; member 54 static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_get_polarity() argument 60 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_get_polarity() 67 dev_err(gc->parent, "Failed to get GPIO %u config (%d %x)\n", in rpi_exp_gpio_get_polarity() 74 static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_dir_in() argument 80 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_in() 88 ret = rpi_exp_gpio_get_polarity(gc, off); in rpi_exp_gpio_dir_in() 96 dev_err(gc->parent, "Failed to set GPIO %u to input (%d %x)\n", in rpi_exp_gpio_dir_in() 103 static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val) in rpi_exp_gpio_dir_out() argument 109 gpio = gpiochip_get_data(gc); in rpi_exp_gpio_dir_out() [all …]
|
D | gpio-ep93xx.c | 39 struct gpio_chip gc[8]; member 74 static int ep93xx_gpio_port(struct gpio_chip *gc) in ep93xx_gpio_port() argument 76 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_port() 79 while (port < ARRAY_SIZE(epg->gc) && gc != &epg->gc[port]) in ep93xx_gpio_port() 83 if (port == ARRAY_SIZE(epg->gc)) { in ep93xx_gpio_port() 91 static void ep93xx_gpio_int_debounce(struct gpio_chip *gc, in ep93xx_gpio_int_debounce() argument 94 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_int_debounce() 95 int port = ep93xx_gpio_port(gc); in ep93xx_gpio_int_debounce() 109 struct gpio_chip *gc = irq_desc_get_handler_data(desc); in ep93xx_gpio_ab_irq_handler() local 110 struct ep93xx_gpio *epg = gpiochip_get_data(gc); in ep93xx_gpio_ab_irq_handler() [all …]
|
D | gpio-brcmstb.c | 49 struct gpio_chip gc; member 74 brcmstb_gpio_gc_to_priv(struct gpio_chip *gc) in brcmstb_gpio_gc_to_priv() argument 76 struct brcmstb_gpio_bank *bank = gpiochip_get_data(gc); in brcmstb_gpio_gc_to_priv() 85 return bank->gc.read_reg(reg_base + GIO_STAT(bank->id)) & in __brcmstb_gpio_get_active_irqs() 86 bank->gc.read_reg(reg_base + GIO_MASK(bank->id)); in __brcmstb_gpio_get_active_irqs() 95 spin_lock_irqsave(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs() 97 spin_unlock_irqrestore(&bank->gc.bgpio_lock, flags); in brcmstb_gpio_get_active_irqs() 105 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset() 111 struct gpio_chip *gc = &bank->gc; in brcmstb_gpio_set_imask() local 117 spin_lock_irqsave(&gc->bgpio_lock, flags); in brcmstb_gpio_set_imask() [all …]
|
D | gpio-ucb1400.c | 11 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_dir_in() argument 14 gpio = gpiochip_get_data(gc); in ucb1400_gpio_dir_in() 19 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_dir_out() argument 22 gpio = gpiochip_get_data(gc); in ucb1400_gpio_dir_out() 28 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument 32 gpio = gpiochip_get_data(gc); in ucb1400_gpio_get() 36 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument 39 gpio = gpiochip_get_data(gc); in ucb1400_gpio_set() 55 ucb->gc.label = "ucb1400_gpio"; in ucb1400_gpio_probe() 56 ucb->gc.base = ucb->gpio_offset; in ucb1400_gpio_probe() [all …]
|
D | gpio-loongson1.c | 24 static int ls1x_gpio_request(struct gpio_chip *gc, unsigned int offset) in ls1x_gpio_request() argument 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 40 spin_lock_irqsave(&gc->bgpio_lock, flags); in ls1x_gpio_free() 43 spin_unlock_irqrestore(&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() 60 ret = bgpio_init(gc, dev, 4, gpio_reg_base + GPIO_DATA, in ls1x_gpio_probe() [all …]
|
D | gpio-mb86s7x.c | 37 struct gpio_chip gc; member 43 static int mb86s70_gpio_request(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_request() argument 45 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_request() 60 static void mb86s70_gpio_free(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_free() argument 62 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_free() 75 static int mb86s70_gpio_direction_input(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_direction_input() argument 77 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_input() 92 static int mb86s70_gpio_direction_output(struct gpio_chip *gc, in mb86s70_gpio_direction_output() argument 95 struct mb86s70_gpio_chip *gchip = gpiochip_get_data(gc); in mb86s70_gpio_direction_output() 117 static int mb86s70_gpio_get(struct gpio_chip *gc, unsigned gpio) in mb86s70_gpio_get() argument [all …]
|
D | gpio-pl061.c | 53 struct gpio_chip gc; member 62 static int pl061_get_direction(struct gpio_chip *gc, unsigned offset) in pl061_get_direction() argument 64 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_direction() 69 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument 71 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_input() 84 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument 87 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_direction_output() 107 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument 109 struct pl061 *pl061 = gpiochip_get_data(gc); in pl061_get_value() 114 static void pl061_set_value(struct gpio_chip *gc, unsigned offset, int value) in pl061_set_value() argument [all …]
|
/Linux-v5.4/kernel/irq/ |
D | generic-chip.c | 38 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_disable_reg() local 42 irq_gc_lock(gc); in irq_gc_mask_disable_reg() 43 irq_reg_writel(gc, mask, ct->regs.disable); in irq_gc_mask_disable_reg() 45 irq_gc_unlock(gc); in irq_gc_mask_disable_reg() 57 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_set_bit() local 61 irq_gc_lock(gc); in irq_gc_mask_set_bit() 63 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_gc_mask_set_bit() 64 irq_gc_unlock(gc); in irq_gc_mask_set_bit() 77 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_clr_bit() local 81 irq_gc_lock(gc); in irq_gc_mask_clr_bit() [all …]
|
/Linux-v5.4/drivers/lightnvm/ |
D | pblk-gc.c | 33 struct pblk_gc *gc = &pblk->gc; in pblk_gc_write() local 37 spin_lock(&gc->w_lock); in pblk_gc_write() 38 if (list_empty(&gc->w_list)) { in pblk_gc_write() 39 spin_unlock(&gc->w_lock); in pblk_gc_write() 43 list_cut_position(&w_list, &gc->w_list, gc->w_list.prev); in pblk_gc_write() 44 gc->w_entries = 0; in pblk_gc_write() 45 spin_unlock(&gc->w_lock); in pblk_gc_write() 57 static void pblk_gc_writer_kick(struct pblk_gc *gc) in pblk_gc_writer_kick() argument 59 wake_up_process(gc->gc_writer_ts); in pblk_gc_writer_kick() 91 struct pblk_gc *gc = &pblk->gc; in pblk_gc_line_ws() local [all …]
|
/Linux-v5.4/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 | 31 static inline void ab_irqctl_writereg(struct irq_chip_generic *gc, u32 reg, in ab_irqctl_writereg() argument 34 irq_reg_writel(gc, val, reg); in ab_irqctl_writereg() 37 static inline u32 ab_irqctl_readreg(struct irq_chip_generic *gc, u32 reg) in ab_irqctl_readreg() argument 39 return irq_reg_readl(gc, reg); in ab_irqctl_readreg() 44 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in tb10x_irq_set_type() local 49 irq_gc_lock(gc); in tb10x_irq_set_type() 51 mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im; in tb10x_irq_set_type() 52 pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im; in tb10x_irq_set_type() 70 irq_gc_unlock(gc); in tb10x_irq_set_type() 79 ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod); in tb10x_irq_set_type() [all …]
|
D | irq-sunxi-nmi.c | 88 static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, in sunxi_sc_nmi_write() argument 91 irq_reg_writel(gc, val, off); in sunxi_sc_nmi_write() 94 static inline u32 sunxi_sc_nmi_read(struct irq_chip_generic *gc, u32 off) in sunxi_sc_nmi_read() argument 96 return irq_reg_readl(gc, off); in sunxi_sc_nmi_read() 112 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in sunxi_sc_nmi_set_type() local 113 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type() 119 irq_gc_lock(gc); in sunxi_sc_nmi_set_type() 136 irq_gc_unlock(gc); in sunxi_sc_nmi_set_type() 145 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type() 149 src_type_reg = sunxi_sc_nmi_read(gc, ctrl_off); in sunxi_sc_nmi_set_type() [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-mscc-ocelot.c | 26 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data); in ocelot_irq_unmask() local 31 irq_gc_lock(gc); in ocelot_irq_unmask() 32 val = irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(0)) | in ocelot_irq_unmask() 33 irq_reg_readl(gc, ICPU_CFG_INTR_INTR_TRIGGER(1)); in ocelot_irq_unmask() 35 irq_reg_writel(gc, mask, ICPU_CFG_INTR_INTR_STICKY); in ocelot_irq_unmask() 38 irq_reg_writel(gc, mask, ICPU_CFG_INTR_INTR_ENA_SET); in ocelot_irq_unmask() 39 irq_gc_unlock(gc); in ocelot_irq_unmask() 46 struct irq_chip_generic *gc = irq_get_domain_generic_chip(d, 0); in ocelot_irq_handler() local 47 u32 reg = irq_reg_readl(gc, ICPU_CFG_INTR_DST_INTR_IDENT(0)); in ocelot_irq_handler() 65 struct irq_chip_generic *gc; in ocelot_irq_init() local [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() 158 struct irq_domain_chip_generic *dgc = domain->gc; in aic5_suspend() 160 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_suspend() local [all …]
|
/Linux-v5.4/drivers/input/joystick/ |
D | gamecon.c | 73 struct gc { struct 87 static struct gc *gc_base[3]; argument 133 static void gc_n64_send_command(struct gc *gc, unsigned long cmd, in gc_n64_send_command() argument 136 struct parport *port = gc->pd->port; in gc_n64_send_command() 147 static void gc_n64_send_stop_bit(struct gc *gc, unsigned char target) in gc_n64_send_stop_bit() argument 149 struct parport *port = gc->pd->port; in gc_n64_send_stop_bit() 165 static void gc_n64_read_packet(struct gc *gc, unsigned char *data) in gc_n64_read_packet() argument 175 gc_n64_send_command(gc, GC_N64_REQUEST_DATA, GC_N64_OUT); in gc_n64_read_packet() 176 gc_n64_send_stop_bit(gc, GC_N64_OUT); in gc_n64_read_packet() 191 parport_write_data(gc->pd->port, GC_N64_POWER_R); in gc_n64_read_packet() [all …]
|