Lines Matching refs:eahd
69 struct extendedAttrHeaderDesc *eahd;
70 eahd = (struct extendedAttrHeaderDesc *)ea;
77 if (eahd->descTag.tagIdent !=
79 le32_to_cpu(eahd->descTag.tagLocation) !=
88 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD);
90 eahd->descTag.descVersion = cpu_to_le16(3);
92 eahd->descTag.descVersion = cpu_to_le16(2);
93 eahd->descTag.tagSerialNum =
95 eahd->descTag.tagLocation = cpu_to_le32(
97 eahd->impAttrLocation = cpu_to_le32(0xFFFFFFFF);
98 eahd->appAttrLocation = cpu_to_le32(0xFFFFFFFF);
103 if (le32_to_cpu(eahd->appAttrLocation) <
106 le32_to_cpu(eahd->appAttrLocation);
110 eahd->appAttrLocation =
113 if (le32_to_cpu(eahd->impAttrLocation) <
116 le32_to_cpu(eahd->impAttrLocation);
120 eahd->impAttrLocation =
124 if (le32_to_cpu(eahd->appAttrLocation) <
127 le32_to_cpu(eahd->appAttrLocation);
131 eahd->appAttrLocation =
135 /* rewrite CRC + checksum of eahd */
137 eahd->descTag.descCRCLength = cpu_to_le16(crclen);
138 eahd->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)eahd +
140 eahd->descTag.tagChecksum = udf_tag_checksum(&eahd->descTag);
159 struct extendedAttrHeaderDesc *eahd;
160 eahd = (struct extendedAttrHeaderDesc *)ea;
163 if (eahd->descTag.tagIdent !=
165 le32_to_cpu(eahd->descTag.tagLocation) !=
172 offset = le32_to_cpu(eahd->impAttrLocation);
174 offset = le32_to_cpu(eahd->appAttrLocation);