pt1               207 drivers/media/common/saa7146/saa7146_video.c 		struct saa7146_pgtable *pt1 = &buf->pt[0];
pt1               244 drivers/media/common/saa7146/saa7146_video.c 		ptr1 = pt1->cpu;
pt1               263 drivers/media/common/saa7146/saa7146_video.c 		pt1->offset = dma->sglist->offset;
pt1               264 drivers/media/common/saa7146/saa7146_video.c 		pt2->offset = pt1->offset+o1;
pt1               265 drivers/media/common/saa7146/saa7146_video.c 		pt3->offset = pt1->offset+o2;
pt1               268 drivers/media/common/saa7146/saa7146_video.c 		ptr1 = pt1->cpu;
pt1               277 drivers/media/common/saa7146/saa7146_video.c 		ptr1 = pt1->cpu;
pt1               286 drivers/media/common/saa7146/saa7146_video.c 		ptr1 = pt1->cpu+m1;
pt1               287 drivers/media/common/saa7146/saa7146_video.c 		fill = pt1->cpu[m1];
pt1                91 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1;
pt1               254 drivers/media/pci/pt1/pt1.c static int pt1_demod_block_init(struct pt1 *pt1)
pt1               263 drivers/media/pci/pt1/pt1.c 		cl = pt1->adaps[i]->demod_i2c_client;
pt1               275 drivers/media/pci/pt1/pt1.c 		cl = pt1->adaps[i]->demod_i2c_client;
pt1               288 drivers/media/pci/pt1/pt1.c static void pt1_write_reg(struct pt1 *pt1, int reg, u32 data)
pt1               290 drivers/media/pci/pt1/pt1.c 	writel(data, pt1->regs + reg * 4);
pt1               293 drivers/media/pci/pt1/pt1.c static u32 pt1_read_reg(struct pt1 *pt1, int reg)
pt1               295 drivers/media/pci/pt1/pt1.c 	return readl(pt1->regs + reg * 4);
pt1               301 drivers/media/pci/pt1/pt1.c static void pt1_increment_table_count(struct pt1 *pt1)
pt1               303 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x00000020);
pt1               306 drivers/media/pci/pt1/pt1.c static void pt1_init_table_count(struct pt1 *pt1)
pt1               308 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x00000010);
pt1               311 drivers/media/pci/pt1/pt1.c static void pt1_register_tables(struct pt1 *pt1, u32 first_pfn)
pt1               313 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 5, first_pfn);
pt1               314 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x0c000040);
pt1               317 drivers/media/pci/pt1/pt1.c static void pt1_unregister_tables(struct pt1 *pt1)
pt1               319 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x08080000);
pt1               322 drivers/media/pci/pt1/pt1.c static int pt1_sync(struct pt1 *pt1)
pt1               326 drivers/media/pci/pt1/pt1.c 		if (pt1_read_reg(pt1, 0) & 0x20000000)
pt1               328 drivers/media/pci/pt1/pt1.c 		pt1_write_reg(pt1, 0, 0x00000008);
pt1               330 drivers/media/pci/pt1/pt1.c 	dev_err(&pt1->pdev->dev, "could not sync\n");
pt1               334 drivers/media/pci/pt1/pt1.c static u64 pt1_identify(struct pt1 *pt1)
pt1               340 drivers/media/pci/pt1/pt1.c 		id |= (u64)(pt1_read_reg(pt1, 0) >> 30 & 1) << i;
pt1               341 drivers/media/pci/pt1/pt1.c 		pt1_write_reg(pt1, 0, 0x00000008);
pt1               346 drivers/media/pci/pt1/pt1.c static int pt1_unlock(struct pt1 *pt1)
pt1               349 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x00000008);
pt1               351 drivers/media/pci/pt1/pt1.c 		if (pt1_read_reg(pt1, 0) & 0x80000000)
pt1               355 drivers/media/pci/pt1/pt1.c 	dev_err(&pt1->pdev->dev, "could not unlock\n");
pt1               359 drivers/media/pci/pt1/pt1.c static int pt1_reset_pci(struct pt1 *pt1)
pt1               362 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x01010000);
pt1               363 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x01000000);
pt1               365 drivers/media/pci/pt1/pt1.c 		if (pt1_read_reg(pt1, 0) & 0x00000001)
pt1               369 drivers/media/pci/pt1/pt1.c 	dev_err(&pt1->pdev->dev, "could not reset PCI\n");
pt1               373 drivers/media/pci/pt1/pt1.c static int pt1_reset_ram(struct pt1 *pt1)
pt1               376 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x02020000);
pt1               377 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x02000000);
pt1               379 drivers/media/pci/pt1/pt1.c 		if (pt1_read_reg(pt1, 0) & 0x00000002)
pt1               383 drivers/media/pci/pt1/pt1.c 	dev_err(&pt1->pdev->dev, "could not reset RAM\n");
pt1               387 drivers/media/pci/pt1/pt1.c static int pt1_do_enable_ram(struct pt1 *pt1)
pt1               391 drivers/media/pci/pt1/pt1.c 	status = pt1_read_reg(pt1, 0) & 0x00000004;
pt1               392 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x00000002);
pt1               395 drivers/media/pci/pt1/pt1.c 			if ((pt1_read_reg(pt1, 0) & 0x00000004) != status)
pt1               400 drivers/media/pci/pt1/pt1.c 	dev_err(&pt1->pdev->dev, "could not enable RAM\n");
pt1               404 drivers/media/pci/pt1/pt1.c static int pt1_enable_ram(struct pt1 *pt1)
pt1               409 drivers/media/pci/pt1/pt1.c 	phase = pt1->pdev->device == 0x211a ? 128 : 166;
pt1               411 drivers/media/pci/pt1/pt1.c 		ret = pt1_do_enable_ram(pt1);
pt1               418 drivers/media/pci/pt1/pt1.c static void pt1_disable_ram(struct pt1 *pt1)
pt1               420 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x0b0b0000);
pt1               423 drivers/media/pci/pt1/pt1.c static void pt1_set_stream(struct pt1 *pt1, int index, int enabled)
pt1               425 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 2, 1 << (index + 8) | enabled << index);
pt1               428 drivers/media/pci/pt1/pt1.c static void pt1_init_streams(struct pt1 *pt1)
pt1               432 drivers/media/pci/pt1/pt1.c 		pt1_set_stream(pt1, i, 0);
pt1               435 drivers/media/pci/pt1/pt1.c static int pt1_filter(struct pt1 *pt1, struct pt1_buffer_page *page)
pt1               454 drivers/media/pci/pt1/pt1.c 		adap = pt1->adaps[index];
pt1               462 drivers/media/pci/pt1/pt1.c 				pt1->table_index, pt1->buf_index);
pt1               491 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1;
pt1               498 drivers/media/pci/pt1/pt1.c 	pt1 = data;
pt1               506 drivers/media/pci/pt1/pt1.c 				pt1_set_stream(pt1, i, !!pt1->adaps[i]->users);
pt1               509 drivers/media/pci/pt1/pt1.c 		page = pt1->tables[pt1->table_index].bufs[pt1->buf_index].page;
pt1               510 drivers/media/pci/pt1/pt1.c 		if (!pt1_filter(pt1, page)) {
pt1               521 drivers/media/pci/pt1/pt1.c 		if (++pt1->buf_index >= PT1_NR_BUFS) {
pt1               522 drivers/media/pci/pt1/pt1.c 			pt1_increment_table_count(pt1);
pt1               523 drivers/media/pci/pt1/pt1.c 			pt1->buf_index = 0;
pt1               524 drivers/media/pci/pt1/pt1.c 			if (++pt1->table_index >= pt1_nr_tables)
pt1               525 drivers/media/pci/pt1/pt1.c 				pt1->table_index = 0;
pt1               532 drivers/media/pci/pt1/pt1.c static void pt1_free_page(struct pt1 *pt1, void *page, dma_addr_t addr)
pt1               534 drivers/media/pci/pt1/pt1.c 	dma_free_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, page, addr);
pt1               537 drivers/media/pci/pt1/pt1.c static void *pt1_alloc_page(struct pt1 *pt1, dma_addr_t *addrp, u32 *pfnp)
pt1               542 drivers/media/pci/pt1/pt1.c 	page = dma_alloc_coherent(&pt1->pdev->dev, PT1_PAGE_SIZE, &addr,
pt1               555 drivers/media/pci/pt1/pt1.c static void pt1_cleanup_buffer(struct pt1 *pt1, struct pt1_buffer *buf)
pt1               557 drivers/media/pci/pt1/pt1.c 	pt1_free_page(pt1, buf->page, buf->addr);
pt1               561 drivers/media/pci/pt1/pt1.c pt1_init_buffer(struct pt1 *pt1, struct pt1_buffer *buf,  u32 *pfnp)
pt1               566 drivers/media/pci/pt1/pt1.c 	page = pt1_alloc_page(pt1, &addr, pfnp);
pt1               577 drivers/media/pci/pt1/pt1.c static void pt1_cleanup_table(struct pt1 *pt1, struct pt1_table *table)
pt1               582 drivers/media/pci/pt1/pt1.c 		pt1_cleanup_buffer(pt1, &table->bufs[i]);
pt1               584 drivers/media/pci/pt1/pt1.c 	pt1_free_page(pt1, table->page, table->addr);
pt1               588 drivers/media/pci/pt1/pt1.c pt1_init_table(struct pt1 *pt1, struct pt1_table *table, u32 *pfnp)
pt1               595 drivers/media/pci/pt1/pt1.c 	page = pt1_alloc_page(pt1, &addr, pfnp);
pt1               600 drivers/media/pci/pt1/pt1.c 		ret = pt1_init_buffer(pt1, &table->bufs[i], &buf_pfn);
pt1               607 drivers/media/pci/pt1/pt1.c 	pt1_increment_table_count(pt1);
pt1               614 drivers/media/pci/pt1/pt1.c 		pt1_cleanup_buffer(pt1, &table->bufs[i]);
pt1               616 drivers/media/pci/pt1/pt1.c 	pt1_free_page(pt1, page, addr);
pt1               620 drivers/media/pci/pt1/pt1.c static void pt1_cleanup_tables(struct pt1 *pt1)
pt1               625 drivers/media/pci/pt1/pt1.c 	tables = pt1->tables;
pt1               626 drivers/media/pci/pt1/pt1.c 	pt1_unregister_tables(pt1);
pt1               629 drivers/media/pci/pt1/pt1.c 		pt1_cleanup_table(pt1, &tables[i]);
pt1               634 drivers/media/pci/pt1/pt1.c static int pt1_init_tables(struct pt1 *pt1)
pt1               647 drivers/media/pci/pt1/pt1.c 	pt1_init_table_count(pt1);
pt1               650 drivers/media/pci/pt1/pt1.c 	ret = pt1_init_table(pt1, &tables[0], &first_pfn);
pt1               656 drivers/media/pci/pt1/pt1.c 		ret = pt1_init_table(pt1, &tables[i], &pfn);
pt1               665 drivers/media/pci/pt1/pt1.c 	pt1_register_tables(pt1, first_pfn);
pt1               666 drivers/media/pci/pt1/pt1.c 	pt1->tables = tables;
pt1               671 drivers/media/pci/pt1/pt1.c 		pt1_cleanup_table(pt1, &tables[i]);
pt1               677 drivers/media/pci/pt1/pt1.c static int pt1_start_polling(struct pt1 *pt1)
pt1               681 drivers/media/pci/pt1/pt1.c 	mutex_lock(&pt1->lock);
pt1               682 drivers/media/pci/pt1/pt1.c 	if (!pt1->kthread) {
pt1               683 drivers/media/pci/pt1/pt1.c 		pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1");
pt1               684 drivers/media/pci/pt1/pt1.c 		if (IS_ERR(pt1->kthread)) {
pt1               685 drivers/media/pci/pt1/pt1.c 			ret = PTR_ERR(pt1->kthread);
pt1               686 drivers/media/pci/pt1/pt1.c 			pt1->kthread = NULL;
pt1               689 drivers/media/pci/pt1/pt1.c 	mutex_unlock(&pt1->lock);
pt1               700 drivers/media/pci/pt1/pt1.c 		ret = pt1_start_polling(adap->pt1);
pt1               703 drivers/media/pci/pt1/pt1.c 		pt1_set_stream(adap->pt1, adap->index, 1);
pt1               708 drivers/media/pci/pt1/pt1.c static void pt1_stop_polling(struct pt1 *pt1)
pt1               712 drivers/media/pci/pt1/pt1.c 	mutex_lock(&pt1->lock);
pt1               714 drivers/media/pci/pt1/pt1.c 		count += pt1->adaps[i]->users;
pt1               716 drivers/media/pci/pt1/pt1.c 	if (count == 0 && pt1->kthread) {
pt1               717 drivers/media/pci/pt1/pt1.c 		kthread_stop(pt1->kthread);
pt1               718 drivers/media/pci/pt1/pt1.c 		pt1->kthread = NULL;
pt1               720 drivers/media/pci/pt1/pt1.c 	mutex_unlock(&pt1->lock);
pt1               728 drivers/media/pci/pt1/pt1.c 		pt1_set_stream(adap->pt1, adap->index, 0);
pt1               729 drivers/media/pci/pt1/pt1.c 		pt1_stop_polling(adap->pt1);
pt1               735 drivers/media/pci/pt1/pt1.c pt1_update_power(struct pt1 *pt1)
pt1               747 drivers/media/pci/pt1/pt1.c 	bits = pt1->power | !pt1->reset << 3;
pt1               748 drivers/media/pci/pt1/pt1.c 	mutex_lock(&pt1->lock);
pt1               750 drivers/media/pci/pt1/pt1.c 		adap = pt1->adaps[i];
pt1               765 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 1, bits);
pt1               766 drivers/media/pci/pt1/pt1.c 	mutex_unlock(&pt1->lock);
pt1               775 drivers/media/pci/pt1/pt1.c 	pt1_update_power(adap->pt1);
pt1               795 drivers/media/pci/pt1/pt1.c 	pt1_update_power(adap->pt1);
pt1               806 drivers/media/pci/pt1/pt1.c 	pt1_update_power(adap->pt1);
pt1               809 drivers/media/pci/pt1/pt1.c 	ret = config_demod(adap->demod_i2c_client, adap->pt1->fe_clk);
pt1               828 drivers/media/pci/pt1/pt1.c pt1_alloc_adapter(struct pt1 *pt1)
pt1               843 drivers/media/pci/pt1/pt1.c 	adap->pt1 = pt1;
pt1               862 drivers/media/pci/pt1/pt1.c 				   &pt1->pdev->dev, adapter_nr);
pt1               900 drivers/media/pci/pt1/pt1.c static void pt1_cleanup_adapters(struct pt1 *pt1)
pt1               904 drivers/media/pci/pt1/pt1.c 		pt1_free_adapter(pt1->adaps[i]);
pt1               907 drivers/media/pci/pt1/pt1.c static int pt1_init_adapters(struct pt1 *pt1)
pt1               914 drivers/media/pci/pt1/pt1.c 		adap = pt1_alloc_adapter(pt1);
pt1               921 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i] = adap;
pt1               927 drivers/media/pci/pt1/pt1.c 		pt1_free_adapter(pt1->adaps[i]);
pt1               958 drivers/media/pci/pt1/pt1.c static void pt1_cleanup_frontends(struct pt1 *pt1)
pt1               962 drivers/media/pci/pt1/pt1.c 		pt1_cleanup_frontend(pt1->adaps[i]);
pt1               965 drivers/media/pci/pt1/pt1.c static int pt1_init_frontends(struct pt1 *pt1)
pt1               980 drivers/media/pci/pt1/pt1.c 		cl = dvb_module_probe("tc90522", info->type, &pt1->i2c_adap,
pt1               984 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i]->demod_i2c_client = cl;
pt1              1008 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i]->tuner_i2c_client = cl;
pt1              1010 drivers/media/pci/pt1/pt1.c 		ret = pt1_init_frontend(pt1->adaps[i], dcfg.fe);
pt1              1015 drivers/media/pci/pt1/pt1.c 	ret = pt1_demod_block_init(pt1);
pt1              1022 drivers/media/pci/pt1/pt1.c 	dvb_module_release(pt1->adaps[i]->tuner_i2c_client);
pt1              1024 drivers/media/pci/pt1/pt1.c 	dvb_module_release(pt1->adaps[i]->demod_i2c_client);
pt1              1026 drivers/media/pci/pt1/pt1.c 	dev_warn(&pt1->pdev->dev, "failed to init FE(%d).\n", i);
pt1              1029 drivers/media/pci/pt1/pt1.c 		dvb_unregister_frontend(pt1->adaps[i]->fe);
pt1              1030 drivers/media/pci/pt1/pt1.c 		dvb_module_release(pt1->adaps[i]->tuner_i2c_client);
pt1              1031 drivers/media/pci/pt1/pt1.c 		dvb_module_release(pt1->adaps[i]->demod_i2c_client);
pt1              1036 drivers/media/pci/pt1/pt1.c static void pt1_i2c_emit(struct pt1 *pt1, int addr, int busy, int read_enable,
pt1              1039 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 4, addr << 18 | busy << 13 | read_enable << 12 |
pt1              1043 drivers/media/pci/pt1/pt1.c static void pt1_i2c_write_bit(struct pt1 *pt1, int addr, int *addrp, int data)
pt1              1045 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr,     1, 0, 0, data, addr + 1);
pt1              1046 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 1, 1, 0, 1, data, addr + 2);
pt1              1047 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 2, 1, 0, 0, data, addr + 3);
pt1              1051 drivers/media/pci/pt1/pt1.c static void pt1_i2c_read_bit(struct pt1 *pt1, int addr, int *addrp)
pt1              1053 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr,     1, 0, 0, 1, addr + 1);
pt1              1054 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 1, 1, 0, 1, 1, addr + 2);
pt1              1055 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 2, 1, 1, 1, 1, addr + 3);
pt1              1056 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 3, 1, 0, 0, 1, addr + 4);
pt1              1060 drivers/media/pci/pt1/pt1.c static void pt1_i2c_write_byte(struct pt1 *pt1, int addr, int *addrp, int data)
pt1              1064 drivers/media/pci/pt1/pt1.c 		pt1_i2c_write_bit(pt1, addr, &addr, data >> (7 - i) & 1);
pt1              1065 drivers/media/pci/pt1/pt1.c 	pt1_i2c_write_bit(pt1, addr, &addr, 1);
pt1              1069 drivers/media/pci/pt1/pt1.c static void pt1_i2c_read_byte(struct pt1 *pt1, int addr, int *addrp, int last)
pt1              1073 drivers/media/pci/pt1/pt1.c 		pt1_i2c_read_bit(pt1, addr, &addr);
pt1              1074 drivers/media/pci/pt1/pt1.c 	pt1_i2c_write_bit(pt1, addr, &addr, last);
pt1              1078 drivers/media/pci/pt1/pt1.c static void pt1_i2c_prepare(struct pt1 *pt1, int addr, int *addrp)
pt1              1080 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr,     1, 0, 1, 1, addr + 1);
pt1              1081 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 1, 1, 0, 1, 0, addr + 2);
pt1              1082 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 2, 1, 0, 0, 0, addr + 3);
pt1              1087 drivers/media/pci/pt1/pt1.c pt1_i2c_write_msg(struct pt1 *pt1, int addr, int *addrp, struct i2c_msg *msg)
pt1              1090 drivers/media/pci/pt1/pt1.c 	pt1_i2c_prepare(pt1, addr, &addr);
pt1              1091 drivers/media/pci/pt1/pt1.c 	pt1_i2c_write_byte(pt1, addr, &addr, msg->addr << 1);
pt1              1093 drivers/media/pci/pt1/pt1.c 		pt1_i2c_write_byte(pt1, addr, &addr, msg->buf[i]);
pt1              1098 drivers/media/pci/pt1/pt1.c pt1_i2c_read_msg(struct pt1 *pt1, int addr, int *addrp, struct i2c_msg *msg)
pt1              1101 drivers/media/pci/pt1/pt1.c 	pt1_i2c_prepare(pt1, addr, &addr);
pt1              1102 drivers/media/pci/pt1/pt1.c 	pt1_i2c_write_byte(pt1, addr, &addr, msg->addr << 1 | 1);
pt1              1104 drivers/media/pci/pt1/pt1.c 		pt1_i2c_read_byte(pt1, addr, &addr, i == msg->len - 1);
pt1              1108 drivers/media/pci/pt1/pt1.c static int pt1_i2c_end(struct pt1 *pt1, int addr)
pt1              1110 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr,     1, 0, 0, 0, addr + 1);
pt1              1111 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 1, 1, 0, 1, 0, addr + 2);
pt1              1112 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr + 2, 1, 0, 1, 1, 0);
pt1              1114 drivers/media/pci/pt1/pt1.c 	pt1_write_reg(pt1, 0, 0x00000004);
pt1              1119 drivers/media/pci/pt1/pt1.c 	} while (pt1_read_reg(pt1, 0) & 0x00000080);
pt1              1123 drivers/media/pci/pt1/pt1.c static void pt1_i2c_begin(struct pt1 *pt1, int *addrp)
pt1              1128 drivers/media/pci/pt1/pt1.c 	pt1_i2c_emit(pt1, addr,     0, 0, 1, 1, addr /* itself */);
pt1              1131 drivers/media/pci/pt1/pt1.c 	if (!pt1->i2c_running) {
pt1              1132 drivers/media/pci/pt1/pt1.c 		pt1_i2c_emit(pt1, addr,     1, 0, 1, 1, addr + 1);
pt1              1133 drivers/media/pci/pt1/pt1.c 		pt1_i2c_emit(pt1, addr + 1, 1, 0, 1, 0, addr + 2);
pt1              1135 drivers/media/pci/pt1/pt1.c 		pt1->i2c_running = 1;
pt1              1142 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1;
pt1              1149 drivers/media/pci/pt1/pt1.c 	pt1 = i2c_get_adapdata(adap);
pt1              1168 drivers/media/pci/pt1/pt1.c 			pt1_i2c_begin(pt1, &addr);
pt1              1169 drivers/media/pci/pt1/pt1.c 			pt1_i2c_write_msg(pt1, addr, &addr, msg);
pt1              1170 drivers/media/pci/pt1/pt1.c 			pt1_i2c_read_msg(pt1, addr, &addr, next_msg);
pt1              1171 drivers/media/pci/pt1/pt1.c 			ret = pt1_i2c_end(pt1, addr);
pt1              1175 drivers/media/pci/pt1/pt1.c 			word = pt1_read_reg(pt1, 2);
pt1              1181 drivers/media/pci/pt1/pt1.c 			pt1_i2c_begin(pt1, &addr);
pt1              1182 drivers/media/pci/pt1/pt1.c 			pt1_i2c_write_msg(pt1, addr, &addr, msg);
pt1              1183 drivers/media/pci/pt1/pt1.c 			ret = pt1_i2c_end(pt1, addr);
pt1              1202 drivers/media/pci/pt1/pt1.c static void pt1_i2c_wait(struct pt1 *pt1)
pt1              1206 drivers/media/pci/pt1/pt1.c 		pt1_i2c_emit(pt1, 0, 0, 0, 1, 1, 0);
pt1              1209 drivers/media/pci/pt1/pt1.c static void pt1_i2c_init(struct pt1 *pt1)
pt1              1213 drivers/media/pci/pt1/pt1.c 		pt1_i2c_emit(pt1, i, 0, 0, 1, 1, 0);
pt1              1220 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1 = dev_get_drvdata(dev);
pt1              1222 drivers/media/pci/pt1/pt1.c 	pt1_init_streams(pt1);
pt1              1223 drivers/media/pci/pt1/pt1.c 	pt1_disable_ram(pt1);
pt1              1224 drivers/media/pci/pt1/pt1.c 	pt1->power = 0;
pt1              1225 drivers/media/pci/pt1/pt1.c 	pt1->reset = 1;
pt1              1226 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1232 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1 = dev_get_drvdata(dev);
pt1              1236 drivers/media/pci/pt1/pt1.c 	pt1->power = 0;
pt1              1237 drivers/media/pci/pt1/pt1.c 	pt1->reset = 1;
pt1              1238 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1240 drivers/media/pci/pt1/pt1.c 	pt1_i2c_init(pt1);
pt1              1241 drivers/media/pci/pt1/pt1.c 	pt1_i2c_wait(pt1);
pt1              1243 drivers/media/pci/pt1/pt1.c 	ret = pt1_sync(pt1);
pt1              1247 drivers/media/pci/pt1/pt1.c 	pt1_identify(pt1);
pt1              1249 drivers/media/pci/pt1/pt1.c 	ret = pt1_unlock(pt1);
pt1              1253 drivers/media/pci/pt1/pt1.c 	ret = pt1_reset_pci(pt1);
pt1              1257 drivers/media/pci/pt1/pt1.c 	ret = pt1_reset_ram(pt1);
pt1              1261 drivers/media/pci/pt1/pt1.c 	ret = pt1_enable_ram(pt1);
pt1              1265 drivers/media/pci/pt1/pt1.c 	pt1_init_streams(pt1);
pt1              1267 drivers/media/pci/pt1/pt1.c 	pt1->power = 1;
pt1              1268 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1271 drivers/media/pci/pt1/pt1.c 	pt1->reset = 0;
pt1              1272 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1275 drivers/media/pci/pt1/pt1.c 	ret = pt1_demod_block_init(pt1);
pt1              1280 drivers/media/pci/pt1/pt1.c 		dvb_frontend_reinitialise(pt1->adaps[i]->fe);
pt1              1282 drivers/media/pci/pt1/pt1.c 	pt1_init_table_count(pt1);
pt1              1287 drivers/media/pci/pt1/pt1.c 			pt1->tables[i].bufs[j].page->upackets[PT1_NR_UPACKETS-1]
pt1              1289 drivers/media/pci/pt1/pt1.c 		pt1_increment_table_count(pt1);
pt1              1291 drivers/media/pci/pt1/pt1.c 	pt1_register_tables(pt1, pt1->tables[0].addr >> PT1_PAGE_SHIFT);
pt1              1293 drivers/media/pci/pt1/pt1.c 	pt1->table_index = 0;
pt1              1294 drivers/media/pci/pt1/pt1.c 	pt1->buf_index = 0;
pt1              1296 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i]->upacket_count = 0;
pt1              1297 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i]->packet_count = 0;
pt1              1298 drivers/media/pci/pt1/pt1.c 		pt1->adaps[i]->st_count = -1;
pt1              1304 drivers/media/pci/pt1/pt1.c 	dev_info(&pt1->pdev->dev, "failed to resume PT1/PT2.");
pt1              1312 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1;
pt1              1315 drivers/media/pci/pt1/pt1.c 	pt1 = pci_get_drvdata(pdev);
pt1              1316 drivers/media/pci/pt1/pt1.c 	regs = pt1->regs;
pt1              1318 drivers/media/pci/pt1/pt1.c 	if (pt1->kthread)
pt1              1319 drivers/media/pci/pt1/pt1.c 		kthread_stop(pt1->kthread);
pt1              1320 drivers/media/pci/pt1/pt1.c 	pt1_cleanup_tables(pt1);
pt1              1321 drivers/media/pci/pt1/pt1.c 	pt1_cleanup_frontends(pt1);
pt1              1322 drivers/media/pci/pt1/pt1.c 	pt1_disable_ram(pt1);
pt1              1323 drivers/media/pci/pt1/pt1.c 	pt1->power = 0;
pt1              1324 drivers/media/pci/pt1/pt1.c 	pt1->reset = 1;
pt1              1325 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1326 drivers/media/pci/pt1/pt1.c 	pt1_cleanup_adapters(pt1);
pt1              1327 drivers/media/pci/pt1/pt1.c 	i2c_del_adapter(&pt1->i2c_adap);
pt1              1328 drivers/media/pci/pt1/pt1.c 	kfree(pt1);
pt1              1338 drivers/media/pci/pt1/pt1.c 	struct pt1 *pt1;
pt1              1361 drivers/media/pci/pt1/pt1.c 	pt1 = kzalloc(sizeof(struct pt1), GFP_KERNEL);
pt1              1362 drivers/media/pci/pt1/pt1.c 	if (!pt1) {
pt1              1367 drivers/media/pci/pt1/pt1.c 	mutex_init(&pt1->lock);
pt1              1368 drivers/media/pci/pt1/pt1.c 	pt1->pdev = pdev;
pt1              1369 drivers/media/pci/pt1/pt1.c 	pt1->regs = regs;
pt1              1370 drivers/media/pci/pt1/pt1.c 	pt1->fe_clk = (pdev->device == 0x211a) ?
pt1              1372 drivers/media/pci/pt1/pt1.c 	pci_set_drvdata(pdev, pt1);
pt1              1374 drivers/media/pci/pt1/pt1.c 	ret = pt1_init_adapters(pt1);
pt1              1378 drivers/media/pci/pt1/pt1.c 	mutex_init(&pt1->lock);
pt1              1380 drivers/media/pci/pt1/pt1.c 	pt1->power = 0;
pt1              1381 drivers/media/pci/pt1/pt1.c 	pt1->reset = 1;
pt1              1382 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1384 drivers/media/pci/pt1/pt1.c 	i2c_adap = &pt1->i2c_adap;
pt1              1389 drivers/media/pci/pt1/pt1.c 	i2c_set_adapdata(i2c_adap, pt1);
pt1              1394 drivers/media/pci/pt1/pt1.c 	pt1_i2c_init(pt1);
pt1              1395 drivers/media/pci/pt1/pt1.c 	pt1_i2c_wait(pt1);
pt1              1397 drivers/media/pci/pt1/pt1.c 	ret = pt1_sync(pt1);
pt1              1401 drivers/media/pci/pt1/pt1.c 	pt1_identify(pt1);
pt1              1403 drivers/media/pci/pt1/pt1.c 	ret = pt1_unlock(pt1);
pt1              1407 drivers/media/pci/pt1/pt1.c 	ret = pt1_reset_pci(pt1);
pt1              1411 drivers/media/pci/pt1/pt1.c 	ret = pt1_reset_ram(pt1);
pt1              1415 drivers/media/pci/pt1/pt1.c 	ret = pt1_enable_ram(pt1);
pt1              1419 drivers/media/pci/pt1/pt1.c 	pt1_init_streams(pt1);
pt1              1421 drivers/media/pci/pt1/pt1.c 	pt1->power = 1;
pt1              1422 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1425 drivers/media/pci/pt1/pt1.c 	pt1->reset = 0;
pt1              1426 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1429 drivers/media/pci/pt1/pt1.c 	ret = pt1_init_frontends(pt1);
pt1              1433 drivers/media/pci/pt1/pt1.c 	ret = pt1_init_tables(pt1);
pt1              1440 drivers/media/pci/pt1/pt1.c 	pt1_cleanup_frontends(pt1);
pt1              1442 drivers/media/pci/pt1/pt1.c 	pt1_disable_ram(pt1);
pt1              1443 drivers/media/pci/pt1/pt1.c 	pt1->power = 0;
pt1              1444 drivers/media/pci/pt1/pt1.c 	pt1->reset = 1;
pt1              1445 drivers/media/pci/pt1/pt1.c 	pt1_update_power(pt1);
pt1              1449 drivers/media/pci/pt1/pt1.c 	pt1_cleanup_adapters(pt1);
pt1              1451 drivers/media/pci/pt1/pt1.c 	kfree(pt1);
pt1               315 drivers/thermal/qcom/tsens.h void compute_intercept_slope(struct tsens_priv *priv, u32 *pt1, u32 *pt2, u32 mode);
pt1               350 net/core/dev.c 	struct packet_type *pt1;
pt1               354 net/core/dev.c 	list_for_each_entry(pt1, head, list) {
pt1               355 net/core/dev.c 		if (pt == pt1) {