Lines Matching refs:recovery_count
432 u8 active_count, recovery_count; in display_clocks() local
437 recovery_count = recovery_counts[index]; in display_clocks()
438 if (active_count > 3 && recovery_count == 1) in display_clocks()
439 ++recovery_count; in display_clocks()
441 recovery_count += 1; /* cmd640b uses (count + 1)*/ in display_clocks()
442 printk(", clocks=%d/%d/%d\n", setup_counts[index], active_count, recovery_count); in display_clocks()
463 u8 recovery_count = recovery_counts[index]; in program_drive_counts() local
480 if (recovery_count < recovery_counts[mate]) in program_drive_counts()
481 recovery_count = recovery_counts[mate]; in program_drive_counts()
507 __put_cmd640_reg(drwtim_regs[index], pack_nibbles(active_count, recovery_count)); in program_drive_counts()
519 u8 setup_count, active_count, recovery_count, recovery_count2, cycle_count; in cmd640_set_mode() local
544 recovery_count = DIV_ROUND_UP(recovery_time, clock_time); in cmd640_set_mode()
546 if (recovery_count2 > recovery_count) in cmd640_set_mode()
547 recovery_count = recovery_count2; in cmd640_set_mode()
548 if (recovery_count < 2) in cmd640_set_mode()
549 recovery_count = 2; /* minimum allowed by cmd640 */ in cmd640_set_mode()
550 if (recovery_count > 17) { in cmd640_set_mode()
551 active_count += recovery_count - 17; in cmd640_set_mode()
552 recovery_count = 17; in cmd640_set_mode()
557 recovery_count -= 1; /* cmd640b uses (count + 1)*/ in cmd640_set_mode()
558 if (recovery_count > 16) in cmd640_set_mode()
559 recovery_count = 16; /* maximum allowed by cmd640 */ in cmd640_set_mode()
563 recovery_counts[index] = recovery_count; in cmd640_set_mode()