Searched refs:cycles_per_us (Results 1 – 1 of 1) sorted by relevance
99 unsigned long val = 0, cycles_per_us, delay_cycles, row_delay_cycles; in nspire_keypad_open() local106 cycles_per_us = (clk_get_rate(keypad->clk) / 1000000); in nspire_keypad_open()107 if (cycles_per_us == 0) in nspire_keypad_open()108 cycles_per_us = 1; in nspire_keypad_open()110 delay_cycles = cycles_per_us * keypad->scan_interval; in nspire_keypad_open()114 row_delay_cycles = cycles_per_us * keypad->row_delay; in nspire_keypad_open()