Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 11 of 11) sorted by relevance

/trueos/sbin/geom/class/virstor/
HDgeom_virstor.c219 size_t map_size; /* In bytes. */ in virstor_label() local
308 map_size = total_chunks * sizeof(*map); in virstor_label()
311 ssize = map_size % secsize; in virstor_label()
316 map_size = total_chunks * sizeof(*map); in virstor_label()
351 if (msize < (off_t) MAX(md.md_chunk_size*4, map_size)) in virstor_label()
370 map_chunks = map_size/md.md_chunk_size; in virstor_label()
371 if (map_size % md.md_chunk_size != 0) in virstor_label()
374 printf(" (%zu MB, %d chunks) ", map_size/(1024*1024), map_chunks); in virstor_label()
393 map_size); in virstor_label()
396 written = pwrite(fd, map, map_size, 0); in virstor_label()
[all …]
/trueos/tools/regression/fsx/
HDfsx.c535 unsigned map_size; in domapread() local
567 map_size = pg_offset + size; in domapread()
569 if ((p = (char *)mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread()
578 if (munmap(p, map_size) != 0) { in domapread()
658 unsigned map_size; in domapwrite() local
703 map_size = pg_offset + size; in domapwrite()
705 if ((p = (char *)mmap(0, map_size, PROT_READ | PROT_WRITE, in domapwrite()
712 if (mapped_msync && msync(p, map_size, MS_SYNC) != 0) { in domapwrite()
719 if (munmap(p, map_size) != 0) { in domapwrite()
/trueos/sys/geom/virstor/
HDg_virstor.h115 size_t map_size; /* (in bytes) */ member
HDg_virstor.c1231 sc->map_size = sc->chunk_count * sizeof *(sc->map); in virstor_check_and_run()
1233 sc->map = malloc(sc->map_size, M_GVIRSTOR, M_WAITOK); in virstor_check_and_run()
1235 __func__, sc->map_size, sc->provider->name)); in virstor_check_and_run()
1236 sc->map_sectors = sc->map_size / sc->sectorsize; in virstor_check_and_run()
1257 while (count < sc->map_size) { in virstor_check_and_run()
1261 bs = MIN(MAXPHYS, sc->map_size - count); in virstor_check_and_run()
/trueos/contrib/llvm/include/llvm-c/
HDlto.h158 size_t map_size, off_t offset);
/trueos/contrib/llvm/include/llvm/LTO/
HDLTOModule.h93 size_t map_size,
/trueos/usr.sbin/bhyvectl/
HDbhyvectl.c448 int error, fd, map_size; in dump_msr_bitmap() local
461 map_size = PAGE_SIZE; in dump_msr_bitmap()
463 map_size = 2 * PAGE_SIZE; in dump_msr_bitmap()
465 bitmap = mmap(NULL, map_size, PROT_READ, MAP_SHARED, fd, addr); in dump_msr_bitmap()
479 munmap((void *)bitmap, map_size); in dump_msr_bitmap()
/trueos/contrib/groff/src/roff/troff/
HDnode.cpp5971 : map_size(10), nm(s) in font_family()
5973 map = new int[map_size]; in font_family()
5974 for (int i = 0; i < map_size; i++) in font_family()
5986 if (i < map_size && map[i] >= 0) in make_definite()
5990 if (i >= map_size) { in make_definite()
5991 int old_map_size = map_size; in make_definite()
5993 map_size *= 3; in make_definite()
5994 map_size /= 2; in make_definite()
5995 if (i >= map_size) in make_definite()
5996 map_size = i + 10; in make_definite()
[all …]
HDnode.h664 int map_size; variable
/trueos/contrib/llvm/lib/LTO/
HDLTOModule.cpp108 size_t map_size, in makeLTOModule() argument
114 MemoryBuffer::getOpenFileSlice(fd, path, buffer, map_size, offset)) { in makeLTOModule()
/trueos/contrib/groff/
HDChangeLog.1152301 * refer/index.c: Interface to mmap through map.c. Rename map_size
4783 an array. Add a map_size member. Make it a class. Make nm const
4802 (invalidate_fontno): Use font_family::map_size.