/drivers/mfd/ |
D | lp8788-irq.c | 68 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_enable() local 70 irqd->enabled[data->hwirq] = 1; in lp8788_irq_enable() 75 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_disable() local 77 irqd->enabled[data->hwirq] = 0; in lp8788_irq_disable() 82 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_bus_lock() local 84 mutex_lock(&irqd->irq_lock); in lp8788_irq_bus_lock() 89 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_bus_sync_unlock() local 95 val = _irq_to_val(irq, irqd->enabled[irq]); in lp8788_irq_bus_sync_unlock() 97 lp8788_update_bits(irqd->lp, addr, mask, val); in lp8788_irq_bus_sync_unlock() 99 mutex_unlock(&irqd->irq_lock); in lp8788_irq_bus_sync_unlock() [all …]
|
/drivers/gpio/ |
D | gpio-ingenic.c | 119 static void ingenic_gpio_irq_mask(struct irq_data *irqd) in ingenic_gpio_irq_mask() argument 121 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_mask() 124 gpio_ingenic_set_bit(jzgc, GPIO_MSK, irqd->hwirq, true); in ingenic_gpio_irq_mask() 127 static void ingenic_gpio_irq_unmask(struct irq_data *irqd) in ingenic_gpio_irq_unmask() argument 129 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_unmask() 132 gpio_ingenic_set_bit(jzgc, GPIO_MSK, irqd->hwirq, false); in ingenic_gpio_irq_unmask() 135 static void ingenic_gpio_irq_enable(struct irq_data *irqd) in ingenic_gpio_irq_enable() argument 137 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_enable() 139 int irq = irqd->hwirq; in ingenic_gpio_irq_enable() 146 ingenic_gpio_irq_unmask(irqd); in ingenic_gpio_irq_enable() [all …]
|
D | gpio-dln2.c | 306 static void dln2_irq_unmask(struct irq_data *irqd) in dln2_irq_unmask() argument 308 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_unmask() 310 int pin = irqd_to_hwirq(irqd); in dln2_irq_unmask() 315 static void dln2_irq_mask(struct irq_data *irqd) in dln2_irq_mask() argument 317 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_mask() 319 int pin = irqd_to_hwirq(irqd); in dln2_irq_mask() 324 static int dln2_irq_set_type(struct irq_data *irqd, unsigned type) in dln2_irq_set_type() argument 326 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_set_type() 328 int pin = irqd_to_hwirq(irqd); in dln2_irq_set_type() 353 static void dln2_irq_bus_lock(struct irq_data *irqd) in dln2_irq_bus_lock() argument [all …]
|
D | gpio-thunderx.c | 56 struct irq_domain *irqd; member 467 return irq_find_mapping(txgpio->irqd, offset); in thunderx_gpio_to_irq() 566 …txgpio->irqd = irq_domain_create_hierarchy(irq_get_irq_data(txgpio->msix_entries[0].vector)->domai… in thunderx_gpio_probe() 569 if (!txgpio->irqd) { in thunderx_gpio_probe() 576 err = irq_domain_push_irq(txgpio->irqd, in thunderx_gpio_probe() 616 irq_domain_pop_irq(txgpio->irqd, in thunderx_gpio_remove() 619 irq_domain_remove(txgpio->irqd); in thunderx_gpio_remove()
|
/drivers/pinctrl/samsung/ |
D | pinctrl-exynos.c | 52 static void exynos_irq_mask(struct irq_data *irqd) in exynos_irq_mask() argument 54 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_mask() 56 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask() 64 mask |= 1 << irqd->hwirq; in exynos_irq_mask() 70 static void exynos_irq_ack(struct irq_data *irqd) in exynos_irq_ack() argument 72 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_ack() 74 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_ack() 77 writel(1 << irqd->hwirq, bank->eint_base + reg_pend); in exynos_irq_ack() 80 static void exynos_irq_unmask(struct irq_data *irqd) in exynos_irq_unmask() argument 82 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_unmask() [all …]
|
D | pinctrl-s3c64xx.c | 308 static inline void s3c64xx_gpio_irq_set_mask(struct irq_data *irqd, bool mask) in s3c64xx_gpio_irq_set_mask() argument 310 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in s3c64xx_gpio_irq_set_mask() 312 unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; in s3c64xx_gpio_irq_set_mask() 324 static void s3c64xx_gpio_irq_unmask(struct irq_data *irqd) in s3c64xx_gpio_irq_unmask() argument 326 s3c64xx_gpio_irq_set_mask(irqd, false); in s3c64xx_gpio_irq_unmask() 329 static void s3c64xx_gpio_irq_mask(struct irq_data *irqd) in s3c64xx_gpio_irq_mask() argument 331 s3c64xx_gpio_irq_set_mask(irqd, true); in s3c64xx_gpio_irq_mask() 334 static void s3c64xx_gpio_irq_ack(struct irq_data *irqd) in s3c64xx_gpio_irq_ack() argument 336 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in s3c64xx_gpio_irq_ack() 338 unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; in s3c64xx_gpio_irq_ack() [all …]
|
D | pinctrl-exynos5440.c | 849 static void exynos5440_gpio_irq_unmask(struct irq_data *irqd) in exynos5440_gpio_irq_unmask() argument 854 d = irq_data_get_irq_chip_data(irqd); in exynos5440_gpio_irq_unmask() 856 gpio_int |= 1 << irqd->hwirq; in exynos5440_gpio_irq_unmask() 860 static void exynos5440_gpio_irq_mask(struct irq_data *irqd) in exynos5440_gpio_irq_mask() argument 865 d = irq_data_get_irq_chip_data(irqd); in exynos5440_gpio_irq_mask() 867 gpio_int &= ~(1 << irqd->hwirq); in exynos5440_gpio_irq_mask()
|
/drivers/irqchip/ |
D | irq-eznps.c | 56 static void nps400_irq_mask(struct irq_data *irqd) in nps400_irq_mask() argument 59 unsigned int irq = irqd_to_hwirq(irqd); in nps400_irq_mask() 66 static void nps400_irq_unmask(struct irq_data *irqd) in nps400_irq_unmask() argument 69 unsigned int irq = irqd_to_hwirq(irqd); in nps400_irq_unmask() 76 static void nps400_irq_eoi_global(struct irq_data *irqd) in nps400_irq_eoi_global() argument 78 unsigned int __maybe_unused irq = irqd_to_hwirq(irqd); in nps400_irq_eoi_global() 88 static void nps400_irq_ack(struct irq_data *irqd) in nps400_irq_ack() argument 90 unsigned int __maybe_unused irq = irqd_to_hwirq(irqd); in nps400_irq_ack()
|
D | irq-sun4i.c | 39 static void sun4i_irq_ack(struct irq_data *irqd) in sun4i_irq_ack() argument 41 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_ack() 49 static void sun4i_irq_mask(struct irq_data *irqd) in sun4i_irq_mask() argument 51 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_mask() 61 static void sun4i_irq_unmask(struct irq_data *irqd) in sun4i_irq_unmask() argument 63 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_unmask()
|
D | irq-keystone.c | 39 struct irq_domain *irqd; member 107 virq = irq_find_mapping(kirq->irqd, src); in keystone_irq_handler() 179 kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ, in keystone_irq_probe() 181 if (!kirq->irqd) { in keystone_irq_probe() 193 irq_domain_remove(kirq->irqd); in keystone_irq_probe() 213 irq_dispose_mapping(irq_find_mapping(kirq->irqd, hwirq)); in keystone_irq_remove() 215 irq_domain_remove(kirq->irqd); in keystone_irq_remove()
|
D | irq-zevio.c | 43 static void zevio_irq_ack(struct irq_data *irqd) in zevio_irq_ack() argument 45 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd); in zevio_irq_ack() 46 struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs; in zevio_irq_ack()
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_mdss.c | 85 static void mdss_hw_mask_irq(struct irq_data *irqd) in mdss_hw_mask_irq() argument 87 struct msm_mdss *mdss = irq_data_get_irq_chip_data(irqd); in mdss_hw_mask_irq() 90 clear_bit(irqd->hwirq, &mdss->irqcontroller.enabled_mask); in mdss_hw_mask_irq() 94 static void mdss_hw_unmask_irq(struct irq_data *irqd) in mdss_hw_unmask_irq() argument 96 struct msm_mdss *mdss = irq_data_get_irq_chip_data(irqd); in mdss_hw_unmask_irq() 99 set_bit(irqd->hwirq, &mdss->irqcontroller.enabled_mask); in mdss_hw_unmask_irq()
|
/drivers/soc/qcom/ |
D | smp2p.c | 238 static void smp2p_mask_irq(struct irq_data *irqd) in smp2p_mask_irq() argument 240 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_mask_irq() 241 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_mask_irq() 246 static void smp2p_unmask_irq(struct irq_data *irqd) in smp2p_unmask_irq() argument 248 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_unmask_irq() 249 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_unmask_irq() 254 static int smp2p_set_irq_type(struct irq_data *irqd, unsigned int type) in smp2p_set_irq_type() argument 256 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_set_irq_type() 257 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_set_irq_type()
|
D | smsm.c | 245 static void smsm_mask_irq(struct irq_data *irqd) in smsm_mask_irq() argument 247 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_mask_irq() 248 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_mask_irq() 270 static void smsm_unmask_irq(struct irq_data *irqd) in smsm_unmask_irq() argument 272 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_unmask_irq() 273 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_unmask_irq() 291 static int smsm_set_irq_type(struct irq_data *irqd, unsigned int type) in smsm_set_irq_type() argument 293 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_set_irq_type() 294 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_set_irq_type()
|
/drivers/ide/ |
D | ide-probe.c | 681 unsigned int irqd; in ide_probe_port() local 694 irqd = hwif->irq; in ide_probe_port() 695 if (irqd) in ide_probe_port() 715 if (irqd) in ide_probe_port() 716 enable_irq(irqd); in ide_probe_port()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_irq.c | 526 static void amdgpu_irq_mask(struct irq_data *irqd) in amdgpu_irq_mask() argument 531 static void amdgpu_irq_unmask(struct irq_data *irqd) in amdgpu_irq_unmask() argument
|
/drivers/base/ |
D | platform.c | 124 struct irq_data *irqd; in platform_get_irq() 126 irqd = irq_get_irq_data(r->start); in platform_get_irq() 127 if (!irqd) in platform_get_irq() 129 irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); in platform_get_irq()
|
/drivers/net/usb/ |
D | lan78xx.c | 1860 static void lan78xx_irq_mask(struct irq_data *irqd) in lan78xx_irq_mask() argument 1862 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_mask() 1864 data->irqenable &= ~BIT(irqd_to_hwirq(irqd)); in lan78xx_irq_mask() 1867 static void lan78xx_irq_unmask(struct irq_data *irqd) in lan78xx_irq_unmask() argument 1869 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_unmask() 1871 data->irqenable |= BIT(irqd_to_hwirq(irqd)); in lan78xx_irq_unmask() 1874 static void lan78xx_irq_bus_lock(struct irq_data *irqd) in lan78xx_irq_bus_lock() argument 1876 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_bus_lock() 1881 static void lan78xx_irq_bus_sync_unlock(struct irq_data *irqd) in lan78xx_irq_bus_sync_unlock() argument 1883 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_bus_sync_unlock()
|
/drivers/i2c/ |
D | i2c-core-base.c | 685 struct irq_data *irqd; in i2c_dev_irq_from_resources() local 695 irqd = irq_get_irq_data(r->start); in i2c_dev_irq_from_resources() 696 if (!irqd) in i2c_dev_irq_from_resources() 699 irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); in i2c_dev_irq_from_resources()
|