Home | History | Annotate | Download | only in bios

Lines Matching refs:lcount

3161   Bit16u lcount, lbefore, lafter, count;
3277 lcount = ((Bit16u)(inb(iobase1 + ATA_CB_CH))<<8)+inb(iobase1 + ATA_CB_CL);
3280 if(header>lcount) {
3281 lbefore=lcount;
3282 header-=lcount;
3283 lcount=0;
3288 lcount-=lbefore;
3291 if(lcount>length) {
3292 lafter=lcount-length;
3293 lcount=length;
3298 length-=lcount;
3302 count = lcount;
3304 BX_DEBUG_ATA("Trying to read %04x bytes (%04x %04x %04x) ",lbefore+lcount+lafter,lbefore,lcount,lafter);
3310 if (lcount & 0x03) lmode=ATA_MODE_PIO16;
3314 if (lcount & 0x01) {
3315 lcount+=1;
3322 lcount>>=2; lbefore>>=2; lafter>>=2;
3325 lcount>>=1; lbefore>>=1; lafter>>=1;
3356 mov cx, _ata_cmd_packet.lcount + 2[bp]