/Linux-v5.4/drivers/thermal/ |
D | imx_thermal.c | 225 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_panic_temp() local 231 regmap_write(map, soc_data->panic_alarm_ctrl + REG_CLR, in imx_set_panic_temp() 232 soc_data->panic_alarm_mask); in imx_set_panic_temp() 233 regmap_write(map, soc_data->panic_alarm_ctrl + REG_SET, in imx_set_panic_temp() 234 critical_value << soc_data->panic_alarm_shift); in imx_set_panic_temp() 241 const struct thermal_soc_data *soc_data = data->socdata; in imx_set_alarm_temp() local 251 regmap_write(map, soc_data->high_alarm_ctrl + REG_CLR, in imx_set_alarm_temp() 252 soc_data->high_alarm_mask); in imx_set_alarm_temp() 253 regmap_write(map, soc_data->high_alarm_ctrl + REG_SET, in imx_set_alarm_temp() 254 alarm_value << soc_data->high_alarm_shift); in imx_set_alarm_temp() [all …]
|
/Linux-v5.4/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 31 const struct emac_rockchip_soc_data *soc_data; member 40 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed() 56 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 136 priv->soc_data = match->data; in emac_rockchip_probe() 180 data = (1 << (priv->soc_data->grf_speed_offset + 16)) | in emac_rockchip_probe() 181 (1 << priv->soc_data->grf_speed_offset); in emac_rockchip_probe() 183 data |= (1 << (priv->soc_data->grf_mode_offset + 16)) | in emac_rockchip_probe() 184 (0 << priv->soc_data->grf_mode_offset); in emac_rockchip_probe() 186 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe() 201 if (priv->soc_data->need_div_macclk) { in emac_rockchip_probe() [all …]
|
/Linux-v5.4/drivers/phy/ti/ |
D | phy-gmii-sel.c | 48 const struct phy_gmii_sel_soc_data *soc_data; member 57 const struct phy_gmii_sel_soc_data *soc_data = if_phy->priv->soc_data; in phy_gmii_sel_mode() local 106 if (soc_data->features & BIT(PHY_GMII_SEL_RGMII_ID_MODE) && in phy_gmii_sel_mode() 114 if (soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN) && in phy_gmii_sel_mode() 209 if (priv->soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN) && in phy_gmii_sel_of_xlate() 212 if (phy_id > priv->soc_data->num_ports) in phy_gmii_sel_of_xlate() 218 if (priv->soc_data->features & BIT(PHY_GMII_SEL_RMII_IO_CLK_EN)) in phy_gmii_sel_of_xlate() 228 const struct phy_gmii_sel_soc_data *soc_data = priv->soc_data; in phy_gmii_sel_init_ports() local 233 num_ports = priv->soc_data->num_ports; in phy_gmii_sel_init_ports() 248 field = &soc_data->regfields[i][PHY_GMII_SEL_PORT_MODE]; in phy_gmii_sel_init_ports() [all …]
|
/Linux-v5.4/drivers/iio/adc/ |
D | ingenic-adc.c | 57 const struct ingenic_adc_soc_data *soc_data; member 229 *length = adc->soc_data->battery_raw_avail_size; in ingenic_adc_read_avail() 230 *vals = adc->soc_data->battery_raw_avail; in ingenic_adc_read_avail() 234 *length = adc->soc_data->battery_scale_avail_size; in ingenic_adc_read_avail() 235 *vals = adc->soc_data->battery_scale_avail; in ingenic_adc_read_avail() 283 *val = adc->soc_data->battery_high_vref; in ingenic_adc_read_raw() 284 *val2 = adc->soc_data->battery_high_vref_bits; in ingenic_adc_read_raw() 333 const struct ingenic_adc_soc_data *soc_data; in ingenic_adc_probe() local 336 soc_data = device_get_match_data(dev); in ingenic_adc_probe() 337 if (!soc_data) in ingenic_adc_probe() [all …]
|
/Linux-v5.4/drivers/cpufreq/ |
D | ti-cpufreq.c | 53 const struct ti_cpufreq_soc_data *soc_data; member 61 efuse = opp_data->soc_data->efuse_fallback; in amx3_efuse_xlate() 129 ret = regmap_read(opp_data->syscon, opp_data->soc_data->efuse_offset, in ti_cpufreq_get_efuse() 138 efuse = (efuse & opp_data->soc_data->efuse_mask); in ti_cpufreq_get_efuse() 139 efuse >>= opp_data->soc_data->efuse_shift; in ti_cpufreq_get_efuse() 141 *efuse_value = opp_data->soc_data->efuse_xlate(opp_data, efuse); in ti_cpufreq_get_efuse() 160 ret = regmap_read(opp_data->syscon, opp_data->soc_data->rev_offset, in ti_cpufreq_get_rev() 226 opp_data->soc_data = match->data; in ti_cpufreq_probe() 270 if (opp_data->soc_data->multi_regulator) { in ti_cpufreq_probe()
|
D | qoriq-cpufreq.c | 42 struct soc_data { struct 267 static const struct soc_data blacklist = { 297 const struct soc_data *data; in qoriq_cpufreq_init()
|
/Linux-v5.4/arch/arm/mach-imx/ |
D | pm-imx5.c | 321 static int __init imx5_suspend_init(const struct imx5_pm_data *soc_data) in imx5_suspend_init() argument 326 void (*suspend_asm)(void __iomem *) = soc_data->suspend_asm; in imx5_suspend_init() 331 if (!soc_data->suspend_asm_sz || !*soc_data->suspend_asm_sz) in imx5_suspend_init() 335 *soc_data->suspend_asm_sz + sizeof(*suspend_info), in imx5_suspend_init() 342 suspend_info->io_count = soc_data->suspend_io_count; in imx5_suspend_init() 343 memcpy(suspend_info->io_state, soc_data->suspend_io_config, in imx5_suspend_init() 344 sizeof(*suspend_info->io_state) * soc_data->suspend_io_count); in imx5_suspend_init() 346 suspend_info->m4if_base = ioremap(soc_data->m4if_addr, SZ_16K); in imx5_suspend_init() 352 suspend_info->iomuxc_base = ioremap(soc_data->iomuxc_addr, SZ_16K); in imx5_suspend_init() 361 *soc_data->suspend_asm_sz); in imx5_suspend_init()
|
/Linux-v5.4/drivers/mmc/host/ |
D | sdhci-tegra.c | 131 const struct sdhci_tegra_soc_data *soc_data; member 159 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_readw() local 161 if (unlikely((soc_data->nvquirks & NVQUIRK_FORCE_SDHCI_SPEC_200) && in tegra_sdhci_readw() 195 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_writel() local 206 if (unlikely((soc_data->nvquirks & NVQUIRK_ENABLE_BLOCK_GAP_DET) && in tegra_sdhci_writel() 287 if (!(tegra_host->soc_data->nvquirks & NVQUIRK_NEEDS_PAD_CONTROL)) in tegra_sdhci_is_pad_and_regulator_valid() 310 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_set_tap() local 320 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP) in tegra_sdhci_set_tap() 328 if (soc_data->nvquirks & NVQUIRK_DIS_CARD_CLK_CONFIG_TAP && in tegra_sdhci_set_tap() 357 const struct sdhci_tegra_soc_data *soc_data = tegra_host->soc_data; in tegra_sdhci_reset() local [all …]
|
D | sdhci-of-at91.c | 306 const struct sdhci_pltfm_data *soc_data; in sdhci_at91_probe() local 315 soc_data = match->data; in sdhci_at91_probe() 317 host = sdhci_pltfm_init(pdev, soc_data, sizeof(*priv)); in sdhci_at91_probe()
|
/Linux-v5.4/drivers/pinctrl/intel/ |
D | pinctrl-baytrail.c | 114 const struct intel_pinctrl_soc_data *soc_data; member 558 for (i = 0; i < vg->soc_data->ncommunities; i++) { in byt_get_community() 596 return vg->soc_data->ngroups; in byt_get_groups_count() 604 return vg->soc_data->groups[selector].name; in byt_get_group_name() 614 *pins = vg->soc_data->groups[selector].pins; in byt_get_group_pins() 615 *num_pins = vg->soc_data->groups[selector].npins; in byt_get_group_pins() 630 return vg->soc_data->nfunctions; in byt_get_functions_count() 638 return vg->soc_data->functions[selector].name; in byt_get_function_name() 648 *groups = vg->soc_data->functions[selector].groups; in byt_get_function_groups() 649 *num_groups = vg->soc_data->functions[selector].ngroups; in byt_get_function_groups() [all …]
|
/Linux-v5.4/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() 670 const unsigned int soc_flags = jzdma->soc_data->flags; in jz4780_dma_chan_irq() 727 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()
|
/Linux-v5.4/sound/soc/fsl/ |
D | fsl_sai.c | 43 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr() 154 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_sysclk_tr() 208 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_fmt_tr() 332 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_bclk() 420 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_hw_params() 530 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_trigger() 623 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_startup() 635 if (sai->soc_data->use_edma) in fsl_sai_startup() 651 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_shutdown() 673 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_dai_probe() [all …]
|
D | fsl_sai.h | 182 const struct fsl_sai_soc_data *soc_data; member
|
/Linux-v5.4/drivers/clk/ |
D | clk-aspeed.c | 383 const struct aspeed_clk_soc_data *soc_data; in aspeed_clk_probe() local 414 soc_data = of_device_get_match_data(dev); in aspeed_clk_probe() 415 if (!soc_data) { in aspeed_clk_probe() 437 hw = soc_data->calc_pll("mpll", val); in aspeed_clk_probe() 450 soc_data->div_table, in aspeed_clk_probe() 459 soc_data->mac_div_table, in aspeed_clk_probe() 468 soc_data->div_table, in aspeed_clk_probe() 477 soc_data->div_table, in aspeed_clk_probe() 500 3, 0, soc_data->eclk_div_table, in aspeed_clk_probe()
|
/Linux-v5.4/drivers/power/avs/ |
D | rockchip-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() 583 if (iod->soc_data->init) in rockchip_iodomain_probe() 584 iod->soc_data->init(iod); in rockchip_iodomain_probe()
|
/Linux-v5.4/drivers/gpu/drm/rockchip/ |
D | rockchip_lvds.c | 58 const struct rockchip_lvds_soc_data *soc_data; member 74 writel_relaxed(val, lvds->regs + offset + lvds->soc_data->ch1_offset); in lvds_writel() 182 ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con7, val); in rockchip_lvds_poweroff() 236 ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con7, val); in rockchip_lvds_grf_config() 249 if (!lvds->soc_data->has_vop_sel) in rockchip_lvds_set_vop_source() 260 ret = regmap_write(lvds->grf, lvds->soc_data->grf_soc_con6, val); in rockchip_lvds_set_vop_source() 506 lvds->soc_data = match->data; in rockchip_lvds_probe()
|
/Linux-v5.4/sound/soc/tegra/ |
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 | tegra30_i2s.h | 224 const struct tegra30_i2s_soc_data *soc_data; member
|
/Linux-v5.4/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 709 const struct tegra_pinctrl_soc_data *soc_data) in tegra_pinctrl_probe() argument 723 pmx->soc = soc_data; in tegra_pinctrl_probe() 730 soc_data->ngroups * 4, sizeof(*pmx->group_pins), in tegra_pinctrl_probe() 736 for (fn = 0; fn < soc_data->nfunctions; fn++) { in tegra_pinctrl_probe() 737 struct tegra_function *func = &soc_data->functions[fn]; in tegra_pinctrl_probe() 741 for (gn = 0; gn < soc_data->ngroups; gn++) { in tegra_pinctrl_probe() 742 const struct tegra_pingroup *g = &soc_data->groups[gn]; in tegra_pinctrl_probe() 754 soc_data->ngroups * 4); in tegra_pinctrl_probe()
|
D | pinctrl-tegra.h | 200 const struct tegra_pinctrl_soc_data *soc_data);
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-rk3x.c | 195 const struct rk3x_i2c_soc_data *soc_data; member 880 ret = i2c->soc_data->calc_timings(clk_rate, t, &calc); in rk3x_i2c_adapt_div() 937 if (i2c->soc_data->calc_timings(ndata->new_rate, &i2c->t, in rk3x_i2c_clk_notifier_cb() 1208 i2c->soc_data = match->data; in rk3x_i2c_probe() 1238 if (i2c->soc_data->grf_offset >= 0) { in rk3x_i2c_probe() 1256 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe() 1279 if (i2c->soc_data->calc_timings == rk3x_i2c_v0_calc_timings) { in rk3x_i2c_probe()
|
/Linux-v5.4/drivers/pinctrl/qcom/ |
D | pinctrl-msm.h | 122 const struct msm_pinctrl_soc_data *soc_data);
|
D | pinctrl-msm.c | 1127 const struct msm_pinctrl_soc_data *soc_data) in msm_pinctrl_probe() argument 1139 pctrl->soc = soc_data; in msm_pinctrl_probe() 1144 if (soc_data->tiles) { in msm_pinctrl_probe() 1145 for (i = 0; i < soc_data->ntiles; i++) { in msm_pinctrl_probe() 1147 soc_data->tiles[i]); in msm_pinctrl_probe()
|
/Linux-v5.4/drivers/pinctrl/actions/ |
D | pinctrl-owl.c | 916 struct owl_pinctrl_soc_data *soc_data) in owl_pinctrl_probe() argument 947 owl_pinctrl_desc.pins = soc_data->pins; in owl_pinctrl_probe() 948 owl_pinctrl_desc.npins = soc_data->npins; in owl_pinctrl_probe() 957 pctrl->soc = soc_data; in owl_pinctrl_probe()
|