Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 275) sorted by relevance

1234567891011

/system/bt/stack/include/
Dhcidefs.h1085 #define HCI_CVSD_SUPPORTED(x) \ argument
1086 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_CVSD)
1087 #define HCI_U_LAW_SUPPORTED(x) \ argument
1088 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_U_LAW)
1089 #define HCI_A_LAW_SUPPORTED(x) \ argument
1090 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_A_LAW)
1091 #define HCI_TRANSPNT_SUPPORTED(x) \ argument
1092 (((x)&HCI_AIR_CODING_FORMAT_MASK) == HCI_AIR_CODING_FORMAT_TRANSPNT)
1301 #define HCI_FEATURES_KNOWN(x) \ argument
1302 (((x)[0] | (x)[1] | (x)[2] | (x)[3] | (x)[4] | (x)[5] | (x)[6] | (x)[7]) != 0)
[all …]
Davrc_defs.h473 #define AVRC_PF_SELECT_SUPPORTED(x) \ argument
474 ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK)
479 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument
484 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument
489 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument
494 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument
499 #define AVRC_PF_RIGHTUP_SUPPORTED(x) \ argument
500 ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK)
505 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) \ argument
506 ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK)
[all …]
/system/core/base/include/android-base/
Dendian.h35 #define htonq(x) htobe64(x) argument
36 #define ntohq(x) be64toh(x) argument
39 #define betoh16(x) be16toh(x) argument
40 #define betoh32(x) be32toh(x) argument
41 #define betoh64(x) be64toh(x) argument
56 #define htons(x) __builtin_bswap16(x) argument
57 #define htonl(x) __builtin_bswap32(x) argument
58 #define htonq(x) __builtin_bswap64(x) argument
60 #define ntohs(x) __builtin_bswap16(x) argument
61 #define ntohl(x) __builtin_bswap32(x) argument
[all …]
Dthread_annotations.h21 #define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) argument
23 #define THREAD_ANNOTATION_ATTRIBUTE__(x) // no-op argument
26 #define CAPABILITY(x) \ argument
27 THREAD_ANNOTATION_ATTRIBUTE__(capability(x))
35 #define GUARDED_BY(x) \ argument
36 THREAD_ANNOTATION_ATTRIBUTE__(guarded_by(x))
38 #define PT_GUARDED_BY(x) \ argument
39 THREAD_ANNOTATION_ATTRIBUTE__(pt_guarded_by(x))
74 #define ASSERT_CAPABILITY(x) \ argument
75 THREAD_ANNOTATION_ATTRIBUTE__(assert_capability(x))
[all …]
Dlogging.h178 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (((c) && ::android::base::LogAbortAfterFullExpr()) || (x)) argument
183 #define ABORT_AFTER_LOG_EXPR_IF(c, x) (x) argument
186 #define ABORT_AFTER_LOG_FATAL_EXPR(x) ABORT_AFTER_LOG_EXPR_IF(true, x) argument
250 #define CHECK(x) \ argument
251 LIKELY((x)) || ABORT_AFTER_LOG_FATAL_EXPR(false) || \
255 << "Check failed: " #x << " "
274 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument
275 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument
276 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument
277 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument
[all …]
/system/core/libutils/include/utils/
DByteOrder.h55 #define dtohl(x) (x) argument
56 #define dtohs(x) (x) argument
57 #define htodl(x) (x) argument
58 #define htods(x) (x) argument
62 #define dtohl(x) (android_swap_long(x)) argument
63 #define dtohs(x) (android_swap_short(x)) argument
64 #define htodl(x) (android_swap_long(x)) argument
65 #define htods(x) (android_swap_short(x)) argument
70 #define fromlel(x) (x) argument
71 #define fromles(x) (x) argument
[all …]
/system/core/libnetutils/
Ddhcpmsg.c26 uint8_t *x; in init_dhcp_msg() local
41 x = msg->options; in init_dhcp_msg()
43 *x++ = OPT_COOKIE1; in init_dhcp_msg()
44 *x++ = OPT_COOKIE2; in init_dhcp_msg()
45 *x++ = OPT_COOKIE3; in init_dhcp_msg()
46 *x++ = OPT_COOKIE4; in init_dhcp_msg()
48 *x++ = OPT_MESSAGE_TYPE; in init_dhcp_msg()
49 *x++ = 1; in init_dhcp_msg()
50 *x++ = type; in init_dhcp_msg()
52 return x; in init_dhcp_msg()
[all …]
Ddhcpclient.c166 uint8_t *x; in decode_dhcp_msg() local
180 x = msg->options + 4; in decode_dhcp_msg()
183 opt = *x++; in decode_dhcp_msg()
191 optlen = *x++; in decode_dhcp_msg()
200 memcpy(&mask, x, 4); in decode_dhcp_msg()
205 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
208 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg()
209 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg()
213 memcpy(&info->lease, x, 4); in decode_dhcp_msg()
218 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg()
[all …]
/system/core/init/
Dparser.cpp8 char *x = state->ptr; in next_token() local
18 switch (*x) { in next_token()
20 state->ptr = x; in next_token()
23 x++; in next_token()
24 state->ptr = x; in next_token()
29 x++; in next_token()
32 while (*x && (*x != '\n')) x++; in next_token()
33 if (*x == '\n') { in next_token()
34 state->ptr = x+1; in next_token()
37 state->ptr = x; in next_token()
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h23 #define PERF_ALIGN(x,a) __PERF_ALIGN_MASK(x, (typeof(x)) (a) - 1) argument
25 #define __PERF_ALIGN_MASK(x,mask) (((x) + (mask)) & ~(mask)) argument
36 #define max(x,y) ({ typeof(x) _max1 = (x); typeof(y) _max2 = (y); (void) (& _max1 == & _max2); _max… argument
40 #define min(x,y) ({ typeof(x) _min1 = (x); typeof(y) _min2 = (y); (void) (& _min1 == & _min2); _min… argument
43 #define roundup(x,y) (\ argument
44 { const typeof(y) __y = y; (((x) + (__y - 1)) / __y) * __y; \
58 #define cpu_to_le64(x) (x) argument
59 #define cpu_to_le32(x) (x) argument
74 #define __round_mask(x,y) ((__typeof__(x)) ((y) - 1)) argument
75 #define round_up(x,y) ((((x) - 1) | __round_mask(x, y)) + 1) argument
[all …]
/system/nfc/src/nfc/tags/
Dtags_int.c100 static unsigned int tags_ones32(register unsigned int x);
275 int tags_pow(int x, int y) { in tags_pow() argument
278 ret *= x; in tags_pow()
293 static unsigned int tags_ones32(register unsigned int x) { in tags_ones32() argument
298 x -= ((x >> 1) & 0x55555555); in tags_ones32()
299 x = (((x >> 2) & 0x33333333) + (x & 0x33333333)); in tags_ones32()
300 x = (((x >> 4) + x) & 0x0f0f0f0f); in tags_ones32()
301 x += (x >> 8); in tags_ones32()
302 x += (x >> 16); in tags_ones32()
303 return (x & 0x0000003f); in tags_ones32()
[all …]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h11 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument
12 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument
34 #define max(x, y) ({ \ argument
35 typeof(x) _max1 = (x); \
42 #define min(x, y) ({ \ argument
43 typeof(x) _min1 = (x); \
50 #define roundup(x, y) ( \ argument
53 (((x) + (__y - 1)) / __y) * __y; \
70 #define cpu_to_le64(x) (x) argument
71 #define cpu_to_le32(x) (x) argument
[all …]
/system/extras/perfprofd/quipper/base/
Dport.h16 #define GG_LONGLONG(x) x##I64 argument
17 #define GG_ULONGLONG(x) x##UI64 argument
19 #define GG_LONGLONG(x) x##LL argument
20 #define GG_ULONGLONG(x) x##ULL argument
26 #define GG_INT64_C(x) GG_LONGLONG(x) argument
27 #define GG_UINT64_C(x) GG_ULONGLONG(x) argument
/system/core/libpixelflinger/codeflinger/
Darmreg.h70 #define CPU_ID_ISOLD(x) (((x) & 0x0000f000) == 0x00000000) argument
71 #define CPU_ID_IS7(x) (((x) & 0x0000f000) == 0x00007000) argument
72 #define CPU_ID_ISNEW(x) (!CPU_ID_ISOLD(x) && !CPU_ID_IS7(x)) argument
239 #define CPU_CT_ISIZE(x) ((x) & 0xfff) /* I$ info */ argument
240 #define CPU_CT_DSIZE(x) (((x) >> 12) & 0xfff) /* D$ info */ argument
242 #define CPU_CT_CTYPE(x) (((x) >> 25) & 0xf) /* cache type */ argument
250 #define CPU_CT_xSIZE_LEN(x) ((x) & 0x3) /* line size */ argument
252 #define CPU_CT_xSIZE_ASSOC(x) (((x) >> 3) & 0x7) /* associativity */ argument
253 #define CPU_CT_xSIZE_SIZE(x) (((x) >> 6) & 0x7) /* size */ argument
/system/core/libpixelflinger/
Dfixed.cpp26 int32_t gglRecipQNormalized(int32_t x, int* exponent) in gglRecipQNormalized() argument
28 const int32_t s = x>>31; in gglRecipQNormalized()
29 uint32_t a = s ? -x : x; in gglRecipQNormalized()
60 int32_t gglRecipQ(GGLfixed x, int q) in gglRecipQ() argument
63 x = gglRecipQNormalized(x, &shift); in gglRecipQ()
66 x += 1L << (shift-1); // rounding in gglRecipQ()
67 x >>= shift; in gglRecipQ()
68 return x; in gglRecipQ()
89 GGLfixed gglSqrtRecipx(GGLfixed x) in gglSqrtRecipx() argument
91 if (x == 0) return FIXED_MAX; in gglSqrtRecipx()
[all …]
/system/core/libbacktrace/
DGetPss.cpp27 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
29 #define PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument
30 #define PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument
31 #define PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument
32 #define PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument
33 #define PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument
34 #define PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
/system/core/healthd/
Dhealthd_draw.cpp23 #define LOGE(x...) KLOG_ERROR("charger", x); argument
24 #define LOGV(x...) KLOG_DEBUG("charger", x); argument
71 int x = (screen_width_ - w) / 2 + kSplitOffset; in draw_surface_centered() local
74 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
75 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
77 x += screen_width_ - 2 * kSplitOffset; in draw_surface_centered()
78 LOGV("drawing surface %dx%d+%d+%d\n", w, h, x, y); in draw_surface_centered()
79 gr_blit(surface, 0, 0, w, h, x, y); in draw_surface_centered()
85 int HealthdDraw::draw_text(const GRFont* font, int x, int y, const char* str) { in draw_text() argument
88 if (x < 0) x = (screen_width_ - str_len_px) / 2; in draw_text()
[all …]
/system/core/libcutils/include_vndk/cutils/
Dklog.h40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument
41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument
42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument
43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument
44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
Dbitops.h27 static inline int popcount(unsigned int x) { in popcount() argument
28 return __builtin_popcount(x); in popcount()
31 static inline int popcountl(unsigned long x) { in popcountl() argument
32 return __builtin_popcountl(x); in popcountl()
35 static inline int popcountll(unsigned long long x) { in popcountll() argument
36 return __builtin_popcountll(x); in popcountll()
/system/core/libcutils/include/cutils/
Dklog.h40 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument
41 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument
42 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument
43 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument
44 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
Dbitops.h27 static inline int popcount(unsigned int x) { in popcount() argument
28 return __builtin_popcount(x); in popcount()
31 static inline int popcountl(unsigned long x) { in popcountl() argument
32 return __builtin_popcountl(x); in popcountl()
35 static inline int popcountll(unsigned long long x) { in popcountll() argument
36 return __builtin_popcountll(x); in popcountll()
/system/bt/osi/test/
Dlist_test.cc61 int x; in TEST_F() local
64 EXPECT_FALSE(list_remove(list, &x)); in TEST_F()
71 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local
74 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
76 EXPECT_EQ(list_front(list), &x[0]); in TEST_F()
82 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local
85 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
87 EXPECT_EQ(list_back(list), &x[ARRAY_SIZE(x) - 1]); in TEST_F()
93 int x[] = {1, 2, 3, 4, 5}; in TEST_F() local
96 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) list_append(list, &x[i]); in TEST_F()
[all …]
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h86 GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST;
88 GGLfixed gglSqrtRecipx(GGLfixed x) CONST;
92 int32_t gglRecipQNormalized(int32_t x, int* exponent);
93 int32_t gglRecipQ(GGLfixed x, int q) CONST;
95 inline GGLfixed gglRecip(GGLfixed x) CONST;
96 inline GGLfixed gglRecip(GGLfixed x) { in gglRecip() argument
97 return gglRecipQ(x, 16); in gglRecip()
100 inline GGLfixed gglRecip28(GGLfixed x) CONST;
101 int32_t gglRecip28(GGLfixed x) { in gglRecip28() argument
102 return gglRecipQ(x, 28); in gglRecip28()
[all …]
/system/extras/libpagemap/include/pagemap/
Dpagemap.h163 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
165 #define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument
166 #define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument
167 #define PM_PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument
168 #define PM_PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument
169 #define PM_PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument
170 #define PM_PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
/system/bt/stack/smp/
Dp_256_curvepara.cc59 ec->G.x[7] = 0x6b17d1f2; in p_256_init_curve()
60 ec->G.x[6] = 0xe12c4247; in p_256_init_curve()
61 ec->G.x[5] = 0xf8bce6e5; in p_256_init_curve()
62 ec->G.x[4] = 0x63a440f2; in p_256_init_curve()
63 ec->G.x[3] = 0x77037d81; in p_256_init_curve()
64 ec->G.x[2] = 0x2deb33a0; in p_256_init_curve()
65 ec->G.x[1] = 0xf4a13945; in p_256_init_curve()
66 ec->G.x[0] = 0xd898c296; in p_256_init_curve()

1234567891011