Lines Matching full:hp

81 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data)  in hvc_opal_hvsi_open()  argument
83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open()
86 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open()
88 rc = notifier_add_irq(hp, data); in hvc_opal_hvsi_open()
92 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open()
95 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) in hvc_opal_hvsi_close() argument
97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close()
99 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close()
101 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close()
103 notifier_del_irq(hp, data); in hvc_opal_hvsi_close()
106 static void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) in hvc_opal_hvsi_hangup() argument
108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup()
110 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup()
112 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_hangup()
114 notifier_hangup_irq(hp, data); in hvc_opal_hvsi_hangup()
117 static int hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) in hvc_opal_hvsi_tiocmget() argument
119 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmget()
126 static int hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, in hvc_opal_hvsi_tiocmset() argument
129 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmset()
132 hp->vtermno, set, clear); in hvc_opal_hvsi_tiocmset()
156 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()
229 hp->flags = IRQF_SHARED; in hvc_opal_probe()
230 dev_set_drvdata(&dev->dev, hp); in hvc_opal_probe()
237 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); in hvc_opal_remove() local
240 termno = hp->vtermno; in hvc_opal_remove()
241 rc = hvc_remove(hp); in hvc_opal_remove()