Lines Matching defs:ptr
40 static inline long __must_check PTR_ERR(__force const void *ptr)
42 return (long) ptr;
45 static inline bool __must_check IS_ERR(__force const void *ptr)
47 return IS_ERR_VALUE((unsigned long)ptr);
50 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr)
52 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr);
55 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr)
57 if (IS_ERR(ptr))
58 return PTR_ERR(ptr);
65 * @ptr: The pointer to cast.
70 static inline void * __must_check ERR_CAST(__force const void *ptr)
73 return (void *) ptr;