Lines Matching refs:pos

42     u32         pos;  member
111 MI_CpuCopy8((const void *)p->pos, dst, len); in FSi_ReadTable()
116 result = (*context->read_func) (arc, dst, p->pos, len); in FSi_ReadTable()
119 p->pos += len; in FSi_ReadTable()
135 file->arg.seekdir.pos.arc = file->arc; in FSi_SeekDirDirect()
136 file->arg.seekdir.pos.own_id = (u16)id; in FSi_SeekDirDirect()
137 file->arg.seekdir.pos.index = 0; in FSi_SeekDirDirect()
138 file->arg.seekdir.pos.pos = 0; in FSi_SeekDirDirect()
157 const FSDirPos * const arg = &file->arg.seekdir.pos; in FSi_SeekDirDefault()
161 param.pos = context->fnt + arg->own_id * sizeof(fnt); in FSi_SeekDirDefault()
165 file->prop.dir.pos = *arg; in FSi_SeekDirDefault()
166 if ((arg->index == 0) && (arg->pos == 0)) in FSi_SeekDirDefault()
168 file->prop.dir.pos.index = fnt.index; in FSi_SeekDirDefault()
169 file->prop.dir.pos.pos = context->fnt + fnt.start; in FSi_SeekDirDefault()
193 param.pos = file->prop.dir.pos.pos; in FSi_ReadDirDefault()
218 param.pos += entry->name_len; in FSi_ReadDirDefault()
223 entry->file_id.file_id = file->prop.dir.pos.index; in FSi_ReadDirDefault()
224 ++file->prop.dir.pos.index; in FSi_ReadDirDefault()
235 entry->dir_id.pos = 0; in FSi_ReadDirDefault()
240 file->prop.dir.pos.pos = param.pos; in FSi_ReadDirDefault()
264 p_dir->arg.seekdir.pos = p_dir->arg.findpath.pos; in FSi_FindPathDefault()
288 if (p_dir->prop.dir.pos.own_id != 0) in FSi_FindPathDefault()
327 p_dir->arg.seekdir.pos = etr.dir_id; in FSi_FindPathDefault()
353 *p_dir->arg.findpath.result.dir = p_dir->prop.dir.pos; in FSi_FindPathDefault()
386 dir_id = file->prop.dir.pos.own_id; in FSi_GetPathDefault()
394 u32 pos = 0; in FSi_GetPathDefault() local
399 FSi_SeekDirDirect(tmp, pos); in FSi_GetPathDefault()
401 if (!pos) in FSi_GetPathDefault()
411 dir_id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
416 while ((dir_id == INVALID_ID) && (++pos < num_dir)); in FSi_GetPathDefault()
459 id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
483 u32 pos = 0; in FSi_GetPathDefault() local
488 MI_CpuCopy8(arcname, dst + pos, len); in FSi_GetPathDefault()
489 pos += len; in FSi_GetPathDefault()
490 MI_CpuCopy8(":/", dst + pos, 2); in FSi_GetPathDefault()
491 pos += 2; in FSi_GetPathDefault()
539 id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
543 SDK_ASSERT(pos == total); in FSi_GetPathDefault()
570 u32 pos = (u32)(index * sizeof(FSArchiveFAT)); in FSi_OpenFileFastDefault() local
571 if (pos >= context->fat_size) in FSi_OpenFileFastDefault()
581 param.pos = context->fat + pos; in FSi_OpenFileFastDefault()
608 p_file->prop.file.pos = p_file->arg.openfiledirect.top; in FSi_OpenFileDirectDefault()
627 const u32 pos = file->prop.file.pos; in FSi_ReadFileDefault() local
630 file->prop.file.pos += len; in FSi_ReadFileDefault()
631 return (*context->read_func) (arc, dst, pos, len); in FSi_ReadFileDefault()
647 const u32 pos = file->prop.file.pos; in FSi_WriteFileDefault() local
650 file->prop.file.pos += len; in FSi_WriteFileDefault()
651 return (*context->write_func) (arc, src, pos, len); in FSi_WriteFileDefault()
757 const u32 pos = prop->file.pos; in FSi_ROMFAT_ReadFile() local
758 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_ReadFile()
786 const u32 pos = prop->file.pos; in FSi_ROMFAT_WriteFile() local
787 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_WriteFile()
817 arg->seekdir.pos.arc = arc; in FSi_ROMFAT_SeekDirectory()
818 arg->seekdir.pos.own_id = (u16)(id >> 0); in FSi_ROMFAT_SeekDirectory()
819 arg->seekdir.pos.index = (u16)(id >> 16); in FSi_ROMFAT_SeekDirectory()
820 arg->seekdir.pos.pos = position; in FSi_ROMFAT_SeekDirectory()
868 u32 pos = (u32)(info->id * sizeof(FSArchiveFAT)); in FSi_ROMFAT_ReadDirectory() local
869 if (pos < context->fat_size) in FSi_ROMFAT_ReadDirectory()
874 param.pos = context->fat + pos; in FSi_ROMFAT_ReadDirectory()
923 tmp->arg.findpath.pos.arc = arc; in FSi_ROMFAT_FindPath()
924 tmp->arg.findpath.pos.own_id = (u16)(base_dir_id >> 0); in FSi_ROMFAT_FindPath()
925 tmp->arg.findpath.pos.index = 0; in FSi_ROMFAT_FindPath()
926 tmp->arg.findpath.pos.pos = 0; in FSi_ROMFAT_FindPath()
1165 int pos = *offset; in FSi_ROMFAT_SeekFile() local
1169 pos += prop->file.top; in FSi_ROMFAT_SeekFile()
1173 pos += prop->file.pos; in FSi_ROMFAT_SeekFile()
1176 pos += prop->file.bottom; in FSi_ROMFAT_SeekFile()
1180 if ((pos < (int)prop->file.top) || (pos > (int)prop->file.bottom)) in FSi_ROMFAT_SeekFile()
1186 prop->file.pos = (u32)pos; in FSi_ROMFAT_SeekFile()
1187 *offset = pos; in FSi_ROMFAT_SeekFile()
1226 *position = prop->file.pos - prop->file.top; in FSi_ROMFAT_GetFilePosition()
1349 u32 pos = (u32)(id * sizeof(FSArchiveFAT)); in FSi_ROMFAT_GetPathInfo() local
1350 if (pos < context->fat_size) in FSi_ROMFAT_GetPathInfo()
1355 param.pos = context->fat + pos; in FSi_ROMFAT_GetPathInfo()
1523 static FSResult FSi_ReadMemCallback(FSArchive *p_arc, void *dst, u32 pos, u32 size) in FSi_ReadMemCallback() argument
1525 MI_CpuCopy8((const void *)FS_GetArchiveOffset(p_arc, pos), dst, size); in FSi_ReadMemCallback()
1541 static FSResult FSi_WriteMemCallback(FSArchive *p_arc, const void *src, u32 pos, u32 size) in FSi_WriteMemCallback() argument
1543 MI_CpuCopy8(src, (void *)FS_GetArchiveOffset(p_arc, pos), size); in FSi_WriteMemCallback()
1861 u32 FS_GetArchiveOffset(const struct FSArchive *arc, u32 pos) in FS_GetArchiveOffset() argument
1864 return context->base + pos; in FS_GetArchiveOffset()