Home
last modified time | relevance | path

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

123456789

/external/ltp/utils/ffsb-6.0-rc2/
Dfileops.c79 static uint64_t get_random_offset(randdata_t * rd, uint64_t filesize, in get_random_offset() argument
83 return getllrandom(rd, filesize); in get_random_offset()
85 filesize /= 4096; in get_random_offset()
86 return getllrandom(rd, filesize) * 4096; in get_random_offset()
95 uint64_t filesize; in ffsb_readfile() local
110 filesize = ffsb_get_filesize(curfile->name); in ffsb_readfile()
112 assert(filesize >= read_size); in ffsb_readfile()
116 uint64_t range = filesize - read_size; in ffsb_readfile()
136 if (minfilesize > filesize) { in ffsb_readfile()
141 read_skipsize, read_blocksize, filesize); in ffsb_readfile()
[all …]
/external/u-boot/test/fs/
Dfs-test.sh234 printenv filesize
235 setenv filesize
238 printenv filesize
239 setenv filesize
244 printenv filesize
245 setenv filesize
253 printenv filesize
255 md5sum $addr \$filesize
256 setenv filesize
260 printenv filesize
[all …]
/external/u-boot/tools/
Dmkenvimage.c75 unsigned int filesize = 0, envsize = 0, datasize = 0; in main() local
164 filebuf = realloc(filebuf, filesize + readlen); in main()
169 readbytes = read(txt_fd, filebuf + filesize, readlen); in main()
175 filesize += readbytes; in main()
194 filesize = txt_file_stat.st_size; in main()
196 filebuf = mmap(NULL, sizeof(*envptr) * filesize, PROT_READ, in main()
200 sizeof(*envptr) * filesize, in main()
204 filebuf = malloc(sizeof(*envptr) * filesize); in main()
205 ret = read(txt_fd, filebuf, sizeof(*envptr) * filesize); in main()
206 if (ret != sizeof(*envptr) * filesize) { in main()
[all …]
/external/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_sparse.c58 int dio_sparse(int fd, int align, int writesize, int filesize, int offset) in dio_sparse() argument
71 for (i = offset; i < filesize;) { in dio_sparse()
98 int filesize = 100 * 1024 * 1024; in main() local
119 filesize = strtol(optarg, &endp, 0); in main()
120 filesize = scale_by_kmg(filesize, *endp); in main()
143 dirty_freeblocks(filesize); in main()
147 SAFE_FTRUNCATE(cleanup, fd, filesize); in main()
155 read_sparse(filename, filesize); in main()
168 ret = dio_sparse(fd, alignment, writesize, filesize, offset); in main()
Daiodio_sparse.c63 int aiodio_sparse(int fd, int align, int writesize, int filesize, int num_aio) in aiodio_sparse() argument
72 if ((num_aio * writesize) > filesize) in aiodio_sparse()
73 num_aio = filesize / writesize; in aiodio_sparse()
119 while (offset < filesize) { in aiodio_sparse()
126 &offset, filesize, aio_inflight); in aiodio_sparse()
215 int filesize = 100 * 1024 * 1024; in main() local
241 filesize = strtol(optarg, &endp, 0); in main()
242 filesize = in main()
243 (int)scale_by_kmg((long long)filesize, *endp); in main()
262 dirty_freeblocks(filesize); in main()
[all …]
/external/u-boot/board/boundary/nitrogen6x/
D6x_upgrade.txt5 echo "read $filesize bytes from SD card" ;
9 if sf read 0x12400000 $offset $filesize ; then
10 if cmp.b 0x12000000 0x12400000 $filesize ; then
23 sf write 0x12000000 $offset $filesize ;
25 if sf read 0x12400000 $offset $filesize ; then
26 if cmp.b 0x12000000 0x12400000 $filesize ; then
/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/skia/infra/bots/buildstats/
Dbuildstats_flutter.py118 filesize = int(parts[3])
127 print '\t%-100s: %s' % (symbol, bytes_or_kb(filesize))
128 sub_total += filesize
129 grand_total += filesize
154 filesize = int(parts[3])
156 print '%-10s: %-80s in %s' % (bytes_or_kb(filesize), symbol, this_file)
/external/skqp/infra/bots/buildstats/
Dbuildstats_flutter.py118 filesize = int(parts[3])
127 print '\t%-100s: %s' % (symbol, bytes_or_kb(filesize))
128 sub_total += filesize
129 grand_total += filesize
154 filesize = int(parts[3])
156 print '%-10s: %-80s in %s' % (bytes_or_kb(filesize), symbol, this_file)
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress01.c124 off64_t filesize = FILESIZE; variable
127 off_t filesize = FILESIZE; variable
185 filesize = atoll(optarg);
187 filesize = atoi(optarg);
189 if (filesize < 0) {
238 filename, filesize, pattern);
241 filename, filesize, pattern);
313 for (bytes_left = filesize; bytes_left; bytes_left -= c) {
462 off64_t filesize; local
466 off_t filesize;
[all …]
Dmmapstress10.c141 off64_t filesize = FILESIZE; variable
144 off_t filesize = FILESIZE; variable
229 filesize = atoll(optarg);
231 filesize = atoi(optarg);
233 if (filesize < 0) {
280 filename, filesize, pattern);
283 filename, filesize, pattern);
363 for (bytes_left = filesize; bytes_left; bytes_left -= c) {
526 off64_t filesize; local
530 off_t filesize;
[all …]
/external/lz4/programs/
Dlz4io.c335 unsigned long long filesize = 0; in LZ4IO_compressFilename_Legacy() local
370 filesize += inSize; in LZ4IO_compressFilename_Legacy()
376 (int)(filesize>>20), (double)compressedfilesize/filesize*100); in LZ4IO_compressFilename_Legacy()
389 filesize += !filesize; /* avoid division by zero (ratio) */ in LZ4IO_compressFilename_Legacy()
392 filesize, compressedfilesize, (double)compressedfilesize / filesize * 100); in LZ4IO_compressFilename_Legacy()
395 (double)filesize / seconds / 1024 / 1024); in LZ4IO_compressFilename_Legacy()
531 unsigned long long filesize = 0; in LZ4IO_compressFilename_extRess() local
569 filesize += readSize; in LZ4IO_compressFilename_extRess()
578 …(unsigned)(filesize>>20), (double)compressedfilesize/(filesize+!filesize)*100); /* avoid divisio… in LZ4IO_compressFilename_extRess()
604 …TE(2, "\rRead : %u MB ==> %.2f%% ", (unsigned)(filesize>>20), (double)compressedfilesize/files… in LZ4IO_compressFilename_extRess()
[all …]
/external/autotest/client/site_tests/hardware_StorageFio/
Dhardware_StorageFio.py70 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): argument
80 if filesize == 0:
84 self.__filesize = filesize
92 if filesize == 0:
97 elif filesize != 0:
109 if filesize != 0:
110 self.__filesize = min(self.__filesize, filesize)
/external/libmtp/examples/
Dthumb.c49 uint64_t filesize; local
84 filesize = statbuff.st_size;
85 imagedata = malloc(filesize);
95 ret = read(fd, imagedata, filesize);
109 thumb->size = filesize;
Dfiles.c33 if (file->filesize == (uint32_t) -1) { in dump_fileinfo()
37 printf(" File size %llu (0x%016I64X) bytes\n", file->filesize, file->filesize); in dump_fileinfo()
40 (long long unsigned int) file->filesize, in dump_fileinfo()
41 (long long unsigned int) file->filesize); in dump_fileinfo()
Dsendfile.c51 uint64_t filesize; in sendfile_function() local
63 filesize = sb.st_size; in sendfile_function()
72 genfile->filesize = filesize; in sendfile_function()
Dalbumart.c50 uint64_t filesize; local
116 filesize = (uint64_t) statbuff.st_size;
117 imagedata = malloc(filesize * sizeof(uint8_t));
128 ret = read(fd, imagedata, filesize);
142 albumart->size = filesize;
/external/ltp/testcases/network/stress/ftp/
Dftp-upload-stress01-rmt31 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-rmt33 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/e2fsprogs/lib/ext2fs/
Dgetsize.c82 LARGE_INTEGER filesize; in ext2fs_get_device_size2() local
84 DWORD filesize; in ext2fs_get_device_size2() local
111 } else if (GetFileSizeEx(dev, &filesize)) { in ext2fs_get_device_size2()
112 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size2()
116 filesize = GetFileSize(dev, NULL);
117 if (INVALID_FILE_SIZE != filesize) {
118 *retblocks = filesize / blocksize;
/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/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/curl/docs/examples/
Dftpgetinfo.c47 double filesize = 0.0; in main() local
75 &filesize); in main()
76 if((CURLE_OK == res) && (filesize>0.0)) in main()
77 printf("filesize %s: %0.0f bytes\n", filename, filesize); in main()
/external/fsverity-utils/
Dcmd_setup.c236 u64 filesize, const u8 *root_hash, in append_fsverity_descriptor() argument
261 desc->orig_file_size = cpu_to_le64(filesize); in append_fsverity_descriptor()
344 u64 filesize; in fsveritysetup() local
356 if (!get_file_size(in, &filesize)) in fsveritysetup()
359 if (filesize <= 0) { in fsveritysetup()
370 if (!filedes_seek(out, filesize, SEEK_SET)) in fsveritysetup()
379 if (!copy_file_data(in, out, filesize)) in fsveritysetup()
384 aligned_filesize = ALIGN(filesize, params->blocksize); in fsveritysetup()
385 if (!write_zeroes(out, aligned_filesize - filesize)) in fsveritysetup()
391 if (!apply_elisions_and_patches(params, in, filesize, in fsveritysetup()
[all …]
/external/u-boot/board/freescale/c29xpcie/
DREADME65 => protect off eff40000 +$filesize
66 => erase eff40000 +$filesize
67 => cp.b $loadaddr eff40000 $filesize
76 => protect off e9f40000 +$filesize
77 => erase e9f40000 +$filesize
78 => cp.b $loadaddr e9f40000 $filesize
98 => sf write $loadaddr 0 $filesize

123456789