Beispiel #1
0
static int etnaviv_mmu_show(struct etnaviv_gpu *gpu, struct seq_file *m)
{
	seq_printf(m, "Active Objects (%s):\n", dev_name(gpu->dev));

	mutex_lock(&gpu->mmu->lock);
	drm_mm_dump_table(m, &gpu->mmu->mm);
	mutex_unlock(&gpu->mmu->lock);

	return 0;
}
Beispiel #2
0
static int etnaviv_mm_show(struct drm_device *dev, struct seq_file *m)
{
	int ret;

	read_lock(&dev->vma_offset_manager->vm_lock);
	ret = drm_mm_dump_table(m, &dev->vma_offset_manager->vm_addr_space_mm);
	read_unlock(&dev->vma_offset_manager->vm_lock);

	return ret;
}
static int radeon_mm_dump_table(struct seq_file *m, void *data)
{
	struct drm_info_node *node = (struct drm_info_node *)m->private;
	struct drm_mm *mm = (struct drm_mm *)node->info_ent->data;
	struct drm_device *dev = node->minor->dev;
	struct radeon_device *rdev = dev->dev_private;
	int ret;
	struct ttm_bo_global *glob = rdev->mman.bdev.glob;

	spin_lock(&glob->lru_lock);
	ret = drm_mm_dump_table(m, mm);
	spin_unlock(&glob->lru_lock);
	return ret;
}