Lines Matching defs:config
38 const struct ves1820_config* config;
62 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 3 };
79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2},
80 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1}
98 if (!state->config->invert) reg0 |= 0x20;
101 if (!state->config->invert) reg0 &= ~0x20;
125 if (symbolrate > state->config->xin / 2)
126 symbolrate = state->config->xin / 2;
131 if (symbolrate < state->config->xin / 16)
133 if (symbolrate < state->config->xin / 32)
135 if (symbolrate < state->config->xin / 64)
139 fpxin = state->config->xin * 10;
162 fin = state->config->xin >> 4;
171 BDRI = (((state->config->xin << 5) / symbolrate) + 1) / 2;
200 if (state->config->selagc)
235 ves1820_writereg(state, 2, ves1820_inittab[2] | (state->config->selagc ? 0x08 : 0));
326 if (!state->config->invert) {
370 struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,
383 state->config = config;
396 state->frontend.ops.info.symbol_rate_min = (state->config->xin / 2) / 64; /* SACLK/64 == (XIN/2)/64 */
397 state->frontend.ops.info.symbol_rate_max = (state->config->xin / 2) / 4; /* SACLK/4 */