Lines Matching refs:count

73 		    u_long count, u_long fillwith, u_long *retcluster,
76 u_long count);
79 static int fatchain(struct msdosfsmount *pmp, u_long start, u_long count,
90 u_long count, u_long fillwith, u_long *retcluster,
555 fatchain(struct msdosfsmount *pmp, u_long start, u_long count, u_long fillwith) in fatchain() argument
563 pmp, start, count, fillwith); in fatchain()
568 if (start < CLUST_FIRST || start + count - 1 > pmp->pm_maxcluster) in fatchain()
571 while (count > 0) { in fatchain()
579 while (count > 0) { in fatchain()
581 newc = --count > 0 ? start : fillwith; in fatchain()
626 chainlength(struct msdosfsmount *pmp, u_long start, u_long count) in chainlength() argument
641 len = MIN(len, count); in chainlength()
647 if (len >= count) { in chainlength()
648 len = count; in chainlength()
654 if (len >= count) in chainlength()
663 len = MIN(len, count); in chainlength()
681 chainalloc(struct msdosfsmount *pmp, u_long start, u_long count, in chainalloc() argument
689 for (cl = start, n = count; n-- > 0;) in chainalloc()
691 pmp->pm_nxtfree = start + count; in chainalloc()
695 error = fatchain(pmp, start, count, fillwith); in chainalloc()
697 for (cl = start, n = count; n-- > 0;) in chainalloc()
703 start, count); in chainalloc()
708 *got = count; in chainalloc()
724 clusteralloc(struct msdosfsmount *pmp, u_long start, u_long count, in clusteralloc() argument
729 error = clusteralloc1(pmp, start, count, fillwith, retcluster, got); in clusteralloc()
734 clusteralloc1(struct msdosfsmount *pmp, u_long start, u_long count, in clusteralloc1() argument
742 MSDOSFS_DPRINTF(("clusteralloc(): find %lu clusters\n", count)); in clusteralloc1()
745 if ((len = chainlength(pmp, start, count)) >= count) in clusteralloc1()
746 return (chainalloc(pmp, start, count, fillwith, retcluster, got)); in clusteralloc1()
759 if ((l = chainlength(pmp, cn, count)) >= count) in clusteralloc1()
760 return (chainalloc(pmp, cn, count, fillwith, retcluster, got)); in clusteralloc1()
776 if ((l = chainlength(pmp, cn, count)) >= count) in clusteralloc1()
777 return (chainalloc(pmp, cn, count, fillwith, retcluster, got)); in clusteralloc1()
950 m_extendfile(struct denode *dep, u_long count, struct m_buf **bpp, u_long *ncp, in m_extendfile() argument
986 while (count > 0) { in m_extendfile()
1000 error = clusteralloc(pmp, cn, count, CLUST_EOFE, &cn, &got); in m_extendfile()
1004 count -= got; in m_extendfile()