Home
last modified time | relevance | path

Searched refs:chip_data (Results 1 – 25 of 70) sorted by relevance

123

/Linux-v5.10/drivers/irqchip/
Dirq-mtk-sysirq.c29 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()
126 struct mtk_sysirq_chip_data *chip_data; in mtk_sysirq_of_init() local
135 chip_data = kzalloc(sizeof(*chip_data), GFP_KERNEL); in mtk_sysirq_of_init()
136 if (!chip_data) in mtk_sysirq_of_init()
148 chip_data->intpol_words = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init()
[all …]
Dirq-stm32-exti.c238 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_exti_pending() local
239 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_exti_pending()
302 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_irq_set_type() local
303 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_irq_set_type()
304 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type()
337 static void stm32_chip_suspend(struct stm32_exti_chip_data *chip_data, in stm32_chip_suspend() argument
340 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_chip_suspend()
341 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend()
344 chip_data->rtsr_cache = readl_relaxed(base + stm32_bank->rtsr_ofst); in stm32_chip_suspend()
345 chip_data->ftsr_cache = readl_relaxed(base + stm32_bank->ftsr_ofst); in stm32_chip_suspend()
[all …]
Dirq-owl-sirq.c135 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 …]
Dirq-vf610-mscm-ir.c89 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()
Dexynos-combiner.c67 struct combiner_chip_data *chip_data = irq_desc_get_handler_data(desc); in combiner_handle_cascade_irq() local
75 status = readl_relaxed(chip_data->base + COMBINER_INT_STATUS); in combiner_handle_cascade_irq()
77 status &= chip_data->irq_mask; in combiner_handle_cascade_irq()
82 combiner_irq = chip_data->hwirq_offset + __ffs(status); in combiner_handle_cascade_irq()
98 struct combiner_chip_data *chip_data = irq_data_get_irq_chip_data(d); in combiner_set_affinity() local
99 struct irq_chip *chip = irq_get_chip(chip_data->parent_irq); in combiner_set_affinity()
100 struct irq_data *data = irq_get_irq_data(chip_data->parent_irq); in combiner_set_affinity()
Dirq-gic-pm.c20 struct gic_chip_data *chip_data; member
28 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_resume()
56 struct gic_chip_data *gic = chip_pm->chip_data; in gic_runtime_suspend()
111 ret = gic_of_init_child(dev, &chip_pm->chip_data, irq); in gic_probe()
Dirq-mtk-cirq.c42 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()
Dirq-imx-gpcv2.c75 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()
Dirq-mbigen.c106 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.10/arch/x86/platform/uv/
Duv_irq.c60 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.10/drivers/mfd/
Dhtc-i2cpld.c216 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 …]
Dmt6397-core.c128 struct chip_data { struct
136 static const struct chip_data mt6323_core = { argument
144 static const struct chip_data mt6358_core = {
152 static const struct chip_data mt6397_core = {
165 const struct chip_data *pmic_core; in mt6397_probe()
/Linux-v5.10/drivers/gpu/drm/arm/display/komeda/d71/
Dd71_dev.c180 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.10/drivers/iommu/
Dhyperv-iommu.c54 entry = data->chip_data; in hyperv_ir_set_affinity()
104 irq_data->chip_data = info->ioapic.entry; in hyperv_irq_remapping_alloc()
126 struct IO_APIC_route_entry *entry = irq_data->chip_data; in hyperv_irq_remapping_activate()
/Linux-v5.10/drivers/gpu/drm/rockchip/
Ddw_hdmi-rockchip.c71 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.10/drivers/pci/controller/
Dpcie-tango.c50 struct tango_pcie *pcie = d->chip_data; in tango_ack()
60 struct tango_pcie *pcie = d->chip_data; in update_msi_enable()
90 struct tango_pcie *pcie = d->chip_data; in tango_compose_msi_msg()
161 struct tango_pcie *pcie = d->chip_data; in tango_irq_domain_free()
/Linux-v5.10/drivers/spi/
Dspi-pxa2xx.h69 struct chip_data { struct
137 extern int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip,
/Linux-v5.10/drivers/gpio/
Dgpio-lpc18xx.c77 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.10/drivers/power/supply/
Dmax17040_battery.c55 struct chip_data { struct
65 static struct chip_data max17040_family[] = { argument
146 struct chip_data data;
188 struct chip_data *d = &chip->data; in max17040_raw_vcell_to_uvolts()
249 struct chip_data *data = &max17040_family[ in max17040_get_of_data()
/Linux-v5.10/drivers/dma/
Dtegra20-apb-dma.c218 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.10/arch/sparc/kernel/
Dleon_kernel.c129 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.10/arch/x86/kernel/apic/
Dvector.c86 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()
550 WARN_ON_ONCE(irqd->chip_data); in x86_vector_alloc_irqs()
559 irqd->chip_data = apicd; in x86_vector_alloc_irqs()
587 irqd->chip_data = NULL; in x86_vector_alloc_irqs()
620 if (!irqd->chip_data) { in x86_vector_debug_show()
626 memcpy(&apicd, irqd->chip_data, sizeof(apicd)); in x86_vector_debug_show()
Dio_apic.c458 struct mp_chip_data *data = irq_data->chip_data; in mask_ioapic_irq()
473 struct mp_chip_data *data = irq_data->chip_data; in unmask_ioapic_irq()
1004 if (__add_pin_to_irq_node(irq_data->chip_data, node, ioapic, in alloc_isa_irq_from_domain()
1013 data = irq_data->chip_data; in alloc_isa_irq_from_domain()
1121 data = irq_data->chip_data; in mp_unmap_irq()
1683 __unmask_ioapic(data->chip_data); in startup_ioapic_irq()
1755 if (!io_apic_level_ack_pending(data->chip_data)) in ioapic_finish_move()
1832 eoi_ioapic_pin(cfg->vector, irq_data->chip_data); in ioapic_ack_level()
1840 struct mp_chip_data *data = irq_data->chip_data; in ioapic_ir_ack_level()
1854 struct mp_chip_data *mpd = irqd->chip_data; in ioapic_configure_entry()
[all …]
/Linux-v5.10/arch/arm/mach-s3c/
Ds3c64xx.c251 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.10/kernel/irq/
Dirqdomain.c1047 irq_data->chip_data = NULL; in irq_domain_reset_irq_data()
1296 void *chip_data) in irq_domain_set_hwirq_and_chip() argument
1305 irq_data->chip_data = chip_data; in irq_domain_set_hwirq_and_chip()
1324 void *chip_data, irq_flow_handler_t handler, in irq_domain_set_info() argument
1327 irq_domain_set_hwirq_and_chip(domain, virq, hwirq, chip, chip_data); in irq_domain_set_info()
1552 root_irq_data->chip_data = NULL; in irq_domain_push_irq()
1821 void *chip_data, irq_flow_handler_t handler, in irq_domain_set_info() argument
1825 irq_set_chip_data(virq, chip_data); in irq_domain_set_info()

123