/external/ltp/utils/ffsb-6.0-rc2/ |
D | fileops.c | 79 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/syslinux/gpxe/src/util/ |
D | modrom.pl | 153 my $filesize = read(R, $rom, MAXROMSIZE+1); 155 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 156 print "$filesize bytes read\n" if $opts{'v'}; 168 $romsize = ($filesize + 511) & ~511 176 $romsize > MINROMSIZE and $romsize >= 2*$filesize; 180 if ($filesize > $romsize) { 183 $romsize = ($filesize + 511) & ~511; 210 my $filesize = read(R, $rom, MAXROMSIZE+1); 212 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 213 print "$filesize bytes read\n" if $opts{'v'};
|
D | makerom.pl | 155 my $filesize = read(R, $rom, MAXROMSIZE+1); 157 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 158 print "$filesize bytes read\n" if $opts{'v'}; 170 $romsize = ($filesize + 511) & ~511 175 $romsize > MINROMSIZE and $romsize >= 2*$filesize; 178 if ($filesize > $romsize) { 181 $romsize = ($filesize + 511) & ~511; 216 my $filesize = read(R, $rom, MAXROMSIZE+1); 218 defined($filesize) and $filesize >= 3 or die "Cannot get first 3 bytes of file\n"; 219 print "$filesize bytes read\n" if $opts{'v'};
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | dio_sparse.c | 58 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()
|
D | aiodio_sparse.c | 60 int aiodio_sparse(int fd, int align, int writesize, int filesize, int num_aio) in aiodio_sparse() argument 69 if ((num_aio * writesize) > filesize) in aiodio_sparse() 70 num_aio = filesize / writesize; in aiodio_sparse() 116 while (offset < filesize) { in aiodio_sparse() 123 &offset, filesize, aio_inflight); in aiodio_sparse() 212 int filesize = 100 * 1024 * 1024; in main() local 238 filesize = strtol(optarg, &endp, 0); in main() 239 filesize = in main() 240 (int)scale_by_kmg((long long)filesize, *endp); in main() 259 dirty_freeblocks(filesize); in main() [all …]
|
/external/lz4/programs/ |
D | lz4io.c | 324 unsigned long long filesize = 0; in LZ4IO_compressFilename_Legacy() local 359 filesize += inSize; in LZ4IO_compressFilename_Legacy() 364 …AYUPDATE(2, "\rRead : %i MB ==> %.2f%% ", (int)(filesize>>20), (double)compressedfilesize/files… in LZ4IO_compressFilename_Legacy() 376 filesize += !filesize; /* avoid division by zero (ratio) */ in LZ4IO_compressFilename_Legacy() 379 filesize, compressedfilesize, (double)compressedfilesize / filesize * 100); in LZ4IO_compressFilename_Legacy() 381 …DISPLAYLEVEL(4,"Done in %.2f s ==> %.2f MB/s\n", seconds, (double)filesize / seconds / 1024 / 1024… in LZ4IO_compressFilename_Legacy() 439 unsigned long long filesize = 0; in LZ4IO_compressFilename_extRess() local 475 filesize += readSize; in LZ4IO_compressFilename_extRess() 484 …(unsigned)(filesize>>20), (double)compressedfilesize/(filesize+!filesize)*100); /* avoid divisio… in LZ4IO_compressFilename_extRess() 510 …TE(2, "\rRead : %u MB ==> %.2f%% ", (unsigned)(filesize>>20), (double)compressedfilesize/files… in LZ4IO_compressFilename_extRess() [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | subpage_prot.c | 180 off_t filesize; in test_file() local 190 filesize = lseek(fd, 0, SEEK_END); in test_file() 191 if (filesize & 0xffff) in test_file() 192 filesize &= ~0xfffful; in test_file() 194 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file() 201 file_name, filesize, fileblock); in test_file() 205 return run_test(fileblock, filesize); in test_file()
|
/external/autotest/client/site_tests/hardware_StorageFio/ |
D | hardware_StorageFio.py | 62 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): argument 72 if filesize == 0: 76 self.__filesize = filesize 84 if filesize == 0: 89 elif filesize != 0: 101 if filesize != 0: 102 self.__filesize = min(self.__filesize, filesize)
|
/external/libmtp/examples/ |
D | thumb.c | 49 uint64_t filesize; local 84 filesize = statbuff.st_size; 85 imagedata = malloc(filesize); 95 ret = read(fd, imagedata, filesize); 109 thumb->size = filesize;
|
D | files.c | 33 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()
|
D | sendfile.c | 51 uint64_t filesize; in sendfile_function() local 63 filesize = sb.st_size; in sendfile_function() 72 genfile->filesize = filesize; in sendfile_function()
|
D | albumart.c | 50 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/ |
D | ftp-upload-stress01-rmt | 31 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'"
|
D | ftp-upload-stress02-rmt | 33 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'"
|
D | ftp-download-stress01-rmt | 29 filesize="$3" 45 if [ "$recv_filesize" != "size=$filesize" ]; then 46 tst_resm TINFO "Expected file size '$filesize'"
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress01.c | 124 off64_t filesize = FILESIZE; variable 127 off_t filesize = FILESIZE; variable 185 filesize = atoll(optarg); 187 filesize = atoi(optarg); 189 if (filesize < 0) { 239 filename, filesize, pattern); 242 filename, filesize, pattern); 314 for (bytes_left = filesize; bytes_left; bytes_left -= c) { 463 off64_t filesize; local 467 off_t filesize; [all …]
|
D | mmapstress10.c | 141 off64_t filesize = FILESIZE; variable 144 off_t filesize = FILESIZE; variable 229 filesize = atoll(optarg); 231 filesize = atoi(optarg); 233 if (filesize < 0) { 282 filename, filesize, pattern); 285 filename, filesize, pattern); 365 for (bytes_left = filesize; bytes_left; bytes_left -= c) { 528 off64_t filesize; local 532 off_t filesize; [all …]
|
/external/curl/docs/examples/ |
D | ftpgetinfo.c | 47 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/valgrind/coregrind/m_ume/ |
D | macho.c | 131 vki_size_t filesize; in open_dylinker() local 153 filesize = sb.size; in open_dylinker() 155 err = load_mach_file(fd, 0, filesize, MH_DYLINKER, filename, out_info); in open_dylinker() 180 vki_size_t filesize; // page-aligned in load_segment() local 212 if (segcmd->fileoff == 0 && segcmd->filesize != 0) { in load_segment() 222 if (segcmd->fileoff + segcmd->filesize > size) { in load_segment() 243 filesize = VG_PGROUNDUP(segcmd->filesize); in load_segment() 245 if (filesize > 0) { in load_segment() 247 VG_(debugLog)(2, "ume", "mmap fixed (file) (%#lx, %lu)\n", addr, filesize); in load_segment() 248 res = VG_(am_mmap_named_file_fixed_client)(addr, filesize, prot, fd, in load_segment() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | getsize.c | 82 LARGE_INTEGER filesize; in ext2fs_get_device_size() local 84 DWORD filesize; in ext2fs_get_device_size() local 111 } else if (GetFileSizeEx(dev, &filesize)) { in ext2fs_get_device_size() 112 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size() 116 filesize = GetFileSize(dev, NULL); 117 if (INVALID_FILE_SIZE != filesize) { 118 *retblocks = filesize / blocksize;
|
/external/vboot_reference/utility/ |
D | bmpblk_font.c | 172 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/ |
D | cmd_gbb_utility.c | 365 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/ltp/testcases/network/stress/ns-tools/ |
D | create_file | 55 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/syslinux/gpxe/src/arch/i386/interface/pxe/ |
D | pxe_file.c | 181 ssize_t filesize; in pxenv_get_file_size() local 185 filesize = fsize ( get_file_size->FileHandle ); in pxenv_get_file_size() 186 if ( filesize < 0 ) { in pxenv_get_file_size() 187 get_file_size->Status = PXENV_STATUS ( filesize ); in pxenv_get_file_size() 191 DBG ( " is %zd", ( ( size_t ) filesize ) ); in pxenv_get_file_size() 193 get_file_size->FileSize = filesize; in pxenv_get_file_size()
|
/external/ltp/testcases/network/stress/http/ |
D | http-stress01-rmt | 34 filesize="$3" 47 if [ $recv_filesize != "size=$filesize" ]; then 48 tst_resm TINFO "expected file size '$filesize'"
|