Searched refs:pxa_dma (Results 1 – 1 of 1) sorted by relevance
335 struct pxa_cam_dma *pxa_dma = &buf->dmas[channel]; in pxa_init_dma_channel() local341 if (pxa_dma->sg_cpu) in pxa_init_dma_channel()342 dma_free_coherent(dev, pxa_dma->sg_size, in pxa_init_dma_channel()343 pxa_dma->sg_cpu, pxa_dma->sg_dma); in pxa_init_dma_channel()348 pxa_dma->sg_size = (sglen + 1) * sizeof(struct pxa_dma_desc); in pxa_init_dma_channel()349 pxa_dma->sg_cpu = dma_alloc_coherent(dev, pxa_dma->sg_size, in pxa_init_dma_channel()350 &pxa_dma->sg_dma, GFP_KERNEL); in pxa_init_dma_channel()351 if (!pxa_dma->sg_cpu) in pxa_init_dma_channel()354 pxa_dma->sglen = sglen; in pxa_init_dma_channel()358 *sg_first, sglen, *sg_first_ofs, pxa_dma->sg_dma); in pxa_init_dma_channel()[all …]