• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:loc

169  * @loc:	append the new runlist @src after this element in @dst
171 * Append the runlist @src after element @loc in @dst. Merge the right end of
184 runlist_element *src, int ssize, int loc)
197 if ((loc + 1) < dsize)
198 right = ntfs_rl_are_mergeable(src + ssize - 1, dst + loc + 1);
211 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1);
214 marker = loc + ssize + 1;
217 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - loc - 1 - right);
218 ntfs_rl_mc(dst, loc + 1, src, 0, ssize);
221 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn;
236 * @loc: insert the new runlist @src before this element in @dst
238 * Insert the runlist @src before element @loc in the runlist @dst. Merge the
251 runlist_element *src, int ssize, int loc)
267 if (loc == 0)
272 left = ntfs_rl_are_mergeable(dst + loc - 1, src);
274 merged_length = dst[loc - 1].length;
278 disc = (src[0].vcn > dst[loc - 1].vcn + merged_length);
293 __ntfs_rl_merge(dst + loc - 1, src);
297 * Nominally: marker = @loc + @ssize (location + number of runs in @src)
301 marker = loc + ssize - left + disc;
304 ntfs_rl_mm(dst, marker, loc, dsize - loc);
305 ntfs_rl_mc(dst, loc + disc, src, left, ssize - left);
315 if (loc > 0) {
316 dst[loc].vcn = dst[loc - 1].vcn + dst[loc - 1].length;
317 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn;
319 dst[loc].vcn = 0;
320 dst[loc].length = dst[loc + 1].vcn;
322 dst[loc].lcn = LCN_RL_NOT_MAPPED;
333 * @loc: index in runlist @dst to overwrite with @src
335 * Replace the runlist element @dst at @loc with @src. Merge the left and
348 int loc)
364 if ((loc + 1) < dsize)
365 right = ntfs_rl_are_mergeable(src + ssize - 1, dst + loc + 1);
366 if (loc > 0)
367 left = ntfs_rl_are_mergeable(dst + loc - 1, src);
385 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1);
387 __ntfs_rl_merge(dst + loc - 1, src);
391 * Nominally: @tail = @loc + 1 (location, skipping the replaced run)
394 tail = loc + right + 1;
398 * Nominally: @marker = @loc + @ssize (location + number of runs in @src)
401 marker = loc + ssize - left;
405 ntfs_rl_mc(dst, loc, src, left, ssize - left);
420 * @loc: index in runlist @dst at which to split and insert @src
422 * Split the runlist @dst at @loc into two and insert @new in between the two
435 runlist_element *src, int ssize, int loc)
453 ntfs_rl_mm(dst, loc + 1 + ssize, loc, dsize - loc);
454 ntfs_rl_mc(dst, loc + 1, src, 0, ssize);
457 dst[loc].length = dst[loc+1].vcn - dst[loc].vcn;
458 dst[loc+ssize+1].vcn = dst[loc+ssize].vcn + dst[loc+ssize].length;
459 dst[loc+ssize+1].length = dst[loc+ssize+2].vcn - dst[loc+ssize+1].vcn;