Searched refs:eahd (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/fs/udf/
H A Dmisc.c69 struct extendedAttrHeaderDesc *eahd; udf_add_extendedattr() local
70 eahd = (struct extendedAttrHeaderDesc *)ea; udf_add_extendedattr()
77 if (eahd->descTag.tagIdent != udf_add_extendedattr()
79 le32_to_cpu(eahd->descTag.tagLocation) != udf_add_extendedattr()
88 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD); udf_add_extendedattr()
90 eahd->descTag.descVersion = cpu_to_le16(3); udf_add_extendedattr()
92 eahd->descTag.descVersion = cpu_to_le16(2); udf_add_extendedattr()
93 eahd->descTag.tagSerialNum = udf_add_extendedattr()
95 eahd->descTag.tagLocation = cpu_to_le32( udf_add_extendedattr()
97 eahd->impAttrLocation = cpu_to_le32(0xFFFFFFFF); udf_add_extendedattr()
98 eahd->appAttrLocation = cpu_to_le32(0xFFFFFFFF); udf_add_extendedattr()
103 if (le32_to_cpu(eahd->appAttrLocation) < udf_add_extendedattr()
106 le32_to_cpu(eahd->appAttrLocation); udf_add_extendedattr()
110 eahd->appAttrLocation = udf_add_extendedattr()
113 if (le32_to_cpu(eahd->impAttrLocation) < udf_add_extendedattr()
116 le32_to_cpu(eahd->impAttrLocation); udf_add_extendedattr()
120 eahd->impAttrLocation = udf_add_extendedattr()
124 if (le32_to_cpu(eahd->appAttrLocation) < udf_add_extendedattr()
127 le32_to_cpu(eahd->appAttrLocation); udf_add_extendedattr()
131 eahd->appAttrLocation = udf_add_extendedattr()
135 /* rewrite CRC + checksum of eahd */ udf_add_extendedattr()
137 eahd->descTag.descCRCLength = cpu_to_le16(crclen); udf_add_extendedattr()
138 eahd->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)eahd + udf_add_extendedattr()
140 eahd->descTag.tagChecksum = udf_tag_checksum(&eahd->descTag); udf_add_extendedattr()
161 struct extendedAttrHeaderDesc *eahd; udf_get_extendedattr() local
162 eahd = (struct extendedAttrHeaderDesc *)ea; udf_get_extendedattr()
165 if (eahd->descTag.tagIdent != udf_get_extendedattr()
167 le32_to_cpu(eahd->descTag.tagLocation) != udf_get_extendedattr()
174 offset = le32_to_cpu(eahd->impAttrLocation); udf_get_extendedattr()
176 offset = le32_to_cpu(eahd->appAttrLocation); udf_get_extendedattr()

Completed in 75 milliseconds