Lines Matching refs:ale
63 ATTR_LIST_ENTRY *ale; in ntfs_attrlist_need() local
86 ale = (ATTR_LIST_ENTRY *)ni->attr_list; in ntfs_attrlist_need()
87 while ((u8*)ale < ni->attr_list + ni->attr_list_size) { in ntfs_attrlist_need()
88 if (MREF_LE(ale->mft_reference) != ni->mft_no) in ntfs_attrlist_need()
90 ale = (ATTR_LIST_ENTRY *)((u8*)ale + le16_to_cpu(ale->length)); in ntfs_attrlist_need()
109 ATTR_LIST_ENTRY *ale; in ntfs_attrlist_entry_add() local
166 ale = (ATTR_LIST_ENTRY*)((u8*)ctx->al_entry + in ntfs_attrlist_entry_add()
177 ale = ctx->al_entry; in ntfs_attrlist_entry_add()
183 entry_offset = ((u8 *)ale - ni->attr_list); in ntfs_attrlist_entry_add()
185 ale = (ATTR_LIST_ENTRY *)(new_al + entry_offset); in ntfs_attrlist_entry_add()
187 memset(ale, 0, entry_len); in ntfs_attrlist_entry_add()
189 ale->type = attr->type; in ntfs_attrlist_entry_add()
190 ale->length = cpu_to_le16(entry_len); in ntfs_attrlist_entry_add()
191 ale->name_length = attr->name_length; in ntfs_attrlist_entry_add()
192 ale->name_offset = offsetof(ATTR_LIST_ENTRY, name); in ntfs_attrlist_entry_add()
194 ale->lowest_vcn = attr->lowest_vcn; in ntfs_attrlist_entry_add()
196 ale->lowest_vcn = const_cpu_to_sle64(0); in ntfs_attrlist_entry_add()
197 ale->mft_reference = mref; in ntfs_attrlist_entry_add()
198 ale->instance = attr->instance; in ntfs_attrlist_entry_add()
199 memcpy(ale->name, (u8 *)attr + le16_to_cpu(attr->name_offset), in ntfs_attrlist_entry_add()
250 ATTR_LIST_ENTRY *ale; in ntfs_attrlist_entry_rm() local
263 ale = ctx->al_entry; in ntfs_attrlist_entry_rm()
277 new_al_len = base_ni->attr_list_size - le16_to_cpu(ale->length); in ntfs_attrlist_entry_rm()
296 memcpy(new_al, base_ni->attr_list, (u8*)ale - base_ni->attr_list); in ntfs_attrlist_entry_rm()
297 memcpy(new_al + ((u8*)ale - base_ni->attr_list), (u8*)ale + le16_to_cpu( in ntfs_attrlist_entry_rm()
298 ale->length), new_al_len - ((u8*)ale - base_ni->attr_list)); in ntfs_attrlist_entry_rm()