Lines Matching refs:loc
398 u32 loc; in entryToPath() local
410 loc = entryToPath(handle, parentDir(FSTEntries, entry), path, maxlen); in entryToPath()
412 if (loc == maxlen) in entryToPath()
414 return loc; in entryToPath()
417 *(path + loc++) = '/'; in entryToPath()
419 loc += myStrncpy(path + loc, name, maxlen - loc); in entryToPath()
421 return loc; in entryToPath()
439 u32 loc; in ARCConvertEntrynumToPath() local
455 loc = entryToPath(handle, (u32)entrynum, path, maxlen); in ARCConvertEntrynumToPath()
457 if (loc == maxlen) in ARCConvertEntrynumToPath()
467 if (loc == maxlen - 1) in ARCConvertEntrynumToPath()
470 path[loc] = '\0'; in ARCConvertEntrynumToPath()
474 path[loc++] = '/'; in ARCConvertEntrynumToPath()
477 path[loc] = '\0'; in ARCConvertEntrynumToPath()
689 u32 loc; in ARCReadDir() local
701 loc = dir->location; in ARCReadDir()
703 if ( (loc <= dir->entryNum) || (dir->next <= loc) ) in ARCReadDir()
707 dirent->entryNum = loc; in ARCReadDir()
708 dirent->isDir = entryIsDir(FSTEntries, loc); in ARCReadDir()
709 dirent->name = GetStringPtr(handle->FSTStringStart, stringOff(FSTEntries, loc)); in ARCReadDir()
714 loc++; in ARCReadDir()
718 dir->location = entryIsDir(FSTEntries, loc)? nextDir(FSTEntries, loc) : (loc+1); in ARCReadDir()