/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.c | 8 #define RAW(x...) log_write(6, x) argument 70 char *x = state->ptr; in next_token() local 80 switch (*x) { in next_token() 82 state->ptr = x; in next_token() 85 x++; in next_token() 86 state->ptr = x; in next_token() 91 x++; in next_token() 94 while (*x && (*x != '\n')) x++; in next_token() 95 if (*x == '\n') { in next_token() 96 state->ptr = x+1; in next_token() [all …]
|
D | log.h | 22 #define ERROR(x...) KLOG_ERROR("init", x) argument 23 #define NOTICE(x...) KLOG_NOTICE("init", x) argument 24 #define INFO(x...) KLOG_INFO("init", 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
|
D | disassem.c | 282 #define insn_condition(x) arm32_insn_conditions[(x >> 28) & 0x0f] argument 283 #define insn_blktrans(x) insn_block_transfers[(x >> 23) & 3] argument 284 #define insn_stkblktrans(x) insn_stack_block_transfers[(3*((x >> 20)&1))^((x >> 23)&3)] argument 285 #define op2_shift(x) op_shifts[(x >> 5) & 3] argument 286 #define insn_fparnd(x) insn_fpa_rounding[(x >> 5) & 0x03] argument 287 #define insn_fpaprec(x) insn_fpa_precision[(((x >> 18) & 2)|(x >> 7)) & 1] argument 288 #define insn_fpaprect(x) insn_fpa_precision[(((x >> 21) & 2)|(x >> 15)) & 1] argument 289 #define insn_fpaimm(x) insn_fpaconstants[x & 0x07] argument
|
/system/core/include/cutils/ |
D | klog.h | 26 #define KLOG_ERROR(tag,x...) klog_write(3, "<3>" tag ": " x) argument 27 #define KLOG_WARNING(tag,x...) klog_write(4, "<4>" tag ": " x) argument 28 #define KLOG_NOTICE(tag,x...) klog_write(5, "<5>" tag ": " x) argument 29 #define KLOG_INFO(tag,x...) klog_write(6, "<6>" tag ": " x) argument 30 #define KLOG_DEBUG(tag,x...) klog_write(7, "<7>" tag ": " x) argument
|
D | bitops.h | 24 static inline int popcount(unsigned int x) in popcount() argument 26 return __builtin_popcount(x); in popcount() 29 static inline int popcountl(unsigned long x) in popcountl() argument 31 return __builtin_popcountl(x); in popcountl() 34 static inline int popcountll(unsigned long long x) in popcountll() argument 36 return __builtin_popcountll(x); in popcountll()
|
/system/core/adb/ |
D | file_sync_service.h | 21 static inline unsigned __swap_uint32(unsigned x) in __swap_uint32() argument 23 return (((x) & 0xFF000000) >> 24) in __swap_uint32() 24 | (((x) & 0x00FF0000) >> 8) in __swap_uint32() 25 | (((x) & 0x0000FF00) << 8) in __swap_uint32() 26 | (((x) & 0x000000FF) << 24); in __swap_uint32() 28 #define htoll(x) __swap_uint32(x) argument 29 #define ltohl(x) __swap_uint32(x) argument 32 #define htoll(x) (x) argument 33 #define ltohl(x) (x) argument
|
/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 …]
|
D | raster.cpp | 27 static void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y); 28 static void ggl_rasterPos2i(void* con, GGLint x, GGLint y); 40 void ggl_rasterPos2x(void* con, GGLfixed x, GGLfixed y) in ggl_rasterPos2x() argument 44 c->state.raster.x = x; in ggl_rasterPos2x() 48 void ggl_rasterPos2i(void* con, GGLint x, GGLint y) in ggl_rasterPos2i() argument 50 ggl_rasterPos2x(con, gglIntToFixed(x), gglIntToFixed(y)); in ggl_rasterPos2i() 72 GGLint xd = gglFixedToIntRound(c->state.raster.x); in ggl_copyPixels() 150 GGLint x = where[0]; in gglBitBlit() local 175 const GGLint s0 = Ucr - x; in gglBitBlit() 178 c->procs.recti(c, x, y, x+w, y+h); in gglBitBlit() [all …]
|
/system/core/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/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 132 #define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1)) argument 134 #define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument 135 #define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument 136 #define PM_PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument 137 #define PM_PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument 138 #define PM_PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 139 #define PM_PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/toolbox/ |
D | r.c | 74 unsigned *x = (unsigned*) (((unsigned) page) + (addr & 4095)); in r_main() local 75 if(set) *x = value; in r_main() 76 fprintf(stderr,"%08x: %08x\n", addr, *x); in r_main() 80 unsigned short *x = (unsigned short*) (((unsigned) page) + (addr & 4095)); in r_main() local 81 if(set) *x = value; in r_main() 82 fprintf(stderr,"%08x: %04x\n", addr, *x); in r_main() 86 unsigned char *x = (unsigned char*) (((unsigned) page) + (addr & 4095)); in r_main() local 87 if(set) *x = value; in r_main() 88 fprintf(stderr,"%08x: %02x\n", addr, *x); in r_main()
|
D | newfs_msdos.c | 88 #define mk1(p, x) \ argument 89 (p) = (u_int8_t)(x) 91 #define mk2(p, x) \ argument 92 (p)[0] = (u_int8_t)(x), \ 93 (p)[1] = (u_int8_t)((x) >> 010) 95 #define mk4(p, x) \ argument 96 (p)[0] = (u_int8_t)(x), \ 97 (p)[1] = (u_int8_t)((x) >> 010), \ 98 (p)[2] = (u_int8_t)((x) >> 020), \ 99 (p)[3] = (u_int8_t)((x) >> 030) [all …]
|
D | watchprops.c | 29 char *x; in announce() local 33 for(x = value; *x; x++) { in announce() 34 if((*x < 32) || (*x > 127)) *x = '.'; in announce()
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 126 int32_t x = half(v[i]); in fixed_fft() local 128 v[i] = x + y; in fixed_fft() 129 v[i + p] = x - y; in fixed_fft() 137 int32_t x = half(v[i]); in fixed_fft() local 139 v[i] = x - y; in fixed_fft() 140 v[i + p] = x + y; in fixed_fft() 156 int32_t x = half(v[i]); in fixed_fft_real() local 158 int32_t y = z - (x ^ 0xFFFF); in fixed_fft_real() 159 x = half(x + (z ^ 0xFFFF)); in fixed_fft_real() 161 v[i] = x - y; in fixed_fft_real() [all …]
|
/system/vold/ |
D | hash.h | 62 cshift (u_int32_t x, unsigned int n) in cshift() argument 64 x = CRAYFIX(x); in cshift() 65 return CRAYFIX((x << n) | (x >> (32 - n))); in cshift()
|
/system/core/toolbox/grep/ |
D | queue.c | 60 enqueue(struct str *x) in enqueue() argument 65 item->data.dat = grep_malloc(sizeof(char) * x->len); in enqueue() 66 item->data.len = x->len; in enqueue() 67 item->data.line_no = x->line_no; in enqueue() 68 item->data.off = x->off; in enqueue() 69 memcpy(item->data.dat, x->dat, x->len); in enqueue() 70 item->data.file = x->file; in enqueue()
|
/system/core/libsparse/ |
D | sparse_defs.h | 42 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) argument 43 #define ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y))) argument 44 #define ALIGN_DOWN(x, y) ((y) * ((x) / (y))) argument
|
/system/extras/tests/bionic/libc/other/ |
D | test_atomics.c | 8 int x = 5; in main() local 10 while (x > -20) { in main() 11 printf("old_x=%d\n", __atomic_dec(&x)); in main() 12 printf("x=%d\n", x); in main()
|
/system/extras/tests/bionic/libc/common/ |
D | test_executable_destructor.c | 39 int x = 0; variable 47 x = 1; in on_load() 54 if (x == 1) in on_exit() 64 if (x != 1) { in main() 101 x = 2; in main()
|
/system/core/fastboot/ |
D | util_linux.c | 40 char *x; in get_my_path() local 49 x = strrchr(path,'/'); in get_my_path() 50 if(x) x[1] = 0; in get_my_path()
|
D | util_osx.c | 34 char *x; in get_my_path() local 42 x = strrchr(s, '/'); in get_my_path() 43 if(x) x[1] = 0; in get_my_path()
|
/system/core/fs_mgr/ |
D | fs_mgr_priv.h | 23 #define INFO(x...) KLOG_INFO("fs_mgr", x) argument 24 #define ERROR(x...) KLOG_ERROR("fs_mgr", x) argument
|