Searched refs:blksize (Results 1 – 2 of 2) sorted by relevance
/bootable/recovery/minzip/ |
D | SysUtil.c | 57 unsigned int blksize; in sysMapBlockFile() local 73 if (fscanf(mapf, "%zu %u\n%u\n", &size, &blksize, &range_count) != 3) { in sysMapBlockFile() 77 if (blksize != 0) { in sysMapBlockFile() 78 blocks = ((size-1) / blksize) + 1; in sysMapBlockFile() 80 if (size == 0 || blksize == 0 || blocks > SIZE_MAX / blksize || range_count == 0) { in sysMapBlockFile() 82 size, blksize, range_count); in sysMapBlockFile() 95 reserve = mmap64(NULL, blocks * blksize, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0); in sysMapBlockFile() 105 munmap(reserve, blocks * blksize); in sysMapBlockFile() 111 size_t remaining_size = blocks * blksize; in sysMapBlockFile() 120 size_t length = (end - start) * blksize; in sysMapBlockFile() [all …]
|
/bootable/recovery/ |
D | fuse_sideload.cpp | 166 attr->blksize = 4096; in fill_attr() 170 attr->blocks = (size == 0) ? 0 : (((size-1) / attr->blksize) + 1); in fill_attr()
|