Lines Matching refs:bt

44 	struct bt878 *bt = from_tasklet(bt, t, tasklet);  in dvb_bt8xx_task()  local
45 struct dvb_bt8xx_card *card = dev_get_drvdata(&bt->adapter->dev); in dvb_bt8xx_task()
47 dprintk("%d\n", card->bt->finished_block); in dvb_bt8xx_task()
49 while (card->bt->last_block != card->bt->finished_block) { in dvb_bt8xx_task()
50 (card->bt->TS_Size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter) in dvb_bt8xx_task()
52 &card->bt->buf_cpu[card->bt->last_block * in dvb_bt8xx_task()
53 card->bt->block_bytes], in dvb_bt8xx_task()
54 card->bt->block_bytes); in dvb_bt8xx_task()
55 card->bt->last_block = (card->bt->last_block + 1) % in dvb_bt8xx_task()
56 card->bt->block_count; in dvb_bt8xx_task()
75 bt878_start(card->bt, card->gpio_mode, in dvb_bt8xx_start_feed()
94 bt878_stop(card->bt); in dvb_bt8xx_stop_feed()
305 struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv; in microtune_mt7202dtf_request_firmware() local
307 return request_firmware(fw, name, &bt->bt->dev->dev); in microtune_mt7202dtf_request_firmware()
403 struct dvb_bt8xx_card* bt = (struct dvb_bt8xx_card*) fe->dvb->priv; in or51211_request_firmware() local
405 return request_firmware(fw, name, &bt->bt->dev->dev); in or51211_request_firmware()
410 struct dvb_bt8xx_card *bt = fe->dvb->priv; in or51211_setmode() local
411 bttv_write_gpio(bt->bttv_nr, 0x0002, mode); /* Reset */ in or51211_setmode()
417 struct dvb_bt8xx_card *bt = fe->dvb->priv; in or51211_reset() local
429 int ret = bttv_gpio_enable(bt->bttv_nr, 0x001F, 0x001F); in or51211_reset()
432 bttv_write_gpio(bt->bttv_nr, 0x001F, 0x0000); /* Reset */ in or51211_reset()
435 bttv_write_gpio(bt->bttv_nr, 0x0001F, 0x0001); in or51211_reset()
442 struct dvb_bt8xx_card *bt = fe->dvb->priv; in or51211_sleep() local
443 bttv_write_gpio(bt->bttv_nr, 0x0001, 0x0000); in or51211_sleep()
537 static void digitv_alps_tded4_reset(struct dvb_bt8xx_card *bt) in digitv_alps_tded4_reset() argument
546 int ret = bttv_gpio_enable(bt->bttv_nr, 0x08, 0x08); in digitv_alps_tded4_reset()
552 bttv_write_gpio(bt->bttv_nr, 0x08, 0x08); /* High */ in digitv_alps_tded4_reset()
553 bttv_write_gpio(bt->bttv_nr, 0x08, 0x00); /* Low */ in digitv_alps_tded4_reset()
556 bttv_write_gpio(bt->bttv_nr, 0x08, 0x08); /* High */ in digitv_alps_tded4_reset()
569 static void lgdt330x_reset(struct dvb_bt8xx_card *bt) in lgdt330x_reset() argument
574 bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000001); /* High */ in lgdt330x_reset()
575 bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000000); /* Low */ in lgdt330x_reset()
578 bttv_write_gpio(bt->bttv_nr, 0x00e00007, 0x00000001); /* High */ in lgdt330x_reset()
664 state->bt = card->bt; in frontend_init()
699 card->bt->dev->vendor, in frontend_init()
700 card->bt->dev->device, in frontend_init()
701 card->bt->dev->subsystem_vendor, in frontend_init()
702 card->bt->dev->subsystem_device); in frontend_init()
716 THIS_MODULE, &card->bt->dev->dev, in dvb_bt8xx_load_card()
724 card->bt->adapter = card->i2c_adapter; in dvb_bt8xx_load_card()
781 tasklet_setup(&card->bt->tasklet, dvb_bt8xx_task); in dvb_bt8xx_load_card()
894 if (!(card->bt = dvb_bt8xx_878_match(card->bttv_nr, bttv_pci_dev))) { in dvb_bt8xx_probe()
902 mutex_init(&card->bt->gpio_lock); in dvb_bt8xx_probe()
903 card->bt->bttv_nr = sub->core->nr; in dvb_bt8xx_probe()
920 bt878_stop(card->bt); in dvb_bt8xx_remove()
921 tasklet_kill(&card->bt->tasklet); in dvb_bt8xx_remove()