Home
last modified time | relevance | path

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

/drivers/irqchip/
Dirq-mtk-sysirq.c33 struct mtk_sysirq_chip_data *chip_data = data->chip_data; in mtk_sysirq_set_type() local
41 spin_lock_irqsave(&chip_data->lock, flags); in mtk_sysirq_set_type()
42 value = readl_relaxed(chip_data->intpol_base + reg_index * 4); in mtk_sysirq_set_type()
52 writel(value, chip_data->intpol_base + reg_index * 4); in mtk_sysirq_set_type()
56 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
140 chip_data = kzalloc(sizeof(*chip_data), GFP_KERNEL); in mtk_sysirq_of_init()
141 if (!chip_data) in mtk_sysirq_of_init()
146 chip_data->intpol_base = ioremap(res.start, size); in mtk_sysirq_of_init()
147 if (!chip_data->intpol_base) { in mtk_sysirq_of_init()
[all …]
Dirq-vf610-mscm-ir.c93 struct vf610_mscm_ir_chip_data *chip_data = data->chip_data; in vf610_mscm_ir_enable() local
96 irsprc = readw_relaxed(chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_enable()
99 WARN_ON(irsprc & ~chip_data->cpu_mask); in vf610_mscm_ir_enable()
101 writew_relaxed(chip_data->cpu_mask, in vf610_mscm_ir_enable()
102 chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_enable()
110 struct vf610_mscm_ir_chip_data *chip_data = data->chip_data; in vf610_mscm_ir_disable() local
112 writew_relaxed(0x0, chip_data->mscm_ir_base + MSCM_IRSPRC(hwirq)); in vf610_mscm_ir_disable()
Dexynos-combiner.c70 struct combiner_chip_data *chip_data = irq_desc_get_handler_data(desc); in combiner_handle_cascade_irq() local
78 status = readl_relaxed(chip_data->base + COMBINER_INT_STATUS); in combiner_handle_cascade_irq()
80 status &= chip_data->irq_mask; in combiner_handle_cascade_irq()
85 combiner_irq = chip_data->hwirq_offset + __ffs(status); in combiner_handle_cascade_irq()
101 struct combiner_chip_data *chip_data = irq_data_get_irq_chip_data(d); in combiner_set_affinity() local
102 struct irq_chip *chip = irq_get_chip(chip_data->parent_irq); in combiner_set_affinity()
103 struct irq_data *data = irq_get_irq_data(chip_data->parent_irq); in combiner_set_affinity()
Dirq-mbigen.c116 void __iomem *base = data->chip_data; in mbigen_eoi_irq()
128 void __iomem *base = data->chip_data; in mbigen_set_type()
160 void __iomem *base = d->chip_data; in mbigen_write_msg()
Dirq-imx-gpcv2.c87 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_set_wake()
111 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_unmask()
127 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_mask()
Dirq-tegra.c93 void __iomem *base = (void __iomem __force *)d->chip_data; in tegra_ictlr_write_mask()
Dirq-gic.c390 struct gic_chip_data *chip_data = irq_desc_get_handler_data(desc); in gic_handle_cascade_irq() local
397 status = readl_relaxed(gic_data_cpu_base(chip_data) + GIC_CPU_INTACK); in gic_handle_cascade_irq()
403 cascade_irq = irq_find_mapping(chip_data->domain, gic_irq); in gic_handle_cascade_irq()
/drivers/mfd/
Dhtc-i2cpld.c230 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_set() local
233 client = chip_data->client; in htcpld_chip_set()
237 spin_lock_irqsave(&chip_data->lock, flags); in htcpld_chip_set()
239 chip_data->cache_out |= (1 << offset); in htcpld_chip_set()
241 chip_data->cache_out &= ~(1 << offset); in htcpld_chip_set()
242 spin_unlock_irqrestore(&chip_data->lock, flags); in htcpld_chip_set()
244 schedule_work(&(chip_data->set_val_work)); in htcpld_chip_set()
249 struct htcpld_chip *chip_data; in htcpld_chip_set_ni() local
252 chip_data = container_of(work, struct htcpld_chip, set_val_work); in htcpld_chip_set_ni()
253 client = chip_data->client; in htcpld_chip_set_ni()
[all …]
/drivers/dma/
Dtegra20-apb-dma.c223 const struct tegra_dma_chip_data *chip_data; member
405 if (tdma->chip_data->support_channel_pause) { in tegra_dma_pause()
419 if (tdma->chip_data->support_channel_pause) { in tegra_dma_resume()
459 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_start()
500 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_configure_for_next()
772 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_terminate_all()
932 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_prep_wcount()
1000 (len > tdc->tdma->chip_data->max_dma_count)) { in tegra_dma_prep_slave_sg()
1099 (len > tdc->tdma->chip_data->max_dma_count)) { in tegra_dma_prep_dma_cyclic()
1319 tdma->chip_data = cdata; in tegra_dma_probe()
[all …]
/drivers/spi/
Dspi-dw.c32 struct chip_data { struct
141 struct chip_data *chip = spi_get_ctldata(spi); in dw_spi_set_cs()
286 struct chip_data *chip = spi_get_ctldata(spi); in dw_spi_transfer_one()
403 struct chip_data *chip; in dw_spi_setup()
409 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in dw_spi_setup()
444 struct chip_data *chip = spi_get_ctldata(spi); in dw_spi_cleanup()
Dspi-pxa2xx.h74 struct chip_data { struct
147 extern int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip,
Dspi-pxa2xx.c379 struct chip_data *chip = in cs_assert()
403 struct chip_data *chip = in cs_deassert()
605 struct chip_data *chip = in reset_sccr1()
933 struct chip_data *chip = in pxa2xx_ssp_get_clk_div()
952 struct chip_data *chip = spi_get_ctldata(spi); in pxa2xx_spi_can_dma()
964 struct chip_data *chip = spi_get_ctldata(message->spi); in pump_transfers()
1195 static int setup_cs(struct spi_device *spi, struct chip_data *chip, in setup_cs()
1253 struct chip_data *chip; in setup()
1289 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in setup()
1394 struct chip_data *chip = spi_get_ctldata(spi); in cleanup()
Dspi-fsl-dspi.c112 struct chip_data { struct
153 struct chip_data *cur_chip;
452 struct chip_data *chip; in dspi_setup()
469 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in dspi_setup()
512 struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi); in dspi_cleanup()
Dspi-pxa2xx-dma.c79 struct chip_data *chip = in pxa2xx_spi_dma_prepare_one()
232 int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip, in pxa2xx_spi_set_dma_burst_and_threshold()
Dspi-pl022.c384 struct chip_data *cur_chip;
425 struct chip_data { struct
568 struct chip_data *chip = pl022->cur_chip; in restore_state()
1493 struct chip_data *chip; in do_polling_transfer()
1831 struct chip_data *chip; in pl022_setup()
1846 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in pl022_setup()
2066 struct chip_data *chip = spi_get_ctldata(spi); in pl022_cleanup()
Dspi-tegra20-slink.c165 const struct tegra_slink_chip_data *chip_data; member
1046 tspi->chip_data = cdata; in tegra_slink_probe()
/drivers/input/touchscreen/
Dedt-ft5x06.c888 const struct edt_i2c_chip_data *chip_data; in edt_ft5x06_ts_probe() local
903 chip_data = of_device_get_match_data(&client->dev); in edt_ft5x06_ts_probe()
904 if (!chip_data) in edt_ft5x06_ts_probe()
905 chip_data = (const struct edt_i2c_chip_data *)id->driver_data; in edt_ft5x06_ts_probe()
906 if (!chip_data || !chip_data->max_support_points) { in edt_ft5x06_ts_probe()
911 tsdata->max_support_points = chip_data->max_support_points; in edt_ft5x06_ts_probe()
/drivers/iommu/
Dintel_irq_remapping.c1135 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_affinity()
1169 struct intel_ir_data *ir_data = irq_data->chip_data; in intel_ir_compose_msi_msg()
1176 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_vcpu_affinity()
1289 if (irq_data && irq_data->chip_data) { in intel_free_irq_resources()
1290 data = irq_data->chip_data; in intel_free_irq_resources()
1363 irq_data->chip_data = ird; in intel_irq_remapping_alloc()
1387 struct intel_ir_data *data = irq_data->chip_data; in intel_irq_remapping_activate()
1395 struct intel_ir_data *data = irq_data->chip_data; in intel_irq_remapping_deactivate()
Damd_iommu.c4187 irq_data->chip_data = data; in irq_remapping_alloc()
4199 kfree(irq_data->chip_data); in irq_remapping_alloc()
4218 if (irq_data && irq_data->chip_data) { in irq_remapping_free()
4219 data = irq_data->chip_data; in irq_remapping_free()
4232 struct amd_ir_data *data = irq_data->chip_data; in irq_remapping_activate()
4244 struct amd_ir_data *data = irq_data->chip_data; in irq_remapping_deactivate()
4265 struct amd_ir_data *ir_data = data->chip_data; in amd_ir_set_vcpu_affinity()
4328 struct amd_ir_data *ir_data = data->chip_data; in amd_ir_set_affinity()
4361 struct amd_ir_data *ir_data = irq_data->chip_data; in ir_compose_msi_msg()
/drivers/pci/host/
Dvmd.c110 struct vmd_irq *vmdirq = data->chip_data; in vmd_compose_msi_msg()
125 struct vmd_irq *vmdirq = data->chip_data; in vmd_irq_enable()
139 struct vmd_irq *vmdirq = data->chip_data; in vmd_irq_disable()
Dpci-hyperv.c743 irq_data->chip_data = NULL; in hv_msi_free()
867 if (data->chip_data) { in hv_compose_msi_msg()
868 int_desc = data->chip_data; in hv_compose_msi_msg()
869 data->chip_data = NULL; in hv_compose_msi_msg()
925 data->chip_data = int_desc; in hv_compose_msi_msg()
/drivers/base/
Dplatform-msi.c71 info->chip, info->chip_data); in platform_msi_init()
/drivers/pwm/
Dcore.c212 pwm->chip_data = data; in pwm_set_chip_data()
226 return pwm ? pwm->chip_data : NULL; in pwm_get_chip_data()
/drivers/power/supply/
Dsbs-battery.c85 static const struct chip_data { struct