Home
last modified time | relevance | path

Searched refs:lcn (Results 1 – 13 of 13) sorted by relevance

/linux/fs/ntfs3/
H A Drun.c23 CLST lcn; /* Logical cluster number. */ member
124 if (n->lcn != SPARSE_LCN) in run_consolidate()
125 n->lcn += dl; in run_consolidate()
133 if ((n->lcn == SPARSE_LCN) != (r->lcn == SPARSE_LCN)) { in run_consolidate()
141 * of a next run lcn does not match in run_consolidate()
144 if (n->lcn != SPARSE_LCN && n->lcn != r->lcn + r->len) in run_consolidate()
192 bool run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn, in run_lookup_entry() argument
316 run_add_entry(struct runs_tree * run,CLST vcn,CLST lcn,CLST len,bool is_mft) run_add_entry() argument
596 run_get_entry(const struct runs_tree * run,size_t index,CLST * vcn,CLST * lcn,CLST * len) run_get_entry() argument
820 CLST next_vcn, vcn, lcn; run_pack() local
924 u64 prev_lcn, vcn64, lcn, next_vcn; run_unpack() local
1057 CLST next_vcn, lcn, len; run_unpack_ex() local
[all...]
H A Dfsntfs.c352 int ntfs_look_for_free_space(struct ntfs_sb_info *sbi, CLST lcn, CLST len, in ntfs_look_for_free_space() argument
380 lcn = wnd_zone_bit(wnd); in ntfs_look_for_free_space()
383 wnd_zone_set(wnd, lcn + alen, zlen - alen); in ntfs_look_for_free_space()
385 err = wnd_set_used(wnd, lcn, alen); in ntfs_look_for_free_space()
389 alcn = lcn; in ntfs_look_for_free_space()
396 if (!lcn) in ntfs_look_for_free_space()
397 lcn = sbi->used.next_free_lcn; in ntfs_look_for_free_space()
399 if (lcn >= wnd->nbits) in ntfs_look_for_free_space()
400 lcn = 0; in ntfs_look_for_free_space()
402 alen = wnd_find(wnd, len, lcn, BITMAP_FIND_MARK_AS_USE in ntfs_look_for_free_space()
815 CLST lcn, vcn, len; ntfs_refresh_zone() local
1113 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; ntfs_sb_write_run() local
1160 CLST lcn; ntfs_bread_run() local
1181 CLST lcn, clen; ntfs_read_run_nb() local
1310 CLST lcn, clen; ntfs_get_bh() local
1487 CLST lcn, clen, vcn, vcn_next; ntfs_bio_pages() local
1583 CLST lcn, clen; ntfs_bio_fill_1() local
1650 CLST lcn, len; ntfs_vbo_to_lbo() local
2451 ntfs_unmap_and_discard(struct ntfs_sb_info * sbi,CLST lcn,CLST len) ntfs_unmap_and_discard() argument
2458 mark_as_free_ex(struct ntfs_sb_info * sbi,CLST lcn,CLST len,bool trim) mark_as_free_ex() argument
2531 CLST lcn, len; run_deallocate() local
[all...]
H A Dattrib.c97 CLST vcn_next, vcn0 = vcn, lcn, clen, dn = 0; in run_deallocate_ex() local
103 if (!run_lookup_entry(run, vcn, &lcn, &clen, &idx)) { in run_deallocate_ex()
119 if (lcn != SPARSE_LCN) { in run_deallocate_ex()
121 /* mark bitmap range [lcn + clen) as free and trim clusters. */ in run_deallocate_ex()
122 mark_as_free_ex(sbi, lcn, clen, trim); in run_deallocate_ex()
132 if (!run_get_entry(run, ++idx, &vcn, &lcn, &clen) || in run_deallocate_ex()
150 CLST vcn, CLST lcn, CLST len, CLST *pre_alloc, in attr_allocate_clusters() argument
159 err = ntfs_look_for_free_space(sbi, lcn, len + pre, &lcn, &flen, in attr_allocate_clusters()
175 *new_lcn = lcn; in attr_allocate_clusters()
416 CLST alen, vcn, lcn, new_alen, old_alen, svcn, evcn; attr_set_size() local
886 attr_data_get_block(struct ntfs_inode * ni,CLST vcn,CLST clen,CLST * lcn,CLST * len,bool * new,bool zero) attr_data_get_block() argument
1356 CLST lcn, clen; attr_load_runs_range() local
1533 CLST clen, lcn, vcn, alen, slen, vcn_next; attr_is_frame_compressed() local
[all...]
H A Dfile.c141 CLST vcn, lcn, clen; in ntfs_extend_initialized_size() local
147 err = attr_data_get_block(ni, vcn, 1, &lcn, &clen, NULL, in ntfs_extend_initialized_size()
152 if (lcn == SPARSE_LCN) { in ntfs_extend_initialized_size()
312 CLST lcn, len; in ntfs_file_mmap_prepare() local
318 err = attr_data_get_block(ni, vcn, 1, &lcn, in ntfs_file_mmap_prepare()
381 CLST lcn, clen; in ntfs_extend() local
392 err = attr_data_get_block(ni, vcn, cend_v - vcn, &lcn, in ntfs_extend()
401 err = attr_data_get_block(ni, vcn, cend - vcn, &lcn, in ntfs_extend()
681 CLST lcn, clen; in ntfs_fallocate() local
693 &lcn, in ntfs_fallocate()
975 CLST lcn, clen; ntfs_compress_write() local
[all...]
H A Dbitmap.c510 CLST lcn, clen; in wnd_rescan() local
546 &lcn, &clen, NULL)) { in wnd_rescan()
551 lbo = ((u64)lcn << cluster_bits) + off; in wnd_rescan()
683 CLST lcn, clen; in wnd_map() local
692 if (!run_lookup_entry(&wnd->run, vbo >> sbi->cluster_bits, &lcn, &clen, in wnd_map()
697 lbo = ((u64)lcn << sbi->cluster_bits) + (vbo & sbi->cluster_mask); in wnd_map()
1388 void wnd_zone_set(struct wnd_bitmap *wnd, size_t lcn, size_t len) in wnd_zone_set() argument
1396 wnd_remove_free_ext(wnd, lcn, len); in wnd_zone_set()
1398 wnd->zone_bit = lcn; in wnd_zone_set()
1399 wnd->zone_end = lcn in wnd_zone_set()
1408 CLST len = 0, lcn = 0, done = 0; ntfs_trim_fs() local
[all...]
H A Dsuper.c12 * lcn - logical cluster number - 0 based cluster in clusters heap.
25 * It means you should use 64 bits lcn to operate with ntfs.
26 * Implementation of ntfs.sys uses only 32 bits lcn.
27 * Default ntfs3 uses 32 bits lcn too.
28 * ntfs3 built with CONFIG_NTFS3_64BIT_CLUSTER (ntfs3_64) uses 64 bits per lcn.
1205 CLST vcn, lcn, len; in ntfs_fill_super() local
1426 for (i = 0; run_get_entry(&ni->file.run, i, &vcn, &lcn, &len); i++) { in ntfs_fill_super()
1427 if (lcn == SPARSE_LCN) in ntfs_fill_super()
1435 if (wnd_set_used_safe(&sbi->used.bitmap, lcn, len, &tt) || tt) { in ntfs_fill_super()
1650 void ntfs_unmap_meta(struct super_block *sb, CLST lcn, CLS argument
1679 ntfs_discard(struct ntfs_sb_info * sbi,CLST lcn,CLST len) ntfs_discard() argument
[all...]
H A Dfrecord.c1866 CLST lcn, clen; in ni_fiemap() local
1911 ok = run_lookup_entry(&run, vcn, &lcn, &clen, &idx); in ni_fiemap()
1915 ok = run_get_entry(&run, ++idx, &vcn, &lcn, &clen) && in ni_fiemap()
1929 ok = run_lookup_entry(&run, vcn, &lcn, &clen, &idx); in ni_fiemap()
1942 if (lcn == SPARSE_LCN) { in ni_fiemap()
1967 lbo = (u64)lcn << cluster_bits; in ni_fiemap()
2121 CLST vcn, cend, lcn, clen, end; in ni_decompress_file() local
2169 err = attr_data_get_block(ni, vcn, cend - vcn, &lcn, in ni_decompress_file()
H A Dfslog.c228 __le64 lcn; member
3753 CLST rno, lcn, lcn0, len0, clen; in log_replay() local
4552 u64 lcn0 = le64_to_cpu(r->lcn); in log_replay()
4850 lcn = le64_to_cpu(dp->page_lcns[i]); in log_replay()
4853 lcn0 != lcn) && in log_replay()
4854 !run_add_entry(oa->run1, vcn, lcn, 1, false)) { in log_replay()
4943 if (!run_lookup_entry(oa->run1, vcn, &lcn, NULL, NULL) || in log_replay()
4944 lcn == SPARSE_LCN) { in log_replay()
5067 &lcn, &clen, NULL); in log_replay()
5074 if (is_mapped && lcn ! in log_replay()
[all...]
H A Dindex.c379 CLST lcn, clen, vcn, vcn_next; in scan_nres_bitmap() local
393 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap()
408 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in scan_nres_bitmap()
415 block = (sector_t)lcn * sbi->blocks_per_cluster; in scan_nres_bitmap()
452 ok = run_get_entry(run, ++idx, &vcn, &lcn, &clen) && vcn == vcn_next; in scan_nres_bitmap()
H A Dinode.c577 CLST vcn, lcn, len; in ntfs_get_block_vbo() local
605 err = attr_data_get_block(ni, vcn, 1, &lcn, &len, create ? &new : NULL, in ntfs_get_block_vbo()
615 if (lcn >= sbi->used.bitmap.nbits) { in ntfs_get_block_vbo()
628 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_get_block_vbo()
/linux/fs/erofs/
H A Dzmap.c13 unsigned long lcn; member
24 unsigned long lcn) in z_erofs_load_full_lcluster() argument
30 lcn * sizeof(struct z_erofs_lcluster_index); in z_erofs_load_full_lcluster()
37 m->lcn = lcn; in z_erofs_load_full_lcluster()
101 unsigned long lcn, bool lookahead) in z_erofs_load_compact_lcluster() argument
116 if (lcn >= totalidx || lclusterbits > 14) in z_erofs_load_compact_lcluster()
119 m->lcn = lcn; in z_erofs_load_compact_lcluster()
129 if (lcn > in z_erofs_load_compact_lcluster()
241 z_erofs_load_lcluster_from_disk(struct z_erofs_maprecorder * m,unsigned int lcn,bool lookahead) z_erofs_load_lcluster_from_disk() argument
268 unsigned long lcn = m->lcn - lookback_distance; z_erofs_extent_lookback() local
300 unsigned long lcn = m->lcn + 1; z_erofs_get_extent_compressedlen() local
353 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; z_erofs_get_extent_decompressedlen() local
[all...]
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_lcn.c341 tx_pwr_idx = dev->phy.lcn->tx_pwr_curr_idx; in b43_phy_lcn_sense_setup()
537 if (!dev->phy.lcn->hw_pwr_ctl_capable) { in b43_phy_lcn_tx_pwr_ctl_init()
675 dev->phy.lcn = phy_lcn; in b43_phy_lcn_op_allocate()
683 struct b43_phy_lcn *phy_lcn = phy->lcn; in b43_phy_lcn_op_free()
686 phy->lcn = NULL; in b43_phy_lcn_op_free()
692 struct b43_phy_lcn *phy_lcn = phy->lcn; in b43_phy_lcn_op_prepare_structs()
H A Dphy_common.h215 struct b43_phy_lcn *lcn; member