Lines Matching refs:handler
31 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_register() argument
37 int priority = handler->priority; in xfrm4_tunnel_register()
51 handler->next = *pprev; in xfrm4_tunnel_register()
52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register()
63 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_deregister() argument
75 if (t == handler) { in xfrm4_tunnel_deregister()
76 *pprev = handler->next; in xfrm4_tunnel_deregister()
90 #define for_each_tunnel_rcu(head, handler) \ argument
91 for (handler = rcu_dereference(head); \
92 handler != NULL; \
93 handler = rcu_dereference(handler->next)) \
97 struct xfrm_tunnel *handler; in tunnel4_rcv() local
102 for_each_tunnel_rcu(tunnel4_handlers, handler) in tunnel4_rcv()
103 if (!handler->handler(skb)) in tunnel4_rcv()
117 struct xfrm_tunnel *handler; in tunnel4_rcv_cb() local
122 for_each_tunnel_rcu(head, handler) { in tunnel4_rcv_cb()
123 if (handler->cb_handler) { in tunnel4_rcv_cb()
124 ret = handler->cb_handler(skb, err); in tunnel4_rcv_cb()
143 struct xfrm_tunnel *handler; in tunnel64_rcv() local
148 for_each_tunnel_rcu(tunnel64_handlers, handler) in tunnel64_rcv()
149 if (!handler->handler(skb)) in tunnel64_rcv()
163 struct xfrm_tunnel *handler; in tunnelmpls4_rcv() local
168 for_each_tunnel_rcu(tunnelmpls4_handlers, handler) in tunnelmpls4_rcv()
169 if (!handler->handler(skb)) in tunnelmpls4_rcv()
182 struct xfrm_tunnel *handler; in tunnel4_err() local
184 for_each_tunnel_rcu(tunnel4_handlers, handler) in tunnel4_err()
185 if (!handler->err_handler(skb, info)) in tunnel4_err()
194 struct xfrm_tunnel *handler; in tunnel64_err() local
196 for_each_tunnel_rcu(tunnel64_handlers, handler) in tunnel64_err()
197 if (!handler->err_handler(skb, info)) in tunnel64_err()
207 struct xfrm_tunnel *handler; in tunnelmpls4_err() local
209 for_each_tunnel_rcu(tunnelmpls4_handlers, handler) in tunnelmpls4_err()
210 if (!handler->err_handler(skb, info)) in tunnelmpls4_err()
218 .handler = tunnel4_rcv,
225 .handler = tunnel64_rcv,
233 .handler = tunnelmpls4_rcv,