Lines Matching defs:config

685 	const struct stv090x_config *config = state->config;
692 { .addr = config->address, .flags = 0, .buf = b0, .len = 2 },
693 { .addr = config->address, .flags = I2C_M_RD, .buf = &buf, .len = 1 }
714 const struct stv090x_config *config = state->config;
717 struct i2c_msg i2c_msg = { .addr = config->address, .flags = 0, .buf = buf, .len = 2 + count };
765 if (state->config->tuner_i2c_lock)
766 state->config->tuner_i2c_lock(&state->frontend, 1);
786 if (state->config->tuner_i2c_lock)
787 state->config->tuner_i2c_lock(&state->frontend, 0);
795 if (state->config->tuner_i2c_lock)
796 state->config->tuner_i2c_lock(&state->frontend, 0);
1797 if (state->config->tuner_set_frequency) {
1798 if (state->config->tuner_set_frequency(fe, freq) < 0)
1802 if (state->config->tuner_set_bandwidth) {
1803 if (state->config->tuner_set_bandwidth(fe, state->tuner_bw) < 0)
1815 if (state->config->tuner_get_status) {
1816 if (state->config->tuner_get_status(fe, &reg) < 0)
2187 if (state->config->tuner_set_frequency) {
2188 if (state->config->tuner_set_frequency(fe, freq) < 0)
2192 if (state->config->tuner_set_bandwidth) {
2193 if (state->config->tuner_set_bandwidth(fe, state->tuner_bw) < 0)
2205 if (state->config->tuner_get_status) {
2206 if (state->config->tuner_get_status(fe, &reg) < 0)
2607 if (state->config->tuner_get_frequency) {
2608 if (state->config->tuner_get_frequency(fe, &state->frequency) < 0)
2635 if (state->config->tuner_get_frequency) {
2636 if (state->config->tuner_get_frequency(fe, &state->frequency) < 0)
3018 if (state->config->tuner_set_bandwidth) {
3019 if (state->config->tuner_set_bandwidth(fe, state->tuner_bw) < 0)
3253 if (state->config->tuner_set_bbgain) {
3254 reg = state->config->tuner_bbgain;
3257 if (state->config->tuner_set_bbgain(fe, reg) < 0)
3261 if (state->config->tuner_set_frequency) {
3262 if (state->config->tuner_set_frequency(fe, state->frequency) < 0)
3266 if (state->config->tuner_set_bandwidth) {
3267 if (state->config->tuner_set_bandwidth(fe, state->tuner_bw) < 0)
3276 if (state->config->tuner_get_status) {
3279 if (state->config->tuner_get_status(fe, &reg) < 0)
3786 (state->config->diseqc_envelope_mode) ? 4 : 2);
3839 mode = (state->config->diseqc_envelope_mode) ? 5 : 3;
3842 mode = (state->config->diseqc_envelope_mode) ? 4 : 2;
3916 if (state->config->tuner_sleep) {
3917 if (state->config->tuner_sleep(fe) < 0)
4258 const struct stv090x_config *config = state->config;
4266 return (div + 1) * config->xtal / ratio; /* kHz */
4271 const struct stv090x_config *config = state->config;
4277 div = ((clk_sel * mclk) / config->xtal) - 1;
4304 switch (state->config->ts1_mode) {
4307 switch (state->config->ts2_mode) {
4337 switch (state->config->ts2_mode) {
4354 switch (state->config->ts1_mode) {
4357 switch (state->config->ts2_mode) {
4386 switch (state->config->ts2_mode) {
4402 switch (state->config->ts1_mode) {
4405 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts1_tei);
4414 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts1_tei);
4423 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts1_tei);
4432 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts1_tei);
4443 switch (state->config->ts2_mode) {
4446 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts2_tei);
4455 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts2_tei);
4464 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts2_tei);
4473 STV090x_SETFIELD_Px(reg, TSFIFO_TEIUPDATE_FIELD, state->config->ts2_tei);
4484 if (state->config->ts1_clk > 0) {
4487 switch (state->config->ts1_mode) {
4492 (state->config->ts1_clk / 4);
4501 (state->config->ts1_clk / 32);
4516 if (state->config->ts2_clk > 0) {
4519 switch (state->config->ts2_mode) {
4524 (state->config->ts2_clk / 4);
4533 (state->config->ts2_clk / 32);
4575 switch (state->config->ts1_mode) {
4588 switch (state->config->ts1_mode) {
4602 switch (state->config->ts1_mode) {
4639 if (state->config->ts1_clk > 0) {
4642 switch (state->config->ts1_mode) {
4647 (state->config->ts1_clk / 4);
4656 (state->config->ts1_clk / 32);
4688 const struct stv090x_config *config = state->config;
4698 if (config->tuner_init) {
4699 if (config->tuner_init(fe) < 0)
4706 stv090x_set_mclk(state, 135000000, config->xtal); /* 135 Mhz */
4709 0x20 | config->clk_mode) < 0)
4734 if (config->tuner_set_mode) {
4735 if (config->tuner_set_mode(fe, TUNER_WAKE) < 0)
4739 if (config->tuner_init) {
4740 if (config->tuner_init(fe) < 0)
4767 const struct stv090x_config *config = state->config;
4808 STV090x_SETFIELD_Px(reg, ENARPT_LEVEL_FIELD, config->repeater_level);
4820 if (stv090x_write_reg(state, STV090x_SYNTCTRL, 0x20 | config->clk_mode) < 0) /* enable PLL */
4857 (config->adc1_range == STV090x_ADC_1Vpp) ? 0 : 1);
4864 (config->adc2_range == STV090x_ADC_1Vpp) ? 0 : 1);
4897 state->config->address);
4916 state->internal->i2c_addr = state->config->address;
4932 if (state->config->diseqc_envelope_mode)
4935 state->config->set_gpio = stv090x_set_gpio;
4939 state->config->demod,
4996 struct stv090x_config *config = client->dev.platform_data;
5007 state->config = config;
5011 state->demod = config->demod;
5013 state->demod_mode = config->demod_mode;
5014 state->device = config->device;
5025 config->get_dvb_frontend = stv090x_get_dvb_frontend;
5041 struct dvb_frontend *stv090x_attach(struct stv090x_config *config,
5053 state->config = config;
5059 state->demod_mode = config->demod_mode;
5060 state->device = config->device;