Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 75) sorted by relevance

123

/system/extras/sane_schedstat/
Dsane_schedstat.c56 struct cpu_stat tmp; variable
88 &cpu, &tmp.yld_count, in parse_cpu_v15()
89 &tmp.sched_switch, &tmp.sched_count, &tmp.sched_goidle, in parse_cpu_v15()
90 &tmp.ttwu_count, &tmp.ttwu_local, in parse_cpu_v15()
91 &tmp.cpu_time, &tmp.run_delay, &tmp.pcount) != 10) { in parse_cpu_v15()
96 cpu_delta[cpu].yld_count = tmp.yld_count - cpu_prev[cpu].yld_count; in parse_cpu_v15()
97 cpu_delta[cpu].sched_switch = tmp.sched_switch - cpu_prev[cpu].sched_switch; in parse_cpu_v15()
98 cpu_delta[cpu].sched_count = tmp.sched_count - cpu_prev[cpu].sched_count; in parse_cpu_v15()
99 cpu_delta[cpu].sched_goidle = tmp.sched_goidle - cpu_prev[cpu].sched_goidle; in parse_cpu_v15()
100 cpu_delta[cpu].ttwu_count = tmp.ttwu_count - cpu_prev[cpu].ttwu_count; in parse_cpu_v15()
[all …]
/system/core/libmincrypt/
Dsha.c45 uint32_t tmp = *p++ << 24; in SHA1_Transform() local
46 tmp |= *p++ << 16; in SHA1_Transform()
47 tmp |= *p++ << 8; in SHA1_Transform()
48 tmp |= *p++; in SHA1_Transform()
49 W[t] = tmp; in SHA1_Transform()
63 uint32_t tmp = rol(5,A) + E + W[t]; in SHA1_Transform() local
66 tmp += (D^(B&(C^D))) + 0x5A827999; in SHA1_Transform()
68 tmp += (B^C^D) + 0x6ED9EBA1; in SHA1_Transform()
70 tmp += ((B&C)|(D&(B|C))) + 0x8F1BBCDC; in SHA1_Transform()
72 tmp += (B^C^D) + 0xCA62C1D6; in SHA1_Transform()
[all …]
Dp256_ec.c291 static void felem_reduce_degree(felem out, u64 tmp[17]) { in felem_reduce_degree()
305 tmp2[0] = (limb)(tmp[0] & kBottom29Bits); in felem_reduce_degree()
311 tmp2[1] = ((limb) tmp[0]) >> 29; in felem_reduce_degree()
312 tmp2[1] |= (((limb)(tmp[0] >> 32)) << 3) & kBottom28Bits; in felem_reduce_degree()
313 tmp2[1] += ((limb) tmp[1]) & kBottom28Bits; in felem_reduce_degree()
318 tmp2[i] = ((limb)(tmp[i - 2] >> 32)) >> 25; in felem_reduce_degree()
319 tmp2[i] += ((limb)(tmp[i - 1])) >> 28; in felem_reduce_degree()
320 tmp2[i] += (((limb)(tmp[i - 1] >> 32)) << 4) & kBottom29Bits; in felem_reduce_degree()
321 tmp2[i] += ((limb) tmp[i]) & kBottom29Bits; in felem_reduce_degree()
329 tmp2[i] = ((limb)(tmp[i - 2] >> 32)) >> 25; in felem_reduce_degree()
[all …]
Dsha256.c64 uint32_t tmp = *p++ << 24; in SHA256_Transform() local
65 tmp |= *p++ << 16; in SHA256_Transform()
66 tmp |= *p++ << 8; in SHA256_Transform()
67 tmp |= *p++; in SHA256_Transform()
68 W[t] = tmp; in SHA256_Transform()
162 uint8_t tmp = (uint8_t) (cnt >> ((7 - i) * 8)); in SHA256_final() local
163 SHA256_update(ctx, &tmp, 1); in SHA256_final()
167 uint32_t tmp = ctx->state[i]; in SHA256_final() local
168 *p++ = tmp >> 24; in SHA256_final()
169 *p++ = tmp >> 16; in SHA256_final()
[all …]
Drsa.c107 uint32_t tmp = in modpow() local
112 a[i] = tmp; in modpow()
137 uint32_t tmp = aaa[i]; in modpow() local
138 *inout++ = tmp >> 24; in modpow()
139 *inout++ = tmp >> 16; in modpow()
140 *inout++ = tmp >> 8; in modpow()
141 *inout++ = tmp >> 0; in modpow()
Dp256.c148 p256_digit tmp[P256_NDIGITS * 2 + 1] = { 0 }; in p256_modmul() local
154 if (i) tmp[i + P256_NDIGITS - 1] = top; in p256_modmul()
155 top = mulAdd(a, P256_DIGIT(b, i), 0, tmp + i); in p256_modmul()
159 tmp[i + P256_NDIGITS - 1] = top; in p256_modmul()
160 top = mulAdd(a, top_b, 0, tmp + i); in p256_modmul()
172 top = subTop(top_reducer, reducer, top, tmp + i); in p256_modmul()
177 top = subM(MOD, top, tmp + i, ~(top - 1)); in p256_modmul()
182 top = tmp[i + P256_NDIGITS - 1]; in p256_modmul()
187 addM(MOD, 0, tmp, subM(MOD, 0, tmp, -1)); in p256_modmul()
189 memcpy(c, tmp, P256_NBYTES); in p256_modmul()
/system/core/adb/
Dadb_client.c47 char* tmp = adb_query("host:devices"); in adb_get_emulator_console_port() local
48 char* p = tmp; in adb_get_emulator_console_port()
49 if(!tmp) { in adb_get_emulator_console_port()
62 free(tmp); in adb_get_emulator_console_port()
70 free(tmp); in adb_get_emulator_console_port()
95 char tmp[5]; in switch_socket_transport() local
122 snprintf(tmp, sizeof tmp, "%04x", len); in switch_socket_transport()
124 if(writex(fd, tmp, 4) || writex(fd, service, len)) { in switch_socket_transport()
178 char tmp[5]; in _adb_connect() local
188 snprintf(tmp, sizeof tmp, "%04x", len); in _adb_connect()
[all …]
Dfile_sync_service.c111 char tmp[1024 + 256 + 1]; in do_list() local
115 memcpy(tmp, path, len); in do_list()
116 tmp[len] = '/'; in do_list()
117 fname = tmp + len + 1; in do_list()
132 if(lstat(tmp, &st) == 0) { in do_list()
328 char *tmp; local
333 tmp = strrchr(path,',');
334 if(tmp) {
335 *tmp = 0;
337 mode = strtoul(tmp + 1, NULL, 0);
[all …]
Dfile_sync_client.c345 char tmp[64]; in sync_send() local
350 snprintf(tmp, sizeof(tmp), ",%d", mode); in sync_send()
351 r = strlen(tmp); in sync_send()
357 writex(fd, rpath, len) || writex(fd, tmp, r)) { in sync_send()
695 char *tmp = malloc(tmplen); in copy_local_dir_remote() local
696 if(tmp == 0) return -1; in copy_local_dir_remote()
697 snprintf(tmp, tmplen, "%s/",lpath); in copy_local_dir_remote()
698 lpath = tmp; in copy_local_dir_remote()
702 char *tmp = malloc(tmplen); in copy_local_dir_remote() local
703 if(tmp == 0) return -1; in copy_local_dir_remote()
[all …]
/system/core/libdiskconfig/
Ddiskconfig.c41 char tmp[64]; in parse_len() local
45 strncpy(tmp, str, sizeof(tmp)); in parse_len()
46 tmp[sizeof(tmp)-1] = '\0'; in parse_len()
47 len_str = strlen(tmp); in parse_len()
53 switch(tmp[len_str - 1]) { in parse_len()
60 tmp[len_str - 1] = '\0'; in parse_len()
66 *plen = strtoull(tmp, NULL, 0); in parse_len()
101 const char *tmp; in load_partitions() local
111 if (!(tmp = config_str(partnode, "type", NULL))) { in load_partitions()
117 if (!strcmp(tmp, "linux")) { in load_partitions()
[all …]
Ddiskutils.c40 ssize_t tmp; in write_raw_image() local
84 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) { in write_raw_image()
91 if (!tmp) in write_raw_image()
93 nr_bytes -= tmp; in write_raw_image()
/system/core/init/
Dueventd.c55 char tmp[32]; in ueventd_main() local
95 snprintf(tmp, sizeof(tmp), "/ueventd.%s.rc", hardware); in ueventd_main()
96 ueventd_parse_config_file(tmp); in ueventd_main()
133 char *tmp = 0; in set_device_permission() local
159 asprintf(&tmp, "/dev/mtd/mtd%d", n); in set_device_permission()
160 name = tmp; in set_device_permission()
176 free(tmp); in set_device_permission()
183 free(tmp); in set_device_permission()
191 free(tmp); in set_device_permission()
197 free(tmp); in set_device_permission()
Dinit.c256 char tmp[32]; in service_start() local
262 sprintf(tmp, "%d,%d", dup(fd), sz); in service_start()
263 add_environment("ANDROID_PROPERTY_WORKSPACE", tmp); in service_start()
341 char *tmp = strdup(dynamic_args); in service_start() local
342 char *next = tmp; in service_start()
457 char *tmp = NULL; in msg_start() local
463 tmp = strdup(name); in msg_start()
464 if (tmp) { in msg_start()
465 args = strchr(tmp, ':'); in msg_start()
469 svc = service_find_by_name(tmp); in msg_start()
[all …]
Dsignal_handler.c81 char tmp[128]; in wait_for_one_process() local
82 snprintf(tmp, sizeof(tmp), ANDROID_SOCKET_DIR"/%s", si->name); in wait_for_one_process()
83 unlink(tmp); in wait_for_one_process()
131 char tmp[32]; in handle_signal() local
134 read(signal_recv_fd, tmp, sizeof(tmp)); in handle_signal()
/system/core/libsysutils/src/
DFrameworkListener.cpp89 char tmp[CMD_BUF_SIZE]; in dispatchCommand() local
91 char *q = tmp; in dispatchCommand()
92 char *qlimit = tmp + sizeof(tmp) - 1; in dispatchCommand()
98 memset(tmp, 0, sizeof(tmp)); in dispatchCommand()
144 int cmdNum = (int)strtol(tmp, &endptr, 0); in dispatchCommand()
154 argv[argc++] = strdup(tmp); in dispatchCommand()
156 memset(tmp, 0, sizeof(tmp)); in dispatchCommand()
157 q = tmp; in dispatchCommand()
166 argv[argc++] = strdup(tmp); in dispatchCommand()
/system/core/toolbox/
Dls.c101 char tmp[1024]; in show_total_size() local
113 snprintf(tmp, sizeof(tmp), "/%s", de->d_name); in show_total_size()
115 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, de->d_name); in show_total_size()
117 if (lstat(tmp, &s) < 0) { in show_total_size()
118 fprintf(stderr, "stat failed on %s: %s\n", tmp, strerror(errno)); in show_total_size()
308 char tmp[4096]; in listfile() local
312 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, filename); in listfile()
313 pathname = tmp; in listfile()
338 char tmp[4096]; in listdir() local
379 snprintf(tmp, sizeof(tmp), "/%s", de->d_name); in listdir()
[all …]
/system/core/libutils/tests/
DBitSet_test.cpp41 BitSet32 tmp = b1 | b2; in TEST_F() local
42 EXPECT_EQ(tmp.count(), 2u); in TEST_F()
43 EXPECT_TRUE(tmp.hasBit(2) && tmp.hasBit(4)); in TEST_F()
57 BitSet32 tmp = b1 & b2; in TEST_F() local
58 EXPECT_TRUE(tmp.isEmpty()); in TEST_F()
76 BitSet32 tmp = b1 & b2; in TEST_F() local
77 EXPECT_EQ(tmp.count(), 1u); in TEST_F()
78 EXPECT_TRUE(tmp.hasBit(6)); in TEST_F()
163 BitSet64 tmp = b1 | b2; in TEST_F() local
164 EXPECT_EQ(tmp.count(), 2u); in TEST_F()
[all …]
/system/keymaster/
Docb.c180 __m128i tmp = _mm_srai_epi32(bl, 31); in double_block() local
181 tmp = _mm_and_si128(tmp, mask); in double_block()
182 tmp = _mm_shuffle_epi32(tmp, _MM_SHUFFLE(2, 1, 0, 3)); in double_block()
184 return _mm_xor_si128(bl, tmp); in double_block()
268 block tmp = vshrq_n_s8(b, 7); in double_block() local
269 tmp = vandq_s8(tmp, mask); in double_block()
270 tmp = vextq_s8(tmp, tmp, 1); /* Rotate high byte to end */ in double_block()
272 return veorq_s8(tmp, b); in double_block()
440 kp[idx] = _mm_castps_si128(_mm_shuffle_ps(_mm_castsi128_ps(tmp), _mm_castsi128_ps(x0), 68)); \
447 tmp = x3
[all …]
/system/extras/tests/sdcard/
Dprofile_sdcard.sh40 …f_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
41 local t=$(grep 'write_total' /tmp/tmp-sdcard.txt | tail -n 1 | cut -f 6 -d ' ')
/system/core/toolbox/upstream-netbsd/bin/dd/
Dargs.c115 struct arg *ap, tmp; in jcl() local
136 tmp.name = oper; in jcl()
137 if (!(ap = bsearch(&tmp, args, in jcl()
139 errx(EXIT_FAILURE, "unknown operand %s", tmp.name); in jcl()
145 tmp.name); in jcl()
363 struct conv *cp, tmp; in f_conv() local
366 tmp.name = strsep(&arg, ","); in f_conv()
367 if (!(cp = bsearch(&tmp, clist, in f_conv()
369 errx(EXIT_FAILURE, "unknown conversion %s", tmp.name); in f_conv()
374 "%s: illegal conversion combination", tmp.name); in f_conv()
/system/core/include/cutils/
Datomic-arm.h109 int32_t prev, tmp, status; in android_atomic_add() local
115 : "=&r" (prev), "=&r" (tmp), in android_atomic_add()
136 int32_t prev, tmp, status; in android_atomic_and() local
142 : "=&r" (prev), "=&r" (tmp), in android_atomic_and()
153 int32_t prev, tmp, status; in android_atomic_or() local
159 : "=&r" (prev), "=&r" (tmp), in android_atomic_or()
/system/core/toolbox/upstream-netbsd/usr.bin/du/
Ddu.c294 uint64_t tmp; in linkchk() local
299 const int HTBITS = CHAR_BIT * sizeof(tmp); in linkchk()
336 tmp = dev; in linkchk()
337 tmp <<= HTBITS>>1; in linkchk()
338 tmp |= ino; in linkchk()
339 tmp *= HTCONST; in linkchk()
340 h = tmp >> (HTBITS - htshift); in linkchk()
341 h2 = 1 | ( tmp >> (HTBITS - (htshift<<1) - 1)); /* must be odd */ in linkchk()
/system/media/camera/docs/
Dmetadata-parser-sanity-check28 tmp_out=$(mktemp -t tmp.XXXXXXXXXX)
29 tmp_tidy1=$(mktemp -t tmp.XXXXXXXXXX)
30 tmp_tidy2=$(mktemp -t tmp.XXXXXXXXXX)
/system/vold/
DExt4.cpp125 char tmp[32]; in format() local
126 snprintf(tmp, sizeof(tmp), "%u", numSectors * 512); in format()
127 const char *size = tmp; in format()
Dvdc.c146 char tmp[4]; in do_monitor() local
148 strncpy(tmp, buffer + offset, 3); in do_monitor()
149 tmp[3] = '\0'; in do_monitor()
150 code = atoi(tmp); in do_monitor()

123