Lines Matching refs:handle

466     ISTDFIOFile    *handle = DEMOi_HIO_AllocFile(context);  in DEMOi_HIO_OpenFile()  local
468 if (!handle) in DEMOi_HIO_OpenFile()
478 result = DEMOi_HIO_ConvertError(ISTDFIOOpen(handle, tmppath, flags)); in DEMOi_HIO_OpenFile()
481 FS_SetFileHandle(file, arc, (void *)handle); in DEMOi_HIO_OpenFile()
501 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_CloseFile() local
502 result = DEMOi_HIO_ConvertError(ISTDFIOClose(handle)); in DEMOi_HIO_CloseFile()
503 DEMOi_HIO_FreeFile(context, handle); in DEMOi_HIO_CloseFile()
523 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_ReadFile() local
525 result = DEMOi_HIO_ConvertError(ISTDFIORead(handle, buffer, *length, length)); in DEMOi_HIO_ReadFile()
544 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_WriteFile() local
546 result = DEMOi_HIO_ConvertError(ISTDFIOWrite(handle, (void *)buffer, *length)); in DEMOi_HIO_WriteFile()
565 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_SeekFile() local
580 result = DEMOi_HIO_ConvertError(ISTDFIOSeek(handle, (s32)*offset, mode, (u32*)offset)); in DEMOi_HIO_SeekFile()
598 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_GetFileLength() local
600 result = DEMOi_HIO_ConvertError(ISTDFIOLength(handle, length)); in DEMOi_HIO_GetFileLength()
640 ISTDFIOFile *handle = DEMOi_HIO_AllocFile(context); in DEMOi_HIO_OpenDirectory() local
642 if (!handle) in DEMOi_HIO_OpenDirectory()
648 int index = handle - context->file; in DEMOi_HIO_OpenDirectory()
668 result = DEMOi_HIO_ConvertError(ISTDFIOFindFirst(handle, data, tmppath)); in DEMOi_HIO_OpenDirectory()
672 FS_SetDirectoryHandle(file, arc, (void *)handle); in DEMOi_HIO_OpenDirectory()
692 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_CloseDirectory() local
693 result = DEMOi_HIO_ConvertError(ISTDFIOFindClose(handle)); in DEMOi_HIO_CloseDirectory()
694 DEMOi_HIO_FreeFile(context, handle); in DEMOi_HIO_CloseDirectory()
715 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_ReadDirectory() local
716 int index = handle - context->file; in DEMOi_HIO_ReadDirectory()
738 if (ISTDFIOFindNext(handle, data) != ISTDFIO_FILEIO_ERROR_SUCCESS) in DEMOi_HIO_ReadDirectory()