Lines Matching refs:handle

462     ISTDFIOFile    *handle = DEMOi_HIO_AllocFile(context);  in DEMOi_HIO_OpenFile()  local
464 if (!handle) in DEMOi_HIO_OpenFile()
474 result = DEMOi_HIO_ConvertError(ISTDFIOOpen(handle, tmppath, flags)); in DEMOi_HIO_OpenFile()
477 FS_SetFileHandle(file, arc, (void *)handle); in DEMOi_HIO_OpenFile()
497 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_CloseFile() local
498 result = DEMOi_HIO_ConvertError(ISTDFIOClose(handle)); in DEMOi_HIO_CloseFile()
499 DEMOi_HIO_FreeFile(context, handle); in DEMOi_HIO_CloseFile()
519 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_ReadFile() local
521 result = DEMOi_HIO_ConvertError(ISTDFIORead(handle, buffer, *length, length)); in DEMOi_HIO_ReadFile()
540 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_WriteFile() local
542 result = DEMOi_HIO_ConvertError(ISTDFIOWrite(handle, (void *)buffer, *length)); in DEMOi_HIO_WriteFile()
561 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_SeekFile() local
576 result = DEMOi_HIO_ConvertError(ISTDFIOSeek(handle, (s32)*offset, mode, (u32*)offset)); in DEMOi_HIO_SeekFile()
594 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_GetFileLength() local
596 result = DEMOi_HIO_ConvertError(ISTDFIOLength(handle, length)); in DEMOi_HIO_GetFileLength()
636 ISTDFIOFile *handle = DEMOi_HIO_AllocFile(context); in DEMOi_HIO_OpenDirectory() local
638 if (!handle) in DEMOi_HIO_OpenDirectory()
644 int index = handle - context->file; in DEMOi_HIO_OpenDirectory()
664 result = DEMOi_HIO_ConvertError(ISTDFIOFindFirst(handle, data, tmppath)); in DEMOi_HIO_OpenDirectory()
668 FS_SetDirectoryHandle(file, arc, (void *)handle); in DEMOi_HIO_OpenDirectory()
688 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_CloseDirectory() local
689 result = DEMOi_HIO_ConvertError(ISTDFIOFindClose(handle)); in DEMOi_HIO_CloseDirectory()
690 DEMOi_HIO_FreeFile(context, handle); in DEMOi_HIO_CloseDirectory()
711 ISTDFIOFile *handle = (ISTDFIOFile *)FS_GetFileUserData(file); in DEMOi_HIO_ReadDirectory() local
712 int index = handle - context->file; in DEMOi_HIO_ReadDirectory()
734 if (ISTDFIOFindNext(handle, data) != ISTDFIO_FILEIO_ERROR_SUCCESS) in DEMOi_HIO_ReadDirectory()