Home
last modified time | relevance | path

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

/openbmc/linux/fs/ntfs3/
H A Drun.c133 if ((n->lcn == SPARSE_LCN) != (r->lcn == SPARSE_LCN)) { in run_consolidate()
144 if (n->lcn != SPARSE_LCN && n->lcn != r->lcn + r->len) in run_consolidate()
215 *lcn = r->lcn == SPARSE_LCN ? SPARSE_LCN : (r->lcn + gap); in run_lookup_entry()
345 (lcn == SPARSE_LCN || lcn == t->lcn + t->len)) { in run_add_entry()
415 r->lcn = lcn; in run_add_entry()
429 (lcn != SPARSE_LCN && lcn != r->lcn + (vcn - r->vcn))) { in run_add_entry()
451 r->lcn = lcn; in run_add_entry()
610 if (lcn) in run_get_entry()
611 *lcn = r->lcn; in run_get_entry()
851 lcn = r->lcn == SPARSE_LCN ? SPARSE_LCN : (r->lcn + len); in run_pack()
[all …]
H A Dfsntfs.c389 alcn = lcn; in ntfs_look_for_free_space()
396 if (!lcn) in ntfs_look_for_free_space()
400 lcn = 0; in ntfs_look_for_free_space()
834 lcn_s = lcn + 1; in ntfs_refresh_zone()
1180 CLST lcn; in ntfs_bread_run() local
1201 CLST lcn, clen; in ntfs_read_run_nb() local
1330 CLST lcn, clen; in ntfs_get_bh() local
1603 CLST lcn, clen; in ntfs_bio_fill_1() local
1670 CLST lcn, len; in ntfs_vbo_to_lbo() local
2494 lcn = i; in mark_as_free_ex()
[all …]
H A Dattrib.c119 if (lcn != SPARSE_LCN) { in run_deallocate_ex()
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()
523 lcn = 0; in attr_set_size()
543 lcn = SPARSE_LCN; in attr_set_size()
547 lcn = 0; in attr_set_size()
548 else if (lcn) in attr_set_size()
549 lcn += 1; in attr_set_size()
936 *lcn = RESIDENT_LCN; in attr_data_get_block()
947 *lcn = SPARSE_LCN; in attr_data_get_block()
[all …]
H A Dfile.c120 CLST vcn, lcn, clen; in ntfs_extend_initialized_size() local
126 err = attr_data_get_block(ni, vcn, 1, &lcn, &clen, NULL, in ntfs_extend_initialized_size()
131 if (lcn == SPARSE_LCN) { in ntfs_extend_initialized_size()
288 CLST lcn, len; in ntfs_file_mmap() local
294 err = attr_data_get_block(ni, vcn, 1, &lcn, in ntfs_file_mmap()
610 CLST lcn, clen; in ntfs_fallocate() local
622 &lcn, &clen, &new, in ntfs_fallocate()
632 &lcn, &clen, &new, in ntfs_fallocate()
889 CLST lcn, clen; in ntfs_compress_write() local
895 err = attr_data_get_block(ni, frame << NTFS_LZNT_CUNIT, 1, &lcn, in ntfs_compress_write()
[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
1424 wnd_remove_free_ext(wnd, lcn, len); in wnd_zone_set()
1426 wnd->zone_bit = lcn; in wnd_zone_set()
1427 wnd->zone_end = lcn + len; in wnd_zone_set()
1436 CLST len = 0, lcn = 0, done = 0; in ntfs_trim_fs() local
1478 lcn = lcn_wnd + wbit; in ntfs_trim_fs()
1483 err = ntfs_discard(sbi, lcn, len); in ntfs_trim_fs()
[all …]
H A Dsuper.c1157 CLST vcn, lcn, len; in ntfs_fill_super() local
1377 for (i = 0; run_get_entry(&ni->file.run, i, &vcn, &lcn, &len); i++) { in ntfs_fill_super()
1378 if (lcn == SPARSE_LCN) in ntfs_fill_super()
1386 if (wnd_set_used_safe(&sbi->used.bitmap, lcn, len, &tt) || tt) { in ntfs_fill_super()
1627 void ntfs_unmap_meta(struct super_block *sb, CLST lcn, CLST len) in ntfs_unmap_meta() argument
1631 sector_t devblock = (u64)lcn * sbi->blocks_per_cluster; in ntfs_unmap_meta()
1656 int ntfs_discard(struct ntfs_sb_info *sbi, CLST lcn, CLST len) in ntfs_discard() argument
1662 if (sbi->used.next_free_lcn == lcn + len) in ntfs_discard()
1663 sbi->used.next_free_lcn = lcn; in ntfs_discard()
1671 lbo = (u64)lcn << sbi->cluster_bits; in ntfs_discard()
H A Dntfs_fs.h424 CLST vcn, CLST lcn, CLST len, CLST *pre_alloc,
435 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn,
595 int ntfs_look_for_free_space(struct ntfs_sb_info *sbi, CLST lcn, CLST len,
653 void mark_as_free_ex(struct ntfs_sb_info *sbi, CLST lcn, CLST len, bool trim);
791 bool run_lookup_entry(const struct runs_tree *run, CLST vcn, CLST *lcn,
796 bool run_add_entry(struct runs_tree *run, CLST vcn, CLST lcn, CLST len,
801 CLST *lcn, CLST *len);
823 void ntfs_unmap_meta(struct super_block *sb, CLST lcn, CLST len);
H A Dfrecord.c1915 CLST lcn, clen; in ni_fiemap() local
1965 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in ni_fiemap()
1969 ok = run_get_entry(run, ++idx, &vcn, &lcn, &clen) && in ni_fiemap()
1989 ok = run_lookup_entry(run, vcn, &lcn, &clen, &idx); in ni_fiemap()
2002 if (lcn == SPARSE_LCN) { in ni_fiemap()
2026 lbo = (u64)lcn << cluster_bits; in ni_fiemap()
2182 CLST vcn, cend, lcn, clen, end; in ni_decompress_file() local
2230 err = attr_data_get_block(ni, vcn, cend - vcn, &lcn, in ni_decompress_file()
H A Dfslog.c228 __le64 lcn; member
3734 CLST rno, lcn, lcn0, len0, clen; in log_replay() local
4507 u64 lcn0 = le64_to_cpu(r->lcn); in log_replay()
4806 lcn = le64_to_cpu(dp->page_lcns[i]); in log_replay()
4809 lcn0 != lcn) && in log_replay()
4810 !run_add_entry(oa->run1, vcn, lcn, 1, false)) { in log_replay()
4899 if (!run_lookup_entry(oa->run1, vcn, &lcn, NULL, NULL) || in log_replay()
4900 lcn == SPARSE_LCN) { in log_replay()
5023 &lcn, &clen, NULL); in log_replay()
5030 if (is_mapped && lcn != SPARSE_LCN && clen >= t16) in log_replay()
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.c566 CLST vcn, lcn, len; in ntfs_get_block_vbo() local
593 err = attr_data_get_block(ni, vcn, 1, &lcn, &len, create ? &new : NULL, in ntfs_get_block_vbo()
603 if (lcn == SPARSE_LCN) { in ntfs_get_block_vbo()
615 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_get_block_vbo()
/openbmc/linux/fs/ntfs/
H A Drunlist.c148 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable()
154 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable()
155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable()
158 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE)) in ntfs_are_rl_mergeable()
327 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED) in ntfs_rl_insert()
659 drl[ds].lcn); in ntfs_runlists_merge()
759 lcn = 0; in ntfs_mapping_pairs_decompress()
855 lcn += deltaxcn; in ntfs_mapping_pairs_decompress()
878 rl[rlpos].lcn = lcn; in ntfs_mapping_pairs_decompress()
1019 return rl[i].lcn; in ntfs_rl_vcn_to_lcn()
[all …]
H A Dlcnalloc.c48 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock()
284 lcn = bmp_pos & 7; in ntfs_cluster_alloc()
290 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
303 lcn = (lcn + 8) & ~(LCN)7; in ntfs_cluster_alloc()
307 bit = 1 << (lcn & 7); in ntfs_cluster_alloc()
311 lcn++; in ntfs_cluster_alloc()
328 (lcn + bmp_pos)); in ntfs_cluster_alloc()
367 rl[rlpos - 1].lcn, in ntfs_cluster_alloc()
395 rl[rlpos].lcn = prev_lcn = lcn + bmp_pos; in ntfs_cluster_alloc()
480 lcn++; in ntfs_cluster_alloc()
[all …]
H A Daops.c168 LCN lcn; in ntfs_read_block() local
259 if (lcn >= 0) { in ntfs_read_block()
273 if (lcn == LCN_HOLE) in ntfs_read_block()
534 LCN lcn; in ntfs_write_block() local
717 if (lcn >= 0) { in ntfs_write_block()
1005 LCN lcn; in ntfs_write_mst_block() local
1051 lcn = err2; in ntfs_write_mst_block()
1553 LCN lcn; in ntfs_bmap() local
1601 switch ((int)lcn) { in ntfs_bmap()
1621 if (lcn < 0) { in ntfs_bmap()
[all …]
H A Ddebug.c135 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist() local
137 if (lcn < (LCN)0) { in ntfs_debug_dump_runlist()
138 int index = -lcn - 1; in ntfs_debug_dump_runlist()
150 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
H A Dfile.c567 LCN lcn; in ntfs_prepare_pages_for_non_resident_write() local
621 vcn = lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
702 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
832 if (likely(lcn >= 0)) { in ntfs_prepare_pages_for_non_resident_write()
866 if (unlikely(lcn != LCN_HOLE && lcn != LCN_ENOENT)) { in ntfs_prepare_pages_for_non_resident_write()
894 lcn = LCN_ENOENT; in ntfs_prepare_pages_for_non_resident_write()
966 lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
969 if (rl2->lcn >= 0) { in ntfs_prepare_pages_for_non_resident_write()
970 lcn = rl2->lcn + rl2->length; in ntfs_prepare_pages_for_non_resident_write()
982 lcn = rl2->lcn; in ntfs_prepare_pages_for_non_resident_write()
[all …]
H A Dattrib.c330 LCN lcn; in ntfs_attr_vcn_to_lcn_nolock() local
353 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
357 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
381 lcn = LCN_ENOENT; in ntfs_attr_vcn_to_lcn_nolock()
383 lcn = LCN_ENOMEM; in ntfs_attr_vcn_to_lcn_nolock()
385 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
387 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock()
389 (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock()
390 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
723 LCN lcn; in load_attribute_list() local
[all …]
H A Dlogfile.c761 LCN lcn; in ntfs_empty_logfile() local
769 lcn = rl->lcn; in ntfs_empty_logfile()
770 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) { in ntfs_empty_logfile()
775 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile()
778 if (lcn == LCN_HOLE) in ntfs_empty_logfile()
780 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_empty_logfile()
784 end_block = (lcn + len) << vol->cluster_size_bits >> in ntfs_empty_logfile()
H A Dmft.c526 LCN lcn; in ntfs_sync_mft_mirror() local
563 (long long)lcn); in ntfs_sync_mft_mirror()
719 LCN lcn; in write_mft_record_nolock() local
1275 LCN lcn; in ntfs_mft_bitmap_extend_allocation_nolock() local
1316 lcn = rl->lcn + rl->length; in ntfs_mft_bitmap_extend_allocation_nolock()
1318 (long long)lcn); in ntfs_mft_bitmap_extend_allocation_nolock()
1324 ll = lcn >> 3; in ntfs_mft_bitmap_extend_allocation_nolock()
1520 lcn = rl->lcn; in ntfs_mft_bitmap_extend_allocation_nolock()
1522 rl->lcn = rl[1].lcn; in ntfs_mft_bitmap_extend_allocation_nolock()
1711 LCN lcn; in ntfs_mft_data_extend_allocation_nolock() local
[all …]
H A Dcompress.c479 LCN lcn; in ntfs_read_compressed_block() local
609 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block()
611 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_compressed_block()
614 (unsigned long long)lcn); in ntfs_read_compressed_block()
615 if (lcn < 0) { in ntfs_read_compressed_block()
620 if (lcn == LCN_HOLE) in ntfs_read_compressed_block()
622 if (is_retry || lcn != LCN_RL_NOT_MAPPED) in ntfs_read_compressed_block()
634 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_read_compressed_block()
H A Drunlist.h30 LCN lcn; /* lcn = Starting logical cluster number. */ member
H A Dsuper.c1175 rl2[0].lcn = vol->mftmirr_lcn; in check_mft_mirror()
1179 rl2[1].lcn = LCN_ENOENT; in check_mft_mirror()
1191 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()
/openbmc/linux/fs/erofs/
H A Dzmap.c15 unsigned long lcn; member
42 m->lcn = lcn; in z_erofs_load_full_lcluster()
237 if (lcn >= totalidx) in z_erofs_load_compact_lcluster()
240 m->lcn = lcn; in z_erofs_load_compact_lcluster()
265 lcn -= compacted_2b; in z_erofs_load_compact_lcluster()
297 unsigned long lcn = m->lcn - lookback_distance; in z_erofs_extent_lookback() local
337 unsigned long lcn; in z_erofs_get_extent_compressedlen() local
353 lcn = m->lcn + 1; in z_erofs_get_extent_compressedlen()
409 u64 lcn = m->lcn, headlcn = map->m_la >> lclusterbits; in z_erofs_get_extent_decompressedlen() local
439 lcn += m->delta[1]; in z_erofs_get_extent_decompressedlen()
[all …]
/openbmc/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