Searched refs:prime_attach (Results 1 – 1 of 1) sorted by relevance
122 struct drm_prime_attachment *prime_attach; in drm_gem_map_attach() local126 prime_attach = kzalloc(sizeof(*prime_attach), GFP_KERNEL); in drm_gem_map_attach()127 if (!prime_attach) in drm_gem_map_attach()130 prime_attach->dir = DMA_NONE; in drm_gem_map_attach()131 attach->priv = prime_attach; in drm_gem_map_attach()142 struct drm_prime_attachment *prime_attach = attach->priv; in drm_gem_map_detach() local150 if (!prime_attach) in drm_gem_map_detach()153 sgt = prime_attach->sgt; in drm_gem_map_detach()155 if (prime_attach->dir != DMA_NONE) in drm_gem_map_detach()157 prime_attach->dir); in drm_gem_map_detach()[all …]