Home
last modified time | relevance | path

Searched refs:freq_cw (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/media/dvb-frontends/
Daf9013.c590 u32 if_frequency, freq_cw; in af9013_set_frontend() local
639 freq_cw = af9013_div(state, sampling_freq, state->config.clock, in af9013_set_frontend()
643 freq_cw = 0x800000 - freq_cw; in af9013_set_frontend()
645 buf[0] = (freq_cw >> 0) & 0xff; in af9013_set_frontend()
646 buf[1] = (freq_cw >> 8) & 0xff; in af9013_set_frontend()
647 buf[2] = (freq_cw >> 16) & 0x7f; in af9013_set_frontend()
649 freq_cw = 0x800000 - freq_cw; in af9013_set_frontend()
651 buf[3] = (freq_cw >> 0) & 0xff; in af9013_set_frontend()
652 buf[4] = (freq_cw >> 8) & 0xff; in af9013_set_frontend()
653 buf[5] = (freq_cw >> 16) & 0x7f; in af9013_set_frontend()
Daf9033.c555 u32 if_frequency, freq_cw, adc_freq; in af9033_set_frontend() local
634 freq_cw = af9033_div(dev, sampling_freq, adc_freq, 23ul); in af9033_set_frontend()
637 freq_cw = 0x800000 - freq_cw; in af9033_set_frontend()
640 freq_cw /= 2; in af9033_set_frontend()
642 buf[0] = (freq_cw >> 0) & 0xff; in af9033_set_frontend()
643 buf[1] = (freq_cw >> 8) & 0xff; in af9033_set_frontend()
644 buf[2] = (freq_cw >> 16) & 0x7f; in af9033_set_frontend()