Lines Matching refs:div
609 unsigned div; in set_dac_rate() local
616 div = (rate * 65536 + FULLRATE/2) / FULLRATE; in set_dac_rate()
617 if (div > 65535) in set_dac_rate()
618 div = 65535; in set_dac_rate()
620 wrindir(s, SV_CIPCMSR1, div >> 8); in set_dac_rate()
621 wrindir(s, SV_CIPCMSR0, div); in set_dac_rate()
623 s->ratedac = (div * FULLRATE + 32768) / 65536; in set_dac_rate()
629 unsigned rate1, rate2, div; in set_adc_rate() local
636 div = (48000 + rate/2) / rate; in set_adc_rate()
637 if (div > 8) in set_adc_rate()
638 div = 8; in set_adc_rate()
639 rate2 = (48000 + div/2) / div; in set_adc_rate()
641 wrindir(s, SV_CIADCALTSR, (div-1) << 4); in set_adc_rate()