Lines Matching refs:parm
247 static struct parm meson_vpu_0_div_parm = {
253 static struct parm meson_vpu_1_div_parm = {
259 static struct parm meson_vapb_0_div_parm = {
265 static struct parm meson_vapb_1_div_parm = {
275 struct parm *parm; in meson_div_get_rate() local
281 parm = &meson_vpu_0_div_parm; in meson_div_get_rate()
285 parm = &meson_vpu_1_div_parm; in meson_div_get_rate()
289 parm = &meson_vapb_0_div_parm; in meson_div_get_rate()
293 parm = &meson_vapb_1_div_parm; in meson_div_get_rate()
300 regmap_read(priv->map, parm->reg_off, ®); in meson_div_get_rate()
301 reg = PARM_GET(parm->width, parm->shift, reg); in meson_div_get_rate()
324 struct parm *parm; in meson_div_set_rate() local
336 parm = &meson_vpu_0_div_parm; in meson_div_set_rate()
340 parm = &meson_vpu_1_div_parm; in meson_div_set_rate()
344 parm = &meson_vapb_0_div_parm; in meson_div_set_rate()
348 parm = &meson_vapb_1_div_parm; in meson_div_set_rate()
371 if (!new_div || new_div > (1 << parm->width)) { in meson_div_set_rate()
384 if (!new_div || new_div > (1 << parm->width)) in meson_div_set_rate()
390 regmap_update_bits(priv->map, parm->reg_off, SETPMASK(parm->width, parm->shift), in meson_div_set_rate()
391 (new_div - 1) << parm->shift); in meson_div_set_rate()
399 static struct parm meson_vpu_mux_parm = {
408 static struct parm meson_vpu_0_mux_parm = {
412 static struct parm meson_vpu_1_mux_parm = {
423 static struct parm meson_vapb_sel_mux_parm = {
432 static struct parm meson_vapb_0_mux_parm = {
436 static struct parm meson_vapb_1_mux_parm = {
450 struct parm *parm; in meson_mux_get_parent() local
456 parm = &meson_vpu_mux_parm; in meson_mux_get_parent()
460 parm = &meson_vpu_0_mux_parm; in meson_mux_get_parent()
464 parm = &meson_vpu_1_mux_parm; in meson_mux_get_parent()
468 parm = &meson_vapb_sel_mux_parm; in meson_mux_get_parent()
472 parm = &meson_vapb_0_mux_parm; in meson_mux_get_parent()
476 parm = &meson_vapb_1_mux_parm; in meson_mux_get_parent()
483 regmap_read(priv->map, parm->reg_off, ®); in meson_mux_get_parent()
484 reg = PARM_GET(parm->width, parm->shift, reg); in meson_mux_get_parent()
498 struct parm *parm; in meson_mux_set_parent() local
513 parm = &meson_vpu_mux_parm; in meson_mux_set_parent()
517 parm = &meson_vpu_0_mux_parm; in meson_mux_set_parent()
521 parm = &meson_vpu_1_mux_parm; in meson_mux_set_parent()
525 parm = &meson_vapb_sel_mux_parm; in meson_mux_set_parent()
529 parm = &meson_vapb_0_mux_parm; in meson_mux_set_parent()
533 parm = &meson_vapb_1_mux_parm; in meson_mux_set_parent()
541 for (i = 0 ; i < (1 << parm->width) ; ++i) { in meson_mux_set_parent()
551 regmap_update_bits(priv->map, parm->reg_off, SETPMASK(parm->width, parm->shift), in meson_mux_set_parent()
552 new_index << parm->shift); in meson_mux_set_parent()
620 static struct parm meson_mpll0_parm[3] = {
625 static struct parm meson_mpll1_parm[3] = {
630 static struct parm meson_mpll2_parm[3] = {
644 struct parm *psdm, *pn2; in meson_mpll_get_rate()
679 static struct parm meson_fixed_pll_parm[3] = {
685 static struct parm meson_sys_pll_parm[3] = {
694 struct parm *pm, *pn, *pod; in meson_pll_get_rate()