Lines Matching defs:tohp
696 * _TPI_TOPT_DATA(struct T_opthdr *tohp):
699 #define _TPI_TOPT_DATA(tohp) \
700 ((unsigned char *)((char *)(tohp) + sizeof (struct T_opthdr)))
704 * _TPI_TOPT_DATALEN(tohp)
708 #define _TPI_TOPT_DATALEN(tohp) ((tohp)->len - sizeof (struct T_opthdr))
741 * _TPI_TOPT_VALID(struct T_opthdr *tohp, char *start, char *end)
742 * Validate the option header at tohp, for its alignment and length.
743 * 1. check that tohp is aligned at t_scalar_t boundary
744 * 2. check that start <= tohp < end
747 * (could be caused by a very large value for tohp->len)
750 #define _TPI_TOPT_VALID(tohp, start, end) \
751 (__TPI_TOPT_ISALIGNED(tohp) && \
752 ((uintptr_t)(tohp) >= (uintptr_t)(start)) && \
753 ((uintptr_t)(tohp) < (uintptr_t)(end)) && \
754 ((ssize_t)(tohp)->len >= sizeof (struct T_opthdr)) && \
755 ((uintptr_t)(tohp) + (tohp)->len <= (uintptr_t)(end)) && \
756 ((uintptr_t)(tohp) + (tohp)->len >= (uintptr_t)(tohp) + \