• Home
  • Raw
  • Download

Lines Matching refs:n

115 static secno alloc_in_bmp(struct super_block *s, secno near, unsigned n, unsigned forward)  in alloc_in_bmp()  argument
120 unsigned nr = (near & 0x3fff) & ~(n - 1); in alloc_in_bmp()
125 if (n != 1 && n != 4) { in alloc_in_bmp()
126 hpfs_error(s, "Bad allocation size: %d", n); in alloc_in_bmp()
134 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp()
138 q = nr + n; b = 0; in alloc_in_bmp()
139 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
141 if (n != 1) q = ((q-1)&~(n-1))+n; in alloc_in_bmp()
158 if (n + forward >= 0x3f && le32_to_cpu(bmp[i]) != 0xffffffff) goto cont; in alloc_in_bmp()
166 if (n != 1) q = ((q-1)&~(n-1))+n; in alloc_in_bmp()
167 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
169 if (n != 1) q = ((q-1)&~(n-1))+n; in alloc_in_bmp()
181 …t >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~(((1 << n) - 1) << (ret & 0x1f… in alloc_in_bmp()
182 hpfs_error(s, "Allocation doesn't work! Wanted %d, allocated at %08x", n, ret); in alloc_in_bmp()
186 bmp[(ret & 0x3fff) >> 5] &= cpu_to_le32(~(((1 << n) - 1) << (ret & 0x1f))); in alloc_in_bmp()
203 secno hpfs_alloc_sector(struct super_block *s, secno near, unsigned n, int forward) in hpfs_alloc_sector() argument
217 if ((sec = alloc_in_bmp(s, near, n, f_p ? forward : forward/4))) goto ret; in hpfs_alloc_sector()
231 if (near_bmp+i < n_bmps && ((sec = alloc_in_bmp(s, (near_bmp+i) << 14, n, forward)))) { in hpfs_alloc_sector()
236 if (near_bmp-i-1 >= 0 && ((sec = alloc_in_bmp(s, (near_bmp-i-1) << 14, n, forward)))) { in hpfs_alloc_sector()
241 if (near_bmp+i >= n_bmps && ((sec = alloc_in_bmp(s, (near_bmp+i-n_bmps) << 14, n, forward)))) { in hpfs_alloc_sector()
246 …if (i == 1 && sbi->sb_c_bitmap != -1 && ((sec = alloc_in_bmp(s, (sbi->sb_c_bitmap) << 14, n, forwa… in hpfs_alloc_sector()
263 while (unlikely(++i < n)); in hpfs_alloc_sector()
267 if (!hpfs_alloc_if_possible(s, sec + n + i)) { in hpfs_alloc_sector()
315 void hpfs_free_sectors(struct super_block *s, secno sec, unsigned n) in hpfs_free_sectors() argument
321 if (!n) return; in hpfs_free_sectors()
326 sbi->sb_max_fwd_alloc += n > 0xffff ? 0xffff : n; in hpfs_free_sectors()
340 if (!--n) { in hpfs_free_sectors()
359 int hpfs_check_free_dnodes(struct super_block *s, int n) in hpfs_check_free_dnodes() argument
370 for (k = le32_to_cpu(bmp[j]); k; k >>= 1) if (k & 1) if (!--n) { in hpfs_check_free_dnodes()
393 if (!--n) { in hpfs_check_free_dnodes()