Lines Matching refs:tp
207 * GET_CIS_ADDR(tp,ptr) returns the virtual address that was saved by a
221 #define GET_CIS_ADDR(tp) ((cisdata_t *)(uintptr_t)(tp)->offset)
310 #define FIND_LTUPLE_FWDF 0x000000003 /* find tuple, fwd search from tp */
311 #define FIND_LTUPLE_BACKF 0x000000004 /* find tuple, backward from tp */
312 #define FIND_NEXT_LTUPLEF 0x000000005 /* find tuple, fwd from tp+1 */
313 #define FIND_PREV_LTUPLEF 0x000000006 /* find tuple, backward from tp-1 */
327 #define GET_CM_BYTE(tp) (((size_t)(tp)->len >= \
328 ((uintptr_t)(tp)->read.byte - \
329 (uintptr_t)(tp)->data)) ? \
330 *(tp)->read.byte++ : ((tp)->flags |= CISTPLF_MEM_ERR))
331 #define GET_CM_LEN(tp) ((size_t)(tp)->len - \
332 ((uintptr_t)(tp)->read.byte - \
333 (uintptr_t)(tp)->data))
336 #define GET_AM_BYTE(tp) (((size_t)(tp)->len >= \
337 (((uintptr_t)(tp)->read.byte - \
338 (uintptr_t)(tp)->data))>>1) ? \
339 *(cisdata_t *)(tp)->read.sword++ : \
340 ((tp)->flags |= CISTPLF_MEM_ERR))
341 #define GET_AM_LEN(tp) ((size_t)(tp)->len - (((uintptr_t)(tp)->read.byte - \
342 (uintptr_t)(tp)->data) >> 1))
345 #define RESET_TP(tp) (tp)->read.byte = (tp)->data
346 #define LOOK_BYTE(tp) *(tp)->read.byte
347 #define GET_BYTE_ADDR(tp) (tp)->read.byte
349 #define GET_BYTE(tp) (((tp)->flags & CISTPLF_AM_SPACE) ? \
350 GET_AM_BYTE(tp) : GET_CM_BYTE(tp))
351 #define GET_SHORT(tp) cis_get_short(tp)
352 #define GET_BE_SHORT(tp) cis_get_be_short(tp)
353 #define GET_INT24(tp) cis_get_int24(tp)
354 #define GET_LONG(tp) cis_get_long(tp)
355 #define GET_LEN(tp) (((tp)->flags & CISTPLF_AM_SPACE) ? \
356 GET_AM_LEN(tp) : GET_CM_LEN(tp))