Home
last modified time | relevance | path

Searched refs:vsg (Results 1 – 2 of 2) sorted by relevance

/drivers/gpu/drm/via/
Dvia_dmablit.c64 via_unmap_blit_from_device(struct pci_dev *pdev, drm_via_sg_info_t *vsg) in via_unmap_blit_from_device() argument
66 int num_desc = vsg->num_desc; in via_unmap_blit_from_device()
67 unsigned cur_descriptor_page = num_desc / vsg->descriptors_per_page; in via_unmap_blit_from_device()
68 unsigned descriptor_this_page = num_desc % vsg->descriptors_per_page; in via_unmap_blit_from_device()
69 drm_via_descriptor_t *desc_ptr = vsg->desc_pages[cur_descriptor_page] + in via_unmap_blit_from_device()
71 dma_addr_t next = vsg->chain_start; in via_unmap_blit_from_device()
76 descriptor_this_page = vsg->descriptors_per_page - 1; in via_unmap_blit_from_device()
77 desc_ptr = vsg->desc_pages[cur_descriptor_page] + in via_unmap_blit_from_device()
81 dma_unmap_page(&pdev->dev, desc_ptr->mem_addr, desc_ptr->size, vsg->direction); in via_unmap_blit_from_device()
97 drm_via_sg_info_t *vsg, in via_map_blit_for_device() argument
[all …]
/drivers/media/pci/bt8xx/
Dbttv-risc.c139 struct scatterlist *vsg; in bttv_risc_planar() local
160 vsg = sglist; in bttv_risc_planar()
196 while (voffset && voffset >= sg_dma_len(vsg)) { in bttv_risc_planar()
197 voffset -= sg_dma_len(vsg); in bttv_risc_planar()
198 vsg = sg_next(vsg); in bttv_risc_planar()
208 if (voffset + (ylen>>hshift) > sg_dma_len(vsg)) in bttv_risc_planar()
209 ylen = (sg_dma_len(vsg) - voffset) << hshift; in bttv_risc_planar()
228 *(rp++)=cpu_to_le32(sg_dma_address(vsg)+voffset); in bttv_risc_planar()