/system/bt/stack/include/ |
D | hcidefs.h | 410 #define HCI_LE_STATES_NON_CONN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_NON_CONN_ADV_OFF] & HC… argument 415 #define HCI_LE_STATES_SCAN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATESSCAN_ADV_OFF] & HCI_SUPP_LE… argument 420 #define HCI_LE_STATES_CONN_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_CONN_ADV_OFF] & HCI_SUPP_L… argument 425 #define HCI_LE_STATES_HI_DUTY_DIR_ADV_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_HI_DUTY_DIR_ADV_OFF… argument 430 #define HCI_LE_STATES_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_PASS_SCAN_OFF] & HCI_SUPP… argument 435 #define HCI_LE_STATES_ACTIVE_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_ACTIVE_SCAN_OFF] & HCI_… argument 440 #define HCI_LE_STATES_INIT_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_INIT_OFF] & HCI_SUPP_LE_STATES… argument 445 #define HCI_LE_STATES_SLAVE_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_SLAVE_OFF] & HCI_SUPP_LE_STAT… argument 450 #define HCI_LE_STATES_NON_CONN_ADV_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_NON_CONN_ADV… argument 455 #define HCI_LE_STATES_SCAN_ADV_PASS_SCAN_SUPPORTED(x) ((x)[HCI_SUPP_LE_STATES_SCAN_ADV_PASS_SC… argument [all …]
|
D | avrc_defs.h | 407 #define AVRC_PF_SELECT_SUPPORTED(x) ((x)[AVRC_PF_SELECT_OFF] & AVRC_PF_SELECT_MASK) argument 412 #define AVRC_PF_UP_SUPPORTED(x) ((x)[AVRC_PF_UP_OFF] & AVRC_PF_UP_MASK) argument 417 #define AVRC_PF_DOWN_SUPPORTED(x) ((x)[AVRC_PF_DOWN_OFF] & AVRC_PF_DOWN_MASK) argument 422 #define AVRC_PF_LEFT_SUPPORTED(x) ((x)[AVRC_PF_LEFT_OFF] & AVRC_PF_LEFT_MASK) argument 427 #define AVRC_PF_RIGHT_SUPPORTED(x) ((x)[AVRC_PF_RIGHT_OFF] & AVRC_PF_RIGHT_MASK) argument 432 #define AVRC_PF_RIGHTUP_SUPPORTED(x) ((x)[AVRC_PF_RIGHTUP_OFF] & AVRC_PF_RIGHTUP_MASK) argument 437 #define AVRC_PF_RIGHTDOWN_SUPPORTED(x) ((x)[AVRC_PF_RIGHTDOWN_OFF] & AVRC_PF_RIGHTDOWN_MASK) argument 442 #define AVRC_PF_LEFTUP_SUPPORTED(x) ((x)[AVRC_PF_LEFTUP_OFF] & AVRC_PF_LEFTUP_MASK) argument 447 #define AVRC_PF_LEFTDOWN_SUPPORTED(x) ((x)[AVRC_PF_LEFTDOWN_OFF] & AVRC_PF_LEFTDOWN_MASK) argument 452 #define AVRC_PF_ROOT_MENU_SUPPORTED(x) ((x)[AVRC_PF_ROOT_MENU_OFF] & AVRC_PF_ROOT_MENU_MASK) argument [all …]
|
/system/core/include/utils/ |
D | ByteOrder.h | 55 #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/ |
D | dhcpmsg.c | 26 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 …]
|
D | dhcpclient.c | 168 uint8_t *x; in decode_dhcp_msg() local 182 x = msg->options + 4; in decode_dhcp_msg() 185 opt = *x++; in decode_dhcp_msg() 193 optlen = *x++; in decode_dhcp_msg() 202 memcpy(&mask, x, 4); in decode_dhcp_msg() 207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg() 210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg() 211 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg() 215 memcpy(&info->lease, x, 4); in decode_dhcp_msg() 220 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg() [all …]
|
/system/core/init/ |
D | parser.cpp | 28 char *x = state->ptr; in next_token() local 38 switch (*x) { in next_token() 40 state->ptr = x; in next_token() 43 x++; in next_token() 44 state->ptr = x; in next_token() 49 x++; in next_token() 52 while (*x && (*x != '\n')) x++; in next_token() 53 if (*x == '\n') { in next_token() 54 state->ptr = x+1; in next_token() 57 state->ptr = x; in next_token() [all …]
|
D | log.h | 22 #define ERROR(x...) init_klog_write(KLOG_ERROR_LEVEL, x) argument 23 #define NOTICE(x...) init_klog_write(KLOG_NOTICE_LEVEL, x) argument 24 #define INFO(x...) init_klog_write(KLOG_INFO_LEVEL, x) argument
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/ |
D | kernel.h | 23 #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/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/ |
D | kernel.h | 11 #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/ |
D | port.h | 16 #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/ |
D | armreg.h | 70 #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/include/private/pixelflinger/ |
D | ggl_fixed.h | 86 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/core/libpixelflinger/ |
D | fixed.cpp | 26 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/base/include/base/ |
D | logging.h | 117 #define CHECK(x) \ argument 118 if (UNLIKELY(!(x))) \ 121 << "Check failed: " #x << " " 139 #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) argument 140 #define CHECK_NE(x, y) CHECK_OP(x, y, != ) argument 141 #define CHECK_LE(x, y) CHECK_OP(x, y, <= ) argument 142 #define CHECK_LT(x, y) CHECK_OP(x, y, < ) argument 143 #define CHECK_GE(x, y) CHECK_OP(x, y, >= ) argument 144 #define CHECK_GT(x, y) CHECK_OP(x, y, > ) argument 176 #define CHECK_CONSTEXPR(x, out, dummy) \ argument [all …]
|
/system/core/include/cutils/ |
D | bitops.h | 49 #define BITS_TO_WORDS(x) (((x) + BITS_PER_WORD - 1) / BITS_PER_WORD) argument 50 #define BIT_IN_WORD(x) ((x) % BITS_PER_WORD) argument 51 #define BIT_WORD(x) ((x) / BITS_PER_WORD) argument 52 #define BIT_MASK(x) (1 << BIT_IN_WORD(x)) argument 103 static inline int popcount(unsigned int x) in popcount() argument 105 return __builtin_popcount(x); in popcount() 108 static inline int popcountl(unsigned long x) in popcountl() argument 110 return __builtin_popcountl(x); in popcountl() 113 static inline int popcountll(unsigned long long x) in popcountll() argument 115 return __builtin_popcountll(x); in popcountll()
|
D | klog.h | 43 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 44 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 45 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 46 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 47 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
/system/core/libbacktrace/ |
D | GetPss.cpp | 27 #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/bt/osi/test/ |
D | list_test.cpp | 61 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) in TEST_F() 75 list_append(list, &x[i]); in TEST_F() 77 EXPECT_EQ(list_front(list), &x[0]); in TEST_F() 83 int x[] = { 1, 2, 3, 4, 5 }; in TEST_F() local 86 for (size_t i = 0; i < ARRAY_SIZE(x); ++i) in TEST_F() 87 list_append(list, &x[i]); in TEST_F() 89 EXPECT_EQ(list_back(list), &x[ARRAY_SIZE(x) - 1]); in TEST_F() [all …]
|
/system/bt/stack/gap/ |
D | gap_utils.c | 36 UINT8 x; in gap_allocate_cb() local 38 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++) in gap_allocate_cb() 45 p_cb->index = x; in gap_allocate_cb() 90 UINT8 x; in gap_is_service_busy() local 92 for (x = 0; x < GAP_MAX_BLOCKS; x++, p_cb++) in gap_is_service_busy()
|
/system/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 159 #define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1)) argument 161 #define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument 162 #define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument 163 #define PM_PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument 164 #define PM_PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument 165 #define PM_PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 166 #define PM_PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/fs_mgr/ |
D | fs_mgr_priv.h | 23 #define INFO(x...) KLOG_INFO("fs_mgr", x) argument 24 #define WARNING(x...) KLOG_WARNING("fs_mgr", x) argument 25 #define ERROR(x...) KLOG_ERROR("fs_mgr", x) argument
|
/system/bt/stack/smp/ |
D | aes.c | 80 #define f1(x) (x) argument 81 #define f2(x) ((x << 1) ^ (((x >> 7) & 1) * WPOLY)) argument 82 #define f4(x) ((x << 2) ^ (((x >> 6) & 1) * WPOLY) ^ (((x >> 6) & 2) * WPOLY)) argument 83 #define f8(x) ((x << 3) ^ (((x >> 5) & 1) * WPOLY) ^ (((x >> 5) & 2) * WPOLY) \ argument 84 ^ (((x >> 5) & 4) * WPOLY)) 85 #define d2(x) (((x) >> 1) ^ ((x) & 1 ? DPOLY : 0)) argument 87 #define f3(x) (f2(x) ^ x) argument 88 #define f9(x) (f8(x) ^ x) argument 89 #define fb(x) (f8(x) ^ f2(x) ^ x) argument 90 #define fd(x) (f8(x) ^ f4(x) ^ x) argument [all …]
|
D | p_256_curvepara.c | 61 ec->G.x[7] = 0x6b17d1f2; in p_256_init_curve() 62 ec->G.x[6] = 0xe12c4247; in p_256_init_curve() 63 ec->G.x[5] = 0xf8bce6e5; in p_256_init_curve() 64 ec->G.x[4] = 0x63a440f2; in p_256_init_curve() 65 ec->G.x[3] = 0x77037d81; in p_256_init_curve() 66 ec->G.x[2] = 0x2deb33a0; in p_256_init_curve() 67 ec->G.x[1] = 0xf4a13945; in p_256_init_curve() 68 ec->G.x[0] = 0xd898c296; in p_256_init_curve()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 128 int32_t x = half(v[i]); in fixed_fft() local 130 v[i] = x + y; in fixed_fft() 131 v[i + p] = x - y; in fixed_fft() 139 int32_t x = half(v[i]); in fixed_fft() local 141 v[i] = x - y; in fixed_fft() 142 v[i + p] = x + y; in fixed_fft() 158 int32_t x = half(v[i]); in fixed_fft_real() local 160 int32_t y = z - (x ^ 0xFFFF); in fixed_fft_real() 161 x = half(x + (z ^ 0xFFFF)); in fixed_fft_real() 163 v[i] = x - y; in fixed_fft_real() [all …]
|
/system/core/toolbox/ |
D | r.c | 81 uint32_t* x = (uint32_t*) (((uintptr_t) page) + (addr & 4095)); in main() local 82 if(set) *x = value; in main() 83 fprintf(stderr,"%08"PRIxPTR": %08x\n", addr, *x); in main() 87 uint16_t* x = (uint16_t*) (((uintptr_t) page) + (addr & 4095)); in main() local 88 if(set) *x = value; in main() 89 fprintf(stderr,"%08"PRIxPTR": %04x\n", addr, *x); in main() 93 uint8_t* x = (uint8_t*) (((uintptr_t) page) + (addr & 4095)); in main() local 94 if(set) *x = value; in main() 95 fprintf(stderr,"%08"PRIxPTR": %02x\n", addr, *x); in main()
|