/linux-5.19.10/drivers/cpufreq/ |
D | mediatek-cpufreq.c | 57 const struct mtk_cpufreq_platform_data *soc_data; member 81 const struct mtk_cpufreq_platform_data *soc_data = info->soc_data; in mtk_cpufreq_voltage_tracking() local 100 new_vsram = clamp(new_vproc + soc_data->min_volt_shift, in mtk_cpufreq_voltage_tracking() 101 soc_data->sram_min_volt, soc_data->sram_max_volt); in mtk_cpufreq_voltage_tracking() 105 vsram = clamp(pre_vproc + soc_data->max_volt_shift, in mtk_cpufreq_voltage_tracking() 106 soc_data->sram_min_volt, new_vsram); in mtk_cpufreq_voltage_tracking() 108 soc_data->sram_max_volt); in mtk_cpufreq_voltage_tracking() 113 if (vsram == soc_data->sram_max_volt || in mtk_cpufreq_voltage_tracking() 114 new_vsram == soc_data->sram_min_volt) in mtk_cpufreq_voltage_tracking() 117 vproc = vsram - soc_data->min_volt_shift; in mtk_cpufreq_voltage_tracking() [all …]
|
D | qcom-cpufreq-hw.c | 46 const struct qcom_cpufreq_soc_data *soc_data; member 110 const struct qcom_cpufreq_soc_data *soc_data = data->soc_data; in qcom_cpufreq_hw_target_index() local 114 writel_relaxed(index, data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_target_index() 118 writel_relaxed(index, data->base + soc_data->reg_perf_state + i * 4); in qcom_cpufreq_hw_target_index() 129 const struct qcom_cpufreq_soc_data *soc_data; in qcom_cpufreq_hw_get() local 138 soc_data = data->soc_data; in qcom_cpufreq_hw_get() 140 index = readl_relaxed(data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_get() 150 const struct qcom_cpufreq_soc_data *soc_data = data->soc_data; in qcom_cpufreq_hw_fast_switch() local 155 writel_relaxed(index, data->base + soc_data->reg_perf_state); in qcom_cpufreq_hw_fast_switch() 159 writel_relaxed(index, data->base + soc_data->reg_perf_state + i * 4); in qcom_cpufreq_hw_fast_switch() [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 …]
|
/linux-5.19.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 …]
|
/linux-5.19.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 …]
|
/linux-5.19.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 | tegra30_ahub.c | 149 ahub->soc_data->set_audio_cif(ahub->regmap_apbif, reg, &cif_conf); in tegra30_ahub_allocate_rx_fifo() 251 ahub->soc_data->set_audio_cif(ahub->regmap_apbif, reg, &cif_conf); in tegra30_ahub_allocate_tx_fifo() 515 const struct tegra30_ahub_soc_data *soc_data; in tegra30_ahub_probe() local 520 soc_data = of_device_get_match_data(&pdev->dev); in tegra30_ahub_probe() 521 if (!soc_data) in tegra30_ahub_probe() 533 ahub->nresets = soc_data->num_resets; in tegra30_ahub_probe() 534 ahub->soc_data = soc_data; in tegra30_ahub_probe()
|
D | tegra210_amx.c | 171 if (amx->soc_data->auto_disable) { in tegra210_amx_in_hw_params() 536 struct tegra210_amx_soc_data *soc_data; in tegra210_amx_platform_probe() local 540 soc_data = (struct tegra210_amx_soc_data *)match->data; in tegra210_amx_platform_probe() 546 amx->soc_data = soc_data; in tegra210_amx_platform_probe() 555 soc_data->regmap_conf); in tegra210_amx_platform_probe()
|
D | tegra30_i2s.c | 200 i2s->soc_data->set_audio_cif(i2s->regmap, reg, &cif_conf); in tegra30_i2s_hw_params() 409 const struct tegra30_i2s_soc_data *soc_data; in tegra30_i2s_platform_probe() local 421 soc_data = of_device_get_match_data(&pdev->dev); in tegra30_i2s_platform_probe() 422 if (!soc_data) { in tegra30_i2s_platform_probe() 427 i2s->soc_data = soc_data; in tegra30_i2s_platform_probe()
|
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() 1340 ahub->soc_data = of_device_get_match_data(&pdev->dev); in tegra_ahub_probe() 1355 ahub->soc_data->regmap_config); in tegra_ahub_probe() 1364 ahub->soc_data->cmpnt_drv, in tegra_ahub_probe() 1365 ahub->soc_data->dai_drv, in tegra_ahub_probe() 1366 ahub->soc_data->num_dais); in tegra_ahub_probe()
|
/linux-5.19.10/drivers/mmc/host/ |
D | sdhci-tegra.c | 157 const struct sdhci_tegra_soc_data *soc_data; member 186 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_readw() local 188 if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) && in tegra_sdhci_readw() 222 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_writel() local 233 if (unlikely((soc_data->nvquirks & NVQUIRK_ENABLE_BLOCK_GAP_DET) && in tegra_sdhci_writel() 314 if (!(tegra_host->soc_data->nvquirks & NVQUIRK_NEEDS_PAD_CONTROL)) in tegra_sdhci_is_pad_and_regulator_valid() 337 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_set_tap() local 347 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP) in tegra_sdhci_set_tap() 355 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP && in tegra_sdhci_set_tap() 367 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() 316 const struct sdhci_at91_soc_data *soc_data; in sdhci_at91_probe() local 322 soc_data = of_device_get_match_data(&pdev->dev); in sdhci_at91_probe() 323 if (!soc_data) in sdhci_at91_probe() 326 host = sdhci_pltfm_init(pdev, soc_data->pdata, sizeof(*priv)); in sdhci_at91_probe() 332 priv->soc_data = soc_data; in sdhci_at91_probe() 336 if (soc_data->baseclk_is_generated_internally) { in sdhci_at91_probe()
|
/linux-5.19.10/drivers/nvmem/ |
D | qfprom.c | 80 const struct qfprom_soc_data *soc_data; member 188 int qfprom_blow_uV = priv->soc_data->qfprom_blow_uV; in qfprom_enable_fuse_blowing() 197 ret = clk_set_rate(priv->secclk, priv->soc_data->qfprom_blow_set_freq); in qfprom_enable_fuse_blowing() 229 writel(priv->soc_data->qfprom_blow_timer_value, in qfprom_enable_fuse_blowing() 231 writel(priv->soc_data->accel_value, in qfprom_enable_fuse_blowing() 368 const struct qfprom_soc_compatible_data *soc_data; in qfprom_probe() local 387 soc_data = device_get_match_data(dev); in qfprom_probe() 388 if (soc_data) { in qfprom_probe() 389 econfig.keepout = soc_data->keepout; in qfprom_probe() 390 econfig.nkeepout = soc_data->nkeepout; in qfprom_probe() [all …]
|
/linux-5.19.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()
|
/linux-5.19.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()
|
/linux-5.19.10/drivers/iio/adc/ |
D | ingenic-adc.c | 108 const struct ingenic_adc_soc_data *soc_data; member 249 if (!adc->soc_data->battery_vref_mode) in ingenic_adc_write_raw() 616 *length = adc->soc_data->battery_raw_avail_size; in ingenic_adc_read_avail() 617 *vals = adc->soc_data->battery_raw_avail; in ingenic_adc_read_avail() 621 *length = adc->soc_data->battery_scale_avail_size; in ingenic_adc_read_avail() 622 *vals = adc->soc_data->battery_scale_avail; in ingenic_adc_read_avail() 645 if (adc->soc_data->has_aux_md && engine == 0) { in ingenic_adc_read_chan_info_raw() 708 *val = adc->soc_data->battery_high_vref; in ingenic_adc_read_raw() 709 *val2 = adc->soc_data->battery_high_vref_bits; in ingenic_adc_read_raw() 828 const struct ingenic_adc_soc_data *soc_data; in ingenic_adc_probe() local [all …]
|
/linux-5.19.10/sound/soc/fsl/ |
D | fsl_sai.c | 62 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr() 170 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_sysclk_tr() 221 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_fmt_tr() 344 unsigned int reg, ofs = sai->soc_data->reg_offset; in fsl_sai_set_bclk() 361 id = sai->soc_data->mclk0_is_mclk1 ? 1 : 0; in fsl_sai_set_bclk() 448 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_hw_params() 522 if (sai->soc_data->pins > 1) in fsl_sai_hw_params() 547 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_hw_free() 563 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_config_disable() 598 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_trigger() [all …]
|
D | fsl_rpmsg.c | 192 rpmsg->soc_data = of_device_get_match_data(&pdev->dev); in fsl_rpmsg_probe() 194 fsl_rpmsg_dai.playback.rates = rpmsg->soc_data->rates; in fsl_rpmsg_probe() 195 fsl_rpmsg_dai.capture.rates = rpmsg->soc_data->rates; in fsl_rpmsg_probe() 196 fsl_rpmsg_dai.playback.formats = rpmsg->soc_data->formats; in fsl_rpmsg_probe() 197 fsl_rpmsg_dai.capture.formats = rpmsg->soc_data->formats; in fsl_rpmsg_probe()
|
D | fsl_rpmsg.h | 41 const struct fsl_rpmsg_soc_data *soc_data; member
|
/linux-5.19.10/drivers/dma/ |
D | dma-jz4780.c | 155 const struct jz4780_dma_soc_data *soc_data; member 211 if (jzdma->soc_data->flags & JZ_SOC_DATA_PER_CHAN_PM) { in jz4780_dma_chan_enable() 214 if (jzdma->soc_data->flags & JZ_SOC_DATA_NO_DCKES_DCKEC) in jz4780_dma_chan_enable() 226 if ((jzdma->soc_data->flags & JZ_SOC_DATA_PER_CHAN_PM) && in jz4780_dma_chan_disable() 227 !(jzdma->soc_data->flags & JZ_SOC_DATA_NO_DCKES_DCKEC)) in jz4780_dma_chan_disable() 287 else if (ord > jzdma->soc_data->transfer_ord_max) in jz4780_dma_transfer_size() 288 ord = jzdma->soc_data->transfer_ord_max; in jz4780_dma_transfer_size() 390 !(jzdma->soc_data->flags & JZ_SOC_DATA_BREAK_LINKS)) { in jz4780_dma_prep_slave_sg() 680 const unsigned int soc_flags = jzdma->soc_data->flags; in jz4780_dma_chan_irq() 737 unsigned int nb_channels = jzdma->soc_data->nb_channels; in jz4780_dma_irq_handler() [all …]
|
/linux-5.19.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 …]
|
/linux-5.19.10/drivers/soc/rockchip/ |
D | io-domain.c | 77 const struct rockchip_iodomain_soc_data *soc_data; member 137 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 570 iod->soc_data = match->data; in rockchip_iodomain_probe() 572 if (iod->soc_data->write) in rockchip_iodomain_probe() 573 iod->write = iod->soc_data->write; in rockchip_iodomain_probe() 591 const char *supply_name = iod->soc_data->supply_names[i]; in rockchip_iodomain_probe() 653 if (iod->soc_data->init) in rockchip_iodomain_probe() 654 iod->soc_data->init(iod); in rockchip_iodomain_probe()
|
/linux-5.19.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()
|
/linux-5.19.10/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 783 const struct tegra_pinctrl_soc_data *soc_data) in tegra_pinctrl_probe() argument 797 pmx->soc = soc_data; in tegra_pinctrl_probe() 804 soc_data->ngroups * 4, sizeof(*pmx->group_pins), in tegra_pinctrl_probe() 810 for (fn = 0; fn < soc_data->nfunctions; fn++) { in tegra_pinctrl_probe() 811 struct tegra_function *func = &soc_data->functions[fn]; in tegra_pinctrl_probe() 815 for (gn = 0; gn < soc_data->ngroups; gn++) { in tegra_pinctrl_probe() 816 const struct tegra_pingroup *g = &soc_data->groups[gn]; in tegra_pinctrl_probe() 828 soc_data->ngroups * 4); in tegra_pinctrl_probe()
|
/linux-5.19.10/drivers/dma/ti/ |
D | k3-udma-private.c | 169 const struct udma_oes_offsets *oes = &ud->soc_data->oes; in xudma_pktdma_tflow_get_irq() 177 const struct udma_oes_offsets *oes = &ud->soc_data->oes; in xudma_pktdma_rflow_get_irq()
|