Lines Matching refs:off
1013 u32 off = lbo & (blocksize - 1); in ntfs_sb_read() local
1014 u32 op = blocksize - off; in ntfs_sb_read()
1016 for (; bytes; block += 1, off = 0, op = blocksize) { in ntfs_sb_read()
1025 memcpy(buffer, bh->b_data + off, op); in ntfs_sb_read()
1042 u32 off = lbo & (blocksize - 1); in ntfs_sb_write() local
1043 u32 op = blocksize - off; in ntfs_sb_write()
1049 for (; bytes; block += 1, off = 0, op = blocksize) { in ntfs_sb_write()
1071 memcpy(bh->b_data + off, buf, op); in ntfs_sb_write()
1074 memset(bh->b_data + off, -1, op); in ntfs_sb_write()
1106 u32 off = vbo & sbi->cluster_mask; in ntfs_sb_write_run() local
1117 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_sb_write_run()
1118 len = ((u64)clen << cluster_bits) - off; in ntfs_sb_write_run()
1172 u32 off = vbo & sbi->cluster_mask; in ntfs_read_run_nb() local
1199 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_read_run_nb()
1200 len = ((u64)clen << cluster_bits) - off; in ntfs_read_run_nb()
1203 off = lbo & (blocksize - 1); in ntfs_read_run_nb()
1205 nb->off = off; in ntfs_read_run_nb()
1214 u32 op = blocksize - off; in ntfs_read_run_nb()
1226 memcpy(buf, bh->b_data + off, op); in ntfs_read_run_nb()
1245 off = 0; in ntfs_read_run_nb()
1302 u32 off; in ntfs_get_bh() local
1315 off = vbo & sbi->cluster_mask; in ntfs_get_bh()
1316 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_get_bh()
1317 len = ((u64)clen << cluster_bits) - off; in ntfs_get_bh()
1319 nb->off = off = lbo & (blocksize - 1); in ntfs_get_bh()
1334 op = blocksize - off; in ntfs_get_bh()
1364 off = 0; in ntfs_get_bh()
1396 u32 off = nb->off; in ntfs_write_bh() local
1408 for (idx = 0; bytes && idx < nb->nbufs; idx += 1, off = 0) { in ntfs_write_bh()
1409 u32 op = block_size - off; in ntfs_write_bh()
1422 bh_data = bh->b_data + off; in ntfs_write_bh()
1493 u32 add, off, page_idx; in ntfs_bio_pages() local
1513 off = vbo & sbi->cluster_mask; in ntfs_bio_pages()
1518 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_bio_pages()
1519 len = ((u64)clen << cluster_bits) - off; in ntfs_bio_pages()
1536 off = vbo & (PAGE_SIZE - 1); in ntfs_bio_pages()
1537 add = off + len > PAGE_SIZE ? (PAGE_SIZE - off) : len; in ntfs_bio_pages()
1539 if (bio_add_page(bio, page, add, off) < add) in ntfs_bio_pages()
1547 if (add + off == PAGE_SIZE) { in ntfs_bio_pages()
1568 off = 0; in ntfs_bio_pages()
1667 u32 off; in ntfs_vbo_to_lbo() local
1674 off = vbo & sbi->cluster_mask; in ntfs_vbo_to_lbo()
1675 *lbo = lcn == SPARSE_LCN ? -1 : (((u64)lcn << cluster_bits) + off); in ntfs_vbo_to_lbo()
1676 *bytes = ((u64)len << cluster_bits) - off; in ntfs_vbo_to_lbo()
1867 size_t off; in ntfs_security_init() local
1948 off = 0; in ntfs_security_init()
1954 err = indx_find_raw(indx_sii, ni, root_sii, &ne, &off, fnd_sii); in ntfs_security_init()
2040 le64_to_cpu(sii_e->sec_hdr.off), &d_security, in ntfs_get_security_by_id()
2051 le64_to_cpu(sii_e->sec_hdr.off) + in ntfs_get_security_by_id()
2148 le64_to_cpu(e->sec_hdr.off), in ntfs_insert_security()
2198 d_security->off = cpu_to_le64(sbi->security.next_off); in ntfs_insert_security()