Lines Matching +full:clock +full:- +full:frequency

212 	bbc_beeptr->bbc_beep_dip = dip;  in bbc_beep_attach()
215 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_attach()
263 if (bbc_beeptr->bbc_beep_mode == BBC_BEEP_OFF) { in bbc_beep_detach()
299 *result = (void *)bbc_beeptr->bbc_beep_dip; in bbc_beep_info()
322 * Set the frequency
334 /* Convert the frequency in hz to the bbc counter value */ in bbc_beep_freq()
371 bbc_beeptr->bbc_beep_mode = BBC_BEEP_ON; in bbc_beep_on()
390 bbc_beeptr->bbc_beep_mode = BBC_BEEP_OFF; in bbc_beep_off()
401 * should be mapped into a non-cacheable portion of the system
418 (caddr_t *)&bbc_beeptr->bbc_beep_regsp, in bbc_beep_map_regs()
422 &bbc_beeptr->bbc_beep_regs_handle) != DDI_SUCCESS) { in bbc_beep_map_regs()
458 int instance = ddi_get_instance(bbc_beeptr->bbc_beep_dip); in bbc_beep_cleanup()
468 * Given a frequency in hz, find out the value to
471 * frequency. The formulae is :
472 * frequency generated = system freq /2^(n+2)
475 * So in this function, the inputs are frequency generated
476 * and system frequency and we need to find out n, i.e, which
490 * Get system frequency for the root dev_info properties in bbc_beep_hztocounter()
493 0, "clock-frequency", 0); in bbc_beep_hztocounter()
498 * Calculate frequency by turning on ith bit and in bbc_beep_hztocounter()
499 * matching it with the passed frequency and we do this in bbc_beep_hztocounter()
503 i >= BBC_BEEP_MAX_SHIFT; i--, counter >>= 1) { in bbc_beep_hztocounter()
506 * Calculate the frequency by dividing the system in bbc_beep_hztocounter()
507 * frequency by 2^i in bbc_beep_hztocounter()
513 * frequency matches exactly or not in bbc_beep_hztocounter()
517 * Exact match of passed frequency with the in bbc_beep_hztocounter()
525 * If calculated frequency is bigger in bbc_beep_hztocounter()
526 * return the passed frequency in bbc_beep_hztocounter()
537 * Find out the nearest frequency to the passed in bbc_beep_hztocounter()
538 * frequency by comparing the difference between in bbc_beep_hztocounter()
539 * the calculated frequency and the passed frequency in bbc_beep_hztocounter()
541 if ((freq - oldfreq) > (newfreq - freq)) { in bbc_beep_hztocounter()