Lines Matching refs:hp
81 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data)
83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
86 pr_devel("HVSI@%x: do open !\n", hp->vtermno);
88 rc = notifier_add_irq(hp, data);
92 return hvsilib_open(&pv->hvsi, hp);
95 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data)
97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
99 pr_devel("HVSI@%x: do close !\n", hp->vtermno);
101 hvsilib_close(&pv->hvsi, hp);
103 notifier_del_irq(hp, data);
106 void hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data)
108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
110 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno);
112 hvsilib_close(&pv->hvsi, hp);
114 notifier_hangup_irq(hp, data);
117 static int hvc_opal_hvsi_tiocmget(struct hvc_struct *hp)
119 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
126 static int hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set,
129 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
132 hp->vtermno, set, clear);
156 struct hvc_struct *hp;
224 hp = hvc_alloc(termno, irq, ops, MAX_VIO_PUT_CHARS);
225 if (IS_ERR(hp))
226 return PTR_ERR(hp);
229 hp->flags = IRQF_SHARED;
230 dev_set_drvdata(&dev->dev, hp);
237 struct hvc_struct *hp = dev_get_drvdata(&dev->dev);
240 termno = hp->vtermno;
241 rc = hvc_remove(hp);