Lines Matching refs:blksize
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()
121 if (end <= start || (end - start) > SIZE_MAX / blksize || length > remaining_size) { in sysMapBlockFile()
127 …oid* addr = mmap64(next, length, PROT_READ, MAP_PRIVATE | MAP_FIXED, fd, ((off64_t)start)*blksize); in sysMapBlockFile()
145 munmap(reserve, blocks * blksize); in sysMapBlockFile()