Lines Matching refs:t
122 static int tda9887_miro(struct tda9887 *t) in tda9887_miro() argument
150 if (t->radio) { in tda9887_miro()
156 if (3 == t->pinnacle_id) { in tda9887_miro()
168 } else if (t->tvnorm == VIDEO_MODE_PAL) { in tda9887_miro()
173 if (1 == t->pinnacle_id) { in tda9887_miro()
199 if ((5 == t->pinnacle_id) || (6 == t->pinnacle_id)) { in tda9887_miro()
207 } else if (t->tvnorm == VIDEO_MODE_SECAM) { in tda9887_miro()
235 } else if (t->tvnorm == VIDEO_MODE_NTSC) { in tda9887_miro()
242 if ((5 == t->pinnacle_id) || (6 == t->pinnacle_id)) { in tda9887_miro()
267 bData[1],bData[2],bData[3],t->pinnacle_id); in tda9887_miro()
268 if (4 != (rc = i2c_master_send(&t->client,bData,4))) in tda9887_miro()
292 static int tda9887_configure(struct tda9887 *t) in tda9887_configure() argument
297 if (t->radio) { in tda9887_configure()
301 } else if (t->tvnorm == VIDEO_MODE_PAL) { in tda9887_configure()
320 } else if (t->tvnorm == VIDEO_MODE_NTSC) { in tda9887_configure()
324 } else if (t->tvnorm == VIDEO_MODE_SECAM) { in tda9887_configure()
328 } else if (t->tvnorm == 6 /* BTTV hack */) { in tda9887_configure()
334 printk("tda9885/6/7 unknown norm=%d\n",t->tvnorm); in tda9887_configure()
340 if (4 != (rc = i2c_master_send(&t->client,buf,4))) in tda9887_configure()
350 struct tda9887 *t; in tda9887_attach() local
357 if (NULL == (t = kmalloc(sizeof(*t), GFP_KERNEL))) in tda9887_attach()
359 memset(t,0,sizeof(*t)); in tda9887_attach()
360 t->client = client_template; in tda9887_attach()
361 t->pinnacle_id = -1; in tda9887_attach()
362 t->tvnorm=VIDEO_MODE_PAL; in tda9887_attach()
363 i2c_set_clientdata(&t->client, t); in tda9887_attach()
364 i2c_attach_client(&t->client); in tda9887_attach()
389 struct tda9887 *t = i2c_get_clientdata(client); in tda9887_detach() local
392 kfree(t); in tda9887_detach()
400 struct tda9887 *t = i2c_get_clientdata(client); in tda9887_command() local
406 t->radio = 1; in tda9887_command()
407 if (-1 != t->pinnacle_id) in tda9887_command()
408 tda9887_miro(t); in tda9887_command()
410 tda9887_configure(t); in tda9887_command()
417 t->pinnacle_id = *i; in tda9887_command()
418 tda9887_miro(t); in tda9887_command()
428 t->radio = 0; in tda9887_command()
429 t->tvnorm = vc->norm; in tda9887_command()
430 if (-1 != t->pinnacle_id) in tda9887_command()
431 tda9887_miro(t); in tda9887_command()
433 tda9887_configure(t); in tda9887_command()