Lines Matching refs:eahd
109 struct extendedAttrHeaderDesc *eahd; in udf_add_extendedattr() local
110 eahd = (struct extendedAttrHeaderDesc *)ea; in udf_add_extendedattr()
120 if (le16_to_cpu(eahd->descTag.tagIdent) != TAG_IDENT_EAHD || in udf_add_extendedattr()
121 le32_to_cpu(eahd->descTag.tagLocation) != UDF_I_LOCATION(inode).logicalBlockNum) in udf_add_extendedattr()
131 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD); in udf_add_extendedattr()
132 eahd->descTag.descVersion = cpu_to_le16(2); in udf_add_extendedattr()
133 eahd->descTag.tagSerialNum = cpu_to_le16(1); in udf_add_extendedattr()
134 eahd->descTag.tagLocation = cpu_to_le32(UDF_I_LOCATION(inode).logicalBlockNum); in udf_add_extendedattr()
135 eahd->impAttrLocation = cpu_to_le32(0xFFFFFFFF); in udf_add_extendedattr()
136 eahd->appAttrLocation = cpu_to_le32(0xFFFFFFFF); in udf_add_extendedattr()
142 if (le32_to_cpu(eahd->appAttrLocation) < UDF_I_LENEATTR(inode)) in udf_add_extendedattr()
144 uint32_t aal = le32_to_cpu(eahd->appAttrLocation); in udf_add_extendedattr()
148 eahd->appAttrLocation = cpu_to_le32(aal + size); in udf_add_extendedattr()
150 if (le32_to_cpu(eahd->impAttrLocation) < UDF_I_LENEATTR(inode)) in udf_add_extendedattr()
152 uint32_t ial = le32_to_cpu(eahd->impAttrLocation); in udf_add_extendedattr()
156 eahd->impAttrLocation = cpu_to_le32(ial + size); in udf_add_extendedattr()
161 if (le32_to_cpu(eahd->appAttrLocation) < UDF_I_LENEATTR(inode)) in udf_add_extendedattr()
163 uint32_t aal = le32_to_cpu(eahd->appAttrLocation); in udf_add_extendedattr()
167 eahd->appAttrLocation = cpu_to_le32(aal + size); in udf_add_extendedattr()
213 struct extendedAttrHeaderDesc *eahd; in udf_get_extendedattr() local
214 eahd = (struct extendedAttrHeaderDesc *)ea; in udf_get_extendedattr()
217 if (le16_to_cpu(eahd->descTag.tagIdent) != TAG_IDENT_EAHD || in udf_get_extendedattr()
218 le32_to_cpu(eahd->descTag.tagLocation) != UDF_I_LOCATION(inode).logicalBlockNum) in udf_get_extendedattr()
227 offset = le32_to_cpu(eahd->impAttrLocation); in udf_get_extendedattr()
229 offset = le32_to_cpu(eahd->appAttrLocation); in udf_get_extendedattr()