Lines Matching +full:ati +full:- +full:mode

12  * Copyright (c) 2009-2010, Code Aurora Forum.
256 #define DRM_LEFTCOUNT(x) (((x)->rp + (x)->count - (x)->wp) % ((x)->count + 1))
257 #define DRM_BUFCOUNT(x) ((x)->count - DRM_LEFTCOUNT(x))
269 if (!_DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock) || \
270 _file_priv->master->lock.file_priv != _file_priv) { \
272 __func__, _DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock),\
273 _file_priv->master->lock.file_priv, _file_priv); \
274 return -EINVAL; \
328 int order; /**< log-base-2(total) */
333 struct drm_buf *next; /**< Kernel-only: used for free list */
349 void *dev_private; /**< Per-buffer private storage */
399 /* initial implementaton using a linked list - todo hashtab */
420 N.B. not always minor->master */
485 unsigned long mode; /**< AGP mode */ member
495 * Scatter-gather memory.
512 #define DRM_MAP_HANDLE_SHIFT (sizeof(void *) * 8 - DRM_MAP_HANDLE_BITS)
519 void *handle; /**< User-space: "Handle" to pass to mmap() */
520 /**< Kernel-space: kernel-virtual address */
567 struct drm_dma_handle *dmah; /* handle for ATI PCIGART table FIXME */
642 /* per-master structure */
667 /* Size of ringbuffer for vblank timestamps. Just double-buffer
716 * get_vblank_counter - get raw hardware vblank counter
735 * enable_vblank - enable vblank interrupt events
740 * a hardware vblank counter, this routine should be a no-op, since
750 * disable_vblank - disable vblank interrupt events
755 * a hardware vblank counter, this routine should be a no-op, since
785 * of scanlines to go until end of vblank, e.g., -1 means "one scanline
823 * for gpu-specific vblank irq quirks if flag is set.
826 * Zero if timestamping isn't supported in current display mode or a
858 * Driver-specific constructor for drm_gem_objects, to set up
859 * obj->driver_private.
870 /* export handle -> fd (see drm_gem_prime_handle_to_fd() helper) */
873 /* import fd -> handle (see drm_gem_prime_fd_to_handle() helper) */
876 /* export GEM -> dmabuf */
879 /* import dmabuf -> GEM */
944 /* mode specified on the command line */
984 int buf_use; /**< Buffers in use -- cannot alloc */
1047 u32 *last_vblank; /* protected by dev->vbl_lock, used */
1051 int *vblank_inmodeset; /* Display driver is setting mode */
1086 struct drm_mode_config mode_config; /**< Current mode config */
1098 struct mtx dma_lock; /* protects dev->dma */
1139 return ((dev->driver->driver_features & feature) ? 1 : 0); in drm_core_check_feature()
1144 return dev->driver->bus->get_irq(dev); in drm_dev_to_irq()
1342 struct drm_cmdline_mode *mode);
1414 /* ATI PCIGART support (ati_pcigart.h) */
1447 KASSERT(obj->refcount > 0, ("Dangling obj %p", obj)); in drm_gem_object_reference()
1448 refcount_acquire(&obj->refcount); in drm_gem_object_reference()
1457 if (refcount_release(&obj->refcount)) in drm_gem_object_unreference()
1465 struct drm_device *dev = obj->dev; in drm_gem_object_unreference_unlocked()
1481 atomic_inc(&obj->handle_count); in drm_gem_object_handle_reference()
1490 if (atomic_read(&obj->handle_count) == 0) in drm_gem_object_handle_unreference()
1497 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference()
1508 if (atomic_read(&obj->handle_count) == 0) in drm_gem_object_handle_unreference_unlocked()
1517 if (atomic_dec_and_test(&obj->handle_count)) in drm_gem_object_handle_unreference_unlocked()
1545 list_for_each_entry(_entry, &dev->maplist, head) in drm_core_findmap()
1546 if (_entry->user_token == token) in drm_core_findmap()
1547 return _entry->map; in drm_core_findmap()
1582 /* FreeBSD specific -- should be moved to drm_os_freebsd.h */
1585 #define DRM_GEM_MAPPING_KEY (2ULL << 62) /* Non-canonical address form */
1616 (sx_sleep((chan), &(dev)->dev_struct_lock, (flags), (msg), (timeout)))
1618 #define DRM_LOCK_ASSERT(dev) sx_assert(&(dev)->dev_struct_lock, SA_XLOCKED)
1619 #define DRM_UNLOCK_ASSERT(dev) sx_assert(&(dev)->dev_struct_lock, SA_UNLOCKED)
1648 (_map) = (_dev)->context_sareas[_ctx]; \
1651 /* Returns -errno to shared code */
1655 mtx_lock(&dev->irq_lock); \
1657 ret = -mtx_sleep(&(queue), &dev->irq_lock, \
1659 if (ret == -ERESTART) \
1660 ret = -ERESTARTSYS; \
1661 mtx_unlock(&dev->irq_lock); \
1688 u32 last; /* protected by dev->vbl_lock, used */
1692 int inmodeset; /* Display driver is setting mode */
1696 #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : (1ULL<<(n)) - 1)
1804 extern int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode);
1831 return -ENODEV; in drm_bind_agp()
1836 return -ENODEV; in drm_unbind_agp()
1859 return -ENODEV; in drm_agp_acquire()
1865 return -ENODEV; in drm_agp_acquire_ioctl()
1870 return -ENODEV; in drm_agp_release()
1876 return -ENODEV; in drm_agp_release_ioctl()
1880 struct drm_agp_mode mode) in drm_agp_enable() argument
1882 return -ENODEV; in drm_agp_enable()
1888 return -ENODEV; in drm_agp_enable_ioctl()
1894 return -ENODEV; in drm_agp_info()
1900 return -ENODEV; in drm_agp_info_ioctl()
1906 return -ENODEV; in drm_agp_alloc()
1912 return -ENODEV; in drm_agp_alloc_ioctl()
1918 return -ENODEV; in drm_agp_free()
1924 return -ENODEV; in drm_agp_free_ioctl()
1930 return -ENODEV; in drm_agp_unbind()
1936 return -ENODEV; in drm_agp_unbind_ioctl()
1942 return -ENODEV; in drm_agp_bind()
1948 return -ENODEV; in drm_agp_bind_ioctl()