struct ves1820_state* state = (struct ves1820_state*) fe->demodulator_priv; 
struct ves1820_state* state = fe->demodulator_priv; 
static int ves1820_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_parameters *p){	struct ves1820_state* state = (struct ves1820_state*) fe->demodulator_priv;	int sync;	s8 afc = 0;	sync = ves1820_readreg(state, 0x11);	afc = ves1820_readreg(state, 0x19);	if (verbose) {		/* AFC only valid when carrier has been recovered */		printk(sync & 2 ? "ves1820: AFC (%d) %dHz\n" :			"ves1820: [AFC (%d) %dHz]\n", afc, -((s32) p->u.qam.symbol_rate * afc) >> 10);	}	if (!state->config->invert) {		p->inversion = (state->reg0 & 0x20) ? INVERSION_ON : INVERSION_OFF;	} else {		p->inversion = (!(state->reg0 & 0x20)) ? INVERSION_ON : INVERSION_OFF;	}	p->u.qam.modulation = ((state->reg0 >> 2) & 7) + QAM_16;	p->u.qam.fec_inner = FEC_NONE;	p->frequency = ((p->frequency + 31250) / 62500) * 62500;	if (sync & 2)		p->frequency -= ((s32) p->u.qam.symbol_rate * afc) >> 10;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/ves1820.c/clean/drivers/media/dvb/frontends/ves1820.c