Lines Matching refs:hp
156 static int hvterm_hvsi_open(struct hvc_struct *hp, int data)
158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
163 rc = notifier_add_irq(hp, data);
167 return hvsilib_open(&pv->hvsi, hp);
170 static void hvterm_hvsi_close(struct hvc_struct *hp, int data)
172 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
176 hvsilib_close(&pv->hvsi, hp);
178 notifier_del_irq(hp, data);
181 static void hvterm_hvsi_hangup(struct hvc_struct *hp, int data)
183 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
187 hvsilib_close(&pv->hvsi, hp);
189 notifier_hangup_irq(hp, data);
192 static int hvterm_hvsi_tiocmget(struct hvc_struct *hp)
194 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
201 static int hvterm_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set,
204 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
300 struct hvc_struct *hp;
350 hp = hvc_alloc(termno, vdev->irq, ops, MAX_VIO_PUT_CHARS);
351 if (IS_ERR(hp))
352 return PTR_ERR(hp);
353 dev_set_drvdata(&vdev->dev, hp);
356 if (hp->index == 0 && !udbg_putc) {