Lines Matching refs:counter
328 unsigned long counter; in bbc_beep_freq() local
335 counter = bbc_beep_hztocounter(freq); in bbc_beep_freq()
338 beep_c2 = (counter & 0xff00) >> 8; in bbc_beep_freq()
339 beep_c3 = (counter & 0xff0000) >> 16; in bbc_beep_freq()
355 (void *)dip, freq, (int)counter)); in bbc_beep_freq()
484 unsigned long counter; in bbc_beep_hztocounter() local
502 for (i = BBC_BEEP_MIN_SHIFT, counter = 1 << BBC_BEEP_MSBIT; in bbc_beep_hztocounter()
503 i >= BBC_BEEP_MAX_SHIFT; i--, counter >>= 1) { in bbc_beep_hztocounter()
521 return (counter); in bbc_beep_hztocounter()
533 return (counter); in bbc_beep_hztocounter()
544 return (counter); in bbc_beep_hztocounter()
549 return (counter << 1); in bbc_beep_hztocounter()
560 return (counter << 1); in bbc_beep_hztocounter()