Lines Matching refs:raw

662 static unsigned long scan_sync(unsigned long raw, unsigned long end)  in scan_sync()  argument
664 ushort *ptr = (ushort *)raw, *endp = (ushort *)end; in scan_sync()
688 static unsigned long decode (unsigned long *data, unsigned long *raw, in decode() argument
695 odd = raw; in decode()
699 raw += len * 2; in decode()
705 return (ulong)raw; in decode()
720 unsigned long raw; in amiga_read() local
727 raw = (long) raw_buf; in amiga_read()
728 end = raw + unit[drive].type->read_size; in amiga_read()
731 if (!(raw = scan_sync(raw, end))) { in amiga_read()
736 raw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4); in amiga_read()
737 raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16); in amiga_read()
738 raw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4); in amiga_read()
739 raw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4); in amiga_read()
762 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), in amiga_read()
763 (ulong *)raw, 512); in amiga_read()
814 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) in putsec() argument
820 *raw = (raw[-1]&1) ? 0x2AAAAAAA : 0xAAAAAAAA; in putsec()
821 raw++; in putsec()
822 *raw++ = 0x44894489; in putsec()
834 encode_block(raw, (ulong *)&hdr.magic, 4); in putsec()
835 raw += 2; in putsec()
836 encode_block(raw, (ulong *)&hdr.labels, 16); in putsec()
837 raw += 8; in putsec()
838 encode_block(raw, (ulong *)&hdr.hdrchk, 4); in putsec()
839 raw += 2; in putsec()
840 encode_block(raw, (ulong *)&hdr.datachk, 4); in putsec()
841 raw += 2; in putsec()
842 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
843 raw += 256; in putsec()
845 return raw; in putsec()
1015 static unsigned long dos_decode(unsigned char *data, unsigned short *raw, int len) in dos_decode() argument
1020 *data++=dos_decode_byte(*raw++); in dos_decode()
1021 return ((ulong)raw); in dos_decode()
1036 unsigned long raw; in dos_read() local
1042 raw = (long) raw_buf; in dos_read()
1043 end = raw + unit[drive].type->read_size; in dos_read()
1047 if (!(raw = scan_sync (raw, end))) { in dos_read()
1054 dbg(raw); in dos_read()
1056 } while (*((ushort *)raw)!=0x5554); /* loop usually only once done */ in dos_read()
1057 raw+=2; /* skip over headermark */ in dos_read()
1058 raw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8); in dos_read()
1093 if (!(raw = scan_sync (raw, end))) { in dos_read()
1100 dbg(raw); in dos_read()
1103 if (*((ushort *)raw)!=0x5545) { in dos_read()
1110 raw+=2; /* skip data mark (included in checksum) */ in dos_read()
1111raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 51… in dos_read()
1112 raw = dos_decode((unsigned char *)data_crc,(ushort *) raw,4); in dos_read()
1154 static unsigned long *ms_putsec(int drive, unsigned long *raw, int cnt) in ms_putsec() argument
1165 *raw++=0xaaaaaaaa; in ms_putsec()
1167 *raw++=0x44894489; in ms_putsec()
1168 *raw++=0x44895554; in ms_putsec()
1177 dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28); in ms_putsec()
1178 raw+=14; in ms_putsec()
1182 *raw++=0xaaaaaaaa; in ms_putsec()
1185 *raw++=0x44894489; in ms_putsec()
1186 *raw++=0x44895545; in ms_putsec()
1189 dos_encode_block((ushort *)raw, in ms_putsec()
1191 raw+=256; in ms_putsec()
1195 dos_encode_block((ushort *) raw,(unsigned char *)crc,4); in ms_putsec()
1196 raw+=2; in ms_putsec()
1200 *raw++=0x92549254; in ms_putsec()
1202 return raw; /* wrote 652 MFM words */ in ms_putsec()
1208 unsigned long raw = (unsigned long) raw_buf; in dos_write() local
1209 unsigned long *ptr=(unsigned long *)raw; in dos_write()