Lines Matching refs:vecs
76 file_io_vec* vecs, size_t* _count,
90 status_t _Add(file_io_vec* vecs, size_t vecCount,
233 FileMap::_Add(file_io_vec* vecs, size_t vecCount, off_t& lastOffset) in _Add() argument
253 == vecs[i].offset in _Add()
254 || (lastExtent->disk.offset == -1 && vecs[i].offset == -1)) { in _Add()
256 lastExtent->disk.length += vecs[i].length; in _Add()
257 offset += vecs[i].length; in _Add()
272 extent->disk = vecs[i]; in _Add()
366 file_io_vec vecs[8]; in _Cache() local
372 status = vfs_get_file_map(Vnode(), mapEnd, ~0UL, vecs, &vecCount); in _Cache()
374 status = _Add(vecs, vecCount, mapEnd); in _Cache()
407 FileMap::Translate(off_t offset, size_t size, file_io_vec* vecs, size_t* _count, in Translate() argument
446 vecs[0].offset = fileExtent->disk.offset + offset; in Translate()
448 vecs[0].offset = -1; in Translate()
449 vecs[0].length = fileExtent->disk.length - offset; in Translate()
451 if (vecs[0].length >= (off_t)size) { in Translate()
452 vecs[0].length = size + padLastVec; in Translate()
459 size -= vecs[0].length; in Translate()
465 vecs[vecIndex++] = fileExtent->disk; in Translate()
468 vecs[vecIndex - 1].length = size + padLastVec; in Translate()
664 file_map_translate(void* _map, off_t offset, size_t size, file_io_vec* vecs, in file_map_translate() argument
674 return map->Translate(offset, size, vecs, _count, align); in file_map_translate()