Lines Matching refs:hp

94 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data)  in hvc_opal_hvsi_open()  argument
96 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open()
99 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open()
101 rc = notifier_add_irq(hp, data); in hvc_opal_hvsi_open()
105 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
108 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) in hvc_opal_hvsi_close() argument
110 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close()
112 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close()
114 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close()
116 notifier_del_irq(hp, data); in hvc_opal_hvsi_close()
119 void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) in hvc_opal_hvsi_hangup() argument
121 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup()
123 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup()
125 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_hangup()
127 notifier_hangup_irq(hp, data); in hvc_opal_hvsi_hangup()
130 static int hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) in hvc_opal_hvsi_tiocmget() argument
132 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmget()
139 static int hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, in hvc_opal_hvsi_tiocmset() argument
142 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmset()
145 hp->vtermno, set, clear); in hvc_opal_hvsi_tiocmset()
168 struct hvc_struct *hp; in hvc_opal_probe() local
224 hp = hvc_alloc(termno, irq, ops, MAX_VIO_PUT_CHARS); in hvc_opal_probe()
225 if (IS_ERR(hp)) in hvc_opal_probe()
226 return PTR_ERR(hp); in hvc_opal_probe()
227 dev_set_drvdata(&dev->dev, hp); in hvc_opal_probe()
234 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); in hvc_opal_remove() local
237 termno = hp->vtermno; in hvc_opal_remove()
238 rc = hvc_remove(hp); in hvc_opal_remove()