/linux-master/drivers/clk/sunxi-ng/ |
H A D | ccu_sdm.c | 13 struct ccu_sdm_internal *sdm) 18 if (sdm->enable && !(readl(common->base + common->reg) & sdm->enable)) 21 return !!(readl(common->base + sdm->tuning_reg) & sdm->tuning_enable); 26 struct ccu_sdm_internal *sdm, 37 for (i = 0; i < sdm->table_size; i++) 38 if (sdm->table[i].rate == rate) 39 writel(sdm->table[i].pattern, 40 common->base + sdm 12 ccu_sdm_helper_is_enabled(struct ccu_common *common, struct ccu_sdm_internal *sdm) argument 25 ccu_sdm_helper_enable(struct ccu_common *common, struct ccu_sdm_internal *sdm, unsigned long rate) argument 55 ccu_sdm_helper_disable(struct ccu_common *common, struct ccu_sdm_internal *sdm) argument 93 ccu_sdm_helper_has_rate(struct ccu_common *common, struct ccu_sdm_internal *sdm, unsigned long rate) argument 110 ccu_sdm_helper_read_rate(struct ccu_common *common, struct ccu_sdm_internal *sdm, u32 m, u32 n) argument 141 ccu_sdm_helper_get_factors(struct ccu_common *common, struct ccu_sdm_internal *sdm, unsigned long rate, unsigned long *m, unsigned long *n) argument [all...] |
H A D | ccu_sdm.h | 52 struct ccu_sdm_internal *sdm); 54 struct ccu_sdm_internal *sdm, 57 struct ccu_sdm_internal *sdm); 60 struct ccu_sdm_internal *sdm, 64 struct ccu_sdm_internal *sdm, 68 struct ccu_sdm_internal *sdm,
|
H A D | ccu_nm.c | 108 if (ccu_sdm_helper_is_enabled(&nm->common, &nm->sdm)) 109 rate = ccu_sdm_helper_read_rate(&nm->common, &nm->sdm, m, n); 148 if (ccu_sdm_helper_has_rate(&nm->common, &nm->sdm, rate)) { 202 if (ccu_sdm_helper_has_rate(&nm->common, &nm->sdm, rate)) { 203 ccu_sdm_helper_enable(&nm->common, &nm->sdm, rate); 206 ccu_sdm_helper_get_factors(&nm->common, &nm->sdm, rate, 209 ccu_sdm_helper_disable(&nm->common, &nm->sdm);
|
H A D | ccu_nm.h | 29 struct ccu_sdm_internal sdm; member in struct:ccu_nm 49 .sdm = _SUNXI_CCU_SDM(_sdm_table, _sdm_en, \
|
H A D | ccu-sun50i-a100.c | 205 .sdm = _SUNXI_CCU_SDM(pll_com_sdm_table, BIT(24), 252 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, BIT(24),
|
H A D | ccu-sun8i-a83t.c | 84 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, BIT(24),
|
H A D | ccu-sun5i.c | 69 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, 0,
|
H A D | ccu-sun50i-h6.c | 217 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table,
|
H A D | ccu-sun20i-d1.c | 180 .sdm = _SUNXI_CCU_SDM(pll_audio0_sdm_table, BIT(24),
|
H A D | ccu-sun4i-a10.c | 68 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, 0,
|
/linux-master/drivers/clk/meson/ |
H A D | clk-mpll.c | 32 unsigned int sdm, 35 unsigned long divisor = (SDM_DEN * n2) + sdm; 45 unsigned int *sdm, 55 *sdm = DIV_ROUND_CLOSEST_ULL(frac, requested_rate); 57 *sdm = DIV_ROUND_UP_ULL(frac, requested_rate); 59 if (*sdm == SDM_DEN) { 60 *sdm = 0; 66 *sdm = 0; 69 *sdm = SDM_DEN - 1; 80 unsigned int sdm, n local 31 rate_from_params(unsigned long parent_rate, unsigned int sdm, unsigned int n2) argument 43 params_from_rate(unsigned long requested_rate, unsigned long parent_rate, unsigned int *sdm, unsigned int *n2, u8 flags) argument 94 unsigned int sdm, n2; local 114 unsigned int sdm, n2; local [all...] |
H A D | clk-mpll.h | 16 struct parm sdm; member in struct:meson_clk_mpll_data
|
H A D | s4-pll.c | 520 .sdm = { 574 .sdm = { 628 .sdm = { 682 .sdm = {
|
H A D | axg.c | 489 .sdm = { 540 .sdm = { 591 .sdm = { 647 .sdm = {
|
H A D | gxbb.c | 719 .sdm = { 748 .sdm = { 800 .sdm = { 843 .sdm = {
|
H A D | g12a.c | 2207 .sdm = { 2261 .sdm = { 2315 .sdm = { 2369 .sdm = {
|
H A D | meson8b.c | 475 .sdm = { 525 .sdm = { 570 .sdm = {
|
/linux-master/drivers/clk/ |
H A D | clk-sp7021.c | 221 int sdm, ph; local 238 for (sdm = 0; sdm < ARRAY_SIZE(sdm_mod_vals); sdm++) { 239 u32 mod = sdm_mod_vals[sdm]; 279 clk->p[SDM_MOD] = sdm; 456 u32 sdm = FIELD_GET(MASK_SDM_MOD, reg); local 464 r1 = ret * (sdm_mod_vals[sdm] - nfra) / sdm_mod_vals[sdm] / pp[4];
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | sd.c | 132 static int mlx5_query_sd(struct mlx5_core_dev *dev, bool *sdm, argument 146 *sdm = MLX5_GET(mpir_reg, out, sdm); 162 bool sdm; local 168 err = mlx5_query_sd(dev, &sdm, &host_buses, &sd_group); 172 if (!sdm)
|
/linux-master/drivers/media/tuners/ |
H A D | r820t.c | 549 u16 sdm = 0; local 665 /* sdm calculator */ 668 sdm = sdm + 32768 / (n_sdm / 2); 676 tuner_dbg("freq %d kHz, pll ref %d%s, sdm=0x%04x\n", 677 freq, pll_ref, refdiv2 ? " / 2" : "", sdm); 679 rc = r820t_write_reg(priv, 0x16, sdm >> 8); 682 rc = r820t_write_reg(priv, 0x15, sdm & 0xff);
|
/linux-master/include/linux/mlx5/ |
H A D | mlx5_ifc.h | 10123 u8 sdm[0x1]; member in struct:mlx5_ifc_mpir_reg_bits
|