• Home
  • Raw
  • Download

Lines Matching refs:cnt

456 	int cnt;  in fd_seek()  local
477 cnt = unit[drive].track/2 - track/2; in fd_seek()
482 if (cnt < 0) { in fd_seek()
483 cnt = - cnt; in fd_seek()
490 if (cnt == 0) { in fd_seek()
502 } while (--cnt != 0); in fd_seek()
798 int cnt, to_cnt = 0; in encode_block() local
802 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
803 data = src[cnt] >> 1; in encode_block()
808 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
809 data = src[cnt]; in encode_block()
814 static unsigned long *putsec(int disk, unsigned long *raw, int cnt) in putsec() argument
826 hdr.sect = cnt; in putsec()
827 hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt; in putsec()
832 hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
842 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); in putsec()
850 unsigned int cnt; in amiga_write() local
855 for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) in amiga_write()
859 for (cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) in amiga_write()
860 ptr = putsec (disk, ptr, cnt); in amiga_write()
1154 static unsigned long *ms_putsec(int drive, unsigned long *raw, int cnt) in ms_putsec() argument
1173 hdr.sec=cnt+1; in ms_putsec()
1190 (unsigned char *)unit[drive].trackbuf+cnt*512,512); in ms_putsec()
1194 crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512); in ms_putsec()
1207 int cnt; in dos_write() local
1213 for (cnt=0;cnt<425;cnt++) in dos_write()
1218 for(cnt=0;cnt<473;cnt++) in dos_write()
1222 for (cnt=0;cnt<20;cnt++) in dos_write()
1224 for (cnt=0;cnt<6;cnt++) in dos_write()
1228 for (cnt=0;cnt<20;cnt++) in dos_write()
1232 for(cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) in dos_write()
1233 ptr=ms_putsec(disk,ptr,cnt); in dos_write()
1343 int cnt = FD_MAX_UNITS; in set_next_request() local
1351 for(cnt = FD_MAX_UNITS; cnt > 0; cnt--) { in set_next_request()
1376 unsigned int cnt, block, track, sector; in redo_fd_request() local
1395 for (cnt = 0, err = 0; cnt < blk_rq_cur_sectors(rq); cnt++) { in redo_fd_request()
1398 blk_rq_pos(rq), cnt, in redo_fd_request()
1401 block = blk_rq_pos(rq) + cnt; in redo_fd_request()
1409 data = bio_data(rq->bio) + 512 * cnt; in redo_fd_request()