Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 73) sorted by relevance

123

/system/chre/external/kiss_fft/
Dkiss_fftr.c30 kiss_fftr_cfg st = NULL; in kiss_fftr_alloc() local
43 st = (kiss_fftr_cfg) KISS_FFT_MALLOC (memneeded); in kiss_fftr_alloc()
46 st = (kiss_fftr_cfg) mem; in kiss_fftr_alloc()
49 if (!st) in kiss_fftr_alloc()
52 st->substate = (kiss_fft_cfg) (st + 1); /*just beyond kiss_fftr_state struct */ in kiss_fftr_alloc()
53 st->tmpbuf = (kiss_fft_cpx *) (((char *) st->substate) + subsize); in kiss_fftr_alloc()
54 st->super_twiddles = st->tmpbuf + nfft; in kiss_fftr_alloc()
55 kiss_fft_alloc(nfft, inverse_fft, st->substate, &subsize); in kiss_fftr_alloc()
62 kf_cexp (st->super_twiddles+i,phase); in kiss_fftr_alloc()
64 return st; in kiss_fftr_alloc()
[all …]
Dkiss_fft.c24 const kiss_fft_cfg st, in kf_bfly2() argument
29 kiss_fft_cpx * tw1 = st->twiddles; in kf_bfly2()
47 const kiss_fft_cfg st, in kf_bfly4() argument
58 tw3 = tw2 = tw1 = st->twiddles; in kf_bfly4()
77 if(st->inverse) { in kf_bfly4()
95 const kiss_fft_cfg st, in kf_bfly3() argument
104 epi3 = st->twiddles[fstride*m]; in kf_bfly3()
106 tw1=tw2=st->twiddles; in kf_bfly3()
139 const kiss_fft_cfg st, in kf_bfly5() argument
146 kiss_fft_cpx * twiddles = st->twiddles; in kf_bfly5()
[all …]
/system/core/toolbox/upstream-netbsd/bin/dd/
Dmisc.c105 mS = tv2mS(tv) - tv2mS(st.start); in posix_summary()
112 (unsigned long long)st.in_full, (unsigned long long)st.in_part, in posix_summary()
113 (unsigned long long)st.out_full, (unsigned long long)st.out_part); in posix_summary()
115 if (st.swab) { in posix_summary()
117 (unsigned long long)st.swab, in posix_summary()
118 (st.swab == 1) ? "block" : "blocks"); in posix_summary()
121 if (st.trunc) { in posix_summary()
123 (unsigned long long)st.trunc, in posix_summary()
124 (st.trunc == 1) ? "block" : "blocks"); in posix_summary()
127 if (st.sparse) { in posix_summary()
[all …]
Ddd.c79 STAT st; /* statistics */ variable
280 (void)gettimeofday(&st.start, NULL); /* Statistics timestamp. */ in setup()
339 if (cpy_cnt && (st.in_full + st.in_part) >= cpy_cnt) in dd_in()
392 ++st.in_full; in dd_in()
397 ++st.in_full; in dd_in()
406 ++st.in_part; in dd_in()
423 ++st.swab; in dd_in()
542 st.bytes += pending; in dd_out()
543 st.sparse += pending/out.dbsz; in dd_out()
544 st.out_full += pending/out.dbsz; in dd_out()
[all …]
/system/bt/stack/smp/
Daes.cc419 static void shift_sub_rows(uint_8t st[N_BLOCK]) { in shift_sub_rows()
422 st[0] = s_box(st[0]); in shift_sub_rows()
423 st[4] = s_box(st[4]); in shift_sub_rows()
424 st[8] = s_box(st[8]); in shift_sub_rows()
425 st[12] = s_box(st[12]); in shift_sub_rows()
427 tt = st[1]; in shift_sub_rows()
428 st[1] = s_box(st[5]); in shift_sub_rows()
429 st[5] = s_box(st[9]); in shift_sub_rows()
430 st[9] = s_box(st[13]); in shift_sub_rows()
431 st[13] = s_box(tt); in shift_sub_rows()
[all …]
/system/core/adb/sysdeps/
Dstat_test.cpp29 struct stat st; in TEST() local
30 ASSERT_EQ(0, stat(td.path, &st)); in TEST()
31 ASSERT_FALSE(S_ISREG(st.st_mode)); in TEST()
32 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST()
35 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST()
39 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST()
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST()
[all …]
/system/core/libcutils/
Dashmem-dev.cpp52 struct stat st; in __ashmem_open_locked() local
59 ret = TEMP_FAILURE_RETRY(fstat(fd, &st)); in __ashmem_open_locked()
66 if (!S_ISCHR(st.st_mode) || !st.st_rdev) { in __ashmem_open_locked()
72 __ashmem_rdev = st.st_rdev; in __ashmem_open_locked()
91 struct stat st; in __ashmem_is_ashmem() local
93 if (TEMP_FAILURE_RETRY(fstat(fd, &st)) < 0) { in __ashmem_is_ashmem()
98 if (S_ISCHR(st.st_mode) && st.st_rdev) { in __ashmem_is_ashmem()
115 if (st.st_rdev == rdev) { in __ashmem_is_ashmem()
123 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
128 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
/system/core/adb/
Dfile_sync_client.cpp317 bool FinishStat(struct stat* st) { in FinishStat() argument
320 memset(st, 0, sizeof(*st)); in FinishStat()
336 st->st_dev = msg.stat_v2.dev; in FinishStat()
337 st->st_ino = msg.stat_v2.ino; in FinishStat()
338 st->st_mode = msg.stat_v2.mode; in FinishStat()
339 st->st_nlink = msg.stat_v2.nlink; in FinishStat()
340 st->st_uid = msg.stat_v2.uid; in FinishStat()
341 st->st_gid = msg.stat_v2.gid; in FinishStat()
342 st->st_size = msg.stat_v2.size; in FinishStat()
343 st->st_atime = msg.stat_v2.atime; in FinishStat()
[all …]
Dfile_sync_service.cpp108 struct stat st = {}; in do_lstat_v1() local
109 lstat(path, &st); in do_lstat_v1()
110 msg.stat_v1.mode = st.st_mode; in do_lstat_v1()
111 msg.stat_v1.size = st.st_size; in do_lstat_v1()
112 msg.stat_v1.time = st.st_mtime; in do_lstat_v1()
127 struct stat st = {}; in do_stat_v2() local
128 int rc = stat_fn(path, &st); in do_stat_v2()
132 msg.stat_v2.dev = st.st_dev; in do_stat_v2()
133 msg.stat_v2.ino = st.st_ino; in do_stat_v2()
134 msg.stat_v2.mode = st.st_mode; in do_stat_v2()
[all …]
/system/core/adb/sysdeps/win32/
Dstat.cpp55 struct adb_stat st; in adb_stat() local
56 int result = wstat(path_wide.c_str(), &st); in adb_stat()
58 if (!S_ISDIR(st.st_mode)) { in adb_stat()
64 memcpy(s, &st, sizeof(st)); in adb_stat()
/system/core/libnativebridge/tests/
DCodeCacheCreate_test.cpp29 struct stat st; in TEST_F() local
30 ASSERT_EQ(-1, stat(kCodeCache, &st)); in TEST_F()
41 ASSERT_EQ(0, stat(kCodeCache, &st)); in TEST_F()
42 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST_F()
DCodeCacheExists_test.cpp29 struct stat st; in TEST_F() local
30 ASSERT_EQ(-1, stat(kCodeCache, &st)); in TEST_F()
44 ASSERT_EQ(0, stat(kCodeCache, &st)); in TEST_F()
45 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST_F()
DCodeCacheStatFail_test.cpp33 struct stat st; in TEST_F() local
34 ASSERT_EQ(-1, stat(kCodeCacheStatFail, &st)); in TEST_F()
/system/bt/stack/srvc/
Dsrvc_battery.cc69 tGATT_STATUS st = GATT_NOT_FOUND; in battery_s_write_attr_value() local
90 st = GATT_WRITE_NOT_PERMIT; in battery_s_write_attr_value()
94 *p_status = st; in battery_s_write_attr_value()
106 tGATT_STATUS st = GATT_NOT_FOUND; in battery_s_read_attr_value() local
113 if (is_long) st = GATT_NOT_LONG; in battery_s_read_attr_value()
131 st = GATT_ERR_UNLIKELY; in battery_s_read_attr_value()
137 *p_status = st; in battery_s_read_attr_value()
273 void Battery_Rsp(uint8_t app_id, tGATT_STATUS st, uint8_t event, in Battery_Rsp() argument
296 srvc_sr_rsp(p_inst->pending_clcb_idx, st, &rsp); in Battery_Rsp()
304 srvc_sr_rsp(p_inst->pending_clcb_idx, st, &rsp); in Battery_Rsp()
[all …]
Dsrvc_dis.cc121 tGATT_STATUS st = GATT_NOT_FOUND; in dis_read_attr_value() local
128 st = GATT_NOT_LONG; in dis_read_attr_value()
131 st = GATT_SUCCESS; in dis_read_attr_value()
152 st = GATT_INVALID_OFFSET; in dis_read_attr_value()
179 *p_status = st; in dis_read_attr_value()
390 tDIS_STATUS st = DIS_SUCCESS; in DIS_SrUpdate() local
400 st = DIS_ILLEGAL_PARAM; in DIS_SrUpdate()
411 st = DIS_SUCCESS; in DIS_SrUpdate()
418 return st; in DIS_SrUpdate()
/system/core/run-as/
Drun-as.cpp69 struct stat st; in check_directory() local
70 if (TEMP_FAILURE_RETRY(lstat(path, &st)) == -1) return false; in check_directory()
76 if (!S_ISDIR(st.st_mode)) return false; in check_directory()
79 if (st.st_uid != uid || st.st_gid != uid) return false; in check_directory()
82 if ((st.st_mode & (S_IROTH|S_IWOTH)) != 0) return false; in check_directory()
/system/extras/ioshark/
Dcompile_ioshark_subr.c41 struct ioshark_file_state st; in files_db_write_objects() local
48 st.fileno = db_node->fileno; in files_db_write_objects()
49 st.size = db_node->size; in files_db_write_objects()
50 st.global_filename_ix = in files_db_write_objects()
52 if (ioshark_write_file_state(fp, &st) != 1) { in files_db_write_objects()
117 struct stat st; in init_filename_cache() local
120 if (stat("ioshark_filenames", &st) < 0) { in init_filename_cache()
130 filename_cache_num_entries = st.st_size / in init_filename_cache()
Ddump_ioshark_filenames.c38 struct stat st; in main() local
45 if (stat("ioshark_filenames", &st) < 0) { in main()
50 filename_cache_num_entries = st.st_size / in main()
/system/extras/simpleperf/
Dutils.cpp146 struct stat st; in IsDir() local
147 if (stat(dirpath.c_str(), &st) == 0) { in IsDir()
148 if (S_ISDIR(st.st_mode)) { in IsDir()
156 struct stat st; in IsRegularFile() local
157 if (stat(filename.c_str(), &st) == 0) { in IsRegularFile()
158 if (S_ISREG(st.st_mode)) { in IsRegularFile()
166 struct stat st; in GetFileSize() local
167 if (stat(filename.c_str(), &st) == 0) { in GetFileSize()
168 return static_cast<uint64_t>(st.st_size); in GetFileSize()
/system/core/libunwindstack/tools/
Dunwind_symbols.cpp39 struct stat st; in main() local
40 if (stat(argv[1], &st) == -1) { in main()
44 if (!S_ISREG(st.st_mode)) { in main()
/system/extras/kexec_tools/
Dkexecload.c31 struct stat st; in get_file_size() local
32 fstat(f, &st); in get_file_size()
33 return st.st_size; in get_file_size()
/system/core/base/
Dfile.cpp200 struct stat st; in RemoveFileIfExists() local
203 int result = stat(path.c_str(), &st); in RemoveFileIfExists()
204 bool file_type_removable = (result == 0 && S_ISREG(st.st_mode)); in RemoveFileIfExists()
206 int result = lstat(path.c_str(), &st); in RemoveFileIfExists()
207 bool file_type_removable = (result == 0 && (S_ISREG(st.st_mode) || S_ISLNK(st.st_mode))); in RemoveFileIfExists()
/system/extras/perfprofd/
Dperfprofdcore.cc285 int st = 0; in get_camera_active() local
286 TEMP_FAILURE_RETRY(waitpid(pid, &st, 0)); in get_camera_active()
562 int st = 0; in invoke_perf() local
563 pid_t reaped = TEMP_FAILURE_RETRY(waitpid(pid, &st, 0)); in invoke_perf()
567 } else if (WIFSIGNALED(st)) { in invoke_perf()
568 if (WTERMSIG(st) == SIGHUP && config.ShouldStopProfiling()) { in invoke_perf()
572 LOG(WARNING) << "perf killed by signal " << WTERMSIG(st); in invoke_perf()
573 } else if (WEXITSTATUS(st) != 0) { in invoke_perf()
574 LOG(WARNING) << "perf bad exit status " << WEXITSTATUS(st); in invoke_perf()
/system/timezone/zone_compactor/main/java/
DZoneCompactor.java84 StringTokenizer st = new StringTokenizer(s); in ZoneCompactor() local
85 st.nextToken(); in ZoneCompactor()
86 String to = st.nextToken(); in ZoneCompactor()
87 String from = st.nextToken(); in ZoneCompactor()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c291 size_t st = 0; in procline() local
296 while (st <= l->len) { in procline()
297 pmatch.rm_so = st; in procline()
311 st = pmatch.rm_eo; in procline()
316 st = pmatch.rm_eo; in procline()
357 if (st == (size_t)pmatch.rm_so) in procline()

123