Lines Matching refs:parm

206 static struct parm meson_vpu_0_div_parm = {
212 static struct parm meson_vpu_1_div_parm = {
218 static struct parm meson_vapb_0_div_parm = {
224 static struct parm meson_vapb_1_div_parm = {
230 static struct parm meson_hdmi_div_parm = {
240 struct parm *parm; in meson_div_get_rate() local
246 parm = &meson_vpu_0_div_parm; in meson_div_get_rate()
250 parm = &meson_vpu_1_div_parm; in meson_div_get_rate()
254 parm = &meson_vapb_0_div_parm; in meson_div_get_rate()
258 parm = &meson_vapb_1_div_parm; in meson_div_get_rate()
262 parm = &meson_hdmi_div_parm; in meson_div_get_rate()
269 regmap_read(priv->map, parm->reg_off, &reg); in meson_div_get_rate()
270 reg = PARM_GET(parm->width, parm->shift, reg); in meson_div_get_rate()
293 struct parm *parm; in meson_div_set_rate() local
305 parm = &meson_vpu_0_div_parm; in meson_div_set_rate()
309 parm = &meson_vpu_1_div_parm; in meson_div_set_rate()
313 parm = &meson_vapb_0_div_parm; in meson_div_set_rate()
317 parm = &meson_vapb_1_div_parm; in meson_div_set_rate()
321 parm = &meson_hdmi_div_parm; in meson_div_set_rate()
344 if (!new_div || new_div > (1 << parm->width)) { in meson_div_set_rate()
357 if (!new_div || new_div > (1 << parm->width)) in meson_div_set_rate()
363 regmap_update_bits(priv->map, parm->reg_off, in meson_div_set_rate()
364 SETPMASK(parm->width, parm->shift), in meson_div_set_rate()
365 (new_div - 1) << parm->shift); in meson_div_set_rate()
373 static struct parm meson_vpu_mux_parm = {
382 static struct parm meson_vpu_0_mux_parm = {
386 static struct parm meson_vpu_1_mux_parm = {
401 static struct parm meson_vapb_sel_mux_parm = {
410 static struct parm meson_vapb_0_mux_parm = {
414 static struct parm meson_vapb_1_mux_parm = {
425 static struct parm meson_hdmi_mux_parm = {
439 struct parm *parm; in meson_mux_get_parent() local
445 parm = &meson_vpu_mux_parm; in meson_mux_get_parent()
449 parm = &meson_vpu_0_mux_parm; in meson_mux_get_parent()
453 parm = &meson_vpu_1_mux_parm; in meson_mux_get_parent()
457 parm = &meson_vapb_sel_mux_parm; in meson_mux_get_parent()
461 parm = &meson_vapb_0_mux_parm; in meson_mux_get_parent()
465 parm = &meson_vapb_1_mux_parm; in meson_mux_get_parent()
469 parm = &meson_hdmi_mux_parm; in meson_mux_get_parent()
476 regmap_read(priv->map, parm->reg_off, &reg); in meson_mux_get_parent()
477 reg = PARM_GET(parm->width, parm->shift, reg); in meson_mux_get_parent()
491 struct parm *parm; in meson_mux_set_parent() local
506 parm = &meson_vpu_mux_parm; in meson_mux_set_parent()
510 parm = &meson_vpu_0_mux_parm; in meson_mux_set_parent()
514 parm = &meson_vpu_1_mux_parm; in meson_mux_set_parent()
518 parm = &meson_vapb_sel_mux_parm; in meson_mux_set_parent()
522 parm = &meson_vapb_0_mux_parm; in meson_mux_set_parent()
526 parm = &meson_vapb_1_mux_parm; in meson_mux_set_parent()
530 parm = &meson_hdmi_mux_parm; in meson_mux_set_parent()
538 for (i = 0 ; i < (1 << parm->width) ; ++i) { in meson_mux_set_parent()
548 regmap_update_bits(priv->map, parm->reg_off, in meson_mux_set_parent()
549 SETPMASK(parm->width, parm->shift), in meson_mux_set_parent()
550 new_index << parm->shift); in meson_mux_set_parent()
614 static struct parm meson_mpll0_parm[2] = {
619 static struct parm meson_mpll1_parm[2] = {
624 static struct parm meson_mpll2_parm[2] = {
638 struct parm *psdm, *pn2; in meson_mpll_get_rate()
673 static struct parm meson_fixed_pll_parm[4] = {
680 static struct parm meson_sys_pll_parm[3] = {
689 struct parm *pm, *pn, *pod, *pfrac = NULL; in meson_pll_get_rate()
745 static struct parm meson_pcie_pll_parm[3] = {
754 struct parm *pm, *pn, *pod; in meson_pcie_pll_get_rate()