Lines Matching refs:active_count
432 u8 active_count, recovery_count; in display_clocks() local
434 active_count = active_counts[index]; in display_clocks()
435 if (active_count == 1) in display_clocks()
436 ++active_count; in display_clocks()
438 if (active_count > 3 && recovery_count == 1) in display_clocks()
442 printk(", clocks=%d/%d/%d\n", setup_counts[index], active_count, recovery_count); in display_clocks()
462 u8 active_count = active_counts[index]; in program_drive_counts() local
478 if (active_count < active_counts[mate]) in program_drive_counts()
479 active_count = active_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
540 active_count = DIV_ROUND_UP(active_time, clock_time); in cmd640_set_mode()
541 if (active_count < 2) in cmd640_set_mode()
542 active_count = 2; /* minimum allowed by cmd640 */ in cmd640_set_mode()
545 recovery_count2 = cycle_count - (setup_count + active_count); in cmd640_set_mode()
551 active_count += recovery_count - 17; in cmd640_set_mode()
554 if (active_count > 16) in cmd640_set_mode()
555 active_count = 16; /* maximum allowed by cmd640 */ in cmd640_set_mode()
562 active_counts[index] = active_count; in cmd640_set_mode()