Lines Matching defs:length

65  * ntfs_get_attribute_value_length - Find the length of an attribute
123 > le32_to_cpu(a->length)) {
161 for (i = 0, total = 0; rl[i].length; i++) {
162 if (total + (rl[i].length << vol->cluster_size_bits) >=
171 * rl[i].length << vol->cluster_size_bits, do the
179 intbuf = ntfs_malloc(rl[i].length <<
190 * just memset the user buffer to 0 for the length of
196 * size of 16, just run length.
199 vol->cluster_size_bits, rl[i].length <<
201 if (r != rl[i].length << vol->cluster_size_bits) {
207 } else if (r < rl[i].length <<
230 * memset the user buffer to 0 for the length of the run, which
235 * 16, just run length.
238 rl[i].length << vol->cluster_size_bits,
240 if (r != rl[i].length << vol->cluster_size_bits) {
246 } else if (r < rl[i].length << vol->cluster_size_bits) {
272 * @name_len: length of attribute @name in Unicode characters (if @name given)
341 * @name_len: length of attribute @name in Unicode characters (if @name given)
559 rl->length < from_vcn &&
808 while (rl->length) {
955 * length.
969 if (!rl->length)
975 to_read = min(count, (rl->length <<
985 to_read = min(count, (rl->length << vol->cluster_size_bits) -
1184 * length.
1198 if (!rl->length) {
1212 to_write = min(count, (rl->length <<
1255 while (rlc->length) {
1346 to_write = min(count, (rl->length << vol->cluster_size_bits) -
1604 * @name_len: attribute name length (only needed if @name present)
1607 * @val_len: attribute value length
1636 * AT_END is not a valid attribute, its length is zero for example, thus it is
1648 * sensitive. When @name is present, @name_len is the @name length in Unicode
1703 le32_to_cpu(ctx->attr->length));
1704 for (;; a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length))) {
1715 if (!a->length)
1808 * @name_len: attribute name length (only needed if @name present)
1812 * @val_len: attribute value length
1833 * not a valid attribute, its length is zero for example, thus it is safer to
1926 le16_to_cpu(ctx->al_entry->length));
1990 if (!al_entry->length)
1993 le16_to_cpu(al_entry->length) > al_end)
1996 le16_to_cpu(al_entry->length));
2061 next_al_entry->length) <= al_end &&
2126 if (!a->length)
2157 a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length));
2222 * @name_len: attribute name length (only needed if @name present)
2226 * @val_len: attribute value length
2245 * not a valid attribute, its length is zero for example, thus it is safer to
2617 * @name_len: name length of the new attribute
2619 * @size: size of new attribute (length of @val, if @val != NULL)
2634 u32 length;
2679 length = offsetof(ATTR_RECORD, u.res.resident_end) +
2682 if (ntfs_make_room_for_attr(ctx->mrec, (u8*) ctx->attr, length)) {
2691 a->length = cpu_to_le32(length);
2698 a->u.res.value_offset = cpu_to_le16(length - ((size + 7) & ~7));
2739 * @name_len: name length of the new attribute extent
2757 u32 length;
2807 length = offsetof(ATTR_RECORD, u.nonres.compressed_size) + ((sizeof(ntfschar) *
2811 if (ntfs_make_room_for_attr(ctx->mrec, (u8*) ctx->attr, length)) {
2819 a->length = cpu_to_le32(length);
2828 a->u.nonres.mapping_pairs_offset = cpu_to_le16(length - dataruns_size);
3019 * @name_len: name length in unicode characters of the new attribute
3021 * @size: size of the new attribute / length of @val (if specified)
3342 /* If the actual attribute length has changed, move things around. */
3343 if (new_size != le32_to_cpu(a->length)) {
3345 le32_to_cpu(a->length) + new_size;
3352 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length),
3354 (u8*)m) - le32_to_cpu(a->length));
3358 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length))
3359 a->length = cpu_to_le32(new_size);
3413 /* Finally update the length of the attribute value. */
3484 le32_to_cpu(a->length))) {
3489 memcpy(nctx->attr, a, le32_to_cpu(a->length));
3567 le32_to_cpu(ctx->attr->length) + extra)
3791 * @newsize bytes length.
3885 if (le32_to_cpu(a->length) <= offsetof(ATTR_RECORD,
3962 le32_to_cpu(ctx->attr->length) + 8) {
4094 if (le32_to_cpu(ctx->mrec->bytes_in_use) - le32_to_cpu(a->length) +
4380 if ((le32_to_cpu(a->length) - le16_to_cpu(
4403 if (!(le32_to_cpu(a->length) - le16_to_cpu(
4515 * Determine maximum possible length of mapping pairs,
4518 cur_max_mp_size = le32_to_cpu(a->length) -
4521 * Determine maximum possible length of mapping pairs in the
4943 rl[0].length = first_free_vcn -
4947 rl[1].length = 0;
4959 if (na->rl->length) {
4961 for (rl = na->rl; (rl + 1)->length; rl++)
4973 lcn_seek_from = rl->lcn + rl->length;
5104 * @newsize bytes length.
5170 * @name_len: length of attribute @name in Unicode characters (if @name given)