/kernel/linux/linux-5.10/arch/x86/kernel/apic/ |
D | vector.c | 78 static struct apic_chip_data *apic_chip_data(struct irq_data *irqd) in apic_chip_data() argument 80 if (!irqd) in apic_chip_data() 83 while (irqd->parent_data) in apic_chip_data() 84 irqd = irqd->parent_data; in apic_chip_data() 86 return irqd->chip_data; in apic_chip_data() 89 struct irq_cfg *irqd_cfg(struct irq_data *irqd) in irqd_cfg() argument 91 struct apic_chip_data *apicd = apic_chip_data(irqd); in irqd_cfg() 117 static void apic_update_irq_cfg(struct irq_data *irqd, unsigned int vector, in apic_update_irq_cfg() argument 120 struct apic_chip_data *apicd = apic_chip_data(irqd); in apic_update_irq_cfg() 126 irq_data_update_effective_affinity(irqd, cpumask_of(cpu)); in apic_update_irq_cfg() [all …]
|
D | msi.c | 53 static void irq_msi_update_msg(struct irq_data *irqd, struct irq_cfg *cfg) in irq_msi_update_msg() argument 58 irq_data_get_irq_chip(irqd)->irq_write_msi_msg(irqd, msg); in irq_msi_update_msg() 62 msi_set_affinity(struct irq_data *irqd, const struct cpumask *mask, bool force) in msi_set_affinity() argument 64 struct irq_cfg old_cfg, *cfg = irqd_cfg(irqd); in msi_set_affinity() 65 struct irq_data *parent = irqd->parent_data; in msi_set_affinity() 70 cpu = cpumask_first(irq_data_get_effective_affinity_mask(irqd)); in msi_set_affinity() 92 if (!irqd_msi_nomask_quirk(irqd) || in msi_set_affinity() 95 !irqd_is_started(irqd) || in msi_set_affinity() 97 irq_msi_update_msg(irqd, cfg); in msi_set_affinity() 106 irq_msi_update_msg(irqd, cfg); in msi_set_affinity() [all …]
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | lp8788-irq.c | 64 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 …]
|
D | mt6358-irq.c | 31 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_enable() local 33 irqd->enable_hwirq[hwirq] = true; in pmic_irq_enable() 40 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_disable() local 42 irqd->enable_hwirq[hwirq] = false; in pmic_irq_disable() 56 struct pmic_irq_data *irqd = chip->irq_data; in pmic_irq_sync_unlock() local 58 for (i = 0; i < irqd->num_pmic_irqs; i++) { in pmic_irq_sync_unlock() 59 if (irqd->enable_hwirq[i] == irqd->cache_hwirq[i]) in pmic_irq_sync_unlock() 64 while ((top_gp + 1) < irqd->num_top && in pmic_irq_sync_unlock() 76 irqd->enable_hwirq[i] << shift); in pmic_irq_sync_unlock() 78 irqd->cache_hwirq[i] = irqd->enable_hwirq[i]; in pmic_irq_sync_unlock() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/samsung/ |
D | pinctrl-s3c64xx.c | 303 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 …]
|
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 …]
|
/kernel/linux/linux-5.10/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-keystone.c | 39 struct irq_domain *irqd; member 107 virq = irq_find_mapping(kirq->irqd, src); in keystone_irq_handler() 177 kirq->irqd = irq_domain_add_linear(np, KEYSTONE_N_IRQ, in keystone_irq_probe() 179 if (!kirq->irqd) { in keystone_irq_probe() 191 irq_domain_remove(kirq->irqd); in keystone_irq_probe() 211 irq_dispose_mapping(irq_find_mapping(kirq->irqd, hwirq)); in keystone_irq_remove() 213 irq_domain_remove(kirq->irqd); in keystone_irq_remove()
|
D | irq-sun4i.c | 49 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()
|
D | irq-zevio.c | 39 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()
|
/kernel/linux/linux-5.10/kernel/irq/ |
D | pm.c | 73 struct irq_data *irqd = &desc->irq_data; in suspend_device_irq() local 79 if (irqd_is_wakeup_set(irqd)) { in suspend_device_irq() 80 irqd_set(irqd, IRQD_WAKEUP_ARMED); in suspend_device_irq() 83 irqd_irq_disabled(irqd)) { in suspend_device_irq() 90 irqd_set(irqd, IRQD_IRQ_ENABLED_ON_SUSPEND); in suspend_device_irq() 154 struct irq_data *irqd = &desc->irq_data; in resume_irq() local 156 irqd_clear(irqd, IRQD_WAKEUP_ARMED); in resume_irq() 158 if (irqd_is_enabled_on_suspend(irqd)) { in resume_irq() 165 irqd_clear(irqd, IRQD_IRQ_ENABLED_ON_SUSPEND); in resume_irq()
|
D | irqdomain.c | 1184 struct irq_data *irqd; in irq_domain_disconnect_hierarchy() local 1186 irqd = irq_domain_get_irq_data(domain, virq); in irq_domain_disconnect_hierarchy() 1187 if (!irqd) in irq_domain_disconnect_hierarchy() 1190 irqd->chip = ERR_PTR(-ENOTCONN); in irq_domain_disconnect_hierarchy() 1196 struct irq_data *tail, *irqd, *irq_data; in irq_domain_trim_hierarchy() local 1209 for (irqd = irq_data->parent_data; irqd; irq_data = irqd, irqd = irqd->parent_data) { in irq_domain_trim_hierarchy() 1211 if (irqd->chip && tail) in irq_domain_trim_hierarchy() 1215 if (!irqd->chip && !tail) in irq_domain_trim_hierarchy() 1218 if (IS_ERR(irqd->chip)) { in irq_domain_trim_hierarchy() 1220 if (PTR_ERR(irqd->chip) != -ENOTCONN) in irq_domain_trim_hierarchy() [all …]
|
D | irq_sim.c | 143 struct irq_data *irqd; in irq_sim_domain_unmap() local 145 irqd = irq_domain_get_irq_data(domain, virq); in irq_sim_domain_unmap() 146 irq_ctx = irq_data_get_irq_chip_data(irqd); in irq_sim_domain_unmap() 149 irq_domain_reset_irq_data(irqd); in irq_sim_domain_unmap()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-dln2.c | 303 static void dln2_irq_unmask(struct irq_data *irqd) in dln2_irq_unmask() argument 305 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_unmask() 307 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() 321 static int dln2_irq_set_type(struct irq_data *irqd, unsigned type) in dln2_irq_set_type() argument 323 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in dln2_irq_set_type() 325 int pin = irqd_to_hwirq(irqd); in dln2_irq_set_type() 350 static void dln2_irq_bus_lock(struct irq_data *irqd) in dln2_irq_bus_lock() argument [all …]
|
D | gpio-thunderx.c | 399 struct irq_data *irqd; in thunderx_gpio_child_to_parent_hwirq() local 403 irqd = irq_domain_get_irq_data(gc->irq.parent_domain, irq); in thunderx_gpio_child_to_parent_hwirq() 404 if (!irqd) in thunderx_gpio_child_to_parent_hwirq() 406 *parent = irqd_to_hwirq(irqd); in thunderx_gpio_child_to_parent_hwirq()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_mdss.c | 72 static void mdss_hw_mask_irq(struct irq_data *irqd) in mdss_hw_mask_irq() argument 74 struct mdp5_mdss *mdp5_mdss = irq_data_get_irq_chip_data(irqd); in mdss_hw_mask_irq() 77 clear_bit(irqd->hwirq, &mdp5_mdss->irqcontroller.enabled_mask); in mdss_hw_mask_irq() 81 static void mdss_hw_unmask_irq(struct irq_data *irqd) in mdss_hw_unmask_irq() argument 83 struct mdp5_mdss *mdp5_mdss = irq_data_get_irq_chip_data(irqd); in mdss_hw_unmask_irq() 86 set_bit(irqd->hwirq, &mdp5_mdss->irqcontroller.enabled_mask); in mdss_hw_unmask_irq()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_mdss.c | 71 static void dpu_mdss_irq_mask(struct irq_data *irqd) in dpu_mdss_irq_mask() argument 73 struct dpu_mdss *dpu_mdss = irq_data_get_irq_chip_data(irqd); in dpu_mdss_irq_mask() 77 clear_bit(irqd->hwirq, &dpu_mdss->irq_controller.enabled_mask); in dpu_mdss_irq_mask() 82 static void dpu_mdss_irq_unmask(struct irq_data *irqd) in dpu_mdss_irq_unmask() argument 84 struct dpu_mdss *dpu_mdss = irq_data_get_irq_chip_data(irqd); in dpu_mdss_irq_unmask() 88 set_bit(irqd->hwirq, &dpu_mdss->irq_controller.enabled_mask); in dpu_mdss_irq_unmask()
|
/kernel/linux/linux-5.10/drivers/mailbox/ |
D | qcom-ipcc.c | 91 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()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | smp2p.c | 242 static void smp2p_mask_irq(struct irq_data *irqd) in smp2p_mask_irq() argument 244 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_mask_irq() 245 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_mask_irq() 250 static void smp2p_unmask_irq(struct irq_data *irqd) in smp2p_unmask_irq() argument 252 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_unmask_irq() 253 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_unmask_irq() 258 static int smp2p_set_irq_type(struct irq_data *irqd, unsigned int type) in smp2p_set_irq_type() argument 260 struct smp2p_entry *entry = irq_data_get_irq_chip_data(irqd); in smp2p_set_irq_type() 261 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smp2p_set_irq_type()
|
D | smsm.c | 236 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() 261 static void smsm_unmask_irq(struct irq_data *irqd) in smsm_unmask_irq() argument 263 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_unmask_irq() 264 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_unmask_irq() 288 static int smsm_set_irq_type(struct irq_data *irqd, unsigned int type) in smsm_set_irq_type() argument 290 struct smsm_entry *entry = irq_data_get_irq_chip_data(irqd); in smsm_set_irq_type() 291 irq_hw_number_t irq = irqd_to_hwirq(irqd); in smsm_set_irq_type()
|
/kernel/linux/linux-5.10/drivers/iio/dummy/ |
D | iio_dummy_evgen.c | 106 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()
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip27/ |
D | ip27-irq.c | 159 struct irq_data *irqd; in hub_domain_free() local 164 irqd = irq_domain_get_irq_data(domain, virq); in hub_domain_free() 165 if (irqd && irqd->chip_data) in hub_domain_free() 166 kfree(irqd->chip_data); in hub_domain_free()
|
/kernel/linux/linux-5.10/arch/mips/sgi-ip30/ |
D | ip30-irq.c | 231 struct irq_data *irqd; in heart_domain_free() local 236 irqd = irq_domain_get_irq_data(domain, virq); in heart_domain_free() 237 if (irqd) { in heart_domain_free() 238 clear_bit(irqd->hwirq, heart_irq_map); in heart_domain_free() 239 kfree(irqd->chip_data); in heart_domain_free()
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-ingenic.c | 2103 static void ingenic_gpio_irq_mask(struct irq_data *irqd) in ingenic_gpio_irq_mask() argument 2105 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_mask() 2108 ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, true); in ingenic_gpio_irq_mask() 2111 static void ingenic_gpio_irq_unmask(struct irq_data *irqd) in ingenic_gpio_irq_unmask() argument 2113 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_unmask() 2116 ingenic_gpio_set_bit(jzgc, GPIO_MSK, irqd->hwirq, false); in ingenic_gpio_irq_unmask() 2119 static void ingenic_gpio_irq_enable(struct irq_data *irqd) in ingenic_gpio_irq_enable() argument 2121 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in ingenic_gpio_irq_enable() 2123 int irq = irqd->hwirq; in ingenic_gpio_irq_enable() 2130 ingenic_gpio_irq_unmask(irqd); in ingenic_gpio_irq_enable() [all …]
|
/kernel/linux/linux-5.10/arch/mips/pci/ |
D | pci-xtalk-bridge.c | 363 struct irq_data *irqd = irq_domain_get_irq_data(domain, virq); in bridge_domain_free() local 368 kfree(irqd->chip_data); in bridge_domain_free() 373 struct irq_data *irqd, bool reserve) in bridge_domain_activate() argument 375 struct bridge_irq_chip_data *data = irqd->chip_data; in bridge_domain_activate() 377 int bit = irqd->parent_data->hwirq; in bridge_domain_activate() 378 int pin = irqd->hwirq; in bridge_domain_activate() 410 struct irq_data *irqd) in bridge_domain_deactivate() argument 412 struct bridge_irq_chip_data *data = irqd->chip_data; in bridge_domain_deactivate() 414 bridge_clr(data->bc, b_int_enable, (1 << irqd->hwirq)); in bridge_domain_deactivate()
|