Searched refs:size (Results 101 - 125 of 134) sorted by last modified time

123456

/system/extras/ext4_utils/
H A Dcontents.c47 /* include size of the dentry used to pad until the end of the block */
267 size_t size, min_offs; local
286 size = EXT4_XATTR_SIZE(value_len);
287 val = (char *)entry + min_offs - size;
288 entry->e_value_offs = cpu_to_le16(min_offs - size);
289 memset(val + size - EXT4_XATTR_PAD, 0, EXT4_XATTR_PAD);
H A Dcontents.h25 unsigned long size; member in struct:dentry
H A Dext4.h101 #define EXT4_BLOCK_ALIGN(size, blkbits) ALIGN((size), (1 << (blkbits)))
H A Dext4_utils.c252 * block on a system with a block size > 1K. So, we need to
383 u64 size = 0; local
387 ret = ioctl(fd, BLKGETSIZE64, &size);
389 ret = ioctl(fd, DKIOCGETBLOCKCOUNT, &size);
398 return size;
423 warn("Computed filesystem size less than 0");
H A Dindirect.c437 u64 size; local
477 size = (u64)last_block * info.block_size;
483 inode->i_size_lo = size;
484 inode->i_size_high = size >> 32;
H A Dmake_ext4fs.c143 dentries[i].size = stat.st_size;
202 entry_inode = make_file(dentries[i].full_path, dentries[i].size);
339 fprintf(stderr, "Need size of filesystem\n");
346 /* Round down the filesystem length to be a multiple of the block size */
387 printf(" Block size: %d\n", info.block_size);
390 printf(" Inode size: %d\n", info.inode_size);
398 printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks);
H A Dxattr.h22 #define EXT4_XATTR_SIZE(size) \
23 (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND)
/system/extras/fatblock/
H A Dfat.c37 cluster_t first_cluster, uint32_t size)
47 de->size = htole32(size);
35 fat_dirent_set(struct fat_dirent *de, char *name, uint8_t attr, cluster_t first_cluster, uint32_t size) argument
H A Dfat.h100 uint32_t size; member in struct:fat_dirent
122 cluster_t first_cluster, uint32_t size);
H A Dfatblock.h47 uint32_t size; member in struct:file
60 uint32_t size; member in struct:dir
H A Dimport.c91 uint32_t size; member in struct:imported
125 f->size = st.st_size;
132 f->size, EXTENT_TYPE_FILE, &out->first_cluster);
138 out->size = f->size;
294 d->size = sizeof(struct fat_dirent) * (count + (is_root ? 0 : 2));
295 ret = fs_alloc_extent(fs, &d->extent, d->size, EXTENT_TYPE_DIR, &out->first_cluster);
317 item->imp.first_cluster, item->imp.size);
340 out->size = 0;
H A Dread.c131 return buffer_read((char*)d->entries, d->size, buf, off, len);
/system/extras/libublock/include/ublock/
H A Dublock.h43 int ublock_init(struct ublock_ctx **ub, struct ublock_ops *ops, uint64_t size);
/system/extras/libublock/
H A Dublock.c33 uint64_t size; member in struct:ublock_ctx
89 out_h->size = ub_ctx->size;
344 size_t size; local
358 size = ublock_init_buf_size();
359 in_buf = malloc(size);
360 out_buf = malloc(size);
367 ub_ctx->size = dev_size;
377 result = ublock_do_request(ub_ctx, in_buf, size, out_buf, size);
[all...]
/system/extras/showmap/
H A Dshowmap.c18 unsigned size; member in struct:mapinfo
89 int size; local
91 if (sscanf(line, "%63s %d kB", field, &size) != 2) {
96 mi->size = size;
98 mi->rss = size;
100 mi->pss = size;
102 mi->shared_clean = size;
104 mi->shared_dirty = size;
106 mi->private_clean = size;
252 unsigned size = 0; local
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp363 for (unsigned int n1 = 0; n1 < str.size(); n1++) {
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c104 _source_init( SourceMgr src, char* base, long size )
108 src->end = base + size;
/system/extras/tests/bionic/libstdc++/
H A Dtest_cstdio.cpp155 volatile std::size_t size; local
H A Dtest_cstring.cpp69 volatile std::size_t size; member in namespace:android
/system/extras/tests/directiotest/
H A Ddirectiotest.c51 static void *pagealign_alloc(size_t size) argument
53 void *ret = mmap(NULL, size, PROT_READ | PROT_WRITE,
63 static void pagealign_free(void *addr, size_t size) argument
65 int ret = munmap(addr, size);
120 * test area size.
/system/extras/tests/include/
H A DtestUtil.h58 void testXDump(const void *buf, size_t size);
/system/extras/tests/lib/testUtil/
H A DtestUtil.c310 * pointed to by buf, for the number of bytes given by size.
319 testXDump(const void *buf, size_t size) argument
325 size_t num = size;
/system/extras/tests/memtest/
H A Dmemtest.cpp134 int validate_memcpy(char* s, char* d, size_t size);
135 int validate_memset(char* s, char c, size_t size);
162 struct result_t { int size; float res; }; member in struct:result_t
165 int size = 0; local
168 if (size<128) size += 8;
169 else if (size<1024) size += 128;
170 else if (size<16384) size
238 validate_memcpy(char* s, char* d, size_t size) argument
288 struct result_t { int size; float res; }; member in struct:result_t
291 int size = 0; local
345 validate_memset(char* d, char c, size_t size) argument
389 validate_memcmp(const char* s, const char* d, size_t size) argument
426 struct result_t { int size; float res; }; member in struct:result_t
429 int size = 0; local
538 struct result_t { int size; float res; }; member in struct:result_t
541 int size = 0; local
597 size_t size = 0x40000000; local
627 size_t size = i==0 ? 4096 : 48*1024*1024; // 48 MB local
[all...]
/system/extras/tests/sdcard/
H A Dprofile_sdcard.sh40 adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
H A Dsdcard_perf_test.cpp69 // For read/write tests, size is the number of Kbytes to use.
74 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt
75 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
111 {"size", required_argument, 0, 's'},
112 {"chunk-size", required_argument, 0, 'S'},
132 " -s --size: Size in kbytes of the data.\n"
133 " -S --chunk-size: Size of a chunk. Default to size i
354 const size_t size = testCase->dataSize(); local
491 const size_t size = testCase->dataSize(); local
[all...]

Completed in 1526 milliseconds

123456