Lines Matching refs:pv

63 	struct hvc_opal_priv *pv = hvc_opal_privs[vtermno];  in hvc_opal_hvsi_get_chars()  local
65 if (WARN_ON(!pv)) in hvc_opal_hvsi_get_chars()
68 return hvsilib_get_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_get_chars()
74 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() local
76 if (WARN_ON(!pv)) in hvc_opal_hvsi_put_chars()
79 return hvsilib_put_chars(&pv->hvsi, buf, count); in hvc_opal_hvsi_put_chars()
84 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() local
93 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
98 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() local
102 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close()
109 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup() local
113 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_hangup()
120 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmget() local
122 if (!pv) in hvc_opal_hvsi_tiocmget()
124 return pv->hvsi.mctrl; in hvc_opal_hvsi_tiocmget()
130 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmset() local
136 hvsilib_write_mctrl(&pv->hvsi, 1); in hvc_opal_hvsi_tiocmset()
138 hvsilib_write_mctrl(&pv->hvsi, 0); in hvc_opal_hvsi_tiocmset()
158 struct hvc_opal_priv *pv; in hvc_opal_probe() local
181 pv = hvc_opal_privs[termno]; in hvc_opal_probe()
184 pv = kzalloc(sizeof(struct hvc_opal_priv), GFP_KERNEL); in hvc_opal_probe()
185 if (!pv) in hvc_opal_probe()
187 pv->proto = proto; in hvc_opal_probe()
188 hvc_opal_privs[termno] = pv; in hvc_opal_probe()
194 hvsilib_init(&pv->hvsi, in hvc_opal_probe()