Home
last modified time | relevance | path

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

123

/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()
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 …]
Dirq-stm32-exti.c245 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 …]
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
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()
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()
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()
Dirq-sun6i-r.c94 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()
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()
/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.c153 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()
/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 …]
/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()
/drivers/iommu/
Dhyperv-iommu.c200 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()
/drivers/power/supply/
Dmax17040_battery.c54 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()
/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 …]
/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()
Dgpio-uniphier.c182 struct uniphier_gpio_priv *priv = data->chip_data; in uniphier_gpio_irq_mask()
192 struct uniphier_gpio_priv *priv = data->chip_data; in uniphier_gpio_irq_unmask()
202 struct uniphier_gpio_priv *priv = data->chip_data; in uniphier_gpio_irq_set_type()
/drivers/spi/
Dspi-pxa2xx.h60 struct chip_data { struct
133 extern int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip,
Dspi-pxa2xx.c430 struct chip_data *chip = spi_get_ctldata(spi); in cs_assert()
450 struct chip_data *chip = spi_get_ctldata(spi); in cs_deassert()
598 struct chip_data *chip; in reset_sccr1()
930 struct chip_data *chip = in pxa2xx_ssp_get_clk_div()
949 struct chip_data *chip = spi_get_ctldata(spi); in pxa2xx_spi_can_dma()
962 struct chip_data *chip = spi_get_ctldata(spi); in pxa2xx_spi_transfer_one()
1196 static int setup_cs(struct spi_device *spi, struct chip_data *chip, in setup_cs()
1247 struct chip_data *chip; in setup()
1296 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in setup()
1422 struct chip_data *chip = spi_get_ctldata(spi); in cleanup()
Dspi-pxa2xx-dma.c66 struct chip_data *chip = in pxa2xx_spi_dma_prepare_one()
224 int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip, in pxa2xx_spi_set_dma_burst_and_threshold()
Dspi-dw-core.c27 struct chip_data { struct
313 struct chip_data *chip = spi_get_ctldata(spi); in dw_spi_update_config()
774 struct chip_data *chip; in dw_spi_setup()
782 chip = kzalloc(sizeof(struct chip_data), GFP_KERNEL); in dw_spi_setup()
809 struct chip_data *chip = spi_get_ctldata(spi); in dw_spi_cleanup()
/drivers/iommu/intel/
Dirq_remapping.c1144 struct intel_ir_data *ir_data = irqd->chip_data; in intel_ir_reconfigure_irte()
1200 struct intel_ir_data *ir_data = irq_data->chip_data; in intel_ir_compose_msi_msg()
1207 struct intel_ir_data *ir_data = data->chip_data; in intel_ir_set_vcpu_affinity()
1310 if (irq_data && irq_data->chip_data) { in intel_free_irq_resources()
1311 data = irq_data->chip_data; in intel_free_irq_resources()
1386 irq_data->chip_data = ird; in intel_irq_remapping_alloc()
1417 struct intel_ir_data *data = irq_data->chip_data; in intel_irq_remapping_deactivate()
/drivers/input/touchscreen/
Dedt-ft5x06.c1078 const struct edt_i2c_chip_data *chip_data; in edt_ft5x06_ts_probe() local
1094 chip_data = device_get_match_data(&client->dev); in edt_ft5x06_ts_probe()
1095 if (!chip_data) in edt_ft5x06_ts_probe()
1096 chip_data = (const struct edt_i2c_chip_data *)id->driver_data; in edt_ft5x06_ts_probe()
1097 if (!chip_data || !chip_data->max_support_points) { in edt_ft5x06_ts_probe()
1102 tsdata->max_support_points = chip_data->max_support_points; in edt_ft5x06_ts_probe()

123