Lines Matching refs:cnt
488 PWriteShorts(char *src, char *dest, int cnt)
490 for (cnt /= 2; --cnt >= 0; ) {
498 ReadShorts(char *src, char *dest, int cnt)
500 for (cnt /= 2; --cnt >= 0; ) {
515 int cnt;
524 cnt = IE_PAGESIZE - dest % IE_PAGESIZE;
525 if (cnt > size)
526 cnt = size;
528 PWriteShorts(sptr, (char *)sc->sc_ram + IE_COFF2POFF(dest), cnt);
529 sptr+=cnt;
530 dest+=cnt;
531 size-=cnt;
538 int cnt;
547 cnt = IE_PAGESIZE - src % IE_PAGESIZE;
548 if (cnt > size)
549 cnt = size;
551 ReadShorts((char *)sc->sc_ram + IE_COFF2POFF(src), dptr, cnt);
552 src+=cnt;
553 dptr+=cnt;
554 size-=cnt;
566 int cnt;
569 cnt = IE_PAGESIZE - p % IE_PAGESIZE;
570 if (cnt > size)
571 cnt=size;
573 memset((char *)sc->sc_ram + IE_COFF2POFF(p), 0, 2*cnt);
574 p += cnt;
575 size -= cnt;