Lines Matching refs:map

45 //	for the whole map.
46 // TODO: it would be nice if we could free a file map in low memory situations.
122 mutex_init(&fLock, "file map");
310 /*! Invalidates or removes the specified part of the file map.
438 // We now have cached the map of this file as far as we need it, now
502 FileMap* map = (FileMap*)parse_expression(argv[argc - 1]);
503 if (map == NULL) {
504 kprintf("invalid file map!\n");
508 kprintf("FileMap %p\n", map);
509 kprintf(" size %" B_PRIdOFF "\n", map->Size());
510 kprintf(" count %lu\n", map->Count());
515 for (uint32 i = 0; i < map->Count(); i++) {
516 file_extent* extent = map->ExtentAt(i);
548 FileMap* map = iterator.Next();
550 if (minSize > map->Size() || (maxSize != -1 && maxSize < map->Size()))
553 if (map->Count() != 0) {
554 file_extent* extent = map->ExtentAt(map->Count() - 1);
558 extents += map->Count();
562 size += map->Size();
569 kprintf("average %" B_PRIu32 " extents per map for %" B_PRIdOFF " bytes.\n",
586 "Dumps the specified file map.",
587 "[-p] <file-map>\n"
589 " <file-map> - pointer to the file map.\n", 0);
591 "Dumps some file map statistics.");
593 mutex_init(&sLock, "file map list");
621 FileMap* map = (FileMap*)_map;
622 if (map == NULL)
625 TRACE("file_map_delete(map = %p)\n", map);
626 delete map;
633 FileMap* map = (FileMap*)_map;
634 if (map == NULL)
637 map->SetSize(size);
644 FileMap* map = (FileMap*)_map;
645 if (map == NULL)
648 map->Invalidate(offset, size);
655 FileMap* map = (FileMap*)_map;
656 if (map == NULL)
659 return map->SetMode(mode);
667 TRACE("file_map_translate(map %p, offset %lld, size %ld)\n",
670 FileMap* map = (FileMap*)_map;
671 if (map == NULL)
674 return map->Translate(offset, size, vecs, _count, align);