Home
last modified time | relevance | path

Searched refs:filesize (Results 1 – 25 of 175) sorted by relevance

1234567

/external/mesa3d/src/panfrost/bifrost/
Dcmdline.c90 unsigned filesize = ftell(fp); in disassemble() local
93 unsigned char *code = malloc(filesize); in disassemble()
94 unsigned res = fread(code, 1, filesize, fp); in disassemble()
95 if (res != filesize) { in disassemble()
100 disassemble_bifrost(stdout, code, filesize, verbose); in disassemble()
144 unsigned filesize = ftell(fp); in run() local
147 unsigned char *code = malloc(filesize); in run()
148 unsigned res = fread(code, 1, filesize, fp); in run()
149 if (res != filesize) { in run()
160 .size = filesize in run()
/external/openthread/third_party/mbedtls/repo/programs/aes/
Dcrypt_and_hash.c106 long filesize, offset; in main() local
109 __int64 filesize, offset; in main() local
111 off_t filesize, offset; in main() local
240 filesize = fseek( fin, 0L, SEEK_END ); in main()
257 filesize = li_size.QuadPart; in main()
259 if( ( filesize = lseek( fileno( fin ), 0, SEEK_END ) ) < 0 ) in main()
280 buffer[i] = (unsigned char)( filesize >> ( i << 3 ) ); in main()
379 for( offset = 0; offset < filesize; offset += mbedtls_cipher_get_block_size( &cipher_ctx ) ) in main()
381 … ilen = ( (unsigned int) filesize - offset > mbedtls_cipher_get_block_size( &cipher_ctx ) ) ? in main()
382 mbedtls_cipher_get_block_size( &cipher_ctx ) : (unsigned int) ( filesize - offset ); in main()
[all …]
/external/mbedtls/programs/aes/
Dcrypt_and_hash.c92 long filesize, offset; in main() local
95 __int64 filesize, offset; in main() local
97 off_t filesize, offset; in main() local
225 filesize = fseek( fin, 0L, SEEK_END ); in main()
242 filesize = li_size.QuadPart; in main()
244 if( ( filesize = lseek( fileno( fin ), 0, SEEK_END ) ) < 0 ) in main()
265 buffer[i] = (unsigned char)( filesize >> ( i << 3 ) ); in main()
366 for( offset = 0; offset < filesize; offset += mbedtls_cipher_get_block_size( &cipher_ctx ) ) in main()
368 … ilen = ( (unsigned int) filesize - offset > mbedtls_cipher_get_block_size( &cipher_ctx ) ) ? in main()
369 mbedtls_cipher_get_block_size( &cipher_ctx ) : (unsigned int) ( filesize - offset ); in main()
[all …]
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c41 static long long filesize = 1 * 1024 * 1024; variable
166 tocopy = filesize / aio_blksize; in async_run()
178 iosize = MIN(filesize - offset, aio_blksize); in async_run()
239 if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) in setup()
242 leftover = filesize % aio_blksize; in setup()
245 filesize = filesize - leftover + aio_blksize; in setup()
247 tst_res(TINFO, "Rounded filesize to the next block size multiple: %llu", filesize); in setup()
253 fill_with_rand_data(srcfd, filesize); in setup()
294 if (st.st_size != filesize) { in run()
295 tst_res(TFAIL, "Expected destination file size %lld but it's %ld", filesize, st.st_size); in run()
[all …]
Ddio_read.c32 static long long filesize = 128 * 1024 * 1024; variable
117 if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) in setup()
120 if (tst_parse_filesize(str_writesize, &writesize, 1, filesize)) in setup()
123 if (tst_parse_filesize(str_readsize, &readsize, 1, filesize)) in setup()
150 do_buffered_writes(fd, iobuf, filesize, writesize, 1); in run()
155 SAFE_FTRUNCATE(fd, filesize); in run()
161 do_buffered_writes(fd, iobuf, filesize, writesize, 0); in run()
167 fail = do_direct_reads(filename, iobuf, filesize, readsize); in run()
Ddio_sparse.c38 static long long filesize = 100 * 1024 * 1024; variable
73 if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) in setup()
103 SAFE_FTRUNCATE(fd, filesize); in run()
109 io_read(filename, filesize, run_child); in run()
114 dio_sparse(fd, alignment, filesize, writesize, offset); in run()
Daiodio_sparse.c40 static long long filesize = 100 * 1024 * 1024; variable
155 if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) in setup()
163 if ((numaio * writesize) > filesize) { in setup()
164 numaio = filesize / writesize; in setup()
177 dirty_freeblocks(filesize); in setup()
197 io_read(filename, filesize, run_child); in run()
204 aiodio_sparse(filename, alignment, writesize, filesize, numaio); in run()
Ddio_truncate.c45 static long long filesize = 64 * 1024; variable
95 if (tst_parse_filesize(str_filesize, &filesize, 1, LLONG_MAX)) in setup()
135 dio_read(filename, alignment, filesize); in run()
143 io_append(filename, 0, wflags, filesize, numappends); in run()
145 io_append("junkfile", 0xaa, wflags, filesize, numappends); in run()
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c192 off_t filesize; in test_file() local
204 filesize = lseek(fd, 0, SEEK_END); in test_file()
205 if (filesize & 0xffff) in test_file()
206 filesize &= ~0xfffful; in test_file()
208 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file()
215 file_name, filesize, fileblock); in test_file()
219 return run_test(fileblock, filesize); in test_file()
/external/tensorflow/tensorflow/python/checkpoint/
Dcheckpoint_metrics_test.py45 def _get_checkpoint_size(self, api_label, filesize): argument
46 return metrics.GetCheckpointSize(api_label=api_label, filesize=filesize)
61 filesize = util._get_checkpoint_size(ckpt_path)
62 self.assertEqual(self._get_checkpoint_size(api_label, filesize), i + 1)
92 filesize = util._get_checkpoint_size(ckpt_path)
93 self.assertEqual(self._get_checkpoint_size(api_label, filesize), i + 1)
/external/skia/infra/bots/buildstats/
Dbuildstats_flutter.py123 filesize = int(parts[3])
132 print('\t%-100s: %s' % (symbol, bytes_or_kb(filesize)))
133 sub_total += filesize
134 grand_total += filesize
159 filesize = int(parts[3])
161 print('%-10s: %-80s in %s' % (bytes_or_kb(filesize), symbol, this_file))
/external/tensorflow/tensorflow/python/saved_model/
Dpywrap_saved_model_metrics.cc188 uint64 filesize = 0; in DefineMetricsModule() local
189 if (!env->GetFileSize(filename, &filesize).ok()) { in DefineMetricsModule()
193 int64_t filesize_mb = filesize / 1000; in DefineMetricsModule()
207 [](const char* api_label, int64_t filesize) { in DefineMetricsModule() argument
208 metrics::CheckpointSize(api_label, filesize).IncrementBy(1); in DefineMetricsModule()
217 [](const char* api_label, uint64 filesize) { in DefineMetricsModule() argument
218 return metrics::CheckpointSize(api_label, filesize).value(); in DefineMetricsModule()
/external/ltp/testcases/network/stress/ftp/
Dftp-upload-stress01-rmt.sh31 filesize="$4"
47 echo -n "Z" | dd of=$filename bs=1 seek=$(($filesize - 1)) > /dev/null 2>&1 || \
57 if [ "$send_filesize" != "size=$filesize" ]; then
58 tst_resm TINFO "Expected file size '$filesize'"
Dftp-upload-stress02-rmt.sh33 filesize="$4"
49 echo -n "Z" | dd of=$filename bs=1 seek=$(($filesize - 1)) > /dev/null 2>&1 || \
83 if [ "$send_filesize" != "size=$filesize" ]; then
84 tst_resm TINFO "Expected file size '$filesize'"
/external/f2fs-tools/fsck/
Dquotaio_v2.c176 u64 filesize; in v2_init_io() local
192 filesize = qf->filesize = f2fs_quota_size(qf); in v2_init_io()
194 ((filesize + F2FS_BLKSIZE - 1) >> F2FS_BLKSIZE_BITS < in v2_init_io()
195 last_blkofs + 1 || filesize > qf_maxsize[qtype])) { in v2_init_io()
203 filesize, in v2_init_io()
205 filesize = (last_blkofs + 1) << F2FS_BLKSIZE_BITS; in v2_init_io()
206 f2fs_filesize_update(qf->sbi, qf->ino, filesize); in v2_init_io()
210 (filesize + QT_BLKSIZE - 1) >> QT_BLKSIZE_BITS)) { in v2_init_io()
213 filesize, info->dqi_qtree.dqi_blocks); in v2_init_io()
/external/e2fsprogs/lib/ext2fs/
Dgetsize.c83 LARGE_INTEGER filesize; in ext2fs_get_device_size2() local
85 DWORD filesize; in ext2fs_get_device_size2() local
110 } else if (GetFileSizeEx(h, &filesize)) { in ext2fs_get_device_size2()
111 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size2()
115 filesize = GetFileSize(h, NULL);
116 if (INVALID_FILE_SIZE != filesize) {
117 *retblocks = filesize / blocksize;
/external/curl/docs/examples/
Dftpgetinfo.c49 curl_off_t filesize = 0; in main() local
76 &filesize); in main()
77 if((CURLE_OK == res) && (filesize>0)) in main()
79 filename, filesize); in main()
Dimap-append.c94 size_t filesize; in main() local
114 filesize = strlen(payload_text); in main()
115 if(filesize <= LONG_MAX) in main()
116 infilesize = (long)filesize; in main()
/external/vboot_reference/utility/
Dbmpblk_font.c172 size_t imgsize, filesize, diff; in main() local
190 filesize = imgsize; in main()
192 filesize = ((imgsize + 4) / 4) * 4; in main()
193 diff = filesize - imgsize; in main()
198 entry.info.original_size = filesize; in main()
199 entry.info.compressed_size = filesize; in main()
/external/vboot_reference/futility/
Dcmd_gbb_utility.c365 off_t filesize; in do_gbb_utility() local
467 inbuf = read_entire_file(infile, &filesize); in do_gbb_utility()
471 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
527 inbuf = read_entire_file(infile, &filesize); in do_gbb_utility()
531 gbb = FindGbbHeader(inbuf, filesize); in do_gbb_utility()
538 outbuf = (uint8_t *) malloc(filesize); in do_gbb_utility()
543 filesize, strerror(errno)); in do_gbb_utility()
548 memcpy(outbuf, inbuf, filesize); in do_gbb_utility()
549 gbb = FindGbbHeader(outbuf, filesize); in do_gbb_utility()
604 outfile, outbuf, filesize); in do_gbb_utility()
[all …]
/external/autotest/client/cros/storage_tests/
Dfio_test.py91 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): argument
101 if filesize == 0:
105 self.__filesize = filesize
113 if filesize == 0:
118 elif filesize != 0:
131 if filesize != 0:
132 self.__filesize = min(self.__filesize, filesize)
/external/ltp/testcases/network/stress/ns-tools/
Dcreate_file55 filesize=$2
57 if [ $filesize -le 0 ]; then
63 echo -n "Z" | dd of=$filename bs=1 seek=`expr $filesize - 1` >/dev/null 2>&1
/external/libcups/scheduler/
Dfile.c22 int filesize);
406 int filesize) /* I - Size of file */ in overwrite_data() argument
422 while (filesize > 0) in overwrite_data()
424 if (filesize > bufsize) in overwrite_data()
427 bytes = filesize; in overwrite_data()
432 filesize -= bytes; in overwrite_data()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress10.c140 off64_t filesize = FILESIZE; variable
143 off_t filesize = FILESIZE; variable
228 filesize = atoll(optarg);
230 filesize = atoi(optarg);
232 if (filesize < 0) {
279 filename, filesize, pattern);
282 filename, filesize, pattern);
362 for (bytes_left = filesize; bytes_left; bytes_left -= c) {
525 off64_t filesize; local
529 off_t filesize;
[all …]
/external/ltp/testcases/network/stress/http/
Dhttp-stress01-rmt.sh34 filesize="$3"
47 if [ $recv_filesize != "size=$filesize" ]; then
48 tst_resm TINFO "expected file size '$filesize'"

1234567