Lines Matching refs:loc
356 u32 loc; in entryToPath() local
368 loc = entryToPath(handle, parentDir(FSTEntries, entry), path, maxlen); in entryToPath()
370 if (loc == maxlen) in entryToPath()
372 return loc; in entryToPath()
375 *(path + loc++) = '/'; in entryToPath()
377 loc += myStrncpy(path + loc, name, maxlen - loc); in entryToPath()
379 return loc; in entryToPath()
397 u32 loc; in ARCConvertEntrynumToPath() local
413 loc = entryToPath(handle, (u32)entrynum, path, maxlen); in ARCConvertEntrynumToPath()
415 if (loc == maxlen) in ARCConvertEntrynumToPath()
425 if (loc == maxlen - 1) in ARCConvertEntrynumToPath()
428 path[loc] = '\0'; in ARCConvertEntrynumToPath()
432 path[loc++] = '/'; in ARCConvertEntrynumToPath()
435 path[loc] = '\0'; in ARCConvertEntrynumToPath()
563 u32 loc; in ARCReadDir() local
575 loc = dir->location; in ARCReadDir()
577 if ( (loc <= dir->entryNum) || (dir->next <= loc) ) in ARCReadDir()
581 dirent->entryNum = loc; in ARCReadDir()
582 dirent->isDir = entryIsDir(FSTEntries, loc); in ARCReadDir()
583 dirent->name = handle->FSTStringStart + stringOff(FSTEntries, loc); in ARCReadDir()
588 loc++; in ARCReadDir()
592 dir->location = entryIsDir(FSTEntries, loc)? nextDir(FSTEntries, loc) : (loc+1); in ARCReadDir()