Lines Matching refs:tag

918 	struct tag *tag, uint16_t tag_id, uint32_t blkno, uint16_t crc_len)
927 addr = (uint8_t *)tag;
928 crc_len -= sizeof (struct tag);
931 tag->tag_id = SWAP_16(tag_id);
932 tag->tag_desc_ver = SWAP_16(2);
933 tag->tag_cksum = 0;
934 tag->tag_res = 0;
935 tag->tag_sno = SWAP_16(udf_vfsp->udf_tsno);
936 tag->tag_crc = SWAP_16(crc);
938 tag->tag_crc_len = SWAP_16(crc_len);
939 tag->tag_loc = SWAP_32(blkno);
941 addr = (uint8_t *)tag;
945 tag->tag_cksum = cksum;
1062 if (crc_len < (F_LEN - sizeof (struct tag))) {
1073 len = crc_len + sizeof (struct tag) - (F_LEN);
1115 * First we verify that the tag id and the FID_LEN are valid.
1133 if (crc_len < (F_LEN - sizeof (struct tag) + idlen)) {
1135 len = (F_LEN - sizeof (struct tag) + idlen) - crc_len;
1143 count = crc_len + sizeof (struct tag);
1178 ud_verify_tag_and_desc(struct tag *tag, uint16_t id, uint32_t blockno,
1189 if (tag->tag_id != SWAP_16(id)) {
1192 addr = (uint8_t *)tag;
1193 eah = (struct ext_attr_hdr *)tag;
1200 if (cksum != tag->tag_cksum) {
1203 tag->tag_cksum, cksum, blockno);
1214 fid = (struct file_id *)tag;
1226 * We are done verifying the tag. We proceed with verifying the
1228 * pointed to by argument tag. It includes the size of struct tag.
1236 * to verify the integrity of the tag and descriptor.)
1238 if (SWAP_16(tag->tag_crc_len) > (desc_len - sizeof (struct tag))) {
1241 SWAP_16(tag->tag_crc_len),
1245 if (tag->tag_crc_len) {
1246 crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
1247 if (crc != SWAP_16(tag->tag_crc)) {
1250 id, SWAP_16(tag->tag_crc), crc,
1251 SWAP_32(tag->tag_loc), blockno);
1257 fe = (file_entry_t *)tag;
1270 eah = (struct ext_attr_hdr *)tag;
1288 if (SWAP_32(blockno) != tag->tag_loc) {
1291 blockno, SWAP_32(tag->tag_loc));