Lines Matching refs:sgt
197 struct sg_table *sgt;
200 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL);
201 if (!sgt)
204 ret = dma_get_sgtable_attrs(priv->dma_dev, sgt, mtk_gem->cookie,
208 DRM_ERROR("failed to allocate sgt, %d\n", ret);
209 kfree(sgt);
213 return sgt;
240 struct sg_table *sgt = NULL;
246 sgt = mtk_gem_prime_get_sg_table(obj);
247 if (IS_ERR(sgt))
248 return PTR_ERR(sgt);
253 sg_free_table(sgt);
254 kfree(sgt);
258 drm_prime_sg_to_page_array(sgt, mtk_gem->pages, npages);
263 sg_free_table(sgt);
264 kfree(sgt);
268 sg_free_table(sgt);
269 kfree(sgt);