Home
last modified time | relevance | path

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

1234

/linux/drivers/irqchip/
A Dirq-mtk-sysirq.c29 struct mtk_sysirq_chip_data *chip_data = data->chip_data; in mtk_sysirq_set_type() local
136 chip_data = kzalloc(sizeof(*chip_data), GFP_KERNEL); in mtk_sysirq_of_init()
137 if (!chip_data) in mtk_sysirq_of_init()
152 if (!chip_data->intpol_words) { in mtk_sysirq_of_init()
160 if (!chip_data->intpol_bases) { in mtk_sysirq_of_init()
183 if (!chip_data->intpol_idx) { in mtk_sysirq_of_init()
191 if (!chip_data->which_word) { in mtk_sysirq_of_init()
206 chip_data->intpol_idx[i] = j; in mtk_sysirq_of_init()
221 kfree(chip_data->which_word); in mtk_sysirq_of_init()
223 kfree(chip_data->intpol_idx); in mtk_sysirq_of_init()
[all …]
A Dirq-stm32mp-exti.c331 raw_spin_lock(&chip_data->rlock); in stm32mp_exti_eoi()
347 raw_spin_lock(&chip_data->rlock); in stm32mp_exti_mask()
360 raw_spin_lock(&chip_data->rlock); in stm32mp_exti_unmask()
377 raw_spin_lock(&chip_data->rlock); in stm32mp_exti_set_type()
408 raw_spin_lock(&chip_data->rlock); in stm32mp_exti_set_wake()
411 chip_data->wake_active |= mask; in stm32mp_exti_set_wake()
436 stm32mp_chip_suspend(chip_data, chip_data->wake_active); in stm32mp_exti_suspend()
450 stm32mp_chip_resume(chip_data, chip_data->mask_cache); in stm32mp_exti_resume()
569 chip_data->host_data = h_data; in stm32mp_exti_chip_init()
570 chip_data->reg_bank = bank; in stm32mp_exti_chip_init()
[all …]
A Dirq-owl-sirq.c260 chip_data); in owl_sirq_domain_alloc()
282 struct owl_sirq_chip_data *chip_data; in owl_sirq_init() local
291 chip_data = kzalloc(sizeof(*chip_data), GFP_KERNEL); in owl_sirq_init()
292 if (!chip_data) in owl_sirq_init()
295 raw_spin_lock_init(&chip_data->lock); in owl_sirq_init()
297 chip_data->params = params; in owl_sirq_init()
299 chip_data->base = of_iomap(node, 0); in owl_sirq_init()
300 if (!chip_data->base) { in owl_sirq_init()
320 chip_data->ext_irqs[i] = irq.args[1]; in owl_sirq_init()
337 iounmap(chip_data->base); in owl_sirq_init()
[all …]
A Dirq-stm32-exti.c194 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend()
207 void __iomem *base = chip_data->host_data->base; in stm32_chip_resume()
221 stm32_chip_suspend(chip_data, gc->wake_active); in stm32_irq_suspend()
230 stm32_chip_resume(chip_data, gc->mask_cache); in stm32_irq_resume()
314 struct stm32_exti_chip_data *chip_data; in stm32_exti_chip_init() local
318 chip_data = &h_data->chips_data[bank_idx]; in stm32_exti_chip_init()
319 chip_data->host_data = h_data; in stm32_exti_chip_init()
320 chip_data->reg_bank = stm32_bank; in stm32_exti_chip_init()
331 return chip_data; in stm32_exti_chip_init()
366 struct stm32_exti_chip_data *chip_data; in stm32_exti_init() local
[all …]
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()
A 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()
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()
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()
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()
/linux/arch/x86/platform/uv/
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()
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/drivers/gpio/
A Dgpio-loongson-64bit.c37 const struct loongson_gpio_chip_data *chip_data; member
50 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
57 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
125 if (lgpio->chip_data->mode == BIT_CTRL_MODE) { in loongson_gpio_to_irq()
144 if (lgpio->chip_data->mode == BIT_CTRL_MODE) { in loongson_gpio_init()
146 lgpio->reg_base + lgpio->chip_data->in_offset, in loongson_gpio_init()
147 lgpio->reg_base + lgpio->chip_data->out_offset, in loongson_gpio_init()
149 lgpio->reg_base + lgpio->chip_data->conf_offset, in loongson_gpio_init()
167 lgpio->chip.label = lgpio->chip_data->label; in loongson_gpio_init()
169 if (lgpio->chip_data->inten_offset) in loongson_gpio_init()
[all …]
A Dgpio-pca9570.c39 const struct pca9570_chip_data *chip_data; member
49 if (gpio->chip_data->command != 0) in pca9570_read()
50 ret = i2c_smbus_read_byte_data(client, gpio->chip_data->command); in pca9570_read()
65 if (gpio->chip_data->command != 0) in pca9570_write()
66 return i2c_smbus_write_byte_data(client, gpio->chip_data->command, value); in pca9570_write()
130 gpio->chip_data = device_get_match_data(&client->dev); in pca9570_probe()
131 gpio->chip.ngpio = gpio->chip_data->ngpio; in pca9570_probe()
A Dgpio-idio-16.c108 struct regmap_irq_chip_data *chip_data; in devm_idio_16_regmap_register() local
144 err = devm_regmap_add_irq_chip(dev, data->map, config->irq, 0, 0, chip, &chip_data); in devm_idio_16_regmap_register()
163 gpio_config.irq_domain = regmap_irq_get_domain(chip_data); in devm_idio_16_regmap_register()
/linux/drivers/hid/i2c-hid/
A Di2c-hid-of-elan.c35 const struct elan_i2c_hid_chip_data *chip_data; member
56 if (ihid_elan->chip_data->post_power_delay_ms) in elan_i2c_hid_power_up()
57 msleep(ihid_elan->chip_data->post_power_delay_ms); in elan_i2c_hid_power_up()
60 if (ihid_elan->chip_data->post_gpio_reset_on_delay_ms) in elan_i2c_hid_power_up()
61 msleep(ihid_elan->chip_data->post_gpio_reset_on_delay_ms); in elan_i2c_hid_power_up()
88 if (ihid_elan->chip_data->post_gpio_reset_off_delay_ms) in elan_i2c_hid_power_down()
89 msleep(ihid_elan->chip_data->post_gpio_reset_off_delay_ms); in elan_i2c_hid_power_down()
123 ihid_elan->chip_data = device_get_match_data(&client->dev); in i2c_hid_of_elan_probe()
125 if (ihid_elan->chip_data->main_supply_name) { in i2c_hid_of_elan_probe()
127 ihid_elan->chip_data->main_supply_name); in i2c_hid_of_elan_probe()
[all …]
/linux/drivers/iio/accel/
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()
40 return adxl355_core_probe(&client->dev, regmap, chip_data); in adxl355_i2c_probe()
A Dadxl355_spi.c28 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()
43 return adxl355_core_probe(&spi->dev, regmap, chip_data); in adxl355_spi_probe()
A Dadxl313_i2c.c61 const struct adxl313_chip_info *chip_data; in adxl313_i2c_probe() local
68 chip_data = i2c_get_match_data(client); in adxl313_i2c_probe()
71 &adxl31x_i2c_regmap_config[chip_data->type]); in adxl313_i2c_probe()
78 return adxl313_core_probe(&client->dev, regmap, chip_data, NULL); in adxl313_i2c_probe()
A Dadxl313_spi.c66 const struct adxl313_chip_info *chip_data; in adxl313_spi_probe() local
75 chip_data = spi_get_device_match_data(spi); in adxl313_spi_probe()
78 &adxl31x_spi_regmap_config[chip_data->type]); in adxl313_spi_probe()
87 chip_data, &adxl313_spi_setup); in adxl313_spi_probe()
A Dadxl380_i2c.c24 const struct adxl380_chip_info *chip_data; in adxl380_i2c_probe() local
26 chip_data = i2c_get_match_data(client); in adxl380_i2c_probe()
32 return adxl380_probe(&client->dev, regmap, chip_data); in adxl380_i2c_probe()
A Dadxl380_spi.c25 const struct adxl380_chip_info *chip_data; in adxl380_spi_probe() local
28 chip_data = spi_get_device_match_data(spi); in adxl380_spi_probe()
34 return adxl380_probe(&spi->dev, regmap, chip_data); in adxl380_spi_probe()
/linux/drivers/mfd/
A Dmt6397-core.c249 struct chip_data { struct
257 static const struct chip_data mt6323_core = { argument
265 static const struct chip_data mt6357_core = {
273 static const struct chip_data mt6331_mt6332_core = {
281 static const struct chip_data mt6358_core = {
289 static const struct chip_data mt6359_core = {
297 static const struct chip_data mt6397_core = {
310 const struct chip_data *pmic_core; in mt6397_probe()
/linux/arch/x86/hyperv/
A Dirqdomain.c210 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()
262 if (!irqd->chip_data) { in hv_teardown_msi_irq()
267 old_entry = *(struct hv_interrupt_entry *)irqd->chip_data; in hv_teardown_msi_irq()
270 kfree(irqd->chip_data); in hv_teardown_msi_irq()
271 irqd->chip_data = NULL; in hv_teardown_msi_irq()
/linux/drivers/gpu/drm/rockchip/
A Ddw_hdmi-rockchip.c77 const struct rockchip_hdmi_chip_data *chip_data; member
259 if (hdmi->chip_data->max_tmds_clock && in dw_hdmi_rockchip_mode_valid()
260 mode->clock > hdmi->chip_data->max_tmds_clock) in dw_hdmi_rockchip_mode_valid()
315 if (hdmi->chip_data->lcdsel_grf_reg < 0) in dw_hdmi_rockchip_encoder_enable()
320 val = hdmi->chip_data->lcdsel_lit; in dw_hdmi_rockchip_encoder_enable()
322 val = hdmi->chip_data->lcdsel_big; in dw_hdmi_rockchip_encoder_enable()
330 ret = regmap_write(hdmi->regmap, hdmi->chip_data->lcdsel_grf_reg, val); in dw_hdmi_rockchip_encoder_enable()
577 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind()
610 if (hdmi->chip_data == &rk3568_chip_data) { in dw_hdmi_rockchip_bind()
/linux/drivers/thermal/
A Dloongson2_thermal.c47 const struct loongson2_thermal_chip_data *chip_data; member
54 int reg_off = data->chip_data->thermal_sensor_sel * 2; in loongson2_set_ctrl_regs()
131 data->chip_data = device_get_match_data(dev); in loongson2_thermal_probe()
138 if (data->chip_data->flags & LS2K2000_THSENS_OUT_FLAG) { in loongson2_thermal_probe()
/linux/drivers/gpu/drm/arm/display/komeda/d71/
A Dd71_dev.c181 struct d71_dev *d71 = mdev->chip_data; in d71_irq_handler()
221 struct d71_dev *d71 = mdev->chip_data; in d71_enable_irq()
241 struct d71_dev *d71 = mdev->chip_data; in d71_disable_irq()
260 struct d71_dev *d71 = mdev->chip_data; in d71_on_off_vblank()
286 struct d71_dev *d71 = mdev->chip_data; in d71_change_opmode()
301 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 …]

Completed in 48 milliseconds

1234