Lines Matching refs:prod
30 static int __connect(struct irq_bypass_producer *prod, in __connect() argument
35 if (prod->stop) in __connect()
36 prod->stop(prod); in __connect()
40 if (prod->add_consumer) in __connect()
41 ret = prod->add_consumer(prod, cons); in __connect()
44 ret = cons->add_producer(cons, prod); in __connect()
45 if (ret && prod->del_consumer) in __connect()
46 prod->del_consumer(prod, cons); in __connect()
51 if (prod->start) in __connect()
52 prod->start(prod); in __connect()
58 static void __disconnect(struct irq_bypass_producer *prod, in __disconnect() argument
61 if (prod->stop) in __disconnect()
62 prod->stop(prod); in __disconnect()
66 cons->del_producer(cons, prod); in __disconnect()
68 if (prod->del_consumer) in __disconnect()
69 prod->del_consumer(prod, cons); in __disconnect()
73 if (prod->start) in __disconnect()
74 prod->start(prod); in __disconnect()