Lines Matching refs:cnt
201 int cnt = (GDROM_CNTHI << 8) | GDROM_CNTLO;
202 DPRINTF(("GDROM: cnt = %d\n", cnt));
203 sc->cmd_actual += cnt;
204 if (cnt > 0 && sc->cmd_result_size > 0) {
205 int subcnt = (cnt > sc->cmd_result_size ?
206 sc->cmd_result_size : cnt);
211 cnt -= subcnt;
217 while (cnt > 0) {
219 cnt -= 2;
350 int gdrom_read_sectors(struct gdrom_softc *sc, void *buf, int sector, int cnt,
359 * 8 cnt(hi) cnt(mid)
360 * 10 cnt(lo) -
371 cmd[8] = cnt >> 16;
372 cmd[9] = cnt >> 8;
373 cmd[10] = cnt;
375 return gdrom_command_sense(sc, cmd, buf, cnt << 11, resid);
445 int s, error, unit, cnt;
465 for (cnt = 0; cnt < 5; cnt++)