/linux-6.1.9/drivers/irqchip/ |
D | irq-mtk-sysirq.c | 29 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 …]
|
D | irq-stm32-exti.c | 283 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_exti_pending() local 284 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_exti_pending() 345 struct stm32_exti_chip_data *chip_data = gc->private; in stm32_irq_set_type() local 346 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_irq_set_type() 347 struct hwspinlock *hwlock = chip_data->host_data->hwlock; in stm32_irq_set_type() 380 static void stm32_chip_suspend(struct stm32_exti_chip_data *chip_data, in stm32_chip_suspend() argument 383 const struct stm32_exti_bank *stm32_bank = chip_data->reg_bank; in stm32_chip_suspend() 384 void __iomem *base = chip_data->host_data->base; in stm32_chip_suspend() 387 chip_data->rtsr_cache = readl_relaxed(base + stm32_bank->rtsr_ofst); in stm32_chip_suspend() 388 chip_data->ftsr_cache = readl_relaxed(base + stm32_bank->ftsr_ofst); in stm32_chip_suspend() [all …]
|
D | irq-owl-sirq.c | 135 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 …]
|
D | irq-vf610-mscm-ir.c | 89 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()
|
D | exynos-combiner.c | 67 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()
|
D | irq-gic-pm.c | 20 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()
|
D | irq-sun6i-r.c | 94 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()
|
D | irq-mtk-cirq.c | 42 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()
|
D | irq-imx-gpcv2.c | 75 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()
|
/linux-6.1.9/arch/x86/platform/uv/ |
D | uv_irq.c | 60 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-6.1.9/drivers/mfd/ |
D | htc-i2cpld.c | 218 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_set() local 221 client = chip_data->client; in htcpld_chip_set() 225 spin_lock_irqsave(&chip_data->lock, flags); in htcpld_chip_set() 227 chip_data->cache_out |= (1 << offset); in htcpld_chip_set() 229 chip_data->cache_out &= ~(1 << offset); in htcpld_chip_set() 230 spin_unlock_irqrestore(&chip_data->lock, flags); in htcpld_chip_set() 232 schedule_work(&(chip_data->set_val_work)); in htcpld_chip_set() 237 struct htcpld_chip *chip_data; in htcpld_chip_set_ni() local 240 chip_data = container_of(work, struct htcpld_chip, set_val_work); in htcpld_chip_set_ni() 241 client = chip_data->client; in htcpld_chip_set_ni() [all …]
|
D | mt6397-core.c | 235 struct chip_data { struct 243 static const struct chip_data mt6323_core = { argument 251 static const struct chip_data mt6357_core = { 259 static const struct chip_data mt6331_mt6332_core = { 267 static const struct chip_data mt6358_core = { 275 static const struct chip_data mt6359_core = { 283 static const struct chip_data mt6397_core = { 296 const struct chip_data *pmic_core; in mt6397_probe()
|
/linux-6.1.9/drivers/iio/accel/ |
D | adxl313_i2c.c | 61 const struct adxl313_chip_info *chip_data; in adxl313_i2c_probe() local 68 chip_data = device_get_match_data(&client->dev); in adxl313_i2c_probe() 69 if (!chip_data) in adxl313_i2c_probe() 70 chip_data = (const struct adxl313_chip_info *)i2c_match_id(adxl313_i2c_id, client)->driver_data; in adxl313_i2c_probe() 73 &adxl31x_i2c_regmap_config[chip_data->type]); in adxl313_i2c_probe() 80 return adxl313_core_probe(&client->dev, regmap, chip_data, NULL); in adxl313_i2c_probe()
|
D | adxl313_spi.c | 66 const struct adxl313_chip_info *chip_data; in adxl313_spi_probe() local 79 chip_data = device_get_match_data(&spi->dev); in adxl313_spi_probe() 80 if (!chip_data) in adxl313_spi_probe() 81 chip_data = (const struct adxl313_chip_info *)spi_get_device_id(spi)->driver_data; in adxl313_spi_probe() 84 &adxl31x_spi_regmap_config[chip_data->type]); in adxl313_spi_probe() 93 chip_data, &adxl313_spi_setup); in adxl313_spi_probe()
|
/linux-6.1.9/drivers/hid/i2c-hid/ |
D | i2c-hid-of-elan.c | 32 const struct elan_i2c_hid_chip_data *chip_data; member 51 if (ihid_elan->chip_data->post_power_delay_ms) in elan_i2c_hid_power_up() 52 msleep(ihid_elan->chip_data->post_power_delay_ms); in elan_i2c_hid_power_up() 55 if (ihid_elan->chip_data->post_gpio_reset_delay_ms) in elan_i2c_hid_power_up() 56 msleep(ihid_elan->chip_data->post_gpio_reset_delay_ms); in elan_i2c_hid_power_up() 97 ihid_elan->chip_data = device_get_match_data(&client->dev); in i2c_hid_of_elan_probe() 100 ihid_elan->chip_data->hid_descriptor_address, 0); in i2c_hid_of_elan_probe()
|
/linux-6.1.9/arch/x86/hyperv/ |
D | irqdomain.c | 210 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-6.1.9/drivers/gpu/drm/arm/display/komeda/d71/ |
D | d71_dev.c | 181 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 …]
|
/linux-6.1.9/drivers/net/dsa/realtek/ |
D | rtl8365mb.c | 840 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_get_port_extint() 865 mb = priv->chip_data; in rtl8365mb_get_tag_protocol() 1093 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_down() 1121 mb = priv->chip_data; in rtl8365mb_phylink_mac_link_up() 1248 mb = priv->chip_data; in rtl8365mb_get_ethtool_stats() 1295 mb = priv->chip_data; in rtl8365mb_get_phy_stats() 1332 mb = priv->chip_data; in rtl8365mb_get_mac_stats() 1396 mb = priv->chip_data; in rtl8365mb_get_ctrl_stats() 1424 struct rtl8365mb *mb = priv->chip_data; in rtl8365mb_stats_update() 1503 mb = priv->chip_data; in rtl8365mb_get_stats64() [all …]
|
/linux-6.1.9/drivers/gpu/drm/rockchip/ |
D | dw_hdmi-rockchip.c | 76 const struct rockchip_hdmi_chip_data *chip_data; member 290 if (hdmi->chip_data->lcdsel_grf_reg < 0) in dw_hdmi_rockchip_encoder_enable() 295 val = hdmi->chip_data->lcdsel_lit; in dw_hdmi_rockchip_encoder_enable() 297 val = hdmi->chip_data->lcdsel_big; in dw_hdmi_rockchip_encoder_enable() 305 ret = regmap_write(hdmi->regmap, hdmi->chip_data->lcdsel_grf_reg, val); in dw_hdmi_rockchip_encoder_enable() 549 hdmi->chip_data = plat_data->phy_data; in dw_hdmi_rockchip_bind() 600 if (hdmi->chip_data == &rk3568_chip_data) { in dw_hdmi_rockchip_bind()
|
/linux-6.1.9/drivers/iommu/ |
D | hyperv-iommu.c | 198 struct hyperv_root_ir_data *data = irq_data->chip_data; in hyperv_root_ir_compose_msi_msg() 300 irq_data->chip_data = data; in hyperv_root_irq_remapping_alloc() 316 if (irq_data && irq_data->chip_data) { in hyperv_root_irq_remapping_free() 317 data = irq_data->chip_data; in hyperv_root_irq_remapping_free()
|
/linux-6.1.9/drivers/spi/ |
D | spi-pxa2xx.h | 59 struct chip_data { struct 126 extern int pxa2xx_spi_set_dma_burst_and_threshold(struct chip_data *chip,
|
/linux-6.1.9/drivers/pci/controller/ |
D | pci-hyperv.c | 658 int_desc = data->chip_data; in hv_arch_irq_unmask() 792 struct hv_pci_chip_data *chip_data = domain->host_data; in hv_pci_vec_irq_free() local 797 mutex_lock(&chip_data->map_lock); in hv_pci_vec_irq_free() 798 bitmap_release_region(chip_data->spi_map, in hv_pci_vec_irq_free() 801 mutex_unlock(&chip_data->map_lock); in hv_pci_vec_irq_free() 822 struct hv_pci_chip_data *chip_data = domain->host_data; in hv_pci_vec_alloc_device_irq() local 826 mutex_lock(&chip_data->map_lock); in hv_pci_vec_alloc_device_irq() 827 index = bitmap_find_free_region(chip_data->spi_map, in hv_pci_vec_alloc_device_irq() 830 mutex_unlock(&chip_data->map_lock); in hv_pci_vec_alloc_device_irq() 920 static struct hv_pci_chip_data *chip_data; in hv_pci_irqchip_init() local [all …]
|
/linux-6.1.9/drivers/power/supply/ |
D | max17040_battery.c | 54 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()
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-lpc18xx.c | 77 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-6.1.9/drivers/dma/ |
D | tegra20-apb-dma.c | 218 const struct tegra_dma_chip_data *chip_data; member 391 if (tdma->chip_data->support_channel_pause) { in tegra_dma_pause() 405 if (tdma->chip_data->support_channel_pause) in tegra_dma_resume() 443 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_start() 484 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_configure_for_next() 765 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_terminate_all() 841 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred() 846 if (!tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_sg_bytes_xferred() 1034 if (tdc->tdma->chip_data->support_separate_wcount_reg) in tegra_dma_prep_wcount() 1114 len > tdc->tdma->chip_data->max_dma_count) { in tegra_dma_prep_slave_sg() [all …]
|