#define IF_FREQUENCYx6 217    /* 6 * 36.16666666667MHz */ 
static int advbt771_samsung_tdtc9251dh0_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf){	u32 div;	unsigned char bs = 0;	unsigned char cp = 0;	#define IF_FREQUENCYx6 217    /* 6 * 36.16666666667MHz */	div = (((params->frequency + 83333) * 3) / 500000) + IF_FREQUENCYx6;	if (params->frequency < 150000000)		cp = 0xB4;	else if (params->frequency < 173000000)		cp = 0xBC;	else if (params->frequency < 250000000)		cp = 0xB4;	else if (params->frequency < 400000000)		cp = 0xBC;	else if (params->frequency < 420000000)		cp = 0xF4;	else if (params->frequency < 470000000)		cp = 0xFC;	else if (params->frequency < 600000000)		cp = 0xBC;	else if (params->frequency < 730000000)		cp = 0xF4;	else		cp = 0xFC;	if (params->frequency < 150000000)		bs = 0x01;	else if (params->frequency < 173000000)		bs = 0x01;	else if (params->frequency < 250000000)		bs = 0x02;	else if (params->frequency < 400000000)		bs = 0x02;	else if (params->frequency < 420000000)		bs = 0x02;	else if (params->frequency < 470000000)		bs = 0x02;	else if (params->frequency < 600000000)		bs = 0x08;	else if (params->frequency < 730000000)		bs = 0x08;	else		bs = 0x08;	pllbuf[0] = 0xc2; // Note: non-linux standard PLL i2c address	pllbuf[1] = div >> 8;	pllbuf[2] = div & 0xff;	pllbuf[3] = cp;	pllbuf[4] = bs;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/05ade5a5cd32f8393c22fc454b0546df2ed497c5/dvb-bt8xx.c/buggy/drivers/media/dvb/bt8xx/dvb-bt8xx.c