/kernel/linux/linux-5.10/drivers/cpufreq/ |
D | qcom-cpufreq-hw.c | 36 const struct qcom_cpufreq_soc_data *soc_data; member 87 const struct qcom_cpufreq_soc_data *soc_data = data->soc_data; in qcom_cpufreq_hw_target_index() local 90 writel_relaxed(index, data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_target_index() 101 const struct qcom_cpufreq_soc_data *soc_data; in qcom_cpufreq_hw_get() local 110 soc_data = data->soc_data; in qcom_cpufreq_hw_get() 112 index = readl_relaxed(data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_get() 122 const struct qcom_cpufreq_soc_data *soc_data = data->soc_data; in qcom_cpufreq_hw_fast_switch() local 126 writel_relaxed(index, data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_fast_switch() 141 const struct qcom_cpufreq_soc_data *soc_data = drv_data->soc_data; in qcom_cpufreq_hw_read_lut() local 169 data = readl_relaxed(drv_data->base + soc_data->reg_freq_lut + in qcom_cpufreq_hw_read_lut() [all …]
|
D | ti-cpufreq.c | 62 const struct ti_cpufreq_soc_data *soc_data; member 70 efuse = opp_data->soc_data->efuse_fallback; in amx3_efuse_xlate() 217 ret = regmap_read(opp_data->syscon, opp_data->soc_data->efuse_offset, in ti_cpufreq_get_efuse() 222 opp_data->soc_data->efuse_offset, 4); in ti_cpufreq_get_efuse() 236 efuse = (efuse & opp_data->soc_data->efuse_mask); in ti_cpufreq_get_efuse() 237 efuse >>= opp_data->soc_data->efuse_shift; in ti_cpufreq_get_efuse() 239 *efuse_value = opp_data->soc_data->efuse_xlate(opp_data, efuse); in ti_cpufreq_get_efuse() 258 ret = regmap_read(opp_data->syscon, opp_data->soc_data->rev_offset, in ti_cpufreq_get_rev() 263 opp_data->soc_data->rev_offset, 4); in ti_cpufreq_get_rev() 340 opp_data->soc_data = match->data; in ti_cpufreq_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/phy/ti/ |
D | phy-gmii-sel.c | 50 const struct phy_gmii_sel_soc_data *soc_data; member 61 const struct phy_gmii_sel_soc_data *soc_data = if_phy->priv->soc_data; in phy_gmii_sel_mode() local 110 if (soc_data->features & BIT(PHY_GMII_SEL_RGMII_ID_MODE) && in phy_gmii_sel_mode() 118 if (soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN) && in phy_gmii_sel_mode() 231 if (priv->soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN) && in phy_gmii_sel_of_xlate() 240 if (priv->soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN)) in phy_gmii_sel_of_xlate() 251 const struct phy_gmii_sel_soc_data *soc_data = priv->soc_data; in phy_gmii_init_phy() local 261 fields = soc_data->regfields[port - 1]; in phy_gmii_init_phy() 274 if (soc_data->features & BIT(PHY_GMII_SEL_RGMII_ID_MODE)) { in phy_gmii_init_phy() 287 if (soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN)) { in phy_gmii_init_phy() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 30 const struct emac_rockchip_soc_data *soc_data; member 39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed() 55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 137 priv->soc_data = match->data; in emac_rockchip_probe() 181 data = (1 << (priv->soc_data->grf_speed_offset + 16)) | in emac_rockchip_probe() 182 (1 << priv->soc_data->grf_speed_offset); in emac_rockchip_probe() 184 data |= (1 << (priv->soc_data->grf_mode_offset + 16)) | in emac_rockchip_probe() 185 (0 << priv->soc_data->grf_mode_offset); in emac_rockchip_probe() 187 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe() 202 if (priv->soc_data->need_div_macclk) { in emac_rockchip_probe() [all …]
|
/kernel/linux/linux-5.10/sound/soc/tegra/ |
D | tegra210_admaif.c | 23 #define CH_TX_REG(reg, id) CH_REG(admaif->soc_data->tx_base, reg, id) 25 #define CH_RX_REG(reg, id) CH_REG(admaif->soc_data->rx_base, reg, id) 84 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_wr_reg() 85 unsigned int rx_base = admaif->soc_data->rx_base; in tegra_admaif_wr_reg() 86 unsigned int tx_base = admaif->soc_data->tx_base; in tegra_admaif_wr_reg() 87 unsigned int global_base = admaif->soc_data->global_base; in tegra_admaif_wr_reg() 88 unsigned int reg_max = admaif->soc_data->regmap_conf->max_register; in tegra_admaif_wr_reg() 118 unsigned int num_ch = admaif->soc_data->num_ch; in tegra_admaif_rd_reg() 119 unsigned int rx_base = admaif->soc_data->rx_base; in tegra_admaif_rd_reg() 120 unsigned int tx_base = admaif->soc_data->tx_base; in tegra_admaif_rd_reg() [all …]
|
D | tegra210_ahub.c | 29 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_get_value_enum() 34 reg_val &= ahub->soc_data->mask[i]; in tegra_ahub_get_value_enum() 82 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_put_value_enum() 85 update[i].mask = ahub->soc_data->mask[i]; in tegra_ahub_put_value_enum() 609 ahub->soc_data = of_device_get_match_data(&pdev->dev); in tegra_ahub_probe() 624 ahub->soc_data->regmap_config); in tegra_ahub_probe() 633 ahub->soc_data->cmpnt_drv, in tegra_ahub_probe() 634 ahub->soc_data->dai_drv, in tegra_ahub_probe() 635 ahub->soc_data->num_dais); in tegra_ahub_probe()
|
D | tegra30_ahub.c | 133 ahub->soc_data->set_audio_cif(ahub->regmap_apbif, reg, &cif_conf); in tegra30_ahub_allocate_rx_fifo() 235 ahub->soc_data->set_audio_cif(ahub->regmap_apbif, reg, &cif_conf); in tegra30_ahub_allocate_tx_fifo() 511 const struct tegra30_ahub_soc_data *soc_data; in tegra30_ahub_probe() local 524 soc_data = match->data; in tegra30_ahub_probe() 533 soc_data->mod_list_mask)) in tegra30_ahub_probe() 557 ahub->soc_data = soc_data; in tegra30_ahub_probe()
|
D | tegra210_admaif.h | 156 const struct tegra_admaif_soc_data *soc_data; member
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | sdhci-tegra.c | 152 const struct sdhci_tegra_soc_data *soc_data; member 181 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_readw() local 183 if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) && in tegra_sdhci_readw() 217 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_writel() local 228 if (unlikely((soc_data->nvquirks & NVQUIRK_ENABLE_BLOCK_GAP_DET) && in tegra_sdhci_writel() 309 if (!(tegra_host->soc_data->nvquirks & NVQUIRK_NEEDS_PAD_CONTROL)) in tegra_sdhci_is_pad_and_regulator_valid() 332 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_set_tap() local 342 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP) in tegra_sdhci_set_tap() 350 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP && in tegra_sdhci_set_tap() 362 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_reset() local [all …]
|
D | sdhci-of-at91.c | 45 const struct sdhci_at91_soc_data *soc_data; member 182 if (priv->soc_data->baseclk_is_generated_internally) in sdhci_at91_set_clks_presets() 183 clk_base_rate = gck_rate / priv->soc_data->divider_for_baseclk; in sdhci_at91_set_clks_presets() 317 const struct sdhci_at91_soc_data *soc_data; in sdhci_at91_probe() local 326 soc_data = match->data; in sdhci_at91_probe() 328 host = sdhci_pltfm_init(pdev, soc_data->pdata, sizeof(*priv)); in sdhci_at91_probe() 334 priv->soc_data = soc_data; in sdhci_at91_probe() 338 if (soc_data->baseclk_is_generated_internally) { in sdhci_at91_probe()
|
/kernel/linux/linux-5.10/arch/arm/mach-imx/ |
D | pm-imx5.c | 323 static int __init imx5_suspend_init(const struct imx5_pm_data *soc_data) in imx5_suspend_init() argument 328 void (*suspend_asm)(void __iomem *) = soc_data->suspend_asm; in imx5_suspend_init() 333 if (!soc_data->suspend_asm_sz || !*soc_data->suspend_asm_sz) in imx5_suspend_init() 337 *soc_data->suspend_asm_sz + sizeof(*suspend_info), in imx5_suspend_init() 344 suspend_info->io_count = soc_data->suspend_io_count; in imx5_suspend_init() 345 memcpy(suspend_info->io_state, soc_data->suspend_io_config, in imx5_suspend_init() 346 sizeof(*suspend_info->io_state) * soc_data->suspend_io_count); in imx5_suspend_init() 348 suspend_info->m4if_base = ioremap(soc_data->m4if_addr, SZ_16K); in imx5_suspend_init() 354 suspend_info->iomuxc_base = ioremap(soc_data->iomuxc_addr, SZ_16K); in imx5_suspend_init() 363 *soc_data->suspend_asm_sz); in imx5_suspend_init()
|
/kernel/linux/linux-5.10/drivers/reset/ |
D | reset-intel-gw.c | 32 const struct intel_reset_soc *soc_data; member 57 if (data->soc_data->legacy) in id_to_reg_and_bit_offsets() 62 if (data->soc_data->legacy && *rst_req == RCU_RST_REQ) in id_to_reg_and_bit_offsets() 147 if (data->soc_data->legacy) { in intel_reset_xlate() 181 data->soc_data = of_device_get_match_data(dev); in intel_reset_probe() 182 if (!data->soc_data) in intel_reset_probe() 197 data->soc_data->reset_cell_count); in intel_reset_probe() 208 data->rcdev.of_reset_n_cells = data->soc_data->reset_cell_count; in intel_reset_probe() 216 if (data->soc_data->legacy) in intel_reset_probe()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ingenic-adc.c | 106 const struct ingenic_adc_soc_data *soc_data; member 247 if (!adc->soc_data->battery_vref_mode) in ingenic_adc_write_raw() 555 *length = adc->soc_data->battery_raw_avail_size; in ingenic_adc_read_avail() 556 *vals = adc->soc_data->battery_raw_avail; in ingenic_adc_read_avail() 560 *length = adc->soc_data->battery_scale_avail_size; in ingenic_adc_read_avail() 561 *vals = adc->soc_data->battery_scale_avail; in ingenic_adc_read_avail() 584 if (adc->soc_data->has_aux2 && engine == 0) { in ingenic_adc_read_chan_info_raw() 634 *val = adc->soc_data->battery_high_vref; in ingenic_adc_read_raw() 635 *val2 = adc->soc_data->battery_high_vref_bits; in ingenic_adc_read_raw() 754 const struct ingenic_adc_soc_data *soc_data; in ingenic_adc_probe() local [all …]
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | dma-jz4780.c | 153 const struct jz4780_dma_soc_data *soc_data; member 209 if (jzdma->soc_data->flags & JZ_SOC_DATA_PER_CHAN_PM) { in jz4780_dma_chan_enable() 212 if (jzdma->soc_data->flags & JZ_SOC_DATA_NO_DCKES_DCKEC) in jz4780_dma_chan_enable() 224 if ((jzdma->soc_data->flags & JZ_SOC_DATA_PER_CHAN_PM) && in jz4780_dma_chan_disable() 225 !(jzdma->soc_data->flags & JZ_SOC_DATA_NO_DCKES_DCKEC)) in jz4780_dma_chan_disable() 278 else if (ord > jzdma->soc_data->transfer_ord_max) in jz4780_dma_transfer_size() 279 ord = jzdma->soc_data->transfer_ord_max; in jz4780_dma_transfer_size() 381 !(jzdma->soc_data->flags & JZ_SOC_DATA_BREAK_LINKS)) { in jz4780_dma_prep_slave_sg() 671 const unsigned int soc_flags = jzdma->soc_data->flags; in jz4780_dma_chan_irq() 728 unsigned int nb_channels = jzdma->soc_data->nb_channels; in jz4780_dma_irq_handler() [all …]
|
D | s3c24xx-dma.c | 121 struct soc_data { struct 238 struct soc_data *sdata; 1145 static struct soc_data soc_s3c2410 = { 1152 static struct soc_data soc_s3c2412 = { 1159 static struct soc_data soc_s3c2443 = { 1179 static struct soc_data *s3c24xx_dma_get_soc_data(struct platform_device *pdev) in s3c24xx_dma_get_soc_data() 1181 return (struct soc_data *) in s3c24xx_dma_get_soc_data() 1189 struct soc_data *sdata; in s3c24xx_dma_probe() 1381 struct soc_data *sdata = s3c24xx_dma_get_soc_data(pdev); in s3c24xx_dma_remove()
|
/kernel/linux/linux-5.10/sound/soc/fsl/ |
D | fsl_sai.c | 61 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr() 172 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_sysclk_tr() 226 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_fmt_tr() 350 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_bclk() 438 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_hw_params() 533 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_hw_free() 549 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_config_disable() 584 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_trigger() 678 if (sai->soc_data->use_edma) in fsl_sai_startup() 704 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_dai_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/thermal/ |
D | imx_thermal.c | 219 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_panic_temp() local 225 regmap_write(map, soc_data->panic_alarm_ctrl + REG_CLR, in imx_set_panic_temp() 226 soc_data->panic_alarm_mask); in imx_set_panic_temp() 227 regmap_write(map, soc_data->panic_alarm_ctrl + REG_SET, in imx_set_panic_temp() 228 critical_value << soc_data->panic_alarm_shift); in imx_set_panic_temp() 235 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_alarm_temp() local 245 regmap_write(map, soc_data->high_alarm_ctrl + REG_CLR, in imx_set_alarm_temp() 246 soc_data->high_alarm_mask); in imx_set_alarm_temp() 247 regmap_write(map, soc_data->high_alarm_ctrl + REG_SET, in imx_set_alarm_temp() 248 alarm_value << soc_data->high_alarm_shift); in imx_set_alarm_temp() [all …]
|
/kernel/linux/linux-5.10/drivers/nvmem/ |
D | qfprom.c | 75 const struct qfprom_soc_data *soc_data; member 156 ret = clk_set_rate(priv->secclk, priv->soc_data->qfprom_blow_set_freq); in qfprom_enable_fuse_blowing() 181 writel(priv->soc_data->qfprom_blow_timer_value, in qfprom_enable_fuse_blowing() 183 writel(priv->soc_data->accel_value, in qfprom_enable_fuse_blowing() 352 priv->soc_data = &qfprom_7_8_data; in qfprom_probe() 367 if (priv->soc_data) in qfprom_probe()
|
/kernel/linux/linux-5.10/drivers/soc/rockchip/ |
D | io-domain.c | 75 const struct rockchip_iodomain_soc_data *soc_data; member 93 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 506 iod->soc_data = match->data; in rockchip_iodomain_probe() 522 const char *supply_name = iod->soc_data->supply_names[i]; in rockchip_iodomain_probe() 584 if (iod->soc_data->init) in rockchip_iodomain_probe() 585 iod->soc_data->init(iod); in rockchip_iodomain_probe()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-aspeed.c | 384 const struct aspeed_clk_soc_data *soc_data; in aspeed_clk_probe() local 415 soc_data = of_device_get_match_data(dev); in aspeed_clk_probe() 416 if (!soc_data) { in aspeed_clk_probe() 438 hw = soc_data->calc_pll("mpll", val); in aspeed_clk_probe() 451 soc_data->div_table, in aspeed_clk_probe() 460 soc_data->mac_div_table, in aspeed_clk_probe() 493 soc_data->div_table, in aspeed_clk_probe() 502 soc_data->div_table, in aspeed_clk_probe() 525 3, 0, soc_data->eclk_div_table, in aspeed_clk_probe()
|
/kernel/linux/linux-5.10/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 755 const struct tegra_pinctrl_soc_data *soc_data) in tegra_pinctrl_probe() argument 769 pmx->soc = soc_data; in tegra_pinctrl_probe() 776 soc_data->ngroups * 4, sizeof(*pmx->group_pins), in tegra_pinctrl_probe() 782 for (fn = 0; fn < soc_data->nfunctions; fn++) { in tegra_pinctrl_probe() 783 struct tegra_function *func = &soc_data->functions[fn]; in tegra_pinctrl_probe() 787 for (gn = 0; gn < soc_data->ngroups; gn++) { in tegra_pinctrl_probe() 788 const struct tegra_pingroup *g = &soc_data->groups[gn]; in tegra_pinctrl_probe() 800 soc_data->ngroups * 4); in tegra_pinctrl_probe()
|
D | pinctrl-tegra.h | 203 const struct tegra_pinctrl_soc_data *soc_data);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/ |
D | rockchip_lvds.c | 60 const struct rockchip_lvds_soc_data *soc_data; member 618 drm_encoder_helper_add(encoder, lvds->soc_data->helper_funcs); in rockchip_lvds_bind() 674 encoder_funcs = lvds->soc_data->helper_funcs; in rockchip_lvds_unbind() 704 lvds->soc_data = match->data; in rockchip_lvds_probe() 713 ret = lvds->soc_data->probe(pdev, lvds); in rockchip_lvds_probe()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-rk3x.c | 196 const struct rk3x_i2c_soc_data *soc_data; member 881 ret = i2c->soc_data->calc_timings(clk_rate, t, &calc); in rk3x_i2c_adapt_div() 938 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb() 1238 i2c->soc_data = match->data; in rk3x_i2c_probe() 1267 if (i2c->soc_data->grf_offset >= 0) { in rk3x_i2c_probe() 1285 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe() 1306 if (i2c->soc_data->calc_timings == rk3x_i2c_v0_calc_timings) { in rk3x_i2c_probe()
|
/kernel/linux/linux-5.10/drivers/pinctrl/qcom/ |
D | pinctrl-msm.h | 144 const struct msm_pinctrl_soc_data *soc_data);
|