Lines Matching defs:trackbuf
194 unsigned char *trackbuf; /* current track (kmaloc()'d */
202 int dirty; /* true when trackbuf is not on disk */
879 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512),
881 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512);
888 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0],
889 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1],
890 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2],
891 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]);
949 hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512);
959 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512);
1228 raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 512);
1230 crc = dos_data_crc(unit[drive].trackbuf + (hdr.sec - 1) * 512);
1237 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[0],
1238 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[1],
1239 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[2],
1240 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[3]);
1307 (unsigned char *)unit[drive].trackbuf+cnt*512,512);
1311 crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512);
1484 memcpy(data, floppy->trackbuf + sector * 512, 512);
1486 memcpy(floppy->trackbuf + sector * 512, data, 512);
1566 memset(p->trackbuf, FD_FILL_BYTE,
1808 unit[drive].trackbuf = kmalloc(FLOPPY_MAX_SECTORS * 512, GFP_KERNEL);
1809 if (!unit[drive].trackbuf)
1831 kfree(unit[drive].trackbuf);