Lines Matching refs:clk_pulse
2682 int cmd, set, rec, offset, clk_pulse;
2690 clk_pulse = mhztons(pcic->bus_speed);
2695 * Add (clk_pulse/2) and an extra 1 to account for rounding errors.
2697 set = ((ctp->setup + 10 + 1 + (clk_pulse/2))/clk_pulse) - 1;
2701 cmd = ((ctp->width + 10 + 1 + (clk_pulse/2))/clk_pulse) - 1;
2705 rec = ((ctp->hold + 10 + 1 + (clk_pulse/2))/clk_pulse) - 2;
2713 ctp->cycle, clk_pulse, cmd, set, rec);