Home
last modified time | relevance | path

Searched full:filesize (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/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/skia/src/utils/win/
DSkDWriteFontFileStream.cpp39 size_t fileSize = this->getLength(); in read() local
41 if (fPos + size > fileSize) { in read()
42 size_t skipped = fileSize - fPos; in read()
43 fPos = fileSize; in read()
62 size_t fileSize = this->getLength(); in read() local
63 if (fPos + size <= fileSize) { in read()
68 size_t read = fileSize - fPos; in read()
73 fPos = fileSize; in read()
128 UINT64 fileSize; in getMemoryBase() local
129 HRNM(fFontFileStream->GetFileSize(&fileSize), "Could not get file size"); in getMemoryBase()
[all …]
/external/lzma/CPP/Common/
DListFileUtils.cpp33 UInt64 fileSize; in ReadNamesFromListFile() local
34 if (!file.GetLength(fileSize)) in ReadNamesFromListFile()
36 if (fileSize >= ((UInt32)1 << 31) - 32) in ReadNamesFromListFile()
41 if ((fileSize & 1) != 0) in ReadNamesFromListFile()
43 CByteArr buf((size_t)fileSize); in ReadNamesFromListFile()
45 if (!file.Read(buf, (UInt32)fileSize, processed)) in ReadNamesFromListFile()
47 if (processed != fileSize) in ReadNamesFromListFile()
50 unsigned num = (unsigned)fileSize / 2; in ReadNamesFromListFile()
73 char *p = s.GetBuffer((unsigned)fileSize); in ReadNamesFromListFile()
75 if (!file.Read(p, (UInt32)fileSize, processed)) in ReadNamesFromListFile()
[all …]
/external/llvm/lib/Support/
DMemoryBuffer.cpp105 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize,
169 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() argument
176 return getFile(Filename, FileSize, RequiresNullTerminator); in getFileOrSTDIN()
256 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() argument
258 return getFileAux(Filename, FileSize, FileSize, 0, in getFile()
263 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize,
268 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, in getFileAux() argument
276 getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset, in getFileAux()
283 size_t FileSize, in shouldUseMmap() argument
308 if (FileSize == size_t(-1)) { in shouldUseMmap()
[all …]
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daiodio_sparse.c59 int aiodio_sparse(char *filename, int align, int writesize, int filesize, in aiodio_sparse() argument
70 if ((num_aio * writesize) > filesize) in aiodio_sparse()
71 num_aio = filesize / writesize; in aiodio_sparse()
91 SAFE_FTRUNCATE(cleanup, fd, filesize); in aiodio_sparse()
129 while (offset < filesize) { in aiodio_sparse()
135 "aiodio_sparse: offset %p filesize %d inflight %d", in aiodio_sparse()
136 &offset, filesize, aio_inflight); in aiodio_sparse()
215 fprintf(stderr, "usage: dio_sparse [-n children] [-s filesize]" in usage()
228 int filesize = 100 * 1024 * 1024; in main() local
254 filesize = strtol(optarg, &endp, 0); in main()
[all …]
Ddio_sparse.c56 int dio_sparse(char *filename, int align, int writesize, int filesize) in dio_sparse() argument
69 SAFE_FTRUNCATE(cleanup, fd, filesize); in dio_sparse()
78 for (i = 0; i < filesize;) { in dio_sparse()
96 fprintf(stderr, "usage: dio_sparse [-d] [-n children] [-s filesize]" in usage()
109 int filesize = 100 * 1024 * 1024; in main() local
129 filesize = strtol(optarg, &endp, 0); in main()
130 filesize = scale_by_kmg(filesize, *endp); in main()
149 dirty_freeblocks(filesize); in main()
156 read_sparse(filename, filesize); in main()
169 ret = dio_sparse(filename, alignment, writesize, filesize); in main()
/external/autotest/client/site_tests/hardware_StorageFio/
Dhardware_StorageFio.py62 def initialize(self, dev='', filesize=DEFAULT_FILE_SIZE): argument
68 @param filesize: size of the file. 0 means whole partition.
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)
107 logging.info('filesize: %d', self.__filesize)
166 'FILESIZE=' + str(self.__filesize),
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
DMemoryBuffer.cpp160 int64_t FileSize) { in getFileOrSTDIN() argument
163 return getFile(Filename, result, FileSize); in getFileOrSTDIN()
168 int64_t FileSize) { in getFileOrSTDIN() argument
171 return getFile(Filename, result, FileSize); in getFileOrSTDIN()
207 int64_t FileSize, in getFile() argument
211 return MemoryBuffer::getFile(PathBuf.c_str(), result, FileSize, in getFile()
217 int64_t FileSize, in getFile() argument
227 error_code ret = getOpenFile(FD, Filename, result, FileSize, FileSize, in getFile()
234 size_t FileSize, in shouldUseMmap() argument
252 if (FileSize == size_t(-1)) { in shouldUseMmap()
[all …]
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress01.c64 * tmnoextend -p nprocs [-t minutes -f filesize -S sparseoffset
73 * -f filesize - initial filesize (defaults to FILESIZE)
77 * filesize. Useful for testing large files.
92 #define FILESIZE 4096 /* initial filesize set up by parent */ macro
110 "-p nprocs [-t minutes -f filesize -S sparseoffset -r -o -m -l -d]";
124 off64_t filesize = FILESIZE; variable
127 off_t filesize = FILESIZE; variable
185 filesize = atoll(optarg);
187 filesize = atoi(optarg);
189 if (filesize < 0) {
[all …]
Dmmapstress10.c68 * mmapstress10 -p nprocs [-t minutes -w nbytes -s secs -f filesize
83 * -f filesize - initial filesize (defaults to FILESIZE)
87 * filesize. Useful for testing large files.
104 #define FILESIZE 4096 /* initial filesize set up by parent */ macro
141 off64_t filesize = FILESIZE; variable
144 off_t filesize = FILESIZE; variable
229 filesize = atoll(optarg);
231 filesize = atoi(optarg);
233 if (filesize < 0) {
235 "filesize\n");
[all …]
/external/syslinux/gpxe/src/util/
Dmakerom.pl155 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'};
Dmodrom.pl153 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'};
/external/lz4/programs/
Dlz4io.c324 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
466 U64 const fileSize = UTIL_getFileSize(srcFileName); in LZ4IO_compressFilename_extRess() local
467 prefs.frameInfo.contentSize = fileSize; /* == 0 if input == stdin */ in LZ4IO_compressFilename_extRess()
468 if (fileSize==0) in LZ4IO_compressFilename_extRess()
[all …]
/external/libmtp/examples/
Dthumb.c49 uint64_t filesize; local
84 filesize = (uint64_t) statbuff.st_size;
85 imagedata = malloc(filesize * sizeof(uint16_t));
96 read(fd, imagedata, filesize);
110 thumb->data = malloc(sizeof(uint16_t) * filesize);
111 for (i = 0; i < filesize; i++) {
115 thumb->size = filesize;
/external/llvm/test/tools/llvm-readobj/
Dprogram-headers.test16 ELF-I386-NEXT: FileSize: 308
29 ELF-I386-NEXT: FileSize: 0
45 ELF-X86-64-NEXT: FileSize: 312
58 ELF-X86-64-NEXT: FileSize: 20
70 ELF-X86-64-NEXT: FileSize: 0
90 ELF-MIPS-NEXT: FileSize: 24
102 ELF-MIPS-NEXT: FileSize: 24
114 ELF-MIPS-NEXT: FileSize: 224
134 ELF-MIPS64-NEXT: FileSize: 136
/external/llvm/test/ObjectYAML/MachO/
Dload_commands.yaml20 filesize: 0
31 filesize: 8192
42 filesize: 4096
53 filesize: 2508
146 #CHECK: filesize: 0
157 #CHECK: filesize: 8192
168 #CHECK: filesize: 4096
179 #CHECK: filesize: 2508
/external/lzma/CPP/7zip/Bundles/LzmaCon/
DLzmaAlone.cpp344 UInt64 fileSize; in main2() local
345 inStreamSpec->File.GetLength(fileSize); in main2()
346 if (fileSize > 0xF0000000) in main2()
348 size_t inSize = (size_t)fileSize; in main2()
365 outSize = (size_t)fileSize / 20 * 21 + (1 << 16); in main2()
397 if (inSize != (size_t)fileSize) in main2()
410 UInt64 fileSize; in main2() local
488 fileSize = (UInt64)(Int64)-1; in main2()
490 inStreamSpec->File.GetLength(fileSize); in main2()
494 Byte b = Byte(fileSize >> (8 * i)); in main2()
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dcreate_file32 # $2: filesize
51 echo "Usage: create_file filename filesize" >&2
55 filesize=$2
57 if [ $filesize -le 0 ]; then
58 echo "The filesize should be bigger than 0" >&2
63 echo -n "Z" | dd of=$filename bs=1 seek=`expr $filesize - 1` >/dev/null 2>&1
/external/valgrind/coregrind/m_ume/
Dmacho.c128 vki_size_t filesize; in open_dylinker() local
154 filesize = sb.size; in open_dylinker()
156 err = load_mach_file(fd, 0, filesize, MH_DYLINKER, filename, in open_dylinker()
184 vki_size_t filesize; // page-aligned in load_segment() local
214 if (segcmd->fileoff == 0 && segcmd->filesize != 0) { in load_segment()
224 if (segcmd->fileoff + segcmd->filesize > size) { in load_segment()
239 filesize = VG_PGROUNDUP(segcmd->filesize); in load_segment()
241 if (filesize > 0) { in load_segment()
243 VG_(debugLog)(2, "ume", "mmap fixed (file) (%#lx, %lu)\n", addr, filesize); in load_segment()
244 res = VG_(am_mmap_named_file_fixed_client)(addr, filesize, prot, fd, in load_segment()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c180 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/syslinux/gpxe/src/arch/i386/interface/pxe/
Dpxe_file.c177 * @ret s_PXENV_GET_FILE_SIZE::FileSize Size of file
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/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/e2fsprogs/lib/ext2fs/
Dgetsize.c82 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/icu/icu4c/source/samples/layout/
DUnicodeReader.cpp33 int32_t fileSize; in readFile() local
51 fileSize = ftell(f); in readFile()
85 fileSize -= signatureLength; in readFile()
87 byteBuffer = new char[fileSize]; in readFile()
96 fread(byteBuffer, sizeof(char), fileSize, f); in readFile()
106 UnicodeString myText(byteBuffer, fileSize, cp); in readFile()
/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()

12345678910>>...16