Lines Matching refs:saa
143 struct saa7134_go7007 *saa = go->hpi_context;
144 struct saa7134_dev *dev = saa->dev;
189 struct saa7134_go7007 *saa = go->hpi_context;
190 struct saa7134_dev *dev = saa->dev;
219 struct saa7134_go7007 *saa = go->hpi_context;
220 struct saa7134_dev *dev = saa->dev;
236 struct saa7134_go7007 *saa = go->hpi_context;
245 saa->bottom_dma, PAGE_SIZE, DMA_FROM_DEVICE);
246 go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE);
247 saa_writel(SAA7134_RS_BA2(5), cpu_to_le32(saa->bottom_dma));
250 saa->top_dma, PAGE_SIZE, DMA_FROM_DEVICE);
251 go7007_parse_video_stream(go, saa->top, PAGE_SIZE);
252 saa_writel(SAA7134_RS_BA1(5), cpu_to_le32(saa->top_dma));
258 struct saa7134_go7007 *saa = go->hpi_context;
259 struct saa7134_dev *dev = saa->dev;
261 saa->top_dma = dma_map_page(&dev->pci->dev, virt_to_page(saa->top),
263 if (!saa->top_dma)
265 saa->bottom_dma = dma_map_page(&dev->pci->dev,
266 virt_to_page(saa->bottom),
268 if (!saa->bottom_dma) {
269 dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
299 saa_writel(SAA7134_RS_BA1(5), cpu_to_le32(saa->top_dma));
300 saa_writel(SAA7134_RS_BA2(5), cpu_to_le32(saa->bottom_dma));
316 struct saa7134_go7007 *saa = go->hpi_context;
319 if (!saa)
321 dev = saa->dev;
335 dma_unmap_page(&dev->pci->dev, saa->top_dma, PAGE_SIZE,
337 dma_unmap_page(&dev->pci->dev, saa->bottom_dma, PAGE_SIZE,
345 struct saa7134_go7007 *saa = go->hpi_context;
346 struct saa7134_dev *dev = saa->dev;
385 struct saa7134_go7007 *saa = go->hpi_context;
386 struct saa7134_dev *dev = saa->dev;
438 struct saa7134_go7007 *saa;
442 saa = kzalloc(sizeof(struct saa7134_go7007), GFP_KERNEL);
443 if (saa == NULL)
447 saa->top = (u8 *)get_zeroed_page(GFP_KERNEL);
448 if (!saa->top)
450 saa->bottom = (u8 *)get_zeroed_page(GFP_KERNEL);
451 if (!saa->bottom)
460 go->hpi_context = saa;
461 saa->dev = dev;
483 if (saa->top)
484 free_page((unsigned long)saa->top);
485 if (saa->bottom)
486 free_page((unsigned long)saa->bottom);
487 kfree(saa);
494 struct saa7134_go7007 *saa;
500 saa = go->hpi_context;
502 free_page((unsigned long)saa->top);
503 free_page((unsigned long)saa->bottom);
504 kfree(saa);