Searched refs:sdm (Results 1 - 21 of 21) sorted by relevance

/linux-master/drivers/clk/sunxi-ng/
H A Dccu_sdm.c13 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 Dccu_sdm.h52 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 Dccu_nm.c108 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 Dccu_nm.h29 struct ccu_sdm_internal sdm; member in struct:ccu_nm
49 .sdm = _SUNXI_CCU_SDM(_sdm_table, _sdm_en, \
H A Dccu-sun50i-a100.c205 .sdm = _SUNXI_CCU_SDM(pll_com_sdm_table, BIT(24),
252 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, BIT(24),
H A Dccu-sun8i-a83t.c84 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, BIT(24),
H A Dccu-sun5i.c69 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, 0,
H A Dccu-sun50i-h6.c217 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table,
H A Dccu-sun20i-d1.c180 .sdm = _SUNXI_CCU_SDM(pll_audio0_sdm_table, BIT(24),
H A Dccu-sun4i-a10.c68 .sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table, 0,
/linux-master/drivers/clk/meson/
H A Dclk-mpll.c32 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 Dclk-mpll.h16 struct parm sdm; member in struct:meson_clk_mpll_data
H A Ds4-pll.c520 .sdm = {
574 .sdm = {
628 .sdm = {
682 .sdm = {
H A Daxg.c489 .sdm = {
540 .sdm = {
591 .sdm = {
647 .sdm = {
H A Dgxbb.c719 .sdm = {
748 .sdm = {
800 .sdm = {
843 .sdm = {
H A Dg12a.c2207 .sdm = {
2261 .sdm = {
2315 .sdm = {
2369 .sdm = {
H A Dmeson8b.c475 .sdm = {
525 .sdm = {
570 .sdm = {
/linux-master/drivers/clk/
H A Dclk-sp7021.c221 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 Dsd.c132 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 Dr820t.c549 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 Dmlx5_ifc.h10123 u8 sdm[0x1]; member in struct:mlx5_ifc_mpir_reg_bits

Completed in 361 milliseconds