Lines Matching refs:tag

458 	struct tag *tag;
478 tag = (struct tag *)taddr;
479 id = SWAP_16(tag->tag_id);
481 * If you cannot verify the tag just skip it
484 if (ud_verify_tag(h, tag, id, vds_loc, 1, 0) != 0) {
619 * If you donot undetstand any tag just skip
777 struct tag *tag;
794 tag = (struct tag *)taddr;
795 id = SWAP_16(tag->tag_id);
797 * If you cannot verify the tag just skip it
800 if (ud_verify_tag(h, tag, id, lvds_loc, 1, 0) != 0) {
838 * If you donot undetstand any tag just skip
860 struct tag *tag;
885 tag = (struct tag *)taddr;
886 id = SWAP_16(tag->tag_id);
888 * If you cannot verify the tag just skip it
891 if (ud_verify_tag(h, tag, id, fsds_loc, 1, 0) != 0) {
926 * If you donot undetstand any tag just skip
1004 ud_verify_tag(ud_handle_t h, struct tag *tag, uint16_t id,
1015 if (tag->tag_id != SWAP_16(id)) {
1018 gettext("tag does not verify tag %x req %x\n"),
1019 SWAP_16(tag->tag_id), id);
1027 if (SWAP_16(tag->tag_desc_ver) != h->udfs.ecma_version) {
1030 gettext("tag version does not match with "
1032 SWAP_16(tag->tag_desc_ver),
1041 addr = (uint8_t *)tag;
1051 if (cksum != tag->tag_cksum) {
1055 " %x CALC %x\n"), tag->tag_cksum, cksum);
1065 if (tag->tag_crc_len) {
1070 crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
1075 if (crc != SWAP_16(tag->tag_crc)) {
1080 SWAP_16(tag->tag_crc),
1089 if (SWAP_32(blockno) != tag->tag_loc) {
1094 blockno, SWAP_32(tag->tag_loc));
1105 ud_make_tag(ud_handle_t h, struct tag *tag, uint16_t tag_id,
1112 tag->tag_id = SWAP_16(tag_id);
1113 tag->tag_desc_ver = SWAP_16(h->udfs.ecma_version);
1114 tag->tag_cksum = 0;
1115 tag->tag_res = 0;
1120 addr = (uint8_t *)tag;
1122 tag->tag_crc = SWAP_16(crc);
1123 tag->tag_crc_len = SWAP_16(crc_len);
1124 tag->tag_loc = SWAP_32(blkno);
1136 tag->tag_cksum = cksum;
1611 print_tag(FILE *fout, struct tag *tag)
1616 SWAP_16(tag->tag_id), SWAP_16(tag->tag_desc_ver),
1617 tag->tag_cksum, SWAP_16(tag->tag_sno),
1618 SWAP_16(tag->tag_crc), SWAP_16(tag->tag_crc_len),
1619 SWAP_32(tag->tag_loc));