Lines Matching refs:dev
114 struct drm_device *dev = priv->minor->dev;
122 if (!dev->agp)
125 if (!dev->agp || !dev->agp->cant_use_aperture)
128 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash))
148 baddr -= dev->hose->mem_space->start;
154 list_for_each_entry(agpmem, &dev->agp->memory, head) {
160 if (&agpmem->head == &dev->agp->memory)
233 struct drm_device *dev = priv->minor->dev;
244 mutex_lock(&dev->struct_mutex);
245 list_for_each_entry_safe(pt, temp, &dev->vmalist, head) {
260 list_for_each_entry(r_list, &dev->maplist, head) {
279 dma_free_coherent(dev->dev,
288 mutex_unlock(&dev->struct_mutex);
303 struct drm_device *dev = priv->minor->dev;
304 struct drm_device_dma *dma = dev->dma;
339 struct drm_device *dev = priv->minor->dev;
340 struct drm_sg_mem *entry = dev->sg;
352 map_offset = map->offset - (unsigned long)dev->sg->virtual;
389 static void drm_vm_open_locked(struct drm_device *dev,
401 list_add(&vma_entry->head, &dev->vmalist);
408 struct drm_device *dev = priv->minor->dev;
410 mutex_lock(&dev->struct_mutex);
411 drm_vm_open_locked(dev, vma);
412 mutex_unlock(&dev->struct_mutex);
415 static void drm_vm_close_locked(struct drm_device *dev,
423 list_for_each_entry_safe(pt, temp, &dev->vmalist, head) {
443 struct drm_device *dev = priv->minor->dev;
445 mutex_lock(&dev->struct_mutex);
446 drm_vm_close_locked(dev, vma);
447 mutex_unlock(&dev->struct_mutex);
463 struct drm_device *dev;
467 dev = priv->minor->dev;
468 dma = dev->dma;
497 drm_vm_open_locked(dev, vma);
501 static resource_size_t drm_core_get_reg_ofs(struct drm_device *dev)
504 return dev->hose->dense_mem_base;
526 struct drm_device *dev = priv->minor->dev;
543 && (!dev->agp
544 || dev->agp->agp_info.device->vendor != PCI_VENDOR_ID_APPLE)
549 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) {
580 if (dev->agp && dev->agp->cant_use_aperture) {
596 offset = drm_core_get_reg_ofs(dev);
633 drm_vm_open_locked(dev, vma);
640 struct drm_device *dev = priv->minor->dev;
643 if (drm_dev_is_unplugged(dev))
646 mutex_lock(&dev->struct_mutex);
648 mutex_unlock(&dev->struct_mutex);
655 void drm_legacy_vma_flush(struct drm_device *dev)
660 list_for_each_entry_safe(vma, vma_temp, &dev->vmalist, head) {