• Home
  • Raw
  • Download

Lines Matching refs:cnt

569 	int cnt;  in fd_seek()  local
590 cnt = unit[drive].track/2 - track/2; in fd_seek()
595 if (cnt < 0) { in fd_seek()
596 cnt = - cnt; in fd_seek()
603 if (cnt == 0) { in fd_seek()
615 } while (--cnt != 0); in fd_seek()
915 int cnt, to_cnt = 0; in encode_block() local
919 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
920 data = src[cnt] >> 1; in encode_block()
925 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
926 data = src[cnt]; in encode_block()
931 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) in putsec() argument
943 hdr.sect = cnt; in putsec()
944 hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt; in putsec()
949 hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
959 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
967 unsigned int cnt; in amiga_write() local
972 for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) in amiga_write()
976 for (cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) in amiga_write()
977 ptr = putsec (disk, ptr, cnt); in amiga_write()
1271 static unsigned long *ms_putsec(int drive, unsigned long *raw, int cnt) in ms_putsec() argument
1290 hdr.sec=cnt+1; in ms_putsec()
1307 (unsigned char *)unit[drive].trackbuf+cnt*512,512); in ms_putsec()
1311 crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512); in ms_putsec()
1324 int cnt; in dos_write() local
1330 for (cnt=0;cnt<425;cnt++) in dos_write()
1335 for(cnt=0;cnt<473;cnt++) in dos_write()
1339 for (cnt=0;cnt<20;cnt++) in dos_write()
1341 for (cnt=0;cnt<6;cnt++) in dos_write()
1345 for (cnt=0;cnt<20;cnt++) in dos_write()
1349 for(cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) in dos_write()
1350 ptr=ms_putsec(disk,ptr,cnt); in dos_write()
1462 unsigned int cnt, block, track, sector; in amiflop_rw_cur_segment() local
1465 for (cnt = 0; cnt < blk_rq_cur_sectors(rq); cnt++) { in amiflop_rw_cur_segment()
1468 blk_rq_pos(rq), cnt, in amiflop_rw_cur_segment()
1471 block = blk_rq_pos(rq) + cnt; in amiflop_rw_cur_segment()
1474 data = bio_data(rq->bio) + 512 * cnt; in amiflop_rw_cur_segment()