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