Lines Matching defs:rate
834 static void cx24120_calculate_ber_window(struct cx24120_state *state, u32 rate)
841 * Calculate bitrate from rate in the clock ratios table.
844 tmp = (u64)c->symbol_rate * rate;
873 u32 rate;
877 /*delsys pilot mod fec m_rat n_rat rate */
954 dev_dbg(&state->i2c->dev, "m=%d, n=%d; idx: %d m=%d, n=%d, rate=%d\n",
960 clock_ratios_table[idx].rate);
973 cmd.arg[8] = (clock_ratios_table[idx].rate >> 8) & 0xff;
974 cmd.arg[9] = (clock_ratios_table[idx].rate >> 0) & 0xff;
981 cx24120_calculate_ber_window(state, clock_ratios_table[idx].rate);
1107 /* Set symbol rate */
1108 static int cx24120_set_symbolrate(struct cx24120_state *state, u32 rate)
1110 dev_dbg(&state->i2c->dev, "(%d)\n", rate);
1112 state->dnxt.symbol_rate = rate;
1114 /* Check symbol rate */
1115 if (rate > 31000000) {
1116 state->dnxt.clkdiv = (-(rate < 31000001) & 3) + 2;
1117 state->dnxt.ratediv = (-(rate < 31000001) & 6) + 4;
1226 /* Write symbol rate values */