Lines Matching refs:handler
32 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_register() argument
37 int priority = handler->priority; in xfrm6_tunnel_register()
64 handler->next = *pprev; in xfrm6_tunnel_register()
65 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register()
76 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_deregister() argument
101 if (t == handler) { in xfrm6_tunnel_deregister()
102 *pprev = handler->next; in xfrm6_tunnel_deregister()
117 #define for_each_tunnel_rcu(head, handler) \ argument
118 for (handler = rcu_dereference(head); \
119 handler != NULL; \
120 handler = rcu_dereference(handler->next)) \
124 struct xfrm6_tunnel *handler; in tunnelmpls6_rcv() local
129 for_each_tunnel_rcu(tunnelmpls6_handlers, handler) in tunnelmpls6_rcv()
130 if (!handler->handler(skb)) in tunnelmpls6_rcv()
142 struct xfrm6_tunnel *handler; in tunnel6_rcv() local
147 for_each_tunnel_rcu(tunnel6_handlers, handler) in tunnel6_rcv()
148 if (!handler->handler(skb)) in tunnel6_rcv()
162 struct xfrm6_tunnel *handler; in tunnel6_rcv_cb() local
167 for_each_tunnel_rcu(head, handler) { in tunnel6_rcv_cb()
168 if (handler->cb_handler) { in tunnel6_rcv_cb()
169 ret = handler->cb_handler(skb, err); in tunnel6_rcv_cb()
187 struct xfrm6_tunnel *handler; in tunnel46_rcv() local
192 for_each_tunnel_rcu(tunnel46_handlers, handler) in tunnel46_rcv()
193 if (!handler->handler(skb)) in tunnel46_rcv()
206 struct xfrm6_tunnel *handler; in tunnel6_err() local
208 for_each_tunnel_rcu(tunnel6_handlers, handler) in tunnel6_err()
209 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel6_err()
218 struct xfrm6_tunnel *handler; in tunnel46_err() local
220 for_each_tunnel_rcu(tunnel46_handlers, handler) in tunnel46_err()
221 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnel46_err()
230 struct xfrm6_tunnel *handler; in tunnelmpls6_err() local
232 for_each_tunnel_rcu(tunnelmpls6_handlers, handler) in tunnelmpls6_err()
233 if (!handler->err_handler(skb, opt, type, code, offset, info)) in tunnelmpls6_err()
240 .handler = tunnel6_rcv,
246 .handler = tunnel46_rcv,
252 .handler = tunnelmpls6_rcv,