Lines Matching refs:bal
392 long bal = expand_bal; in ata_ctx_law() local
403 if (bal < 0) { in ata_ctx_law()
410 bal += hSpeed; in ata_ctx_law()
414 bal -= sSpeed; in ata_ctx_law()
422 if (bal < 0) { in ata_ctx_law()
432 bal += hSpeed; in ata_ctx_law()
436 bal -= sSpeed; in ata_ctx_law()
440 expand_bal = bal; in ata_ctx_law()
452 long bal = expand_bal; in ata_ctx_s8() local
462 if (bal < 0) { in ata_ctx_s8()
468 bal += hSpeed; in ata_ctx_s8()
472 bal -= sSpeed; in ata_ctx_s8()
479 if (bal < 0) { in ata_ctx_s8()
486 bal += hSpeed; in ata_ctx_s8()
490 bal -= sSpeed; in ata_ctx_s8()
494 expand_bal = bal; in ata_ctx_s8()
506 long bal = expand_bal; in ata_ctx_u8() local
516 if (bal < 0) { in ata_ctx_u8()
523 bal += hSpeed; in ata_ctx_u8()
527 bal -= sSpeed; in ata_ctx_u8()
534 if (bal < 0) { in ata_ctx_u8()
542 bal += hSpeed; in ata_ctx_u8()
546 bal -= sSpeed; in ata_ctx_u8()
550 expand_bal = bal; in ata_ctx_u8()
562 long bal = expand_bal; in ata_ctx_s16be() local
572 if (bal < 0) { in ata_ctx_s16be()
579 bal += hSpeed; in ata_ctx_s16be()
584 bal -= sSpeed; in ata_ctx_s16be()
591 if (bal < 0) { in ata_ctx_s16be()
598 bal += hSpeed; in ata_ctx_s16be()
602 bal -= sSpeed; in ata_ctx_s16be()
606 expand_bal = bal; in ata_ctx_s16be()
618 long bal = expand_bal; in ata_ctx_u16be() local
628 if (bal < 0) { in ata_ctx_u16be()
636 bal += hSpeed; in ata_ctx_u16be()
641 bal -= sSpeed; in ata_ctx_u16be()
648 if (bal < 0) { in ata_ctx_u16be()
656 bal += hSpeed; in ata_ctx_u16be()
660 bal -= sSpeed; in ata_ctx_u16be()
664 expand_bal = bal; in ata_ctx_u16be()
676 long bal = expand_bal; in ata_ctx_s16le() local
686 if (bal < 0) { in ata_ctx_s16le()
694 bal += hSpeed; in ata_ctx_s16le()
699 bal -= sSpeed; in ata_ctx_s16le()
706 if (bal < 0) { in ata_ctx_s16le()
714 bal += hSpeed; in ata_ctx_s16le()
718 bal -= sSpeed; in ata_ctx_s16le()
722 expand_bal = bal; in ata_ctx_s16le()
734 long bal = expand_bal; in ata_ctx_u16le() local
744 if (bal < 0) { in ata_ctx_u16le()
752 bal += hSpeed; in ata_ctx_u16le()
757 bal -= sSpeed; in ata_ctx_u16le()
764 if (bal < 0) { in ata_ctx_u16le()
772 bal += hSpeed; in ata_ctx_u16le()
776 bal -= sSpeed; in ata_ctx_u16le()
780 expand_bal = bal; in ata_ctx_u16le()