Home
last modified time | relevance | path

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

123

/linux/drivers/irqchip/
H A 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_obj(*chip_data); 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 …]
H A Dirq-stm32mp-exti.c265 static void stm32mp_chip_suspend(struct stm32mp_exti_chip_data *chip_data, u32 wake_active) in stm32mp_chip_suspend() argument
267 const struct stm32mp_exti_bank *bank = chip_data->reg_bank; in stm32mp_chip_suspend()
268 void __iomem *base = chip_data->host_data->base; in stm32mp_chip_suspend()
271 chip_data->rtsr_cache = readl_relaxed(base + bank->rtsr_ofst); in stm32mp_chip_suspend()
272 chip_data->ftsr_cache = readl_relaxed(base + bank->ftsr_ofst); in stm32mp_chip_suspend()
277 static void stm32mp_chip_resume(struct stm32mp_exti_chip_data *chip_data, u32 mask_cache) in stm32mp_chip_resume() argument
279 const struct stm32mp_exti_bank *bank = chip_data->reg_bank; in stm32mp_chip_resume()
280 void __iomem *base = chip_data->host_data->base; in stm32mp_chip_resume()
283 writel_relaxed(chip_data->rtsr_cache, base + bank->rtsr_ofst); in stm32mp_chip_resume()
284 writel_relaxed(chip_data->ftsr_cache, base + bank->ftsr_ofst); in stm32mp_chip_resume()
[all …]
H A 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 …]
H A Dirq-stm32-exti.c110 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_exti_pending() local
111 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_exti_pending()
167 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_irq_set_type() local
168 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_irq_set_type()
186 static void stm32_chip_suspend(struct stm32_exti_chip_data *chip_data, in stm32_chip_suspend() argument
189 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_chip_suspend()
190 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend()
193 chip_data->rtsr_cache = readl_relaxed(base + stm32_bank->rtsr_ofst); in stm32_chip_suspend()
194 chip_data->ftsr_cache = readl_relaxed(base + stm32_bank->ftsr_ofst); in stm32_chip_suspend()
199 static void stm32_chip_resume(struct stm32_exti_chip_data *chip_data, in stm32_chip_resume() argument
[all …]
H A 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()
H A Dirq-mtk-cirq.c68 static void __iomem *mtk_cirq_reg(struct mtk_cirq_chip_data *chip_data, in mtk_cirq_reg() argument
71 return chip_data->base + chip_data->offsets[idx]; in mtk_cirq_reg()
74 static void __iomem *mtk_cirq_irq_reg(struct mtk_cirq_chip_data *chip_data, in mtk_cirq_irq_reg() argument
78 return mtk_cirq_reg(chip_data, idx) + (cirq_num / 32) * 4; in mtk_cirq_irq_reg()
83 struct mtk_cirq_chip_data *chip_data = data->chip_data; in mtk_cirq_write_mask() local
87 writel_relaxed(mask, mtk_cirq_irq_reg(chip_data, idx, cirq_num)); in mtk_cirq_write_mask()
H A 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()
H A 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()
H A Dirq-loongarch-ir.c198 return data->parent_data->chip_data; in irq_data_get_avec_data()
257 if (irq_data && irq_data->chip_data) { in redirect_free_resources()
258 struct redirect_item *item = irq_data->chip_data; in redirect_free_resources()
270 struct redirect_item *item = data->chip_data; in redirect_set_affinity()
354 irq_data->chip_data = item; in redirect_domain_alloc()
H A Dirq-imx-gpcv2.c79 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_set_wake()
101 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_unmask()
117 struct gpcv2_irqchip_data *cd = d->chip_data; in imx_gpcv2_irq_mask()
H A Dirq-mbigen.c106 void __iomem *base = data->chip_data; in mbigen_eoi_irq()
118 void __iomem *base = data->chip_data; in mbigen_set_type()
140 void __iomem *base = d->chip_data; in mbigen_write_msi_msg()
/linux/drivers/gpio/
H A Dgpio-loongson-64bit.c48 const struct loongson_gpio_chip_data *chip_data; member
62 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
69 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
103 bval = readb(lgpio->reg_base + lgpio->chip_data->in_offset + pin); in loongson_gpio_get()
114 bval = readb(lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_gpio_get_direction()
139 if (lgpio->chip_data->mode == BIT_CTRL_MODE) { in loongson_gpio_to_irq()
141 u = readl(lgpio->reg_base + lgpio->chip_data->inten_offset + (offset / 32) * 4); in loongson_gpio_to_irq()
143 writel(u, lgpio->reg_base + lgpio->chip_data->inten_offset + (offset / 32) * 4); in loongson_gpio_to_irq()
145 writeb(1, lgpio->reg_base + lgpio->chip_data->inten_offset + offset); in loongson_gpio_to_irq()
157 writeb(0x1, lgpio->reg_base + lgpio->chip_data->intclr_offset + hwirq); in loongson_gpio_irq_ack()
[all …]
H A Dgpio-lpc18xx.c76 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_mask()
99 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_unmask()
122 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_eoi()
138 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_set_type()
/linux/arch/x86/platform/uv/
H A 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()
96 chip_data->pnode = uv_blade_to_pnode(info->uv.blade); in uv_domain_alloc()
97 chip_data->offset = info->uv.offset; in uv_domain_alloc()
98 irq_domain_set_info(domain, virq, virq, &uv_irq_chip, chip_data, in uv_domain_alloc()
101 kfree(chip_data); in uv_domain_alloc()
113 kfree(irq_data->chip_data); in uv_domain_free()
125 uv_program_mmr(irqd_cfg(irq_data), irq_data->chip_data); in uv_domain_activate()
[all …]
/linux/drivers/iio/accel/
H A Dadxl355_i2c.c26 const struct adxl355_chip_info *chip_data; in adxl355_i2c_probe() local
28 chip_data = i2c_get_match_data(client); in adxl355_i2c_probe()
29 if (!chip_data) in adxl355_i2c_probe()
36 return adxl355_core_probe(dev, regmap, chip_data); in adxl355_i2c_probe()
H A Dadxl355_spi.c27 const struct adxl355_chip_info *chip_data; in adxl355_spi_probe() local
31 chip_data = spi_get_device_match_data(spi); in adxl355_spi_probe()
32 if (!chip_data) in adxl355_spi_probe()
39 return adxl355_core_probe(dev, regmap, chip_data); in adxl355_spi_probe()
H A Dadxl313_i2c.c66 const struct adxl313_chip_info *chip_data; in adxl313_i2c_probe() local
74 chip_data = i2c_get_match_data(client); in adxl313_i2c_probe()
77 &adxl31x_i2c_regmap_config[chip_data->type]); in adxl313_i2c_probe()
81 return adxl313_core_probe(dev, regmap, chip_data, NULL); in adxl313_i2c_probe()
H A Dadxl313_spi.c71 const struct adxl313_chip_info *chip_data; in adxl313_spi_probe() local
81 chip_data = spi_get_device_match_data(spi); in adxl313_spi_probe()
84 &adxl31x_spi_regmap_config[chip_data->type]); in adxl313_spi_probe()
89 return adxl313_core_probe(dev, regmap, chip_data, &adxl313_spi_setup); in adxl313_spi_probe()
H A Dadxl380_i2c.c23 const struct adxl380_chip_info *chip_data; in adxl380_i2c_probe() local
25 chip_data = i2c_get_match_data(client); in adxl380_i2c_probe()
31 return adxl380_probe(&client->dev, regmap, chip_data); in adxl380_i2c_probe()
H A Dadxl380_spi.c24 const struct adxl380_chip_info *chip_data; in adxl380_spi_probe() local
27 chip_data = spi_get_device_match_data(spi); in adxl380_spi_probe()
33 return adxl380_probe(&spi->dev, regmap, chip_data); in adxl380_spi_probe()
/linux/drivers/mfd/
H A Dmt6397-core.c288 struct chip_data { struct
296 static const struct chip_data mt6323_core = { argument
304 static const struct chip_data mt6328_core = {
312 static const struct chip_data mt6357_core = {
320 static const struct chip_data mt6331_mt6332_core = {
328 static const struct chip_data mt6358_core = {
336 static const struct chip_data mt6359_core = {
344 static const struct chip_data mt6397_core = {
357 const struct chip_data *pmic_core; in mt6397_probe()
/linux/drivers/thermal/
H A Dloongson2_thermal.c46 const struct loongson2_thermal_chip_data *chip_data; member
53 int reg_off = data->chip_data->thermal_sensor_sel * 2; in loongson2_set_ctrl_regs()
136 data->chip_data = device_get_match_data(dev); in loongson2_thermal_probe()
143 if (data->chip_data->flags & LS2K2000_THSENS_OUT_FLAG) { in loongson2_thermal_probe()
/linux/drivers/input/touchscreen/
H A Dmsg2638.c359 const struct msg_chip_data *chip_data; in msg2638_ts_probe() local
376 chip_data = device_get_match_data(&client->dev); in msg2638_ts_probe()
377 if (!chip_data || !chip_data->max_fingers) { in msg2638_ts_probe()
382 msg2638->max_fingers = chip_data->max_fingers; in msg2638_ts_probe()
426 NULL, chip_data->irq_handler, in msg2638_ts_probe()
/linux/drivers/net/dsa/realtek/
H A Drtl8365mb_main.c1046 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_get_port_extint()
1071 mb = priv->chip_data; in rtl8365mb_get_tag_protocol()
1227 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_sds_probe_option()
1628 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_phylink_get_caps()
1672 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_phylink_mac_select_pcs()
1727 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_down()
1763 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_up()
2313 mb = priv->chip_data; in rtl8365mb_get_ethtool_stats()
2359 mb = priv->chip_data; in rtl8365mb_get_phy_stats()
2396 mb = priv->chip_data; in rtl8365mb_get_mac_stats()
[all …]
/linux/drivers/dma/
H A Dtegra20-apb-dma.c217 const struct tegra_dma_chip_data *chip_data; member
385 if (tdma->chip_data->support_channel_pause) { in tegra_dma_pause()
399 if (tdma->chip_data->support_channel_pause) in tegra_dma_resume()
437 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_start()
478 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_configure_for_next()
759 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_terminate_all()
835 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred()
840 if (!tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred()
1028 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_prep_wcount()
1108 len > tdc->tdma->chip_data->max_dma_count) { in tegra_dma_prep_slave_sg()
[all …]

123