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