Lines Matching refs:b
41 struct s5p_mfc_priv_buf *b) in s5p_mfc_alloc_priv_buf() argument
43 mfc_debug(3, "Allocating priv: %zu\n", b->size); in s5p_mfc_alloc_priv_buf()
45 b->virt = dma_alloc_coherent(dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
47 if (!b->virt) { in s5p_mfc_alloc_priv_buf()
52 if (b->dma < base) { in s5p_mfc_alloc_priv_buf()
55 &b->dma, &base); in s5p_mfc_alloc_priv_buf()
56 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
60 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf()
65 struct s5p_mfc_priv_buf *b) in s5p_mfc_release_priv_buf() argument
67 if (b->virt) { in s5p_mfc_release_priv_buf()
68 dma_free_coherent(dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
69 b->virt = NULL; in s5p_mfc_release_priv_buf()
70 b->dma = 0; in s5p_mfc_release_priv_buf()
71 b->size = 0; in s5p_mfc_release_priv_buf()