Lines Matching refs:s64
103 s64 ntfs_get_attribute_value_length(const ATTR_RECORD *a)
113 return (s64)le32_to_cpu(a->value_length);
126 s64 ntfs_get_attribute_value(const ntfs_volume *vol,
130 s64 total, r;
162 return (s64)le32_to_cpu(a->value_length);
329 const s64 allocated_size, const s64 data_size,
330 const s64 initialized_size, const s64 compressed_size,
463 s64 l = le32_to_cpu(a->value_length);
783 static s64 ntfs_attr_pread_i(ntfs_attr *na, const s64 pos, s64 count, void *b)
785 s64 br, to_read, ofs, total, total2;
922 if (br == (s64)-1 && errno == EINTR)
959 s64 ntfs_attr_pread(ntfs_attr *na, const s64 pos, s64 count, void *b)
961 s64 ret;
981 static int ntfs_attr_fill_zero(ntfs_attr *na, s64 pos, s64 count)
984 s64 written, size, end = pos + count;
1016 static int ntfs_attr_fill_hole(ntfs_attr *na, s64 count, s64 *ofs,
1019 s64 to_write;
1157 s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b)
1159 s64 written, to_write, ofs, old_initialized_size, old_data_size;
1160 s64 total = 0;
1165 s64 hole_end;
1194 // const s64 pos, s64 count, void *b);
1353 s64 wpos = (rl->lcn << vol->cluster_size_bits) + ofs;
1354 s64 wend = (rl->vcn << vol->cluster_size_bits) + ofs + to_write;
1357 s64 rounding = ((wend + bsize - 1) & ~(s64)(bsize - 1)) - wend;
1396 if (written == (s64)-1 && errno == EINTR)
1511 s64 ntfs_attr_mst_pread(ntfs_attr *na, const s64 pos, const s64 bk_cnt,
1514 s64 br;
1566 s64 ntfs_attr_mst_pwrite(ntfs_attr *na, const s64 pos, s64 bk_cnt,
1569 s64 written, i;
2531 const s64 size)
2534 s64 min_size, max_size;
3121 ntfschar *name, u8 name_len, u8 *val, s64 size)
3664 s64 new_allocated_size, bw;
3807 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize);
3825 static int ntfs_resident_attr_resize_i(ntfs_attr *na, const s64 newsize)
4028 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize)
4062 s64 arec_size, bytes_read;
4297 s64 new_compr_size;
4658 static int ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize)
4663 s64 nr_freed_clusters;
4792 static int ntfs_non_resident_attr_expand_i(ntfs_attr *na, const s64 newsize)
4799 s64 org_alloc_size;
4987 static int ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize)
5017 int ntfs_attr_truncate(ntfs_attr *na, const s64 newsize)
5086 ntfschar *name, u32 name_len, s64 *data_size)
5090 s64 size;
5189 s64 ntfs_attr_get_free_bits(ntfs_attr *na)
5192 s64 br = 0;
5193 s64 total = 0;
5194 s64 nr_free = 0;