Lines Matching full:hp

82 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data)  in hvc_opal_hvsi_open()  argument
84 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open()
87 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open()
89 rc = notifier_add_irq(hp, data); in hvc_opal_hvsi_open()
93 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
96 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) in hvc_opal_hvsi_close() argument
98 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close()
100 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close()
102 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close()
104 notifier_del_irq(hp, data); in hvc_opal_hvsi_close()
107 static void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) in hvc_opal_hvsi_hangup() argument
109 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup()
111 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup()
113 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_hangup()
115 notifier_hangup_irq(hp, data); in hvc_opal_hvsi_hangup()
118 static int hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) in hvc_opal_hvsi_tiocmget() argument
120 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmget()
127 static int hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, in hvc_opal_hvsi_tiocmset() argument
130 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmset()
133 hp->vtermno, set, clear); in hvc_opal_hvsi_tiocmset()
157 struct hvc_struct *hp; in hvc_opal_probe() local
225 hp = hvc_alloc(termno, irq, ops, MAX_VIO_PUT_CHARS); in hvc_opal_probe()
226 if (IS_ERR(hp)) in hvc_opal_probe()
227 return PTR_ERR(hp); in hvc_opal_probe()
230 hp->flags = IRQF_SHARED; in hvc_opal_probe()
231 dev_set_drvdata(&dev->dev, hp); in hvc_opal_probe()
238 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); in hvc_opal_remove() local
241 termno = hp->vtermno; in hvc_opal_remove()
242 hvc_remove(hp); in hvc_opal_remove()