Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/dvb-frontends/
H A Daf9013.c113 u32 if_frequency, freq_cw; in af9013_set_frontend() local
172 freq_cw = DIV_ROUND_CLOSEST_ULL((u64)sampling_freq * 0x800000, in af9013_set_frontend()
176 freq_cw = 0x800000 - freq_cw; in af9013_set_frontend()
178 buf[0] = (freq_cw >> 0) & 0xff; in af9013_set_frontend()
179 buf[1] = (freq_cw >> 8) & 0xff; in af9013_set_frontend()
180 buf[2] = (freq_cw >> 16) & 0x7f; in af9013_set_frontend()
182 freq_cw = 0x800000 - freq_cw; in af9013_set_frontend()
184 buf[3] = (freq_cw >> 0) & 0xff; in af9013_set_frontend()
185 buf[4] = (freq_cw >> 8) & 0xff; in af9013_set_frontend()
186 buf[5] = (freq_cw >> 16) & 0x7f; in af9013_set_frontend()