Lines Matching refs:hp

163 static int hvterm_hvsi_open(struct hvc_struct *hp, int data)  in hvterm_hvsi_open()  argument
165 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open()
170 rc = notifier_add_irq(hp, data); in hvterm_hvsi_open()
174 return hvsilib_open(&pv->hvsi, hp); in hvterm_hvsi_open()
177 static void hvterm_hvsi_close(struct hvc_struct *hp, int data) in hvterm_hvsi_close() argument
179 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_close()
183 hvsilib_close(&pv->hvsi, hp); in hvterm_hvsi_close()
185 notifier_del_irq(hp, data); in hvterm_hvsi_close()
188 void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) in hvterm_hvsi_hangup() argument
190 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_hangup()
194 hvsilib_close(&pv->hvsi, hp); in hvterm_hvsi_hangup()
196 notifier_hangup_irq(hp, data); in hvterm_hvsi_hangup()
199 static int hvterm_hvsi_tiocmget(struct hvc_struct *hp) in hvterm_hvsi_tiocmget() argument
201 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_tiocmget()
208 static int hvterm_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, in hvterm_hvsi_tiocmset() argument
211 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_tiocmset()
301 struct hvc_struct *hp; in hvc_vio_probe() local
351 hp = hvc_alloc(termno, vdev->irq, ops, MAX_VIO_PUT_CHARS); in hvc_vio_probe()
352 if (IS_ERR(hp)) in hvc_vio_probe()
353 return PTR_ERR(hp); in hvc_vio_probe()
354 dev_set_drvdata(&vdev->dev, hp); in hvc_vio_probe()
357 if (hp->index == 0 && !udbg_putc) { in hvc_vio_probe()
368 struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); in hvc_vio_remove() local
371 termno = hp->vtermno; in hvc_vio_remove()
372 rc = hvc_remove(hp); in hvc_vio_remove()