Lines Matching refs:le32_to_cpu
99 "attribute\n", le32_to_cpu(flag)); in NAttrSetFlag()
135 return (s64)le32_to_cpu(a->value_length); in GenNAttrIno()
176 if (le32_to_cpu(a->value_length) + le16_to_cpu(a->value_offset) in ntfs_get_attribute_value()
177 > le32_to_cpu(a->length)) { in ntfs_get_attribute_value()
182 le32_to_cpu(a->value_length)); in ntfs_get_attribute_value()
184 return (s64)le32_to_cpu(a->value_length); in ntfs_get_attribute_value()
420 (unsigned long long)ni->mft_no, le32_to_cpu(type)); in ntfs_attr_open()
518 le16_to_cpu(a->flags), le32_to_cpu(na->ni->flags)); in ntfs_attr_open()
539 (unsigned long long)ni->mft_no, le32_to_cpu(type)); in ntfs_attr_open()
549 (long)le32_to_cpu(type), in ntfs_attr_open()
562 s64 l = le32_to_cpu(a->value_length); in ntfs_attr_open()
617 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type), (long long)vcn); in ntfs_attr_map_runlist()
760 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type)); in ntfs_attr_map_whole_runlist()
887 long)na->ni->mft_no, le32_to_cpu(na->type)); in ntfs_attr_vcn_to_lcn()
939 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type), in ntfs_attr_find_vcn()
1059 le32_to_cpu(ctx->attr->value_length) > in ntfs_attr_pread_i()
1232 le32_to_cpu(na->type), (long long)pos, (long long)count); in ntfs_attr_pread()
1976 le32_to_cpu(ctx->attr->value_length) >
2399 "0x%llx.\n", (long long)na->ni->mft_no, le32_to_cpu(na->type),
2441 le32_to_cpu(na->type));
2660 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type),
2716 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type),
2836 ntfs_log_trace("attribute type 0x%x.\n", le32_to_cpu(type));
2861 le32_to_cpu(ctx->attr->length));
2862 for (;; a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length))) {
2868 space = le32_to_cpu(ctx->mrec->bytes_in_use) - offs;
2872 || (space < (ptrdiff_t)le32_to_cpu(a->length)))
2876 if (((type != AT_UNUSED) && (le32_to_cpu(a->type) >
2877 le32_to_cpu(type))) ||
2906 > le32_to_cpu(a->length))) {
2942 le32_to_cpu(a->value_length)));
2949 avl = le32_to_cpu(a->value_length);
3082 (unsigned long long)ni->mft_no, le32_to_cpu(type));
3112 le32_to_cpu(al_entry->type) >
3113 le32_to_cpu(AT_ATTRIBUTE_LIST))
3138 if ((type == AT_UNUSED) && le32_to_cpu(ctx->al_entry->type) <
3139 le32_to_cpu(AT_ATTRIBUTE_LIST) &&
3140 le32_to_cpu(al_entry->type) >
3141 le32_to_cpu(AT_ATTRIBUTE_LIST)) {
3209 if (le32_to_cpu(al_entry->type) > le32_to_cpu(type))
3324 space = le32_to_cpu(ctx->mrec->bytes_in_use) - offs;
3330 || (space < (ptrdiff_t)le32_to_cpu(a->length)))
3354 le32_to_cpu(a->value_length) == val_len &&
3361 a = (ATTR_RECORD*)((char*)a + le32_to_cpu(a->length));
3455 || (le32_to_cpu(a->length)
3458 >= le32_to_cpu(a->length))
3462 > le32_to_cpu(a->length)))
3467 (int)le32_to_cpu(a->type),
3473 if ((le32_to_cpu(a->length)
3475 || (le32_to_cpu(a->value_length) & 0xff000000)
3478 + le32_to_cpu(a->value_length))
3479 > le32_to_cpu(a->length)))
3483 > le32_to_cpu(a->length)))) {
3486 (int)le32_to_cpu(a->type),
3510 || (le32_to_cpu(a->value_length)
3515 > le32_to_cpu(a->value_length))) {
3529 || (le32_to_cpu(a->value_length)
3531 || (le32_to_cpu(ir->index.entries_offset)
3533 || (le32_to_cpu(ir->index.index_length)
3534 < le32_to_cpu(ir->index.entries_offset))
3535 || (le32_to_cpu(ir->index.allocated_size)
3536 < le32_to_cpu(ir->index.index_length))
3537 || (le32_to_cpu(a->value_length)
3538 < (le32_to_cpu(ir->index.allocated_size)
3549 || (le32_to_cpu(a->value_length)
3561 || (le32_to_cpu(a->value_length)
3575 (int)le32_to_cpu(a->type),
3583 || (le32_to_cpu(a->value_length)
3684 ntfs_log_enter("Entering for attribute type 0x%x\n", le32_to_cpu(type));
3852 ntfs_log_perror("%s: type=%d", __FUNCTION__, le32_to_cpu(type));
3859 if (le32_to_cpu(ad->type) < le32_to_cpu(type))
3868 ntfs_log_perror("%s: type=%d", __FUNCTION__, le32_to_cpu(type));
3929 "%lld,%lld,%lld)", le32_to_cpu(type), (long long)min_size,
4057 if (pos - (u8*)m > (int)le32_to_cpu(m->bytes_in_use) - 8) {
4065 biu = le32_to_cpu(m->bytes_in_use);
4067 if (biu + size > le32_to_cpu(m->bytes_allocated) ||
4068 pos + size > (u8*)m + le32_to_cpu(m->bytes_allocated)) {
4109 (long long) ni->mft_no, (unsigned) le32_to_cpu(type), (unsigned) le16_to_cpu(data_flags));
4242 (long long) ni->mft_no, (unsigned) le32_to_cpu(type),
4270 ntfs_log_perror("Attribute 0x%x already present", le32_to_cpu(type));
4380 (unsigned) le32_to_cpu(ctx->attr->type));
4423 if (le32_to_cpu(ctx->mrec->bytes_in_use) -
4531 (long long)ni->mft_no, le32_to_cpu(type), (long long)size);
4592 if (le32_to_cpu(ni->mrec->bytes_allocated) -
4593 le32_to_cpu(ni->mrec->bytes_in_use) >= attr_rec_size) {
4606 if (le32_to_cpu(attr_ni->mrec->bytes_allocated) -
4607 le32_to_cpu(attr_ni->mrec->bytes_in_use) >=
4695 if (le32_to_cpu(attr_ni->mrec->bytes_in_use) -
4753 (long long) na->ni->mft_no, le32_to_cpu(na->type));
4810 old_size = le32_to_cpu(m->bytes_in_use);
4811 alloc_size = le32_to_cpu(m->bytes_allocated);
4812 attr_size = le32_to_cpu(a->length);
4846 (int)le32_to_cpu(a->type));
4899 if (new_size > le32_to_cpu(a->value_length))
4901 le32_to_cpu(a->value_length), 0, new_size -
4902 le32_to_cpu(a->value_length));
4932 (unsigned) le32_to_cpu(ctx->attr->type),
4973 le32_to_cpu(a->length))) {
4978 memcpy(nctx->attr, a, le32_to_cpu(a->length));
5027 (unsigned) le32_to_cpu(ctx->attr->type),
5056 if (le32_to_cpu(m->bytes_allocated) -
5057 le32_to_cpu(m->bytes_in_use) <
5058 le32_to_cpu(ctx->attr->length) + extra)
5115 long)na->ni->mft_no, le32_to_cpu(na->type));
5129 new_allocated_size = (le32_to_cpu(a->value_length) + vol->cluster_size
5155 na->data_size = na->initialized_size = le32_to_cpu(a->value_length);
5171 bw = ntfs_attr_pwrite(na, 0, le32_to_cpu(a->value_length),
5173 if (bw != le32_to_cpu(a->value_length)) {
5309 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type),
5416 if (le32_to_cpu(a->length) <= offsetof(ATTR_RECORD,
5496 if (le32_to_cpu(ctx->mrec->bytes_in_use) ==
5498 le32_to_cpu(ctx->attr->length) + 8) {
5616 long)na->ni->mft_no, le32_to_cpu(na->type));
5657 if (le32_to_cpu(ctx->mrec->bytes_in_use) - le32_to_cpu(a->length) +
5658 arec_size > le32_to_cpu(ctx->mrec->bytes_allocated)) {
5778 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type));
5805 if ((le32_to_cpu(a->length) -
5807 && !(le32_to_cpu(m->bytes_allocated) -
5808 le32_to_cpu(m->bytes_in_use))) {
5823 if (!(le32_to_cpu(a->length) - le16_to_cpu(
5921 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type));
6044 "%lld.\n", (unsigned)le32_to_cpu(a->type),
6061 cur_max_mp_size = le32_to_cpu(a->length) -
6068 exp_max_mp_size = le32_to_cpu(m->bytes_allocated) -
6069 le32_to_cpu(m->bytes_in_use) + cur_max_mp_size;
6241 cur_max_mp_size = le32_to_cpu(m->bytes_allocated) -
6242 le32_to_cpu(m->bytes_in_use) -
6353 na->ni->mft_no, le32_to_cpu(na->type), (long long)newsize);
6511 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type),
6782 (unsigned long long)na->ni->mft_no, le32_to_cpu(na->type),
6985 (long long)ni->mft_no,(long)le32_to_cpu(type));
6998 (long)le32_to_cpu(type),(long long)ni->mft_no);
7181 "0x%llx", le32_to_cpu(type), (unsigned long long)ni->mft_no);
7189 "0x%llx", le32_to_cpu(type), (unsigned long long)ni->mft_no);