Lines Matching refs:ushort
719 ushort adk;
781 ushort *ptr = (ushort *)raw, *endp = (ushort *)end;
978 *(ushort *)ptr = (ptr[-1]&1) ? 0x2AA8 : 0xAAA8;
1049 static ushort dos_crc(void * data_a3, int data_d0, int data_d1, int data_d3)
1106 static inline ushort dos_hdr_crc (struct dos_header *hdr)
1111 static inline ushort dos_data_crc(unsigned char *data)
1116 static inline unsigned char dos_decode_byte(ushort word)
1118 register ushort w2;
1173 } while (*((ushort *)raw)!=0x5554); /* loop usually only once done */
1175 raw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8);
1220 if (*((ushort *)raw)!=0x5545) {
1228 raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 512);
1229 raw = dos_decode((unsigned char *)data_crc,(ushort *) raw,4);
1247 static inline ushort dos_encode_byte(unsigned char byte)
1250 register ushort word;
1260 static void dos_encode_block(ushort *dest, unsigned char *src, int len)
1276 static ushort crc[2]={0,0x4e4e};
1294 dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28);
1306 dos_encode_block((ushort *)raw,
1312 dos_encode_block((ushort *) raw,(unsigned char *)crc,4);
1352 *(ushort *)ptr = 0xaaa8; /* MFM word before is always 0x9254 */