Lines Matching full:msec
17 * 500usec intervals in each 8msec that the led is 'on'. The levels
190 static int choose_times(int msec, int *c1p, int *c2p) in choose_times() argument
193 * Choose two timecodes which add to 'msec' as near as in choose_times()
196 * If 'msec' is even, the first will not be smaller than the in choose_times()
197 * second. If 'msec' is odd, the first will not be larger in choose_times()
199 * If we cannot get a sum within 1/8 of 'msec' fail with in choose_times()
207 int tmax = msec * 9 / 8; in choose_times()
208 int tmin = msec * 7 / 8; in choose_times()
228 d = abs(msec - tt); in choose_times()
236 return msec; in choose_times()
241 if (msec & 1) { in choose_times()