Lines Matching refs:p

144 #define ALIGN_PTR(p) ((void*) ALIGN((unsigned long) (p)))  argument
145 #define ALIGN4_PTR(p) ((void*) ALIGN4((unsigned long) (p))) argument
146 #define ALIGN8_PTR(p) ((void*) ALIGN8((unsigned long) (p))) argument
148 #define ALIGN_TO_PTR(p, ali) ((void*) ALIGN_TO((unsigned long) (p), (ali))) argument
280 #define PTR_TO_INT(p) ((int) ((intptr_t) (p))) argument
282 #define PTR_TO_UINT(p) ((unsigned) ((uintptr_t) (p))) argument
285 #define PTR_TO_LONG(p) ((long) ((intptr_t) (p))) argument
287 #define PTR_TO_ULONG(p) ((unsigned long) ((uintptr_t) (p))) argument
290 #define PTR_TO_UINT8(p) ((uint8_t) ((uintptr_t) (p))) argument
293 #define PTR_TO_INT32(p) ((int32_t) ((intptr_t) (p))) argument
295 #define PTR_TO_UINT32(p) ((uint32_t) ((uintptr_t) (p))) argument
298 #define PTR_TO_INT64(p) ((int64_t) ((intptr_t) (p))) argument
300 #define PTR_TO_UINT64(p) ((uint64_t) ((uintptr_t) (p))) argument
303 #define PTR_TO_SIZE(p) ((size_t) ((uintptr_t) (p))) argument
354 #define FOREACH_POINTER(p, x, ...) \ argument
355 for (typeof(p) *_l = (typeof(p)[]) { ({ p = x; }), ##__VA_ARGS__, POINTER_MAX }; \
356 p != (typeof(p)) POINTER_MAX; \
357 p = *(++_l))
374 static inline void name(type *p) { \
375 func(p); \
380 static inline void func##p(type *p) { \
381 if (*p) \
382 *p = func(*p); \
387 static inline void func##p(type *p) { \
388 if (*p != (empty)) { \
389 func(*p); \
390 *p = (empty); \
395 scope type *name##_ref(type *p) { \
396 if (!p) \
400 unsigned *q = &p->n_ref; \
405 return p; \
409 scope type *name##_unref(type *p) { \
410 if (!p) \
413 assert(p->n_ref > 0); \
414 p->n_ref--; \
415 if (p->n_ref > 0) \
418 return free_func(p); \
487 #define PTR_SUB1(p, base) \ argument
489 typeof(p) _q = (p); \