Lines Matching refs:hp
81 static int hvc_tile_notifier_add_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_add_irq() argument
87 rc = notifier_add_irq(hp, irq); in hvc_tile_notifier_add_irq()
97 notifier_del_irq(hp, irq); in hvc_tile_notifier_add_irq()
102 static void hvc_tile_notifier_del_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_del_irq() argument
109 notifier_del_irq(hp, irq); in hvc_tile_notifier_del_irq()
112 static void hvc_tile_notifier_hangup_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_hangup_irq() argument
114 hvc_tile_notifier_del_irq(hp, irq); in hvc_tile_notifier_hangup_irq()
132 struct hvc_struct *hp; in hvc_tile_probe() local
141 hp = hvc_alloc(0, tile_hvc_irq, &hvc_tile_get_put_ops, 128); in hvc_tile_probe()
142 if (IS_ERR(hp)) { in hvc_tile_probe()
144 return PTR_ERR(hp); in hvc_tile_probe()
146 dev_set_drvdata(&pdev->dev, hp); in hvc_tile_probe()
154 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); in hvc_tile_remove() local
156 rc = hvc_remove(hp); in hvc_tile_remove()
158 irq_free_hwirq(hp->data); in hvc_tile_remove()
165 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); in hvc_tile_shutdown() local
167 hvc_tile_notifier_del_irq(hp, hp->data); in hvc_tile_shutdown()
196 struct hvc_struct *hp; in hvc_tile_init() local
197 hp = hvc_alloc(0, 0, &hvc_tile_get_put_ops, 128); in hvc_tile_init()
198 return PTR_ERR_OR_ZERO(hp); in hvc_tile_init()