Lines Matching refs:p
46 struct tcf_nat *p; in tcf_nat_init() local
95 p = to_tcf_nat(*a); in tcf_nat_init()
97 spin_lock_bh(&p->tcf_lock); in tcf_nat_init()
99 oparm = rcu_replace_pointer(p->parms, nparm, lockdep_is_held(&p->tcf_lock)); in tcf_nat_init()
100 spin_unlock_bh(&p->tcf_lock); in tcf_nat_init()
118 struct tcf_nat *p = to_tcf_nat(a); in tcf_nat_act() local
130 tcf_lastuse_update(&p->tcf_tm); in tcf_nat_act()
131 tcf_action_update_bstats(&p->common, skb); in tcf_nat_act()
133 action = READ_ONCE(p->tcf_action); in tcf_nat_act()
135 parms = rcu_dereference_bh(p->parms); in tcf_nat_act()
263 tcf_action_inc_drop_qstats(&p->common); in tcf_nat_act()
271 struct tcf_nat *p = to_tcf_nat(a); in tcf_nat_dump() local
273 .index = p->tcf_index, in tcf_nat_dump()
274 .refcnt = refcount_read(&p->tcf_refcnt) - ref, in tcf_nat_dump()
275 .bindcnt = atomic_read(&p->tcf_bindcnt) - bind, in tcf_nat_dump()
280 spin_lock_bh(&p->tcf_lock); in tcf_nat_dump()
282 opt.action = p->tcf_action; in tcf_nat_dump()
284 parms = rcu_dereference_protected(p->parms, lockdep_is_held(&p->tcf_lock)); in tcf_nat_dump()
294 tcf_tm_dump(&t, &p->tcf_tm); in tcf_nat_dump()
297 spin_unlock_bh(&p->tcf_lock); in tcf_nat_dump()
302 spin_unlock_bh(&p->tcf_lock); in tcf_nat_dump()
309 struct tcf_nat *p = to_tcf_nat(a); in tcf_nat_cleanup() local
312 parms = rcu_dereference_protected(p->parms, 1); in tcf_nat_cleanup()