• Home
  • Raw
  • Download

Lines Matching refs:tp

378 #define __NLA_IS_UINT_TYPE(tp)					\  argument
379 (tp == NLA_U8 || tp == NLA_U16 || tp == NLA_U32 || \
380 tp == NLA_U64 || tp == NLA_BE16 || tp == NLA_BE32)
381 #define __NLA_IS_SINT_TYPE(tp) \ argument
382 (tp == NLA_S8 || tp == NLA_S16 || tp == NLA_S32 || tp == NLA_S64)
385 #define NLA_ENSURE_UINT_TYPE(tp) \ argument
386 (__NLA_ENSURE(__NLA_IS_UINT_TYPE(tp)) + tp)
387 #define NLA_ENSURE_UINT_OR_BINARY_TYPE(tp) \ argument
388 (__NLA_ENSURE(__NLA_IS_UINT_TYPE(tp) || \
389 tp == NLA_MSECS || \
390 tp == NLA_BINARY) + tp)
391 #define NLA_ENSURE_SINT_TYPE(tp) \ argument
392 (__NLA_ENSURE(__NLA_IS_SINT_TYPE(tp)) + tp)
393 #define NLA_ENSURE_INT_OR_BINARY_TYPE(tp) \ argument
394 (__NLA_ENSURE(__NLA_IS_UINT_TYPE(tp) || \
395 __NLA_IS_SINT_TYPE(tp) || \
396 tp == NLA_MSECS || \
397 tp == NLA_BINARY) + tp)
398 #define NLA_ENSURE_NO_VALIDATION_PTR(tp) \ argument
399 (__NLA_ENSURE(tp != NLA_BITFIELD32 && \
400 tp != NLA_REJECT && \
401 tp != NLA_NESTED && \
402 tp != NLA_NESTED_ARRAY) + tp)
404 #define NLA_POLICY_RANGE(tp, _min, _max) { \ argument
405 .type = NLA_ENSURE_INT_OR_BINARY_TYPE(tp), \
411 #define NLA_POLICY_FULL_RANGE(tp, _range) { \ argument
412 .type = NLA_ENSURE_UINT_OR_BINARY_TYPE(tp), \
417 #define NLA_POLICY_FULL_RANGE_SIGNED(tp, _range) { \ argument
418 .type = NLA_ENSURE_SINT_TYPE(tp), \
423 #define NLA_POLICY_MIN(tp, _min) { \ argument
424 .type = NLA_ENSURE_INT_OR_BINARY_TYPE(tp), \
429 #define NLA_POLICY_MAX(tp, _max) { \ argument
430 .type = NLA_ENSURE_INT_OR_BINARY_TYPE(tp), \
435 #define NLA_POLICY_MASK(tp, _mask) { \ argument
436 .type = NLA_ENSURE_UINT_TYPE(tp), \
441 #define NLA_POLICY_VALIDATE_FN(tp, fn, ...) { \ argument
442 .type = NLA_ENSURE_NO_VALIDATION_PTR(tp), \