/linux-6.6.21/arch/x86/kernel/apic/ |
D | vector.c | 89 static struct apic_chip_data *apic_chip_data(struct irq_data *irqd) in apic_chip_data() argument 91 if (!irqd) in apic_chip_data() 94 while (irqd->parent_data) in apic_chip_data() 95 irqd = irqd->parent_data; in apic_chip_data() 97 return irqd->chip_data; in apic_chip_data() 100 struct irq_cfg *irqd_cfg(struct irq_data *irqd) in irqd_cfg() argument 102 struct apic_chip_data *apicd = apic_chip_data(irqd); in irqd_cfg() 128 static void apic_update_irq_cfg(struct irq_data *irqd, unsigned int vector, in apic_update_irq_cfg() argument 131 struct apic_chip_data *apicd = apic_chip_data(irqd); in apic_update_irq_cfg() 137 irq_data_update_effective_affinity(irqd, cpumask_of(cpu)); in apic_update_irq_cfg() [all …]
|
D | msi.c | 26 static void irq_msi_update_msg(struct irq_data *irqd, struct irq_cfg *cfg) in irq_msi_update_msg() argument 31 irq_data_get_irq_chip(irqd)->irq_write_msi_msg(irqd, msg); in irq_msi_update_msg() 35 msi_set_affinity(struct irq_data *irqd, const struct cpumask *mask, bool force) in msi_set_affinity() argument 37 struct irq_cfg old_cfg, *cfg = irqd_cfg(irqd); in msi_set_affinity() 38 struct irq_data *parent = irqd->parent_data; in msi_set_affinity() 43 cpu = cpumask_first(irq_data_get_effective_affinity_mask(irqd)); in msi_set_affinity() 65 if (!irqd_can_reserve(irqd) || in msi_set_affinity() 68 !irqd_is_started(irqd) || in msi_set_affinity() 70 irq_msi_update_msg(irqd, cfg); in msi_set_affinity() 79 irq_msi_update_msg(irqd, cfg); in msi_set_affinity() [all …]
|
/linux-6.6.21/arch/riscv/kvm/ |
D | aia_aplic.c | 44 struct aplic_irq *irqd; in aplic_read_sourcecfg() local 48 irqd = &aplic->irqs[irq]; in aplic_read_sourcecfg() 50 raw_spin_lock_irqsave(&irqd->lock, flags); in aplic_read_sourcecfg() 51 ret = irqd->sourcecfg; in aplic_read_sourcecfg() 52 raw_spin_unlock_irqrestore(&irqd->lock, flags); in aplic_read_sourcecfg() 60 struct aplic_irq *irqd; in aplic_write_sourcecfg() local 64 irqd = &aplic->irqs[irq]; in aplic_write_sourcecfg() 71 raw_spin_lock_irqsave(&irqd->lock, flags); in aplic_write_sourcecfg() 72 irqd->sourcecfg = val; in aplic_write_sourcecfg() 73 raw_spin_unlock_irqrestore(&irqd->lock, flags); in aplic_write_sourcecfg() [all …]
|
/linux-6.6.21/drivers/mfd/ |
D | mt6358-irq.c | 79 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 …]
|
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 …]
|
/linux-6.6.21/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 | 50 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 …]
|
/linux-6.6.21/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() 153 struct irq_data *irqd = &desc->irq_data; in resume_irq() local 155 irqd_clear(irqd, IRQD_WAKEUP_ARMED); in resume_irq() 157 if (irqd_is_enabled_on_suspend(irqd)) { in resume_irq() 164 irqd_clear(irqd, IRQD_IRQ_ENABLED_ON_SUSPEND); in resume_irq()
|
D | irqdomain.c | 1251 struct irq_data *irqd; in irq_domain_disconnect_hierarchy() local 1253 irqd = irq_domain_get_irq_data(domain, virq); in irq_domain_disconnect_hierarchy() 1254 if (!irqd) in irq_domain_disconnect_hierarchy() 1257 irqd->chip = ERR_PTR(-ENOTCONN); in irq_domain_disconnect_hierarchy() 1264 struct irq_data *tail, *irqd, *irq_data; in irq_domain_trim_hierarchy() local 1277 for (irqd = irq_data->parent_data; irqd; irq_data = irqd, irqd = irqd->parent_data) { in irq_domain_trim_hierarchy() 1279 if (irqd->chip && tail) in irq_domain_trim_hierarchy() 1283 if (!irqd->chip && !tail) in irq_domain_trim_hierarchy() 1286 if (IS_ERR(irqd->chip)) { in irq_domain_trim_hierarchy() 1288 if (PTR_ERR(irqd->chip) != -ENOTCONN) in irq_domain_trim_hierarchy() [all …]
|
D | irq_sim.c | 139 struct irq_data *irqd; in irq_sim_domain_unmap() local 141 irqd = irq_domain_get_irq_data(domain, virq); in irq_sim_domain_unmap() 142 irq_ctx = irq_data_get_irq_chip_data(irqd); in irq_sim_domain_unmap() 145 irq_domain_reset_irq_data(irqd); in irq_sim_domain_unmap()
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-mlxbf2.c | 233 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 …]
|
D | gpio-mlxbf3.c | 54 static void mlxbf3_gpio_irq_enable(struct irq_data *irqd) in mlxbf3_gpio_irq_enable() argument 56 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_enable() 58 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_enable() 73 static void mlxbf3_gpio_irq_disable(struct irq_data *irqd) in mlxbf3_gpio_irq_disable() argument 75 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_disable() 77 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_disable() 107 mlxbf3_gpio_irq_set_type(struct irq_data *irqd, unsigned int type) in mlxbf3_gpio_irq_set_type() argument 109 struct gpio_chip *gc = irq_data_get_irq_chip_data(irqd); in mlxbf3_gpio_irq_set_type() 111 irq_hw_number_t offset = irqd_to_hwirq(irqd); in mlxbf3_gpio_irq_set_type() 143 irq_set_handler_locked(irqd, handle_edge_irq); in mlxbf3_gpio_irq_set_type()
|
D | gpio-dln2.c | 302 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 …]
|
D | gpio-ljca.c | 273 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 …]
|
/linux-6.6.21/drivers/irqchip/ |
D | irq-keystone.c | 31 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()
|
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()
|
/linux-6.6.21/arch/x86/hyperv/ |
D | irqdomain.c | 256 static void hv_teardown_msi_irq(struct pci_dev *dev, struct irq_data *irqd) in hv_teardown_msi_irq() argument 262 if (!irqd->chip_data) { in hv_teardown_msi_irq() 267 old_entry = *(struct hv_interrupt_entry *)irqd->chip_data; in hv_teardown_msi_irq() 270 kfree(irqd->chip_data); in hv_teardown_msi_irq() 271 irqd->chip_data = NULL; in hv_teardown_msi_irq() 282 struct irq_data *irqd = irq_get_irq_data(virq); in hv_msi_free_irq() local 285 if (!irqd) in hv_msi_free_irq() 288 desc = irq_data_get_msi_desc(irqd); in hv_msi_free_irq() 292 hv_teardown_msi_irq(to_pci_dev(desc->dev), irqd); in hv_msi_free_irq()
|
/linux-6.6.21/drivers/soc/qcom/ |
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() 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 …]
|
D | smp2p.c | 317 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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/mips/sgi-ip27/ |
D | ip27-irq.c | 160 struct irq_data *irqd; in hub_domain_free() local 165 irqd = irq_domain_get_irq_data(domain, virq); in hub_domain_free() 166 if (irqd && irqd->chip_data) in hub_domain_free() 167 kfree(irqd->chip_data); in hub_domain_free()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/mips/sgi-ip30/ |
D | ip30-irq.c | 230 struct irq_data *irqd; in heart_domain_free() local 235 irqd = irq_domain_get_irq_data(domain, virq); in heart_domain_free() 236 if (irqd) { in heart_domain_free() 237 clear_bit(irqd->hwirq, heart_irq_map); in heart_domain_free() 238 kfree(irqd->chip_data); in heart_domain_free()
|
/linux-6.6.21/arch/mips/pci/ |
D | pci-xtalk-bridge.c | 364 struct irq_data *irqd = irq_domain_get_irq_data(domain, virq); in bridge_domain_free() local 369 kfree(irqd->chip_data); in bridge_domain_free() 374 struct irq_data *irqd, bool reserve) in bridge_domain_activate() argument 376 struct bridge_irq_chip_data *data = irqd->chip_data; in bridge_domain_activate() 378 int bit = irqd->parent_data->hwirq; in bridge_domain_activate() 379 int pin = irqd->hwirq; in bridge_domain_activate() 411 struct irq_data *irqd) in bridge_domain_deactivate() argument 413 struct bridge_irq_chip_data *data = irqd->chip_data; in bridge_domain_deactivate() 415 bridge_clr(data->bc, b_int_enable, (1 << irqd->hwirq)); in bridge_domain_deactivate()
|