Lines Matching refs:bal
384 long bal = expand_bal; in ata_ctx_law() local
395 if (bal < 0) { in ata_ctx_law()
402 bal += hSpeed; in ata_ctx_law()
406 bal -= sSpeed; in ata_ctx_law()
414 if (bal < 0) { in ata_ctx_law()
424 bal += hSpeed; in ata_ctx_law()
428 bal -= sSpeed; in ata_ctx_law()
432 expand_bal = bal; in ata_ctx_law()
444 long bal = expand_bal; in ata_ctx_s8() local
454 if (bal < 0) { in ata_ctx_s8()
460 bal += hSpeed; in ata_ctx_s8()
464 bal -= sSpeed; in ata_ctx_s8()
471 if (bal < 0) { in ata_ctx_s8()
477 bal += hSpeed; in ata_ctx_s8()
481 bal -= sSpeed; in ata_ctx_s8()
485 expand_bal = bal; in ata_ctx_s8()
497 long bal = expand_bal; in ata_ctx_u8() local
507 if (bal < 0) { in ata_ctx_u8()
514 bal += hSpeed; in ata_ctx_u8()
518 bal -= sSpeed; in ata_ctx_u8()
525 if (bal < 0) { in ata_ctx_u8()
532 bal += hSpeed; in ata_ctx_u8()
536 bal -= sSpeed; in ata_ctx_u8()
540 expand_bal = bal; in ata_ctx_u8()
552 long bal = expand_bal; in ata_ctx_s16be() local
562 if (bal < 0) { in ata_ctx_s16be()
568 bal += hSpeed; in ata_ctx_s16be()
573 bal -= sSpeed; in ata_ctx_s16be()
580 if (bal < 0) { in ata_ctx_s16be()
586 bal += hSpeed; in ata_ctx_s16be()
590 bal -= sSpeed; in ata_ctx_s16be()
594 expand_bal = bal; in ata_ctx_s16be()
606 long bal = expand_bal; in ata_ctx_u16be() local
616 if (bal < 0) { in ata_ctx_u16be()
623 bal += hSpeed; in ata_ctx_u16be()
628 bal -= sSpeed; in ata_ctx_u16be()
635 if (bal < 0) { in ata_ctx_u16be()
642 bal += hSpeed; in ata_ctx_u16be()
646 bal -= sSpeed; in ata_ctx_u16be()
650 expand_bal = bal; in ata_ctx_u16be()
662 long bal = expand_bal; in ata_ctx_s16le() local
672 if (bal < 0) { in ata_ctx_s16le()
679 bal += hSpeed; in ata_ctx_s16le()
684 bal -= sSpeed; in ata_ctx_s16le()
691 if (bal < 0) { in ata_ctx_s16le()
698 bal += hSpeed; in ata_ctx_s16le()
702 bal -= sSpeed; in ata_ctx_s16le()
706 expand_bal = bal; in ata_ctx_s16le()
718 long bal = expand_bal; in ata_ctx_u16le() local
728 if (bal < 0) { in ata_ctx_u16le()
735 bal += hSpeed; in ata_ctx_u16le()
740 bal -= sSpeed; in ata_ctx_u16le()
747 if (bal < 0) { in ata_ctx_u16le()
754 bal += hSpeed; in ata_ctx_u16le()
758 bal -= sSpeed; in ata_ctx_u16le()
762 expand_bal = bal; in ata_ctx_u16le()