| /linux/fs/ntfs/ |
| H A D | runlist.c | 155 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 161 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() 162 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 165 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE)) in ntfs_are_rl_mergeable() 168 if ((dst->lcn == LCN_DELALLOC) && (src->lcn == LCN_DELALLOC)) in ntfs_are_rl_mergeable() 249 if (dst[marker].lcn == LCN_ENOENT) in ntfs_rl_append() 333 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED || in ntfs_rl_insert() 334 dst[marker].lcn == LCN_DELALLOC) in ntfs_rl_insert() 346 dst[loc].lcn = LCN_RL_NOT_MAPPED; in ntfs_rl_insert() 432 if (dsize - tail > 0 && dst[marker].lcn == LCN_ENOENT) in ntfs_rl_replace() [all …]
|
| H A D | aops.c | 131 s64 lcn; in ntfs_bmap() local 164 lcn = ntfs_attr_vcn_to_lcn_nolock(ni, ntfs_bytes_to_cluster(vol, ofs), in ntfs_bmap() 167 if (unlikely(lcn < LCN_HOLE)) { in ntfs_bmap() 177 switch ((int)lcn) { in ntfs_bmap() 197 if (lcn < 0) { in ntfs_bmap() 208 if (unlikely(sizeof(block) < sizeof(lcn))) { in ntfs_bmap() 209 block = lcn = (ntfs_cluster_to_bytes(vol, lcn) + delta) >> in ntfs_bmap() 212 if (unlikely(block != lcn)) { in ntfs_bmap() 215 (long long)lcn); in ntfs_bmap() 219 block = (ntfs_cluster_to_bytes(vol, lcn) + delta) >> in ntfs_bmap() [all …]
|
| H A D | iomap.c | 200 s64 lcn; in ntfs_read_iomap_begin_non_resident() local 210 rl = ntfs_attr_vcn_to_rl(ni, vcn, &lcn); in ntfs_read_iomap_begin_non_resident() 217 if (lcn < LCN_HOLE) { in ntfs_read_iomap_begin_non_resident() 221 } else if (lcn < LCN_ENOENT) { in ntfs_read_iomap_begin_non_resident() 229 if (lcn <= LCN_DELALLOC) { in ntfs_read_iomap_begin_non_resident() 230 if (lcn == LCN_DELALLOC) in ntfs_read_iomap_begin_non_resident() 240 iomap->addr = ntfs_cluster_to_bytes(vol, lcn) + vcn_ofs; in ntfs_read_iomap_begin_non_resident() 245 if (rl_length == 0 && rl->lcn > LCN_DELALLOC) { in ntfs_read_iomap_begin_non_resident() 248 rl->vcn, rl->length, rl->lcn); in ntfs_read_iomap_begin_non_resident() 316 s64 vcn, lcn; in ntfs_iomap_valid() local [all …]
|
| H A D | logfile.c | 701 s64 lcn; in ntfs_empty_logfile() local 709 lcn = rl->lcn; in ntfs_empty_logfile() 710 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) { in ntfs_empty_logfile() 719 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile() 722 if (lcn == LCN_HOLE) in ntfs_empty_logfile() 724 start = NTFS_CLU_TO_B(vol, lcn); in ntfs_empty_logfile() 728 end = NTFS_CLU_TO_B(vol, lcn + len); in ntfs_empty_logfile()
|
| H A D | mft.c | 1163 s64 lcn; in ntfs_mft_bitmap_extend_allocation_nolock() local 1196 if (IS_ERR(rl) || unlikely(!rl->length || rl->lcn < 0)) { in ntfs_mft_bitmap_extend_allocation_nolock() 1206 lcn = rl->lcn + rl->length; in ntfs_mft_bitmap_extend_allocation_nolock() 1208 (long long)lcn); in ntfs_mft_bitmap_extend_allocation_nolock() 1214 ll = lcn >> 3; in ntfs_mft_bitmap_extend_allocation_nolock() 1226 tb = 1 << (lcn & 7ull); in ntfs_mft_bitmap_extend_allocation_nolock() 1246 rl2 = ntfs_cluster_alloc(vol, rl[1].vcn, 1, lcn, DATA_ZONE, in ntfs_mft_bitmap_extend_allocation_nolock() 1407 lcn = rl->lcn; in ntfs_mft_bitmap_extend_allocation_nolock() 1409 rl->lcn = rl[1].lcn; in ntfs_mft_bitmap_extend_allocation_nolock() 1415 if (ntfs_bitmap_clear_bit(vol->lcnbmp_ino, lcn)) { in ntfs_mft_bitmap_extend_allocation_nolock() [all …]
|
| H A D | attrib.c | 313 struct runlist_element *ntfs_attr_vcn_to_rl(struct ntfs_inode *ni, s64 vcn, s64 *lcn) in ntfs_attr_vcn_to_rl() argument 330 *lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_attr_vcn_to_rl() 332 if (*lcn <= LCN_RL_NOT_MAPPED && is_retry == false) { in ntfs_attr_vcn_to_rl() 376 s64 lcn; in ntfs_attr_vcn_to_lcn_nolock() local 393 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock() 394 if (likely(lcn >= LCN_HOLE)) { in ntfs_attr_vcn_to_lcn_nolock() 395 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock() 396 return lcn; in ntfs_attr_vcn_to_lcn_nolock() 398 if (lcn != LCN_RL_NOT_MAPPED) { in ntfs_attr_vcn_to_lcn_nolock() 399 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock() [all …]
|
| H A D | compress.c | 479 s64 lcn; in ntfs_read_compressed_block() local 614 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block() 616 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_compressed_block() 619 (unsigned long long)lcn); in ntfs_read_compressed_block() 620 if (lcn < 0) { in ntfs_read_compressed_block() 625 if (lcn == LCN_HOLE) in ntfs_read_compressed_block() 627 if (is_retry || lcn != LCN_RL_NOT_MAPPED) { in ntfs_read_compressed_block() 643 page_ofs = ntfs_cluster_to_poff(vol, lcn); in ntfs_read_compressed_block() 644 page_index = ntfs_cluster_to_pidx(vol, lcn); in ntfs_read_compressed_block() 1392 bio_lcn = rlc->lcn; in ntfs_write_cb()
|
| H A D | inode.c | 1717 s64 lcn; in load_attribute_list_mount() local 1736 lcn = ntfs_rl_vcn_to_lcn(rl, rl->vcn); in load_attribute_list_mount() 1739 (unsigned long long)lcn); in load_attribute_list_mount() 1741 if (lcn < 0) { in load_attribute_list_mount() 1746 rl_byte_off = ntfs_cluster_to_bytes(vol, lcn); in load_attribute_list_mount() 3653 s64 lcn, lcn_count; in __ntfs_inode_non_resident_attr_pwrite() local 3665 rl = ntfs_attr_vcn_to_rl(ni, vcn, &lcn); in __ntfs_inode_non_resident_attr_pwrite() 3690 ntfs_cluster_to_bytes(vol, lcn) + in __ntfs_inode_non_resident_attr_pwrite()
|
| H A D | super.c | 1014 rl2[0].lcn = vol->mftmirr_lcn; in check_mft_mirror() 1018 rl2[1].lcn = LCN_ENOENT; in check_mft_mirror() 1030 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()
|
| H A D | file.c | 100 while (rc >= 0 && rl[rc].lcn == LCN_HOLE && vcn_ds <= rl[rc].vcn) { in ntfs_trim_prealloc()
|
| /linux/fs/erofs/ |
| H A D | zmap.c | 13 u64 lcn; member 23 static int z_erofs_load_full_lcluster(struct z_erofs_maprecorder *m, u64 lcn) in z_erofs_load_full_lcluster() argument 29 lcn * sizeof(struct z_erofs_lcluster_index); in z_erofs_load_full_lcluster() 36 m->lcn = lcn; in z_erofs_load_full_lcluster() 96 u64 lcn, bool lookahead) in z_erofs_load_compact_lcluster() argument 111 if (lcn >= totalidx || lclusterbits > 14) in z_erofs_load_compact_lcluster() 114 m->lcn = lcn; in z_erofs_load_compact_lcluster() 124 if (lcn >= compacted_4b_initial) { in z_erofs_load_compact_lcluster() 126 lcn -= compacted_4b_initial; in z_erofs_load_compact_lcluster() 127 if (lcn < compacted_2b) { in z_erofs_load_compact_lcluster() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 510 CLST lcn, clen; in wnd_rescan() local 555 &lcn, &clen, NULL)) { in wnd_rescan() 560 lbo = ((u64)lcn << cluster_bits) + off; in wnd_rescan() 700 CLST lcn, clen; in wnd_map() local 709 if (!run_lookup_entry(&wnd->run, vbo >> sbi->cluster_bits, &lcn, &clen, in wnd_map() 714 lbo = ((u64)lcn << sbi->cluster_bits) + (vbo & sbi->cluster_mask); in wnd_map() 1406 void wnd_zone_set(struct wnd_bitmap *wnd, size_t lcn, size_t len) in wnd_zone_set() argument 1414 wnd_remove_free_ext(wnd, lcn, len); in wnd_zone_set() 1416 wnd->zone_bit = lcn; in wnd_zone_set() 1417 wnd->zone_end = lcn + len; in wnd_zone_set() [all …]
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | phy_lcn.c | 341 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 D | phy_common.h | 215 struct b43_phy_lcn *lcn; member
|