Searched refs:lcn (Results 1 - 23 of 23) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/
H A Ddebug.c59 LCN lcn = (rl + i)->lcn; local
61 if (lcn < (LCN)0) {
62 int idx = -lcn - 1;
72 (long long)rl[i].vcn, (long long)rl[i].lcn,
H A Dlcnalloc.c147 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
171 * approach and from the fact that we have access to the lcn bitmap via up to
186 LCN last_read_pos, lcn; local
205 ntfs_log_perror("%s: vcn: %lld, count: %lld, lcn: %lld",
216 rl[0].lcn = LCN_RL_NOT_MAPPED;
278 lcn = bmp_pos & 7;
282 while (lcn < buf_size) {
283 byte = buf + (lcn >> 3);
284 bit = 1 << (lcn & 7);
291 lcn
[all...]
H A Drunlist.c133 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED))
139 if ((dst->lcn >= 0) && (src->lcn >= 0) &&
140 ((dst->lcn + dst->length) == src->lcn))
143 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE))
224 if (dst[marker].lcn == LCN_ENOENT)
310 if (dst[marker].lcn
749 LCN lcn; /* Current lcn. */ local
1754 LCN lcn = rl->lcn; local
[all...]
H A Ddevice.c393 * @lcn: starting logical cluster number
397 * Read @count ntfs clusters starting at logical cluster number @lcn from
401 s64 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn, const s64 count, argument
406 if (!vol || lcn < 0 || count < 0) {
410 if (vol->nr_clusters < lcn + count) {
414 (long long)lcn + count);
417 br = ntfs_pread(vol->dev, lcn << vol->cluster_size_bits,
429 * @lcn: starting logical cluster number
433 * Write @count ntfs clusters starting at logical cluster number @lcn from
437 s64 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn, argument
[all...]
H A Dcompress.c280 if (rl->lcn < LCN_HOLE || !rl->length) {
283 if (!rl || rl->lcn < LCN_HOLE || !rl->length)
293 if (rl->lcn == LCN_HOLE)
417 if (!rl || rl->lcn < LCN_HOLE) {
426 if (rl->lcn == LCN_HOLE) {
H A Dmft.c643 LCN lcn; local
658 * Determine the last lcn of the mft bitmap. The allocated size of the
663 if (!rl || !rl->length || rl->lcn < 0) {
670 lcn = rl->lcn + rl->length;
672 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE);
804 lcn = rl->lcn;
805 rl->lcn = rl[1].lcn;
964 LCN lcn; local
[all...]
H A Dattrib.c217 * FIXME: If compressed file: Only read if lcn != -1.
227 r = ntfs_pread(vol->dev, rl[i].lcn <<
254 * FIXME: If compressed file: Only read if lcn != -1.
263 r = ntfs_pread(vol->dev, rl[i].lcn << vol->cluster_size_bits,
513 LCN lcn; local
519 lcn = ntfs_rl_vcn_to_lcn(na->rl, vcn);
520 if (lcn >= 0 || lcn == LCN_HOLE || lcn == LCN_ENOENT)
652 * ntfs_attr_vcn_to_lcn - convert a vcn into a lcn give
674 LCN lcn; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ntfs/
H A Drunlist.c162 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED))
168 if ((dst->lcn >= 0) && (src->lcn >= 0) &&
169 ((dst->lcn + dst->length) == src->lcn))
172 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE))
255 if (dst[marker].lcn == LCN_ENOENT)
341 if (dst[marker].lcn
719 LCN lcn; /* Current lcn. */ local
[all...]
H A Dlcnalloc.c47 * Locking: - The volume lcn bitmap must be locked for writing on entry and is
62 if (rl->lcn < 0)
64 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length);
77 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; local
224 lcn = bmp_pos & 7;
226 ntfs_debug("Before inner while loop: buf_size %i, lcn 0x%llx, "
228 (unsigned long long)lcn,
230 while (lcn < buf_size && lcn + bmp_pos < zone_end) {
231 byte = buf + (lcn >>
[all...]
H A Ddebug.c159 LCN lcn = (rl + i)->lcn; local
161 if (lcn < (LCN)0) {
162 int index = -lcn - 1;
174 (long long)(rl + i)->lcn,
H A Daops.c189 LCN lcn; local
276 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
278 lcn = LCN_RL_NOT_MAPPED;
280 if (lcn >= 0) {
282 bh->b_blocknr = ((lcn << vol->cluster_size_bits)
294 if (lcn == LCN_HOLE)
297 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) {
315 if (err == -ENOENT || lcn == LCN_ENOENT) {
554 LCN lcn; local
711 lcn
1000 LCN lcn; local
[all...]
H A Dattrib.c312 * ntfs_attr_vcn_to_lcn_nolock - convert a vcn into a lcn given an ntfs inode
319 * number (lcn).
322 * extent containing the @vcn and the vcn to lcn conversion is retried.
344 LCN lcn; local
363 /* Convert vcn to lcn. If that fails map the runlist and retry once. */
364 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn);
365 if (likely(lcn >= LCN_HOLE)) {
366 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn);
367 return lcn;
713 LCN lcn; local
[all...]
H A Dfile.c484 LCN lcn; local
538 vcn = lcn = -1;
613 * clusters, @lcn is the device cluster corresponding to @vcn,
614 * and @lcn_block is the block number corresponding to @lcn.
619 BUG_ON(lcn < 0);
749 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos);
750 if (likely(lcn >= 0)) {
758 lcn_block = lcn << (vol->cluster_size_bits -
779 lcn = LCN_RL_NOT_MAPPED;
784 if (unlikely(lcn !
1785 LCN lcn; local
[all...]
H A Drunlist.h32 * runlist_element - in memory vcn to lcn mapping array element
34 * @lcn: starting lcn of the current array element
39 * When lcn == -1 this means that the count vcns starting at vcn are not
42 typedef struct { /* In memory vcn to lcn mapping structure element. */
44 LCN lcn; /* lcn = Starting logical cluster number. */ member in struct:__anon16911
49 * runlist - in memory vcn to lcn mapping array including a read/write lock
H A Dcompress.c460 LCN lcn; local
586 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
588 lcn = LCN_RL_NOT_MAPPED;
589 ntfs_debug("Reading vcn = 0x%llx, lcn = 0x%llx.",
591 (unsigned long long)lcn);
592 if (lcn < 0) {
597 if (lcn == LCN_HOLE)
599 if (is_retry || lcn != LCN_RL_NOT_MAPPED)
611 block = lcn << vol->cluster_size_bits >> block_size_bits;
612 /* Read the lcn fro
[all...]
H A Dlogfile.c775 LCN lcn; local
783 lcn = rl->lcn;
784 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) {
789 if (unlikely(!rl->length || lcn < LCN_HOLE))
792 if (lcn == LCN_HOLE)
794 block = lcn << vol->cluster_size_bits >> block_size_bits;
798 end_block = (lcn + len) << vol->cluster_size_bits >>
H A Dmft.c529 LCN lcn; local
551 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
552 /* For $MFTMirr, only lcn >= 0 is a successful remap. */
553 if (likely(lcn >= 0)) {
555 bh->b_blocknr = ((lcn <<
566 (long long)lcn);
718 LCN lcn; local
735 lcn = ntfs_rl_vcn_to_lcn(rl, vcn);
736 /* For $MFT, only lcn >= 0 is a successful remap. */
737 if (likely(lcn >
1274 LCN lcn; local
1710 LCN lcn; local
[all...]
H A Dsuper.c908 * Setup the cluster (lcn) and mft allocators to the starting values.
1142 rl2[0].lcn = vol->mftmirr_lcn;
1146 rl2[1].lcn = LCN_ENOENT;
1158 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn ||
1719 * The lcn and mft bitmap inodes are NTFS-internal inodes with
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wan/
H A Dcycx_x25.c114 s16 lcn; /* logical channel number/conn.req.key*/ member in struct:cycx_x25_channel
172 cycx_x25_send(struct cycx_device *card, u8 link, u8 lcn, u8 bitm,
177 u8 lcn);
199 s16 lcn);
427 s16 lcn = dec_to_uint(conf->addr, 0); local
429 if (lcn >= card->u.x.lo_pvc && lcn <= card->u.x.hi_pvc)
430 chan->lcn = lcn;
434 wandev->name, lcn, cha
739 u8 lcn; local
773 u8 bitm, lcn; local
860 u8 lcn, sizeloc, sizerem; local
901 u8 lcn, key; local
929 u8 lcn; local
951 u8 lcn; local
1251 cycx_x25_disconnect_response(struct cycx_device *card, u8 link, u8 lcn) argument
1265 x25_clear_call(struct cycx_device *card, u8 link, u8 lcn, u8 cause, u8 diagn) argument
1281 cycx_x25_send(struct cycx_device *card, u8 link, u8 lcn, u8 bitm, int len, void *buf) argument
1294 cycx_x25_get_dev_by_lcn(struct wan_device *wandev, s16 lcn) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/include/ntfs-3g/
H A Drunlist.h36 * struct _runlist_element - in memory vcn to lcn mapping array element.
38 * @lcn: starting lcn of the current array element
43 * When lcn == -1 this means that the count vcns starting at vcn are not
46 struct _runlist_element {/* In memory vcn to lcn mapping structure element. */
48 LCN lcn; /* lcn = Starting logical cluster number. */ member in struct:_runlist_element
H A Ddevice.h116 extern s64 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn,
118 extern s64 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn,
H A Dlogfile.h386 LCN lcn; member in struct:__anon4284::__anon4285
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/src/
H A Dntfs-3g.c1328 LCN lcn; local
1358 lcn = ntfs_rl_vcn_to_lcn(na->rl, *idx / cl_per_bl);
1359 *idx = (lcn > 0) ? lcn * cl_per_bl + *idx % cl_per_bl : 0;

Completed in 263 milliseconds