Lines Matching refs:ushort

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