Lines Matching refs:eahd
49 struct extendedAttrHeaderDesc *eahd;
50 eahd = (struct extendedAttrHeaderDesc *)ea;
57 if (eahd->descTag.tagIdent !=
59 le32_to_cpu(eahd->descTag.tagLocation) !=
68 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD);
70 eahd->descTag.descVersion = cpu_to_le16(3);
72 eahd->descTag.descVersion = cpu_to_le16(2);
73 eahd->descTag.tagSerialNum =
75 eahd->descTag.tagLocation = cpu_to_le32(
77 eahd->impAttrLocation = cpu_to_le32(0xFFFFFFFF);
78 eahd->appAttrLocation = cpu_to_le32(0xFFFFFFFF);
83 if (le32_to_cpu(eahd->appAttrLocation) <
86 le32_to_cpu(eahd->appAttrLocation);
90 eahd->appAttrLocation =
93 if (le32_to_cpu(eahd->impAttrLocation) <
96 le32_to_cpu(eahd->impAttrLocation);
100 eahd->impAttrLocation =
104 if (le32_to_cpu(eahd->appAttrLocation) <
107 le32_to_cpu(eahd->appAttrLocation);
111 eahd->appAttrLocation =
115 /* rewrite CRC + checksum of eahd */
117 eahd->descTag.descCRCLength = cpu_to_le16(crclen);
118 eahd->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)eahd +
120 eahd->descTag.tagChecksum = udf_tag_checksum(&eahd->descTag);
139 struct extendedAttrHeaderDesc *eahd;
140 eahd = (struct extendedAttrHeaderDesc *)ea;
143 if (eahd->descTag.tagIdent !=
145 le32_to_cpu(eahd->descTag.tagLocation) !=
152 offset = le32_to_cpu(eahd->impAttrLocation);
154 offset = le32_to_cpu(eahd->appAttrLocation);