saa                 8 drivers/media/common/saa7146/saa7146_hlp.c static void calculate_output_format_register(struct saa7146_dev* saa, u32 palette, u32* clip_format)
saa               138 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               139 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               182 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               183 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               210 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               211 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               228 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               237 drivers/media/pci/saa7134/saa7134-go7007.c 					saa->bottom_dma, PAGE_SIZE, DMA_FROM_DEVICE);
saa               238 drivers/media/pci/saa7134/saa7134-go7007.c 		go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE);
saa               239 drivers/media/pci/saa7134/saa7134-go7007.c 		saa_writel(SAA7134_RS_BA2(5), saa->bottom_dma);
saa               242 drivers/media/pci/saa7134/saa7134-go7007.c 					saa->top_dma, PAGE_SIZE, DMA_FROM_DEVICE);
saa               243 drivers/media/pci/saa7134/saa7134-go7007.c 		go7007_parse_video_stream(go, saa->top, PAGE_SIZE);
saa               244 drivers/media/pci/saa7134/saa7134-go7007.c 		saa_writel(SAA7134_RS_BA1(5), saa->top_dma);
saa               250 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               251 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               253 drivers/media/pci/saa7134/saa7134-go7007.c 	saa->top_dma = dma_map_page(&dev->pci->dev, virt_to_page(saa->top),
saa               255 drivers/media/pci/saa7134/saa7134-go7007.c 	if (dma_mapping_error(&dev->pci->dev, saa->top_dma))
saa               257 drivers/media/pci/saa7134/saa7134-go7007.c 	saa->bottom_dma = dma_map_page(&dev->pci->dev,
saa               258 drivers/media/pci/saa7134/saa7134-go7007.c 			virt_to_page(saa->bottom),
saa               260 drivers/media/pci/saa7134/saa7134-go7007.c 	if (dma_mapping_error(&dev->pci->dev, saa->bottom_dma)) {
saa               261 drivers/media/pci/saa7134/saa7134-go7007.c 		dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
saa               291 drivers/media/pci/saa7134/saa7134-go7007.c 	saa_writel(SAA7134_RS_BA1(5), saa->top_dma);
saa               292 drivers/media/pci/saa7134/saa7134-go7007.c 	saa_writel(SAA7134_RS_BA2(5), saa->bottom_dma);
saa               308 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               311 drivers/media/pci/saa7134/saa7134-go7007.c 	if (!saa)
saa               313 drivers/media/pci/saa7134/saa7134-go7007.c 	dev = saa->dev;
saa               327 drivers/media/pci/saa7134/saa7134-go7007.c 	dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
saa               329 drivers/media/pci/saa7134/saa7134-go7007.c 	dma_unmap_page(&dev->pci->dev, saa->bottom_dma, PAGE_SIZE,
saa               337 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = go->hpi_context;
saa               338 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               388 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa = to_state(sd);
saa               389 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_dev *dev = saa->dev;
saa               413 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa;
saa               422 drivers/media/pci/saa7134/saa7134-go7007.c 	saa = kzalloc(sizeof(struct saa7134_go7007), GFP_KERNEL);
saa               423 drivers/media/pci/saa7134/saa7134-go7007.c 	if (saa == NULL) {
saa               432 drivers/media/pci/saa7134/saa7134-go7007.c 	go->hpi_context = saa;
saa               433 drivers/media/pci/saa7134/saa7134-go7007.c 	saa->dev = dev;
saa               436 drivers/media/pci/saa7134/saa7134-go7007.c 	sd = &saa->sd;
saa               438 drivers/media/pci/saa7134/saa7134-go7007.c 	v4l2_set_subdevdata(sd, saa);
saa               442 drivers/media/pci/saa7134/saa7134-go7007.c 	saa->top = (u8 *)get_zeroed_page(GFP_KERNEL);
saa               443 drivers/media/pci/saa7134/saa7134-go7007.c 	if (!saa->top)
saa               445 drivers/media/pci/saa7134/saa7134-go7007.c 	saa->bottom = (u8 *)get_zeroed_page(GFP_KERNEL);
saa               446 drivers/media/pci/saa7134/saa7134-go7007.c 	if (!saa->bottom)
saa               469 drivers/media/pci/saa7134/saa7134-go7007.c 	if (saa->top)
saa               470 drivers/media/pci/saa7134/saa7134-go7007.c 		free_page((unsigned long)saa->top);
saa               471 drivers/media/pci/saa7134/saa7134-go7007.c 	if (saa->bottom)
saa               472 drivers/media/pci/saa7134/saa7134-go7007.c 		free_page((unsigned long)saa->bottom);
saa               473 drivers/media/pci/saa7134/saa7134-go7007.c 	kfree(saa);
saa               481 drivers/media/pci/saa7134/saa7134-go7007.c 	struct saa7134_go7007 *saa;
saa               490 drivers/media/pci/saa7134/saa7134-go7007.c 	saa = go->hpi_context;
saa               492 drivers/media/pci/saa7134/saa7134-go7007.c 	free_page((unsigned long)saa->top);
saa               493 drivers/media/pci/saa7134/saa7134-go7007.c 	free_page((unsigned long)saa->bottom);
saa               494 drivers/media/pci/saa7134/saa7134-go7007.c 	v4l2_device_unregister_subdev(&saa->sd);
saa               495 drivers/media/pci/saa7134/saa7134-go7007.c 	kfree(saa);
saa              2743 drivers/media/pci/ttpci/av7110.c static int av7110_detach(struct saa7146_dev* saa)
saa              2745 drivers/media/pci/ttpci/av7110.c 	struct av7110 *av7110 = saa->ext_priv;
saa              2754 drivers/media/pci/ttpci/av7110.c 			saa7146_write(saa, MC1, MASK_29);
saa              2756 drivers/media/pci/ttpci/av7110.c 			saa7146_setgpio(saa, 3, SAA7146_GPIO_OUTLO);
saa              2758 drivers/media/pci/ttpci/av7110.c 		saa7146_write(saa, MC1, MASK_20);	/* DMA3 off */
saa              2759 drivers/media/pci/ttpci/av7110.c 		SAA7146_IER_DISABLE(saa, MASK_10);
saa              2760 drivers/media/pci/ttpci/av7110.c 		SAA7146_ISR_CLEAR(saa, MASK_10);
saa              2763 drivers/media/pci/ttpci/av7110.c 		saa7146_vfree_destroy_pgtable(saa->pci, av7110->grabbing, &av7110->pt);
saa              2774 drivers/media/pci/ttpci/av7110.c 	SAA7146_IER_DISABLE(saa, MASK_19 | MASK_03);
saa              2775 drivers/media/pci/ttpci/av7110.c 	SAA7146_ISR_CLEAR(saa, MASK_19 | MASK_03);
saa              2781 drivers/media/pci/ttpci/av7110.c 	pci_free_consistent(saa->pci, 8192, av7110->debi_virt,
saa              2794 drivers/media/pci/ttpci/av7110.c 	saa->ext_priv = NULL;
saa               203 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               211 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTHI); /* disable card */
saa               213 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTHI); /* Vcc off */
saa               215 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO); /* Vcc on */
saa               218 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTLO); /* enable card */
saa               219 drivers/media/pci/ttpci/budget-av.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTB);
saa               232 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               239 drivers/media/pci/ttpci/budget-av.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTB);
saa               248 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               255 drivers/media/pci/ttpci/budget-av.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTA);
saa               263 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               272 drivers/media/pci/ttpci/budget-av.c 		saa7146_setgpio(saa, 3, SAA7146_GPIO_INPUT);
saa               274 drivers/media/pci/ttpci/budget-av.c 		if (saa7146_read(saa, PSR) & MASK_06) {
saa               280 drivers/media/pci/ttpci/budget-av.c 		saa7146_setgpio(saa, 3, SAA7146_GPIO_OUTLO);
saa               324 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               329 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO);
saa               330 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_OUTLO);
saa               331 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTLO);
saa               332 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 3, SAA7146_GPIO_OUTLO);
saa               335 drivers/media/pci/ttpci/budget-av.c 	saa7146_write(saa, MC1, MASK_27 | MASK_11);
saa               361 drivers/media/pci/ttpci/budget-av.c 	saa7146_write(saa, MC1, MASK_27);
saa               367 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget_av->budget.dev;
saa               369 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_INPUT);
saa               370 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_INPUT);
saa               371 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 2, SAA7146_GPIO_INPUT);
saa               372 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 3, SAA7146_GPIO_INPUT);
saa               378 drivers/media/pci/ttpci/budget-av.c 	saa7146_write(saa, MC1, MASK_27);
saa               414 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev *saa = budget->dev;
saa               417 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTHI);
saa              1198 drivers/media/pci/ttpci/budget-av.c 	struct saa7146_dev * saa = budget_av->budget.dev;
saa              1202 drivers/media/pci/ttpci/budget-av.c 	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO);
saa              1208 drivers/media/pci/ttpci/budget-av.c 	switch (saa->pci->subsystem_device) {
saa              1217 drivers/media/pci/ttpci/budget-av.c 			saa7146_setgpio(saa, 3, SAA7146_GPIO_OUTHI);
saa              1221 drivers/media/pci/ttpci/budget-av.c 	switch (saa->pci->subsystem_device) {
saa              1232 drivers/media/pci/ttpci/budget-av.c 		if (saa->pci->subsystem_vendor == 0x1894) {
saa              1335 drivers/media/pci/ttpci/budget-av.c 		       saa->pci->vendor,
saa              1336 drivers/media/pci/ttpci/budget-av.c 		       saa->pci->device,
saa              1337 drivers/media/pci/ttpci/budget-av.c 		       saa->pci->subsystem_vendor,
saa              1338 drivers/media/pci/ttpci/budget-av.c 		       saa->pci->subsystem_device);
saa               160 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               171 drivers/media/pci/ttpci/budget-ci.c 		 "Budget-CI dvb ir receiver %s", saa->name);
saa               173 drivers/media/pci/ttpci/budget-ci.c 		 "pci-%s/ir0", pci_name(saa->pci));
saa               180 drivers/media/pci/ttpci/budget-ci.c 	if (saa->pci->subsystem_vendor) {
saa               181 drivers/media/pci/ttpci/budget-ci.c 		dev->input_id.vendor = saa->pci->subsystem_vendor;
saa               182 drivers/media/pci/ttpci/budget-ci.c 		dev->input_id.product = saa->pci->subsystem_device;
saa               184 drivers/media/pci/ttpci/budget-ci.c 		dev->input_id.vendor = saa->pci->vendor;
saa               185 drivers/media/pci/ttpci/budget-ci.c 		dev->input_id.product = saa->pci->device;
saa               187 drivers/media/pci/ttpci/budget-ci.c 	dev->dev.parent = &saa->pci->dev;
saa               235 drivers/media/pci/ttpci/budget-ci.c 	SAA7146_IER_ENABLE(saa, MASK_06);
saa               236 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 3, SAA7146_GPIO_IRQHI);
saa               243 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               245 drivers/media/pci/ttpci/budget-ci.c 	SAA7146_IER_DISABLE(saa, MASK_06);
saa               246 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 3, SAA7146_GPIO_INPUT);
saa               299 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               306 drivers/media/pci/ttpci/budget-ci.c 		saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQHI);
saa               314 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_OUTHI);
saa               315 drivers/media/pci/ttpci/budget-ci.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTB);
saa               322 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               327 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_OUTHI);
saa               328 drivers/media/pci/ttpci/budget-ci.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTB);
saa               335 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               341 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_OUTLO);
saa               347 drivers/media/pci/ttpci/budget-ci.c 	ttpci_budget_set_video_port(saa, BUDGET_VIDEO_PORTA);
saa               354 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               366 drivers/media/pci/ttpci/budget-ci.c 		saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQLO);
saa               388 drivers/media/pci/ttpci/budget-ci.c 		saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQHI);
saa               439 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               448 drivers/media/pci/ttpci/budget-ci.c 	saa7146_write(saa, MC1, MASK_27 | MASK_11);
saa               496 drivers/media/pci/ttpci/budget-ci.c 			saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQLO);
saa               498 drivers/media/pci/ttpci/budget-ci.c 			saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQHI);
saa               500 drivers/media/pci/ttpci/budget-ci.c 		SAA7146_IER_ENABLE(saa, MASK_03);
saa               522 drivers/media/pci/ttpci/budget-ci.c 	saa7146_write(saa, MC1, MASK_27);
saa               528 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa               532 drivers/media/pci/ttpci/budget-ci.c 		SAA7146_IER_DISABLE(saa, MASK_03);
saa               533 drivers/media/pci/ttpci/budget-ci.c 		saa7146_setgpio(saa, 0, SAA7146_GPIO_INPUT);
saa               544 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 1, SAA7146_GPIO_INPUT);
saa               550 drivers/media/pci/ttpci/budget-ci.c 	saa7146_write(saa, MC1, MASK_27);
saa              1497 drivers/media/pci/ttpci/budget-ci.c 	struct saa7146_dev *saa = budget_ci->budget.dev;
saa              1510 drivers/media/pci/ttpci/budget-ci.c 	saa7146_setgpio(saa, 2, SAA7146_GPIO_INPUT);
saa               221 drivers/media/pci/ttpci/budget-core.c 	struct saa7146_dev *saa = budget->dev;
saa               224 drivers/media/pci/ttpci/budget-core.c 	result = saa7146_wait_for_debi_done(saa, nobusyloop);
saa               228 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_COMMAND, (count << 17) | 0x10000 | (addr & 0xffff));
saa               229 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_CONFIG, config);
saa               230 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_PAGE, 0);
saa               231 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, MC2, (2 << 16) | 2);
saa               233 drivers/media/pci/ttpci/budget-core.c 	result = saa7146_wait_for_debi_done(saa, nobusyloop);
saa               237 drivers/media/pci/ttpci/budget-core.c 	result = saa7146_read(saa, DEBI_AD);
saa               265 drivers/media/pci/ttpci/budget-core.c 	struct saa7146_dev *saa = budget->dev;
saa               268 drivers/media/pci/ttpci/budget-core.c 	result = saa7146_wait_for_debi_done(saa, nobusyloop);
saa               272 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_COMMAND, (count << 17) | 0x00000 | (addr & 0xffff));
saa               273 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_CONFIG, config);
saa               274 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_PAGE, 0);
saa               275 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, DEBI_AD, value);
saa               276 drivers/media/pci/ttpci/budget-core.c 	saa7146_write(saa, MC2, (2 << 16) | 2);
saa               278 drivers/media/pci/ttpci/budget-core.c 	result = saa7146_wait_for_debi_done(saa, nobusyloop);
saa               200 include/media/drv-intf/saa7146_vv.h void saa7146_set_hps_source_and_sync(struct saa7146_dev *saa, int source, int sync);
saa               201 include/media/drv-intf/saa7146_vv.h void saa7146_set_gpio(struct saa7146_dev *saa, u8 pin, u8 data);