| /net/xfrm/ |
| A D | xfrm_state.c | 131 x->props.reqid, x->props.family, in xfrm_hash_transfer() 142 x->id.proto, x->props.family, in xfrm_hash_transfer() 598 x->mode_cbs->destroy_state(x); in xfrm_state_gc_destroy() 611 x->type->destructor(x); in xfrm_state_gc_destroy() 1278 u32 mark = x->mark.v & x->mark.m; in __xfrm_state_locate() 1728 x->mark.v &= x->mark.m; in __xfrm_state_insert() 1740 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert() 1892 u32 mark = x->mark.v & x->mark.m; in xfrm_state_add() 1920 x->props.reqid, x->if_id, x->pcpu_num, x->id.proto, in xfrm_state_add() 2194 if (x->dir && x1->dir != x->dir) in xfrm_state_update() [all …]
|
| A D | xfrm_replay.c | 68 ((x->replay.seq - x->preplay.seq < x->replay_maxdiff) && in xfrm_replay_notify() 69 (x->replay.oseq - x->preplay.oseq < x->replay_maxdiff))) { in xfrm_replay_notify() 79 if (memcmp(&x->replay, &x->preplay, in xfrm_replay_notify() 94 !mod_timer(&x->rtimer, jiffies + x->replay_maxage)) in xfrm_replay_notify() 176 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1; in xfrm_replay_advance() 336 if (memcmp(x->replay_esn, x->preplay_esn, in xfrm_replay_notify_bmp() 345 memcpy(x->preplay_esn, x->replay_esn, in xfrm_replay_notify_bmp() 352 !mod_timer(&x->rtimer, jiffies + x->replay_maxage)) in xfrm_replay_notify_bmp() 402 if (memcmp(x->replay_esn, x->preplay_esn, in xfrm_replay_notify_esn() 411 memcpy(x->preplay_esn, x->replay_esn, in xfrm_replay_notify_esn() [all …]
|
| A D | xfrm_output.c | 302 flags = x->props.flags; in xfrm4_tunnel_encap_add() 475 if (x->mode_cbs && x->mode_cbs->prepare_output) in xfrm_outer_mode_output() 476 return x->mode_cbs->prepare_output(x, skb); in xfrm_outer_mode_output() 537 x->curlft.packets++; in xfrm_output_one() 550 x->type_offload->encap(x, skb); in xfrm_output_one() 555 err = x->type->output(x, skb); in xfrm_output_one() 573 x = dst->xfrm; in xfrm_output_one() 574 } while (x && !(x->outer_mode.flags & XFRM_MODE_FLAG_TUNNEL)); in xfrm_output_one() 750 family = (x->xso.type != XFRM_DEV_OFFLOAD_PACKET) ? x->outer_mode.family in xfrm_output() 796 xfrm_state_hold(x); in xfrm_output() [all …]
|
| A D | xfrm_input.c | 449 if (x->mode_cbs && x->mode_cbs->input) in xfrm_inner_mode_input() 450 return x->mode_cbs->input(x, skb); in xfrm_inner_mode_input() 588 if (x == NULL) { in xfrm_input() 595 if (unlikely(x->dir && x->dir != XFRM_SA_DIR_IN)) { in xfrm_input() 599 xfrm_state_put(x); in xfrm_input() 600 x = NULL; in xfrm_input() 615 spin_lock(&x->lock); in xfrm_input() 626 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 654 nexthdr = x->type_offload->input_tail(x, skb); in xfrm_input() 658 nexthdr = x->type->input(x, skb); in xfrm_input() [all …]
|
| A D | xfrm_device.c | 46 skb->mac_len + x->props.header_len - x->props.enc_hdr_len); in __xfrm_mode_tunnel_prep() 119 struct xfrm_state *x; in validate_xmit_xfrm() local 142 if (x->xso.type == XFRM_DEV_OFFLOAD_PACKET && x->xso.dev != dev) { in validate_xmit_xfrm() 182 err = x->type_offload->xmit(x, skb, esp_features); in validate_xmit_xfrm() 206 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm() 263 if (x->tfcpad) { in xfrm_dev_state_add() 274 daddr = &x->id.daddr; in xfrm_dev_state_add() 276 saddr = &x->id.daddr; in xfrm_dev_state_add() 309 if (!x->type_offload) { in xfrm_dev_state_add() 419 if (!x->type_offload || in xfrm_dev_offload_ok() [all …]
|
| A D | xfrm_user.c | 807 memcpy(&x->id, &p->id, sizeof(x->id)); in copy_from_user_state() 808 memcpy(&x->sel, &p->sel, sizeof(x->sel)); in copy_from_user_state() 809 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state() 837 if (re && x->replay_esn && x->preplay_esn) { in xfrm_update_ae_params() 892 if (!x) in xfrm_state_construct() 990 if (x->mode_cbs && x->mode_cbs->user_init) { in xfrm_state_construct() 1412 ret = x->mode_cbs->copy_to_user(x, skb); in copy_to_user_state_extra() 3026 memcpy(&x->id, &t->id, sizeof(x->id)); in xfrm_add_acquire() 3664 if (x->props.smark.v | x->props.smark.m) { in xfrm_sa_len() 3685 if (x->mode_cbs && x->mode_cbs->sa_len) in xfrm_sa_len() [all …]
|
| A D | xfrm_iptfs.c | 952 xtfs = x->mode_data; in __input_process_payload() 953 net = xs_net(x); in __input_process_payload() 1216 xtfs = x->mode_data; in iptfs_input_ordered() 1217 net = xs_net(x); in iptfs_input_ordered() 1663 x = xtfs->x; in iptfs_drop_timer() 2313 x = xtfs->x; in iptfs_delay_timer() 2323 spin_lock(&x->lock); in iptfs_delay_timer() 2476 aead = x->data; in __iptfs_get_inner_mtu() 2645 xtfs->x = x; in __iptfs_init_state() 2657 xtfs->x = x; in iptfs_clone_state() [all …]
|
| A D | xfrm_ipcomp.c | 35 struct xfrm_state *x; member 119 struct ipcomp_data *ipcd = x->data; in ipcomp_setup_req() 169 extra->x = x; in ipcomp_setup_req() 230 return ipcomp_decompress(x, skb); in ipcomp_input() 290 return ipcomp_output_done2(x, skb, err); in ipcomp_compress() 295 struct ipcomp_data *ipcd = x->data; in ipcomp_output() 302 return ipcomp_compress(x, skb); in ipcomp_output() 313 struct ipcomp_data *ipcd = x->data; in ipcomp_destroy() 328 if (!x->calg) { in ipcomp_init_state() 333 if (x->encap) { in ipcomp_init_state() [all …]
|
| A D | xfrm_nat_keepalive.c | 33 ka->net = xs_net(x); in nat_keepalive_init() 34 ka->family = x->props.family; in nat_keepalive_init() 35 ka->saddr = x->props.saddr; in nat_keepalive_init() 36 ka->daddr = x->id.daddr; in nat_keepalive_init() 37 ka->encap_sport = x->encap->encap_sport; in nat_keepalive_init() 39 ka->smark = xfrm_smark_get(0, x); in nat_keepalive_init() 173 spin_lock(&x->lock); in nat_keepalive_work_single() 183 nat_keepalive_init(&ka, x); in nat_keepalive_work_single() 187 spin_unlock(&x->lock); in nat_keepalive_work_single() 249 if (!x->nat_keepalive_interval) in xfrm_nat_keepalive_state_updated() [all …]
|
| /net/ipv4/ |
| A D | esp4.c | 238 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 412 if (x->encap) { in esp_output_head() 516 aead = x->data; in esp_output_tail() 951 if (!x) in esp4_err() 980 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) { in esp_init_aead() 1025 x->geniv ?: "", x->geniv ? "(" : "", in esp_init_authenc() 1026 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc() 1035 x->geniv ?: "", x->geniv ? "(" : "", in esp_init_authenc() 1036 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc() 1053 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() [all …]
|
| A D | ipcomp.c | 28 struct xfrm_state *x; in ipcomp4_err() local 44 if (!x) in ipcomp4_err() 51 xfrm_state_put(x); in ipcomp4_err() 60 struct net *net = xs_net(x); in ipcomp_tunnel_create() 69 t->id.spi = x->props.saddr.a4; in ipcomp_tunnel_create() 78 t->if_id = x->if_id; in ipcomp_tunnel_create() 100 struct net *net = xs_net(x); in ipcomp_tunnel_attach() 103 u32 mark = x->mark.v & x->mark.m; in ipcomp_tunnel_attach() 116 x->tunnel = t; in ipcomp_tunnel_attach() 127 x->props.header_len = 0; in ipcomp4_init_state() [all …]
|
| A D | esp4_offload.c | 35 struct xfrm_state *x; in esp4_gro_receive() local 60 if (unlikely(x && x->dir && x->dir != XFRM_SA_DIR_IN)) { in esp4_gro_receive() 62 xfrm_state_put(x); in esp4_gro_receive() 63 x = NULL; in esp4_gro_receive() 66 if (!x) in esp4_gro_receive() 71 sp->xvec[sp->len++] = x; in esp4_gro_receive() 115 esph->spi = x->id.spi; in esp4_gso_encap() 207 struct xfrm_state *x; in esp4_gso_segment() local 222 aead = x->data; in esp4_gso_segment() 294 aead = x->data; in esp_xmit() [all …]
|
| A D | ah4.c | 123 struct ah_data *ahp = x->data; in ah_output_done() 162 ahp = x->data; in ah_output() 218 ah->spi = x->id.spi; in ah_output() 269 struct ah_data *ahp = x->data; in ah_input_done() 325 ahp = x->data; in ah_input() 444 struct xfrm_state *x; in ah4_err() local 459 if (!x) in ah4_err() 466 xfrm_state_put(x); in ah4_err() 477 if (!x->aalg) { in ah_init_state() 482 if (x->encap) { in ah_init_state() [all …]
|
| /net/ipv6/ |
| A D | esp6.c | 274 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 441 if (x->encap) { in esp6_output_head() 987 if (!x) in esp6_err() 1017 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) { in esp_init_aead() 1062 x->geniv ?: "", x->geniv ? "(" : "", in esp_init_authenc() 1063 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc() 1072 x->geniv ?: "", x->geniv ? "(" : "", in esp_init_authenc() 1073 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc() 1090 keylen = (x->aalg ? (x->aalg->alg_key_len + 7) / 8 : 0) + in esp_init_authenc() 1104 if (x->aalg) { in esp_init_authenc() [all …]
|
| A D | ipcomp6.c | 52 struct xfrm_state *x; in ipcomp6_err() local 61 if (!x) in ipcomp6_err() 69 xfrm_state_put(x); in ipcomp6_err() 77 struct net *net = xs_net(x); in ipcomp6_tunnel_create() 93 t->props.mode = x->props.mode; in ipcomp6_tunnel_create() 96 t->if_id = x->if_id; in ipcomp6_tunnel_create() 115 struct net *net = xs_net(x); in ipcomp6_tunnel_attach() 119 u32 mark = x->mark.m & x->mark.v; in ipcomp6_tunnel_attach() 134 x->tunnel = t; in ipcomp6_tunnel_attach() 146 x->props.header_len = 0; in ipcomp6_init_state() [all …]
|
| A D | esp6_offload.c | 58 struct xfrm_state *x; in esp6_gro_receive() local 87 if (unlikely(x && x->dir && x->dir != XFRM_SA_DIR_IN)) { in esp6_gro_receive() 89 xfrm_state_put(x); in esp6_gro_receive() 90 x = NULL; in esp6_gro_receive() 93 if (!x) in esp6_gro_receive() 98 sp->xvec[sp->len++] = x; in esp6_gro_receive() 151 esph->spi = x->id.spi; in esp6_gso_encap() 247 struct xfrm_state *x; in esp6_gso_segment() local 261 x = sp->xvec[sp->len - 1]; in esp6_gso_segment() 262 aead = x->data; in esp6_gso_segment() [all …]
|
| A D | mip6.c | 125 spin_lock(&x->lock); in mip6_destopt_input() 129 spin_unlock(&x->lock); in mip6_destopt_input() 165 spin_lock_bh(&x->lock); in mip6_destopt_output() 167 spin_unlock_bh(&x->lock); in mip6_destopt_output() 199 struct net *net = xs_net(x); in mip6_destopt_reject() 252 if (x->id.spi) { in mip6_destopt_init_state() 294 spin_lock(&x->lock); in mip6_rthdr_input() 298 spin_unlock(&x->lock); in mip6_rthdr_input() 328 spin_lock_bh(&x->lock); in mip6_rthdr_output() 330 spin_unlock_bh(&x->lock); in mip6_rthdr_output() [all …]
|
| A D | xfrm6_input.c | 275 if (!x) in xfrm6_input_addr() 278 if (unlikely(x->dir && x->dir != XFRM_SA_DIR_IN)) { in xfrm6_input_addr() 280 xfrm_state_put(x); in xfrm6_input_addr() 281 x = NULL; in xfrm6_input_addr() 285 spin_lock(&x->lock); in xfrm6_input_addr() 291 if (x->type->input(x, skb) > 0) { in xfrm6_input_addr() 298 xfrm_state_put(x); in xfrm6_input_addr() 299 x = NULL; in xfrm6_input_addr() 302 if (!x) { in xfrm6_input_addr() 310 spin_lock(&x->lock); in xfrm6_input_addr() [all …]
|
| /net/bridge/netfilter/ |
| A D | ebt_limit.c | 26 #define _POW2_BELOW2(x) ((x)|((x)>>1)) argument 27 #define _POW2_BELOW4(x) (_POW2_BELOW2(x)|_POW2_BELOW2((x)>>2)) argument 28 #define _POW2_BELOW8(x) (_POW2_BELOW4(x)|_POW2_BELOW4((x)>>4)) argument 29 #define _POW2_BELOW16(x) (_POW2_BELOW8(x)|_POW2_BELOW8((x)>>8)) argument 30 #define _POW2_BELOW32(x) (_POW2_BELOW16(x)|_POW2_BELOW16((x)>>16)) argument 31 #define POW2_BELOW32(x) ((_POW2_BELOW32(x)>>1) + 1) argument
|
| /net/ceph/crush/ |
| A D | mapper.c | 84 work->perm_x = x; in bucket_perm_choose() 193 return x & 1; in terminal() 255 x++; in crush_ln() 266 x <<= bits; in crush_ln() 388 work, x, r); in crush_bucket_choose() 391 x, r); in crush_bucket_choose() 394 x, r); in crush_bucket_choose() 398 x, r); in crush_bucket_choose() 515 x, r); in crush_choose_firstn() 519 x, r, in crush_choose_firstn() [all …]
|
| /net/key/ |
| A D | af_key.c | 32 #define _X2KEY(x) ((x) == XFRM_INF ? 0 : (x)) argument 33 #define _KEY2X(x) ((x) == 0 ? XFRM_INF : (x)) argument 801 if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family)) in __pfkey_xfrm_state2msg() 805 if (x->aalg && x->aalg->alg_key_len) { in __pfkey_xfrm_state2msg() 810 if (x->ealg && x->ealg->alg_key_len) { in __pfkey_xfrm_state2msg() 859 BUG_ON(x->ealg && x->calg); in __pfkey_xfrm_state2msg() 957 pfkey_sockaddr_fill(&x->sel.saddr, x->sel.sport, in __pfkey_xfrm_state2msg() 1199 x->calg = kmalloc(sizeof(*x->calg), GFP_KERNEL); in pfkey_msg2xfrm_state() 1258 x->sel.family = x->props.family; in pfkey_msg2xfrm_state() 1364 if (!x) in pfkey_getspi() [all …]
|
| /net/mac80211/ |
| A D | mesh_hwmp.c | 39 #define AE_F_SET(x) (*x & AE_F) argument 40 #define PREQ_IE_FLAGS(x) (*(x)) argument 46 #define PREQ_IE_LIFETIME(x) u32_field_get(x, 17, AE_F_SET(x)) argument 47 #define PREQ_IE_METRIC(x) u32_field_get(x, 21, AE_F_SET(x)) argument 48 #define PREQ_IE_TARGET_F(x) (*(AE_F_SET(x) ? x + 32 : x + 26)) argument 49 #define PREQ_IE_TARGET_ADDR(x) (AE_F_SET(x) ? x + 33 : x + 27) argument 56 #define PREP_IE_ORIG_ADDR(x) (AE_F_SET(x) ? x + 27 : x + 21) argument 57 #define PREP_IE_ORIG_SN(x) u32_field_get(x, 27, AE_F_SET(x)) argument 59 #define PREP_IE_METRIC(x) u32_field_get(x, 17, AE_F_SET(x)) argument 76 return x >= y ? x - y : y - x; in SN_DELTA() [all …]
|
| /net/netfilter/ |
| A D | xt_limit.c | 53 #define _POW2_BELOW2(x) ((x)|((x)>>1)) argument 54 #define _POW2_BELOW4(x) (_POW2_BELOW2(x)|_POW2_BELOW2((x)>>2)) argument 55 #define _POW2_BELOW8(x) (_POW2_BELOW4(x)|_POW2_BELOW4((x)>>4)) argument 56 #define _POW2_BELOW16(x) (_POW2_BELOW8(x)|_POW2_BELOW8((x)>>8)) argument 57 #define _POW2_BELOW32(x) (_POW2_BELOW16(x)|_POW2_BELOW16((x)>>16)) argument 58 #define POW2_BELOW32(x) ((_POW2_BELOW32(x)>>1) + 1) argument
|
| A D | xt_policy.c | 35 match_xfrm_state(const struct xfrm_state *x, const struct xt_policy_elem *e, in match_xfrm_state() argument 38 #define MATCH_ADDR(x,y,z) (!e->match.x || \ in match_xfrm_state() argument 39 (xt_addr_cmp(&e->x, &e->y, (const union nf_inet_addr *)(z), family) \ in match_xfrm_state() 40 ^ e->invert.x)) in match_xfrm_state() 41 #define MATCH(x,y) (!e->match.x || ((e->x == (y)) ^ e->invert.x)) in match_xfrm_state() argument 43 return MATCH_ADDR(saddr, smask, &x->props.saddr) && in match_xfrm_state() 44 MATCH_ADDR(daddr, dmask, &x->id.daddr) && in match_xfrm_state() 45 MATCH(proto, x->id.proto) && in match_xfrm_state() 46 MATCH(mode, x->props.mode) && in match_xfrm_state() 47 MATCH(spi, x->id.spi) && in match_xfrm_state() [all …]
|
| /net/netfilter/ipset/ |
| A D | ip_set_bitmap_gen.h | 121 void *x = get_ext(set, map, e->id); in mtype_test() local 135 void *x = get_ext(set, map, e->id); in mtype_add() local 148 ip_set_ext_destroy(set, x); in mtype_add() 185 ip_set_ext_destroy(set, x); in mtype_del() 208 void *x; in mtype_list() local 221 x = get_ext(set, map, id); in mtype_list() 225 mtype_is_filled(x) && in mtype_list() 241 if (ip_set_put_extensions(skb, set, x, mtype_is_filled(x))) in mtype_list() 269 void *x; in mtype_gc() local 278 x = get_ext(set, map, id); in mtype_gc() [all …]
|