Lines Matching refs:x
40 #define POINTER_TO_UINT(x) ((uintptr_t) (x)) argument
42 #define UINT_TO_POINTER(x) ((void *) (uintptr_t) (x)) argument
44 #define POINTER_TO_INT(x) ((intptr_t) (x)) argument
46 #define INT_TO_POINTER(x) ((void *) (intptr_t) (x)) argument
156 #define ROUND_UP(x, align) \ argument
157 (((unsigned long)(x) + ((unsigned long)(align) - 1)) & \
164 #define ROUND_DOWN(x, align) \ argument
165 ((unsigned long)(x) & ~((unsigned long)(align) - 1))
168 #define WB_UP(x) ROUND_UP(x, sizeof(void *)) argument
171 #define WB_DN(x) ROUND_DOWN(x, sizeof(void *)) argument
214 static inline bool is_power_of_two(unsigned int x) in is_power_of_two() argument
216 return (x != 0U) && ((x & (x - 1U)) == 0U); in is_power_of_two()
293 int char2hex(char c, uint8_t *x);
303 int hex2char(uint8_t x, char *c);
377 #define KB(x) ((x) << 10) argument
379 #define KB(x) (((size_t)x) << 10) argument
382 #define MB(x) (KB(x) << 10) argument
384 #define GB(x) (MB(x) << 10) argument
387 #define KHZ(x) ((x) * 1000) argument
389 #define MHZ(x) (KHZ(x) * 1000) argument