Lines Matching refs:policy_bydst
468 *dbits = net->xfrm.policy_bydst[dir].dbits4; in __get_hash_thresh()
469 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh()
473 *dbits = net->xfrm.policy_bydst[dir].dbits6; in __get_hash_thresh()
474 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh()
487 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel()
498 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_bysel()
507 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct()
515 return rcu_dereference_check(net->xfrm.policy_bydst[dir].table, in policy_hash_direct()
578 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize()
591 odst = rcu_dereference_protected(net->xfrm.policy_bydst[dir].table, in xfrm_bydst_resize()
597 rcu_assign_pointer(net->xfrm.policy_bydst[dir].table, ndst); in xfrm_bydst_resize()
598 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
636 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_should_resize()
1303 hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_hash_rebuild()
1304 odst = net->xfrm.policy_bydst[dir].table; in xfrm_hash_rebuild()
1311 net->xfrm.policy_bydst[dir].dbits4 = rbits4; in xfrm_hash_rebuild()
1312 net->xfrm.policy_bydst[dir].sbits4 = lbits4; in xfrm_hash_rebuild()
1313 net->xfrm.policy_bydst[dir].dbits6 = rbits6; in xfrm_hash_rebuild()
1314 net->xfrm.policy_bydst[dir].sbits6 = lbits6; in xfrm_hash_rebuild()
1317 net->xfrm.policy_bydst[dir].dbits4 = lbits4; in xfrm_hash_rebuild()
1318 net->xfrm.policy_bydst[dir].sbits4 = rbits4; in xfrm_hash_rebuild()
1319 net->xfrm.policy_bydst[dir].dbits6 = lbits6; in xfrm_hash_rebuild()
1320 net->xfrm.policy_bydst[dir].sbits6 = rbits6; in xfrm_hash_rebuild()
4091 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4118 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4145 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_fini()