Lines Matching refs:hp
82 static int hvc_tile_notifier_add_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_add_irq() argument
88 rc = notifier_add_irq(hp, irq); in hvc_tile_notifier_add_irq()
98 notifier_del_irq(hp, irq); in hvc_tile_notifier_add_irq()
103 static void hvc_tile_notifier_del_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_del_irq() argument
110 notifier_del_irq(hp, irq); in hvc_tile_notifier_del_irq()
113 static void hvc_tile_notifier_hangup_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_hangup_irq() argument
115 hvc_tile_notifier_del_irq(hp, irq); in hvc_tile_notifier_hangup_irq()
133 struct hvc_struct *hp; in hvc_tile_probe() local
142 hp = hvc_alloc(0, tile_hvc_irq, &hvc_tile_get_put_ops, 128); in hvc_tile_probe()
143 if (IS_ERR(hp)) { in hvc_tile_probe()
145 return PTR_ERR(hp); in hvc_tile_probe()
147 dev_set_drvdata(&pdev->dev, hp); in hvc_tile_probe()
155 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); in hvc_tile_remove() local
157 rc = hvc_remove(hp); in hvc_tile_remove()
159 irq_free_hwirq(hp->data); in hvc_tile_remove()
166 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); in hvc_tile_shutdown() local
168 hvc_tile_notifier_del_irq(hp, hp->data); in hvc_tile_shutdown()
197 struct hvc_struct *hp; in hvc_tile_init() local
198 hp = hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128); in hvc_tile_init()
199 return PTR_ERR_OR_ZERO(hp); in hvc_tile_init()