Lines Matching refs:raw

780 static unsigned long scan_sync(unsigned long raw, unsigned long end)  in scan_sync()  argument
782 ushort *ptr = (ushort *)raw, *endp = (ushort *)end; in scan_sync()
806 static unsigned long decode (unsigned long *data, unsigned long *raw, in decode() argument
813 odd = raw; in decode()
817 raw += len * 2; in decode()
823 return (ulong)raw; in decode()
838 unsigned long raw; in amiga_read() local
845 raw = (long) raw_buf; in amiga_read()
846 end = raw + unit[drive].type->read_size; in amiga_read()
849 if (!(raw = scan_sync(raw, end))) { in amiga_read()
854 raw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4); in amiga_read()
855 raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16); in amiga_read()
856 raw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4); in amiga_read()
857 raw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4); in amiga_read()
880 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), in amiga_read()
881 (ulong *)raw, 512); in amiga_read()
932 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) in putsec() argument
938 *raw = (raw[-1]&1) ? 0x2AAAAAAA : 0xAAAAAAAA; in putsec()
939 raw++; in putsec()
940 *raw++ = 0x44894489; in putsec()
952 encode_block(raw, (ulong *)&hdr.magic, 4); in putsec()
953 raw += 2; in putsec()
954 encode_block(raw, (ulong *)&hdr.labels, 16); in putsec()
955 raw += 8; in putsec()
956 encode_block(raw, (ulong *)&hdr.hdrchk, 4); in putsec()
957 raw += 2; in putsec()
958 encode_block(raw, (ulong *)&hdr.datachk, 4); in putsec()
959 raw += 2; in putsec()
960 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
961 raw += 256; in putsec()
963 return raw; in putsec()
1133 static unsigned long dos_decode(unsigned char *data, unsigned short *raw, int len) in dos_decode() argument
1138 *data++=dos_decode_byte(*raw++); in dos_decode()
1139 return ((ulong)raw); in dos_decode()
1154 unsigned long raw; in dos_read() local
1160 raw = (long) raw_buf; in dos_read()
1161 end = raw + unit[drive].type->read_size; in dos_read()
1165 if (!(raw = scan_sync (raw, end))) { in dos_read()
1172 dbg(raw); in dos_read()
1174 } while (*((ushort *)raw)!=0x5554); /* loop usually only once done */ in dos_read()
1175 raw+=2; /* skip over headermark */ in dos_read()
1176 raw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8); in dos_read()
1211 if (!(raw = scan_sync (raw, end))) { in dos_read()
1218 dbg(raw); in dos_read()
1221 if (*((ushort *)raw)!=0x5545) { in dos_read()
1228 raw+=2; /* skip data mark (included in checksum) */ in dos_read()
1229raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 51… in dos_read()
1230 raw = dos_decode((unsigned char *)data_crc,(ushort *) raw,4); in dos_read()
1272 static unsigned long *ms_putsec(int drive, unsigned long *raw, int cnt) in ms_putsec() argument
1283 *raw++=0xaaaaaaaa; in ms_putsec()
1285 *raw++=0x44894489; in ms_putsec()
1286 *raw++=0x44895554; in ms_putsec()
1295 dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28); in ms_putsec()
1296 raw+=14; in ms_putsec()
1300 *raw++=0xaaaaaaaa; in ms_putsec()
1303 *raw++=0x44894489; in ms_putsec()
1304 *raw++=0x44895545; in ms_putsec()
1307 dos_encode_block((ushort *)raw, in ms_putsec()
1309 raw+=256; in ms_putsec()
1313 dos_encode_block((ushort *) raw,(unsigned char *)crc,4); in ms_putsec()
1314 raw+=2; in ms_putsec()
1318 *raw++=0x92549254; in ms_putsec()
1320 return raw; /* wrote 652 MFM words */ in ms_putsec()
1326 unsigned long raw = (unsigned long) raw_buf; in dos_write() local
1327 unsigned long *ptr=(unsigned long *)raw; in dos_write()