Lines Matching refs:loc
342 u32 loc; in entryToPath() local
354 loc = entryToPath(handle, parentDir(FSTEntries, entry), path, maxlen); in entryToPath()
356 if (loc == maxlen) in entryToPath()
358 return loc; in entryToPath()
361 *(path + loc++) = '/'; in entryToPath()
363 loc += myStrncpy(path + loc, name, maxlen - loc); in entryToPath()
365 return loc; in entryToPath()
383 u32 loc; in ARCConvertEntrynumToPath() local
399 loc = entryToPath(handle, (u32)entrynum, path, maxlen); in ARCConvertEntrynumToPath()
401 if (loc == maxlen) in ARCConvertEntrynumToPath()
411 if (loc == maxlen - 1) in ARCConvertEntrynumToPath()
414 path[loc] = '\0'; in ARCConvertEntrynumToPath()
418 path[loc++] = '/'; in ARCConvertEntrynumToPath()
421 path[loc] = '\0'; in ARCConvertEntrynumToPath()
549 u32 loc; in ARCReadDir() local
561 loc = dir->location; in ARCReadDir()
563 if ( (loc <= dir->entryNum) || (dir->next <= loc) ) in ARCReadDir()
567 dirent->entryNum = loc; in ARCReadDir()
568 dirent->isDir = entryIsDir(FSTEntries, loc); in ARCReadDir()
569 dirent->name = handle->FSTStringStart + stringOff(FSTEntries, loc); in ARCReadDir()
574 loc++; in ARCReadDir()
578 dir->location = entryIsDir(FSTEntries, loc)? nextDir(FSTEntries, loc) : (loc+1); in ARCReadDir()