| /Linux-v5.15/drivers/irqchip/ |
| D | irq-mtk-sysirq.c | 29 struct mtk_sysirq_chip_data *chip_data = data->chip_data; in mtk_sysirq_set_type() local 30 u8 intpol_idx = chip_data->intpol_idx[hwirq]; in mtk_sysirq_set_type() 36 base = chip_data->intpol_bases[intpol_idx]; in mtk_sysirq_set_type() 37 reg_index = chip_data->which_word[hwirq]; in mtk_sysirq_set_type() 40 raw_spin_lock_irqsave(&chip_data->lock, flags); in mtk_sysirq_set_type() 56 raw_spin_unlock_irqrestore(&chip_data->lock, flags); in mtk_sysirq_set_type() 127 struct mtk_sysirq_chip_data *chip_data; in mtk_sysirq_of_init() local 136 chip_data = kzalloc(sizeof(*chip_data), GFP_KERNEL); in mtk_sysirq_of_init() 137 if (!chip_data) in mtk_sysirq_of_init() 149 chip_data->intpol_words = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init() [all …]
|
| D | irq-stm32-exti.c | 245 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_exti_pending() local 246 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_exti_pending() 307 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_irq_set_type() local 308 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_irq_set_type() 309 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type() 342 static void stm32_chip_suspend(struct stm32_exti_chip_data *chip_data, in stm32_chip_suspend() argument 345 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_chip_suspend() 346 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend() 349 chip_data->rtsr_cache = readl_relaxed(base + stm32_bank->rtsr_ofst); in stm32_chip_suspend() 350 chip_data->ftsr_cache = readl_relaxed(base + stm32_bank->ftsr_ofst); in stm32_chip_suspend() [all …]
|
| D | irq-owl-sirq.c | 135 struct owl_sirq_chip_data *chip_data = irq_data_get_irq_chip_data(data); in owl_sirq_eoi() local 142 owl_sirq_clear_set_extctl(chip_data, 0, INTC_EXTCTL_PENDING, in owl_sirq_eoi() 150 struct owl_sirq_chip_data *chip_data = irq_data_get_irq_chip_data(data); in owl_sirq_mask() local 152 owl_sirq_clear_set_extctl(chip_data, INTC_EXTCTL_EN, 0, data->hwirq); in owl_sirq_mask() 158 struct owl_sirq_chip_data *chip_data = irq_data_get_irq_chip_data(data); in owl_sirq_unmask() local 160 owl_sirq_clear_set_extctl(chip_data, 0, INTC_EXTCTL_EN, data->hwirq); in owl_sirq_unmask() 171 struct owl_sirq_chip_data *chip_data = irq_data_get_irq_chip_data(data); in owl_sirq_set_type() local 193 owl_sirq_clear_set_extctl(chip_data, INTC_EXTCTL_TYPE_MASK, sirq_type, in owl_sirq_set_type() 231 struct owl_sirq_chip_data *chip_data = domain->host_data; in owl_sirq_domain_alloc() local 260 chip_data); in owl_sirq_domain_alloc() [all …]
|
| D | irq-vf610-mscm-ir.c | 89 struct vf610_mscm_ir_chip_data *chip_data = data->chip_data; in vf610_mscm_ir_enable() local 92 irsprc = readw_relaxed(chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_enable() 95 WARN_ON(irsprc & ~chip_data->cpu_mask); in vf610_mscm_ir_enable() 97 writew_relaxed(chip_data->cpu_mask, in vf610_mscm_ir_enable() 98 chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_enable() 106 struct vf610_mscm_ir_chip_data *chip_data = data->chip_data; in vf610_mscm_ir_disable() local 108 writew_relaxed(0x0, chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_disable()
|
| D | exynos-combiner.c | 67 struct combiner_chip_data *chip_data = irq_desc_get_handler_data(desc); in combiner_handle_cascade_irq() local 76 status = readl_relaxed(chip_data->base + COMBINER_INT_STATUS); in combiner_handle_cascade_irq() 78 status &= chip_data->irq_mask; in combiner_handle_cascade_irq() 83 combiner_irq = chip_data->hwirq_offset + __ffs(status); in combiner_handle_cascade_irq() 96 struct combiner_chip_data *chip_data = irq_data_get_irq_chip_data(d); in combiner_set_affinity() local 97 struct irq_chip *chip = irq_get_chip(chip_data->parent_irq); in combiner_set_affinity() 98 struct irq_data *data = irq_get_irq_data(chip_data->parent_irq); in combiner_set_affinity()
|
| D | irq-gic-pm.c | 20 struct gic_chip_data *chip_data; member 28 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_resume() 54 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_suspend() 109 ret = gic_of_init_child(dev, &chip_pm->chip_data, irq); in gic_probe()
|
| D | irq-sun6i-r.c | 94 data->chip_data = SUN6I_NMI_NEEDS_ACK; in sun6i_r_intc_nmi_ack() 100 if (data->chip_data == SUN6I_NMI_NEEDS_ACK && !irqd_irq_masked(data)) { in sun6i_r_intc_nmi_eoi() 101 data->chip_data = NULL; in sun6i_r_intc_nmi_eoi() 110 if (data->chip_data == SUN6I_NMI_NEEDS_ACK) { in sun6i_r_intc_nmi_unmask() 111 data->chip_data = NULL; in sun6i_r_intc_nmi_unmask()
|
| D | irq-mtk-cirq.c | 42 struct mtk_cirq_chip_data *chip_data = data->chip_data; in mtk_cirq_write_mask() local 46 writel_relaxed(mask, chip_data->base + offset + (cirq_num / 32) * 4); in mtk_cirq_write_mask()
|
| D | irq-imx-gpcv2.c | 75 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_set_wake() 97 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_unmask() 113 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_mask()
|
| D | irq-mbigen.c | 106 void __iomem *base = data->chip_data; in mbigen_eoi_irq() 118 void __iomem *base = data->chip_data; in mbigen_set_type() 150 void __iomem *base = d->chip_data; in mbigen_write_msg()
|
| /Linux-v5.15/arch/x86/platform/uv/ |
| D | uv_irq.c | 60 uv_program_mmr(cfg, data->chip_data); in uv_set_irq_affinity() 78 struct uv_irq_2_mmr_pnode *chip_data; in uv_domain_alloc() local 86 chip_data = kmalloc_node(sizeof(*chip_data), GFP_KERNEL, in uv_domain_alloc() 88 if (!chip_data) in uv_domain_alloc() 98 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc() 99 chip_data->offset = info->uv.offset; in uv_domain_alloc() 100 irq_domain_set_info(domain, virq, virq, &uv_irq_chip, chip_data, in uv_domain_alloc() 103 kfree(chip_data); in uv_domain_alloc() 115 kfree(irq_data->chip_data); in uv_domain_free() 128 uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data); in uv_domain_activate() [all …]
|
| /Linux-v5.15/drivers/mfd/ |
| D | htc-i2cpld.c | 216 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_set() local 219 client = chip_data->client; in htcpld_chip_set() 223 spin_lock_irqsave(&chip_data->lock, flags); in htcpld_chip_set() 225 chip_data->cache_out |= (1 << offset); in htcpld_chip_set() 227 chip_data->cache_out &= ~(1 << offset); in htcpld_chip_set() 228 spin_unlock_irqrestore(&chip_data->lock, flags); in htcpld_chip_set() 230 schedule_work(&(chip_data->set_val_work)); in htcpld_chip_set() 235 struct htcpld_chip *chip_data; in htcpld_chip_set_ni() local 238 chip_data = container_of(work, struct htcpld_chip, set_val_work); in htcpld_chip_set_ni() 239 client = chip_data->client; in htcpld_chip_set_ni() [all …]
|
| D | mt6397-core.c | 153 struct chip_data { struct 161 static const struct chip_data mt6323_core = { argument 169 static const struct chip_data mt6358_core = { 177 static const struct chip_data mt6359_core = { 185 static const struct chip_data mt6397_core = { 198 const struct chip_data *pmic_core; in mt6397_probe()
|
| /Linux-v5.15/arch/x86/hyperv/ |
| D | irqdomain.c | 210 if (data->chip_data) { in hv_irq_compose_msi_msg() 219 stored_entry = data->chip_data; in hv_irq_compose_msi_msg() 220 data->chip_data = NULL; in hv_irq_compose_msi_msg() 245 data->chip_data = stored_entry; in hv_irq_compose_msi_msg() 276 if (!data->chip_data) { in hv_teardown_msi_irq_common() 281 old_entry = *(struct hv_interrupt_entry *)data->chip_data; in hv_teardown_msi_irq_common() 284 kfree(data->chip_data); in hv_teardown_msi_irq_common() 285 data->chip_data = NULL; in hv_teardown_msi_irq_common()
|
| /Linux-v5.15/drivers/gpu/drm/arm/display/komeda/d71/ |
| D | d71_dev.c | 180 struct d71_dev *d71 = mdev->chip_data; in d71_irq_handler() 220 struct d71_dev *d71 = mdev->chip_data; in d71_enable_irq() 240 struct d71_dev *d71 = mdev->chip_data; in d71_disable_irq() 259 struct d71_dev *d71 = mdev->chip_data; in d71_on_off_vblank() 285 struct d71_dev *d71 = mdev->chip_data; in d71_change_opmode() 300 struct d71_dev *d71 = mdev->chip_data; in d71_flush() 340 struct d71_dev *d71 = mdev->chip_data; in d71_cleanup() 346 mdev->chip_data = NULL; in d71_cleanup() 362 mdev->chip_data = d71; in d71_enum_resources() 558 struct d71_dev *d71 = mdev->chip_data; in d71_connect_iommu() [all …]
|
| /Linux-v5.15/drivers/gpu/drm/rockchip/ |
| D | dw_hdmi-rockchip.c | 71 const struct rockchip_hdmi_chip_data *chip_data; member 269 if (hdmi->chip_data->lcdsel_grf_reg < 0) in dw_hdmi_rockchip_encoder_enable() 274 val = hdmi->chip_data->lcdsel_lit; in dw_hdmi_rockchip_encoder_enable() 276 val = hdmi->chip_data->lcdsel_big; in dw_hdmi_rockchip_encoder_enable() 284 ret = regmap_write(hdmi->regmap, hdmi->chip_data->lcdsel_grf_reg, val); in dw_hdmi_rockchip_encoder_enable() 512 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind()
|
| /Linux-v5.15/drivers/iommu/ |
| D | hyperv-iommu.c | 200 struct hyperv_root_ir_data *data = irq_data->chip_data; in hyperv_root_ir_compose_msi_msg() 302 irq_data->chip_data = data; in hyperv_root_irq_remapping_alloc() 318 if (irq_data && irq_data->chip_data) { in hyperv_root_irq_remapping_free() 319 data = irq_data->chip_data; in hyperv_root_irq_remapping_free()
|
| /Linux-v5.15/drivers/spi/ |
| D | spi-pxa2xx.h | 60 struct chip_data { struct 133 extern int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip,
|
| /Linux-v5.15/drivers/power/supply/ |
| D | max17040_battery.c | 54 struct chip_data { struct 64 static struct chip_data max17040_family[] = { argument 144 struct chip_data data; 184 struct chip_data *d = &chip->data; in max17040_raw_vcell_to_uvolts() 226 struct chip_data *data = &max17040_family[ in max17040_get_of_data()
|
| /Linux-v5.15/drivers/gpio/ |
| D | gpio-lpc18xx.c | 77 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_mask() 97 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_unmask() 117 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_eoi() 133 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_set_type()
|
| /Linux-v5.15/drivers/dma/ |
| D | tegra20-apb-dma.c | 218 const struct tegra_dma_chip_data *chip_data; member 397 if (tdma->chip_data->support_channel_pause) { in tegra_dma_pause() 411 if (tdma->chip_data->support_channel_pause) in tegra_dma_resume() 449 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_start() 490 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_configure_for_next() 771 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_terminate_all() 847 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred() 852 if (!tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred() 1040 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_prep_wcount() 1120 len > tdc->tdma->chip_data->max_dma_count) { in tegra_dma_prep_slave_sg() [all …]
|
| /Linux-v5.15/arch/sparc/kernel/ |
| D | leon_kernel.c | 129 mask = (unsigned long)data->chip_data; in leon_set_affinity() 152 mask = (unsigned long)data->chip_data; in leon_unmask_irq() 165 mask = (unsigned long)data->chip_data; in leon_mask_irq() 189 unsigned long mask = (unsigned long)data->chip_data; in leon_eoi_irq()
|
| /Linux-v5.15/arch/arm/mach-s3c/ |
| D | s3c64xx.c | 251 mask |= (u32)data->chip_data; in s3c_irq_eint_mask() 260 mask &= ~((u32)data->chip_data); in s3c_irq_eint_unmask() 266 __raw_writel((u32)data->chip_data, S3C64XX_EINT0PEND); in s3c_irq_eint_ack()
|
| /Linux-v5.15/arch/x86/kernel/apic/ |
| D | vector.c | 86 return irqd->chip_data; in apic_chip_data() 491 if (irqd && irqd->chip_data) { in x86_vector_free_irqs() 495 apicd = irqd->chip_data; in x86_vector_free_irqs() 558 WARN_ON_ONCE(irqd->chip_data); in x86_vector_alloc_irqs() 567 irqd->chip_data = apicd; in x86_vector_alloc_irqs() 595 irqd->chip_data = NULL; in x86_vector_alloc_irqs() 628 if (!irqd->chip_data) { in x86_vector_debug_show() 634 memcpy(&apicd, irqd->chip_data, sizeof(apicd)); in x86_vector_debug_show()
|
| D | io_apic.c | 445 struct mp_chip_data *data = irq_data->chip_data; in mask_ioapic_irq() 460 struct mp_chip_data *data = irq_data->chip_data; in unmask_ioapic_irq() 1003 if (__add_pin_to_irq_node(irq_data->chip_data, node, ioapic, in alloc_isa_irq_from_domain() 1012 data = irq_data->chip_data; in alloc_isa_irq_from_domain() 1130 data = irq_data->chip_data; in mp_unmap_irq() 1690 __unmask_ioapic(data->chip_data); in startup_ioapic_irq() 1762 if (!io_apic_level_ack_pending(data->chip_data)) in ioapic_finish_move() 1839 eoi_ioapic_pin(cfg->vector, irq_data->chip_data); in ioapic_ack_level() 1847 struct mp_chip_data *data = irq_data->chip_data; in ioapic_ir_ack_level() 1910 struct mp_chip_data *mpd = irqd->chip_data; in ioapic_configure_entry() [all …]
|