Home
last modified time | relevance | path

Searched refs:irqd (Results 1 – 25 of 31) sorted by relevance

12

/drivers/mfd/
Dmt6358-irq.c79 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_enable() local
81 irqd->enable_hwirq[hwirq] = true; in pmic_irq_enable()
88 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_disable() local
90 irqd->enable_hwirq[hwirq] = false; in pmic_irq_disable()
104 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_sync_unlock() local
106 for (i = 0; i < irqd->num_pmic_irqs; i++) { in pmic_irq_sync_unlock()
107 if (irqd->enable_hwirq[i] == irqd->cache_hwirq[i]) in pmic_irq_sync_unlock()
112 while ((top_gp + 1) < irqd->num_top && in pmic_irq_sync_unlock()
113 i >= irqd->pmic_ints[top_gp + 1].hwirq_base) in pmic_irq_sync_unlock()
117 gp_offset = i - irqd->pmic_ints[top_gp].hwirq_base; in pmic_irq_sync_unlock()
[all …]
Dlp8788-irq.c64 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_enable() local
66 irqd->enabled[data->hwirq] = 1; in lp8788_irq_enable()
71 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_disable() local
73 irqd->enabled[data->hwirq] = 0; in lp8788_irq_disable()
78 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_bus_lock() local
80 mutex_lock(&irqd->irq_lock); in lp8788_irq_bus_lock()
85 struct lp8788_irq_data *irqd = irq_data_get_irq_chip_data(data); in lp8788_irq_bus_sync_unlock() local
91 val = _irq_to_val(irq, irqd->enabled[irq]); in lp8788_irq_bus_sync_unlock()
93 lp8788_update_bits(irqd->lp, addr, mask, val); in lp8788_irq_bus_sync_unlock()
95 mutex_unlock(&irqd->irq_lock); in lp8788_irq_bus_sync_unlock()
[all …]
/drivers/pinctrl/samsung/
Dpinctrl-s3c64xx.c303 static inline void s3c64xx_gpio_irq_set_mask(struct irq_data *irqd, bool mask) in s3c64xx_gpio_irq_set_mask() argument
305 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in s3c64xx_gpio_irq_set_mask()
307 unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; in s3c64xx_gpio_irq_set_mask()
319 static void s3c64xx_gpio_irq_unmask(struct irq_data *irqd) in s3c64xx_gpio_irq_unmask() argument
321 s3c64xx_gpio_irq_set_mask(irqd, false); in s3c64xx_gpio_irq_unmask()
324 static void s3c64xx_gpio_irq_mask(struct irq_data *irqd) in s3c64xx_gpio_irq_mask() argument
326 s3c64xx_gpio_irq_set_mask(irqd, true); in s3c64xx_gpio_irq_mask()
329 static void s3c64xx_gpio_irq_ack(struct irq_data *irqd) in s3c64xx_gpio_irq_ack() argument
331 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in s3c64xx_gpio_irq_ack()
333 unsigned char index = EINT_OFFS(bank->eint_offset) + irqd->hwirq; in s3c64xx_gpio_irq_ack()
[all …]
Dpinctrl-exynos.c50 static void exynos_irq_mask(struct irq_data *irqd) in exynos_irq_mask() argument
52 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_mask()
54 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_mask()
62 mask |= 1 << irqd->hwirq; in exynos_irq_mask()
68 static void exynos_irq_ack(struct irq_data *irqd) in exynos_irq_ack() argument
70 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_ack()
72 struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd); in exynos_irq_ack()
75 writel(1 << irqd->hwirq, bank->eint_base + reg_pend); in exynos_irq_ack()
78 static void exynos_irq_unmask(struct irq_data *irqd) in exynos_irq_unmask() argument
80 struct irq_chip *chip = irq_data_get_irq_chip(irqd); in exynos_irq_unmask()
[all …]
/drivers/gpio/
Dgpio-mlxbf2.c233 static void mlxbf2_gpio_irq_enable(struct irq_data *irqd) in mlxbf2_gpio_irq_enable() argument
235 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf2_gpio_irq_enable()
237 int offset = irqd_to_hwirq(irqd); in mlxbf2_gpio_irq_enable()
241 gpiochip_enable_irq(gc, irqd_to_hwirq(irqd)); in mlxbf2_gpio_irq_enable()
253 static void mlxbf2_gpio_irq_disable(struct irq_data *irqd) in mlxbf2_gpio_irq_disable() argument
255 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf2_gpio_irq_disable()
257 int offset = irqd_to_hwirq(irqd); in mlxbf2_gpio_irq_disable()
266 gpiochip_disable_irq(gc, irqd_to_hwirq(irqd)); in mlxbf2_gpio_irq_disable()
286 mlxbf2_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) in mlxbf2_gpio_irq_set_type() argument
288 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf2_gpio_irq_set_type()
[all …]
Dgpio-mlxbf3.c56 static void mlxbf3_gpio_irq_enable(struct irq_data *irqd) in mlxbf3_gpio_irq_enable() argument
58 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_enable()
60 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_enable()
75 static void mlxbf3_gpio_irq_disable(struct irq_data *irqd) in mlxbf3_gpio_irq_disable() argument
77 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_disable()
79 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_disable()
111 mlxbf3_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) in mlxbf3_gpio_irq_set_type() argument
113 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_set_type()
115 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_set_type()
147 irq_set_handler_locked(irqd, handle_edge_irq); in mlxbf3_gpio_irq_set_type()
Dgpio-dln2.c302 static void dln2_irq_unmask(struct irq_data *irqd) in dln2_irq_unmask() argument
304 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_unmask()
306 int pin = irqd_to_hwirq(irqd); in dln2_irq_unmask()
312 static void dln2_irq_mask(struct irq_data *irqd) in dln2_irq_mask() argument
314 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_mask()
316 int pin = irqd_to_hwirq(irqd); in dln2_irq_mask()
322 static int dln2_irq_set_type(struct irq_data *irqd, unsigned type) in dln2_irq_set_type() argument
324 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_set_type()
326 int pin = irqd_to_hwirq(irqd); in dln2_irq_set_type()
351 static void dln2_irq_bus_lock(struct irq_data *irqd) in dln2_irq_bus_lock() argument
[all …]
Dgpio-ljca.c273 static void ljca_irq_unmask(struct irq_data *irqd) in ljca_irq_unmask() argument
275 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ljca_irq_unmask()
277 int gpio_id = irqd_to_hwirq(irqd); in ljca_irq_unmask()
283 static void ljca_irq_mask(struct irq_data *irqd) in ljca_irq_mask() argument
285 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ljca_irq_mask()
287 int gpio_id = irqd_to_hwirq(irqd); in ljca_irq_mask()
293 static int ljca_irq_set_type(struct irq_data *irqd, unsigned int type) in ljca_irq_set_type() argument
295 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ljca_irq_set_type()
297 int gpio_id = irqd_to_hwirq(irqd); in ljca_irq_set_type()
322 static void ljca_irq_bus_lock(struct irq_data *irqd) in ljca_irq_bus_lock() argument
[all …]
Dgpio-thunderx.c403 struct irq_data *irqd; in thunderx_gpio_child_to_parent_hwirq() local
407 irqd = irq_domain_get_irq_data(gc->irq.parent_domain, irq); in thunderx_gpio_child_to_parent_hwirq()
408 if (!irqd) in thunderx_gpio_child_to_parent_hwirq()
410 *parent = irqd_to_hwirq(irqd); in thunderx_gpio_child_to_parent_hwirq()
/drivers/soc/qcom/
Dsmsm.c236 static void smsm_mask_irq(struct irq_data *irqd) in smsm_mask_irq() argument
238 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_mask_irq()
239 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_mask_irq()
259 static void smsm_unmask_irq(struct irq_data *irqd) in smsm_unmask_irq() argument
261 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_unmask_irq()
262 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_unmask_irq()
286 static int smsm_set_irq_type(struct irq_data *irqd, unsigned int type) in smsm_set_irq_type() argument
288 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_set_irq_type()
289 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_set_irq_type()
307 static int smsm_get_irqchip_state(struct irq_data *irqd, in smsm_get_irqchip_state() argument
[all …]
Dsmp2p.c317 static void smp2p_mask_irq(struct irq_data *irqd) in smp2p_mask_irq() argument
319 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_mask_irq()
320 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_mask_irq()
325 static void smp2p_unmask_irq(struct irq_data *irqd) in smp2p_unmask_irq() argument
327 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_unmask_irq()
328 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_unmask_irq()
333 static int smp2p_set_irq_type(struct irq_data *irqd, unsigned int type) in smp2p_set_irq_type() argument
335 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_set_irq_type()
336 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_set_irq_type()
/drivers/irqchip/
Dirq-keystone.c31 struct irq_domain *irqd; member
100 err = generic_handle_domain_irq(kirq->irqd, src); in keystone_irq_handler()
167 kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ, in keystone_irq_probe()
169 if (!kirq->irqd) { in keystone_irq_probe()
181 irq_domain_remove(kirq->irqd); in keystone_irq_probe()
201 irq_dispose_mapping(irq_find_mapping(kirq->irqd, hwirq)); in keystone_irq_remove()
203 irq_domain_remove(kirq->irqd); in keystone_irq_remove()
Dirq-sun4i.c49 static void sun4i_irq_ack(struct irq_data *irqd) in sun4i_irq_ack() argument
51 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_ack()
59 static void sun4i_irq_mask(struct irq_data *irqd) in sun4i_irq_mask() argument
61 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_mask()
72 static void sun4i_irq_unmask(struct irq_data *irqd) in sun4i_irq_unmask() argument
74 unsigned int irq = irqd_to_hwirq(irqd); in sun4i_irq_unmask()
Dirq-zevio.c39 static void zevio_irq_ack(struct irq_data *irqd) in zevio_irq_ack() argument
41 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(irqd); in zevio_irq_ack()
42 struct irq_chip_regs *regs = &irq_data_get_chip_type(irqd)->regs; in zevio_irq_ack()
Dirq-gic.c1062 struct irq_data *irqd = irq_desc_get_irq_data(irq_to_desc(irq)); in gic_irq_domain_map() local
1078 irqd_set_single_target(irqd); in gic_irq_domain_map()
1083 irqd_set_handle_enforce_irqctx(irqd); in gic_irq_domain_map()
/drivers/mailbox/
Dqcom-ipcc.c91 static void qcom_ipcc_mask_irq(struct irq_data *irqd) in qcom_ipcc_mask_irq() argument
93 struct qcom_ipcc *ipcc = irq_data_get_irq_chip_data(irqd); in qcom_ipcc_mask_irq()
94 irq_hw_number_t hwirq = irqd_to_hwirq(irqd); in qcom_ipcc_mask_irq()
99 static void qcom_ipcc_unmask_irq(struct irq_data *irqd) in qcom_ipcc_unmask_irq() argument
101 struct qcom_ipcc *ipcc = irq_data_get_irq_chip_data(irqd); in qcom_ipcc_unmask_irq()
102 irq_hw_number_t hwirq = irqd_to_hwirq(irqd); in qcom_ipcc_unmask_irq()
/drivers/iio/dummy/
Diio_dummy_evgen.c106 struct irq_data *irqd = irq_get_irq_data(irq); in iio_dummy_evgen_release_irq() local
109 iio_evgen->inuse[irqd_to_hwirq(irqd)] = false; in iio_dummy_evgen_release_irq()
117 struct irq_data *irqd = irq_get_irq_data(irq); in iio_dummy_evgen_get_regs() local
119 return &iio_evgen->regs[irqd_to_hwirq(irqd)]; in iio_dummy_evgen_get_regs()
/drivers/gpu/drm/msm/
Dmsm_mdss.c113 static void msm_mdss_irq_mask(struct irq_data *irqd) in msm_mdss_irq_mask() argument
115 struct msm_mdss *msm_mdss = irq_data_get_irq_chip_data(irqd); in msm_mdss_irq_mask()
119 clear_bit(irqd->hwirq, &msm_mdss->irq_controller.enabled_mask); in msm_mdss_irq_mask()
124 static void msm_mdss_irq_unmask(struct irq_data *irqd) in msm_mdss_irq_unmask() argument
126 struct msm_mdss *msm_mdss = irq_data_get_irq_chip_data(irqd); in msm_mdss_irq_unmask()
130 set_bit(irqd->hwirq, &msm_mdss->irq_controller.enabled_mask); in msm_mdss_irq_unmask()
/drivers/pinctrl/
Dpinctrl-ingenic.c3394 static void ingenic_gpio_irq_mask(struct irq_data *irqd) in ingenic_gpio_irq_mask() argument
3396 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_mask()
3398 irq_hw_number_t irq = irqd_to_hwirq(irqd); in ingenic_gpio_irq_mask()
3406 static void ingenic_gpio_irq_unmask(struct irq_data *irqd) in ingenic_gpio_irq_unmask() argument
3408 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_unmask()
3410 irq_hw_number_t irq = irqd_to_hwirq(irqd); in ingenic_gpio_irq_unmask()
3418 static void ingenic_gpio_irq_enable(struct irq_data *irqd) in ingenic_gpio_irq_enable() argument
3420 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_enable()
3422 irq_hw_number_t irq = irqd_to_hwirq(irqd); in ingenic_gpio_irq_enable()
3433 ingenic_gpio_irq_unmask(irqd); in ingenic_gpio_irq_enable()
[all …]
/drivers/iommu/amd/
Dinit.c2328 struct irq_data *irqd, bool reserve) in intcapxt_irqdomain_activate() argument
2334 struct irq_data *irqd) in intcapxt_irqdomain_deactivate() argument
2353 struct irq_data *irqd = irq_domain_get_irq_data(domain, i); in intcapxt_irqdomain_alloc() local
2355 irqd->chip = &intcapxt_controller; in intcapxt_irqdomain_alloc()
2356 irqd->hwirq = info->hwirq; in intcapxt_irqdomain_alloc()
2357 irqd->chip_data = info->data; in intcapxt_irqdomain_alloc()
2371 static void intcapxt_unmask_irq(struct irq_data *irqd) in intcapxt_unmask_irq() argument
2373 struct amd_iommu *iommu = irqd->chip_data; in intcapxt_unmask_irq()
2374 struct irq_cfg *cfg = irqd_cfg(irqd); in intcapxt_unmask_irq()
2383 writeq(xt.capxt, iommu->mmio_base + irqd->hwirq); in intcapxt_unmask_irq()
[all …]
/drivers/input/keyboard/
Dadp5588-keys.c493 struct irq_data *irqd; in adp5588_gpio_irq_handle() local
507 irqd = irq_get_irq_data(irq); in adp5588_gpio_irq_handle()
508 if (!irqd) { in adp5588_gpio_irq_handle()
513 irq_type = irqd_get_trigger_type(irqd); in adp5588_gpio_irq_handle()
/drivers/base/
Dplatform.c205 struct irq_data *irqd; in platform_get_irq_optional() local
207 irqd = irq_get_irq_data(r->start); in platform_get_irq_optional()
208 if (!irqd) in platform_get_irq_optional()
210 irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); in platform_get_irq_optional()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_irq.c661 static void amdgpu_irq_mask(struct irq_data *irqd) in amdgpu_irq_mask() argument
666 static void amdgpu_irq_unmask(struct irq_data *irqd) in amdgpu_irq_unmask() argument
/drivers/iommu/intel/
Dirq_remapping.c1129 static void intel_ir_reconfigure_irte(struct irq_data *irqd, bool force) in intel_ir_reconfigure_irte() argument
1131 struct intel_ir_data *ir_data = irqd->chip_data; in intel_ir_reconfigure_irte()
1133 struct irq_cfg *cfg = irqd_cfg(irqd); in intel_ir_reconfigure_irte()
/drivers/net/usb/
Dlan78xx.c2147 static void lan78xx_irq_mask(struct irq_data *irqd) in lan78xx_irq_mask() argument
2149 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_mask()
2151 data->irqenable &= ~BIT(irqd_to_hwirq(irqd)); in lan78xx_irq_mask()
2154 static void lan78xx_irq_unmask(struct irq_data *irqd) in lan78xx_irq_unmask() argument
2156 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_unmask()
2158 data->irqenable |= BIT(irqd_to_hwirq(irqd)); in lan78xx_irq_unmask()
2161 static void lan78xx_irq_bus_lock(struct irq_data *irqd) in lan78xx_irq_bus_lock() argument
2163 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_bus_lock()
2168 static void lan78xx_irq_bus_sync_unlock(struct irq_data *irqd) in lan78xx_irq_bus_sync_unlock() argument
2170 struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); in lan78xx_irq_bus_sync_unlock()

12