Lines Matching refs:loc
396 u32 loc; in entryToPath() local
408 loc = entryToPath(handle, parentDir(FSTEntries, entry), path, maxlen); in entryToPath()
410 if (loc == maxlen) in entryToPath()
412 return loc; in entryToPath()
415 *(path + loc++) = '/'; in entryToPath()
417 loc += myStrncpy(path + loc, name, maxlen - loc); in entryToPath()
419 return loc; in entryToPath()
437 u32 loc; in ARCConvertEntrynumToPath() local
453 loc = entryToPath(handle, (u32)entrynum, path, maxlen); in ARCConvertEntrynumToPath()
455 if (loc == maxlen) in ARCConvertEntrynumToPath()
465 if (loc == maxlen - 1) in ARCConvertEntrynumToPath()
468 path[loc] = '\0'; in ARCConvertEntrynumToPath()
472 path[loc++] = '/'; in ARCConvertEntrynumToPath()
475 path[loc] = '\0'; in ARCConvertEntrynumToPath()
611 u32 loc; in ARCReadDir() local
623 loc = dir->location; in ARCReadDir()
625 if ( (loc <= dir->entryNum) || (dir->next <= loc) ) in ARCReadDir()
629 dirent->entryNum = loc; in ARCReadDir()
630 dirent->isDir = entryIsDir(FSTEntries, loc); in ARCReadDir()
631 dirent->name = GetStringPtr(handle->FSTStringStart, stringOff(FSTEntries, loc)); in ARCReadDir()
636 loc++; in ARCReadDir()
640 dir->location = entryIsDir(FSTEntries, loc)? nextDir(FSTEntries, loc) : (loc+1); in ARCReadDir()