Lines Matching refs:nfiles
637 static void display_files(struct dnode **dn, unsigned nfiles) in display_files() argument
662 nrows = nfiles / ncols; in display_files()
663 if (nrows * ncols < nfiles) in display_files()
666 nrows = nfiles; in display_files()
679 if (i < nfiles) { in display_files()
906 static void sort_and_display_files(struct dnode **dn, unsigned nfiles) in sort_and_display_files() argument
908 dnsort(dn, nfiles); in sort_and_display_files()
909 display_files(dn, nfiles); in sort_and_display_files()
913 # define sort_and_display_files(dn, nfiles) display_files(dn, nfiles) argument
922 unsigned i, nfiles; in scan_one_dir() local
931 nfiles = 0; in scan_one_dir()
954 nfiles++; in scan_one_dir()
964 *nfiles_p = nfiles; in scan_one_dir()
965 dnp = dnalloc(nfiles); in scan_one_dir()
1007 unsigned nfiles; in scan_and_display_dirs_recur() local
1017 subdnp = scan_one_dir((*dn)->fullname, &nfiles); in scan_and_display_dirs_recur()
1031 if (nfiles > 0) { in scan_and_display_dirs_recur()
1033 sort_and_display_files(subdnp, nfiles); in scan_and_display_dirs_recur()
1065 unsigned nfiles; in ls_main() local
1209 nfiles = 0; in ls_main()
1224 nfiles++; in ls_main()
1228 if (nfiles == 0) in ls_main()
1234 dnp = dnalloc(nfiles); in ls_main()
1243 sort_and_display_files(dnp, nfiles); in ls_main()
1248 dnfiles = nfiles - dndirs; in ls_main()