Lines Matching refs:itp
545 #define ITP_P_ISACTIVE(itp, iph) ((itp)->itp_flags & \ argument
546 (((itp)->itp_policy == (iph)) ? ITPF_P_ACTIVE : ITPF_I_ACTIVE))
548 #define ITP_P_ISTUNNEL(itp, iph) ((itp)->itp_flags & \ argument
549 (((itp)->itp_policy == (iph)) ? ITPF_P_TUNNEL : ITPF_I_TUNNEL))
551 #define ITP_P_ISPERPORT(itp, iph) ((itp)->itp_flags & \ argument
552 (((itp)->itp_policy == (iph)) ? ITPF_P_PER_PORT_SECURITY : \
555 #define ITP_REFHOLD(itp) { \ argument
556 atomic_inc_32(&((itp)->itp_refcnt)); \
557 ASSERT((itp)->itp_refcnt != 0); \
560 #define ITP_REFRELE(itp, ns) { \ argument
561 ASSERT((itp)->itp_refcnt != 0); \
563 if (atomic_dec_32_nv(&((itp)->itp_refcnt)) == 0) \
564 itp_free(itp, ns); \