Lines Matching refs:pos

42     u32         pos;  member
129 MI_CpuCopy8((const void *)p->pos, dst, len); in FSi_ReadTable()
134 result = (*context->read_func) (arc, dst, p->pos, len); in FSi_ReadTable()
137 p->pos += len; in FSi_ReadTable()
153 file->arg.seekdir.pos.arc = file->arc; in FSi_SeekDirDirect()
154 file->arg.seekdir.pos.own_id = (u16)id; in FSi_SeekDirDirect()
155 file->arg.seekdir.pos.index = 0; in FSi_SeekDirDirect()
156 file->arg.seekdir.pos.pos = 0; in FSi_SeekDirDirect()
175 const FSDirPos * const arg = &file->arg.seekdir.pos; in FSi_SeekDirDefault()
179 param.pos = context->fnt + arg->own_id * sizeof(fnt); in FSi_SeekDirDefault()
183 file->prop.dir.pos = *arg; in FSi_SeekDirDefault()
184 if ((arg->index == 0) && (arg->pos == 0)) in FSi_SeekDirDefault()
186 file->prop.dir.pos.index = fnt.index; in FSi_SeekDirDefault()
187 file->prop.dir.pos.pos = context->fnt + fnt.start; in FSi_SeekDirDefault()
211 param.pos = file->prop.dir.pos.pos; in FSi_ReadDirDefault()
236 param.pos += entry->name_len; in FSi_ReadDirDefault()
241 entry->file_id.file_id = file->prop.dir.pos.index; in FSi_ReadDirDefault()
242 ++file->prop.dir.pos.index; in FSi_ReadDirDefault()
253 entry->dir_id.pos = 0; in FSi_ReadDirDefault()
258 file->prop.dir.pos.pos = param.pos; in FSi_ReadDirDefault()
282 p_dir->arg.seekdir.pos = p_dir->arg.findpath.pos; in FSi_FindPathDefault()
306 if (p_dir->prop.dir.pos.own_id != 0) in FSi_FindPathDefault()
345 p_dir->arg.seekdir.pos = etr.dir_id; in FSi_FindPathDefault()
371 *p_dir->arg.findpath.result.dir = p_dir->prop.dir.pos; in FSi_FindPathDefault()
401 dir_id = file->prop.dir.pos.own_id; in FSi_GetPathDefault()
409 u32 pos = 0; in FSi_GetPathDefault() local
414 FSi_SeekDirDirect(tmp, pos); in FSi_GetPathDefault()
416 if (!pos) in FSi_GetPathDefault()
426 dir_id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
431 while ((dir_id == INVALID_ID) && (++pos < num_dir)); in FSi_GetPathDefault()
474 id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
498 u32 pos = 0; in FSi_GetPathDefault() local
503 MI_CpuCopy8(arcname, dst + pos, len); in FSi_GetPathDefault()
504 pos += len; in FSi_GetPathDefault()
505 MI_CpuCopy8(":/", dst + pos, 2); in FSi_GetPathDefault()
506 pos += 2; in FSi_GetPathDefault()
554 id = tmp->prop.dir.pos.own_id; in FSi_GetPathDefault()
558 SDK_ASSERT(pos == total); in FSi_GetPathDefault()
585 u32 pos = (u32)(index * sizeof(FSArchiveFAT)); in FSi_OpenFileFastDefault() local
586 if (pos >= context->fat_size) in FSi_OpenFileFastDefault()
596 param.pos = context->fat + pos; in FSi_OpenFileFastDefault()
623 p_file->prop.file.pos = p_file->arg.openfiledirect.top; in FSi_OpenFileDirectDefault()
642 const u32 pos = file->prop.file.pos; in FSi_ReadFileDefault() local
645 file->prop.file.pos += len; in FSi_ReadFileDefault()
646 return (*context->read_func) (arc, dst, pos, len); in FSi_ReadFileDefault()
662 const u32 pos = file->prop.file.pos; in FSi_WriteFileDefault() local
665 file->prop.file.pos += len; in FSi_WriteFileDefault()
666 return (*context->write_func) (arc, src, pos, len); in FSi_WriteFileDefault()
772 const u32 pos = prop->file.pos; in FSi_ROMFAT_ReadFile() local
773 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_ReadFile()
801 const u32 pos = prop->file.pos; in FSi_ROMFAT_WriteFile() local
802 const u32 rest = (u32)(prop->file.bottom - pos); in FSi_ROMFAT_WriteFile()
832 arg->seekdir.pos.arc = arc; in FSi_ROMFAT_SeekDirectory()
833 arg->seekdir.pos.own_id = (u16)(id >> 0); in FSi_ROMFAT_SeekDirectory()
834 arg->seekdir.pos.index = (u16)(id >> 16); in FSi_ROMFAT_SeekDirectory()
835 arg->seekdir.pos.pos = position; in FSi_ROMFAT_SeekDirectory()
883 u32 pos = (u32)(info->id * sizeof(FSArchiveFAT)); in FSi_ROMFAT_ReadDirectory() local
884 if (pos < context->fat_size) in FSi_ROMFAT_ReadDirectory()
889 param.pos = context->fat + pos; in FSi_ROMFAT_ReadDirectory()
936 tmp->arg.findpath.pos.arc = arc; in FSi_ROMFAT_FindPath()
937 tmp->arg.findpath.pos.own_id = (u16)(base_dir_id >> 0); in FSi_ROMFAT_FindPath()
938 tmp->arg.findpath.pos.index = 0; in FSi_ROMFAT_FindPath()
939 tmp->arg.findpath.pos.pos = 0; in FSi_ROMFAT_FindPath()
1166 int pos = *offset; in FSi_ROMFAT_SeekFile() local
1170 pos += prop->file.top; in FSi_ROMFAT_SeekFile()
1174 pos += prop->file.pos; in FSi_ROMFAT_SeekFile()
1177 pos += prop->file.bottom; in FSi_ROMFAT_SeekFile()
1181 if ((pos < (int)prop->file.top) || (pos > (int)prop->file.bottom)) in FSi_ROMFAT_SeekFile()
1187 prop->file.pos = (u32)pos; in FSi_ROMFAT_SeekFile()
1188 *offset = pos; in FSi_ROMFAT_SeekFile()
1227 *position = prop->file.pos - prop->file.top; in FSi_ROMFAT_GetFilePosition()
1350 u32 pos = (u32)(id * sizeof(FSArchiveFAT)); in FSi_ROMFAT_GetPathInfo() local
1351 if (pos < context->fat_size) in FSi_ROMFAT_GetPathInfo()
1356 param.pos = context->fat + pos; in FSi_ROMFAT_GetPathInfo()
1524 static FSResult FSi_ReadMemCallback(FSArchive *p_arc, void *dst, u32 pos, u32 size) in FSi_ReadMemCallback() argument
1526 MI_CpuCopy8((const void *)FS_GetArchiveOffset(p_arc, pos), dst, size); in FSi_ReadMemCallback()
1542 static FSResult FSi_WriteMemCallback(FSArchive *p_arc, const void *src, u32 pos, u32 size) in FSi_WriteMemCallback() argument
1544 MI_CpuCopy8(src, (void *)FS_GetArchiveOffset(p_arc, pos), size); in FSi_WriteMemCallback()
1862 u32 FS_GetArchiveOffset(const struct FSArchive *arc, u32 pos) in FS_GetArchiveOffset() argument
1865 return context->base + pos; in FS_GetArchiveOffset()