• Home
  • Raw
  • Download

Lines Matching refs:pmap

174 struct pmap {  struct
190 struct pmap pmap; argument
420 static int brcm_avs_get_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_get_pmap() argument
426 if (ret || !pmap) in brcm_avs_get_pmap()
429 pmap->mode = args[0]; in brcm_avs_get_pmap()
430 pmap->p1 = args[1]; in brcm_avs_get_pmap()
431 pmap->p2 = args[2]; in brcm_avs_get_pmap()
432 pmap->state = args[3]; in brcm_avs_get_pmap()
437 static int brcm_avs_set_pmap(struct private_data *priv, struct pmap *pmap) in brcm_avs_set_pmap() argument
441 args[0] = pmap->mode; in brcm_avs_set_pmap()
442 args[1] = pmap->p1; in brcm_avs_set_pmap()
443 args[2] = pmap->p2; in brcm_avs_set_pmap()
444 args[3] = pmap->state; in brcm_avs_set_pmap()
789 ret = brcm_avs_get_pmap(priv, &priv->pmap); in brcm_avs_suspend()
799 return brcm_avs_get_pstate(priv, &priv->pmap.state); in brcm_avs_suspend()
807 ret = brcm_avs_set_pmap(priv, &priv->pmap); in brcm_avs_resume()
945 struct pmap pmap; in show_brcm_avs_mode() local
947 if (brcm_avs_get_pmap(priv, &pmap)) in show_brcm_avs_mode()
950 return sprintf(buf, "%s %u\n", brcm_avs_mode_to_string(pmap.mode), in show_brcm_avs_mode()
951 pmap.mode); in show_brcm_avs_mode()
959 struct pmap pmap; in show_brcm_avs_pmap() local
961 if (brcm_avs_get_pmap(priv, &pmap)) in show_brcm_avs_pmap()
964 brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv); in show_brcm_avs_pmap()
965 brcm_avs_parse_p2(pmap.p2, &mdiv_p1, &mdiv_p2, &mdiv_p3, &mdiv_p4); in show_brcm_avs_pmap()
968 pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2, in show_brcm_avs_pmap()
969 mdiv_p3, mdiv_p4, pmap.mode, pmap.state); in show_brcm_avs_pmap()