x6spi 77 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 79 net/ipv6/xfrm6_tunnel.c hlist_for_each_entry_rcu(x6spi, x6spi 82 net/ipv6/xfrm6_tunnel.c if (xfrm6_addr_equal(&x6spi->addr, saddr)) x6spi 83 net/ipv6/xfrm6_tunnel.c return x6spi; x6spi 91 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 95 net/ipv6/xfrm6_tunnel.c x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); x6spi 96 net/ipv6/xfrm6_tunnel.c spi = x6spi ? x6spi->spi : 0; x6spi 105 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 108 net/ipv6/xfrm6_tunnel.c hlist_for_each_entry(x6spi, x6spi 111 net/ipv6/xfrm6_tunnel.c if (x6spi->spi == spi) x6spi 121 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 147 net/ipv6/xfrm6_tunnel.c x6spi = kmem_cache_alloc(xfrm6_tunnel_spi_kmem, GFP_ATOMIC); x6spi 148 net/ipv6/xfrm6_tunnel.c if (!x6spi) x6spi 151 net/ipv6/xfrm6_tunnel.c memcpy(&x6spi->addr, saddr, sizeof(x6spi->addr)); x6spi 152 net/ipv6/xfrm6_tunnel.c x6spi->spi = spi; x6spi 153 net/ipv6/xfrm6_tunnel.c refcount_set(&x6spi->refcnt, 1); x6spi 155 net/ipv6/xfrm6_tunnel.c hlist_add_head_rcu(&x6spi->list_byspi, &xfrm6_tn->spi_byspi[index]); x6spi 158 net/ipv6/xfrm6_tunnel.c hlist_add_head_rcu(&x6spi->list_byaddr, &xfrm6_tn->spi_byaddr[index]); x6spi 165 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 169 net/ipv6/xfrm6_tunnel.c x6spi = __xfrm6_tunnel_spi_lookup(net, saddr); x6spi 170 net/ipv6/xfrm6_tunnel.c if (x6spi) { x6spi 171 net/ipv6/xfrm6_tunnel.c refcount_inc(&x6spi->refcnt); x6spi 172 net/ipv6/xfrm6_tunnel.c spi = x6spi->spi; x6spi 190 net/ipv6/xfrm6_tunnel.c struct xfrm6_tunnel_spi *x6spi; x6spi 195 net/ipv6/xfrm6_tunnel.c hlist_for_each_entry_safe(x6spi, n, x6spi 199 net/ipv6/xfrm6_tunnel.c if (xfrm6_addr_equal(&x6spi->addr, saddr)) { x6spi 200 net/ipv6/xfrm6_tunnel.c if (refcount_dec_and_test(&x6spi->refcnt)) { x6spi 201 net/ipv6/xfrm6_tunnel.c hlist_del_rcu(&x6spi->list_byaddr); x6spi 202 net/ipv6/xfrm6_tunnel.c hlist_del_rcu(&x6spi->list_byspi); x6spi 203 net/ipv6/xfrm6_tunnel.c call_rcu(&x6spi->rcu_head, x6spi_destroy_rcu);