/solaris-x11-s11/open-src/kernel/drm/src/ |
H A D | drm_sysfs.c | 52 * @dev: DRM device to be added 55 * Add a DRM device to the DRM's device model class. We use @dev's PCI device 61 struct drm_device *dev = minor->dev; local 67 ret = agpmaster_attach(dev->devinfo, 69 dev->pdev->pci_cfg_acc_handle, minor->index); 79 ret = gfxp_vgatext_attach(dev->devinfo, DDI_ATTACH, gfxp); 86 ret = ddi_create_minor_node(dev->devinfo, 97 ret = ddi_create_minor_node(dev->devinfo, 111 * @dev [all...] |
H A D | drm_dma.c | 49 * \param dev DRM device. 54 int drm_dma_setup(struct drm_device *dev) argument 58 dev->dma = kmalloc(sizeof(*dev->dma), GFP_KERNEL); 59 if (!dev->dma) 62 (void) memset(dev->dma, 0, sizeof(*dev->dma)); 65 (void) memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); 67 mutex_init(&dev 80 drm_dma_takedown(struct drm_device *dev) argument 130 drm_free_buffer(struct drm_device *dev, drm_buf_t *buf) argument 147 drm_core_reclaim_buffers(struct drm_device *dev, struct drm_file *file_priv) argument [all...] |
H A D | drm_scatter.c | 77 int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request) argument 85 if (!drm_core_check_feature(dev, DRIVER_SG)) 88 if (dev->sg) 100 dmah = drm_pci_alloc(dev, ptob(pages), 4096, 0xfffffffful, pages); 111 dev->sg = entry; 125 return drm_sg_alloc(dev, request); 135 if (!drm_core_check_feature(dev, DRIVER_SG)) 138 entry = dev->sg; 139 dev->sg = NULL;
|
H A D | ati_pcigart.c | 45 drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info) argument 49 if (dev->sg == NULL) { 53 dmah = dev->sg->dmah_gart; 54 dev->sg->dmah_gart = NULL; 61 drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info) argument 71 entry = dev->sg; 79 entry->dmah_gart = drm_pci_alloc(dev, ATI_PCIGART_TABLE_SIZE, 0,
|
H A D | drm_auth.c | 63 * \param dev DRM device. 75 struct drm_device *dev = master->minor->dev; local 77 mutex_lock(&dev->struct_mutex); 84 mutex_unlock(&dev->struct_mutex); 91 * \param dev DRM device. 104 struct drm_device *dev = master->minor->dev; local 117 mutex_lock(&dev->struct_mutex); 125 mutex_unlock(&dev 144 struct drm_device *dev = master->minor->dev; local [all...] |
H A D | drm_lock.c | 79 if (drm_core_check_feature(dev, DRIVER_DMA_QUEUE)) 89 atomic_inc(&dev->counts[_DRM_STAT_LOCKS]); 107 if (dev->driver->dma_quiescent && (lock->flags & _DRM_LOCK_QUIESCENT)) 109 if (dev->driver->dma_quiescent(dev)) { 142 atomic_inc(&dev->counts[_DRM_STAT_UNLOCKS]); 202 * \param dev DRM device. 227 * \param dev DRM device. 312 int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv) argument
|
H A D | drm_ioctl.c | 91 static int drm_set_busid(struct drm_device *dev, struct drm_file *file_priv) argument 106 dev->pdev->domain, dev->pdev->bus, dev->pdev->slot, dev->pdev->func); 142 mutex_lock(&dev->struct_mutex); 143 list_for_each(list, &dev->maplist) { 151 mutex_unlock(&dev->struct_mutex); 161 mutex_unlock(&dev->struct_mutex); 190 mutex_lock(&dev [all...] |
H A D | drm_pci.c | 53 drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) argument 55 if ((map->type == _DRM_AGP) && dev->agp) { 77 (void) drm_ioremap(dev, map); 83 drm_core_ioremapfree(struct drm_local_map *map, struct drm_device *dev) argument 85 _NOTE(ARGUNUSED(dev)) 94 * calling to agp_remap_free(dev, map); 126 drm_pci_alloc(struct drm_device *dev, size_t size, argument 140 if (ddi_dma_alloc_handle(dev->devinfo, &hw_dma_attr, 194 do_get_pci_res(struct drm_device *dev, drm_pci_resource_t *resp) argument 200 DDI_DEV_T_ANY, dev 216 drm_get_resource_start(struct drm_device *dev, unsigned int regnum) argument [all...] |
H A D | drm_context.c | 61 * \param dev DRM device. 68 void drm_ctxbitmap_free(struct drm_device * dev, int ctx_handle) argument 70 mutex_lock(&dev->struct_mutex); 71 (void) idr_remove(&dev->ctx_idr, ctx_handle); 72 mutex_unlock(&dev->struct_mutex); 78 * \param dev DRM device. 84 static int drm_ctxbitmap_next(struct drm_device * dev) argument 90 if (idr_pre_get(&dev->ctx_idr, GFP_KERNEL) == 0) { 94 mutex_lock(&dev->struct_mutex); 95 ret = idr_get_new_above(&dev 113 drm_ctxbitmap_init(struct drm_device * dev) argument 127 drm_ctxbitmap_cleanup(struct drm_device * dev) argument 242 drm_context_switch(struct drm_device * dev, int old, int new) argument 270 drm_context_switch_complete(struct drm_device *dev, struct drm_file *file_priv, int new) argument [all...] |
/solaris-x11-s11/open-src/kernel/efb/src/ |
H A D | drm_drawable.c | 64 drm_get_drawable_info(drm_device_t *dev, drm_drawable_t id) { argument
|
H A D | drm_dma.c | 42 drm_dma_setup(drm_device_t *dev) argument 47 dev->dma = drm_calloc(1, sizeof (*dev->dma), DRM_MEM_DMA); 48 if (dev->dma == NULL) 51 mutex_init(&dev->dma_lock, NULL, MUTEX_DRIVER, NULL); 52 pbuf = &(dev->dma->bufs[0]); 60 drm_dma_takedown(drm_device_t *dev) argument 62 drm_device_dma_t *dma = dev->dma; 100 drm_free(dev->dma, sizeof (*dev 108 drm_free_buffer(drm_device_t *dev, drm_buf_t *buf) argument 119 drm_reclaim_buffers(drm_device_t *dev, drm_file_t *fpriv) argument [all...] |
H A D | drm_fops.c | 43 drm_find_file_by_proc(drm_device_t *dev, cred_t *credp) argument 48 TAILQ_FOREACH(priv, &dev->files, link) 56 drm_find_file_by_minor(drm_device_t *dev, int minor) argument 60 TAILQ_FOREACH(mp, &dev->minordevs, link) { 67 /* drm_open_helper is called whenever a process opens /dev/drm. */ 70 drm_open_helper(drm_device_t *dev, drm_cminor_t *mp, int flags, argument 79 dev->flags = flags; 85 priv = drm_find_file_by_proc(dev, credp); 106 if (dev->driver->open) { 107 retcode = dev [all...] |
H A D | drm_lock.c | 78 drm_lock_transfer(drm_device_t *dev, volatile unsigned int *lock, argument 83 dev->lock.filp = NULL; 94 drm_lock_free(drm_device_t *dev, volatile unsigned int *lock, argument 99 mutex_enter(&(dev->lock.lock_mutex)); 100 dev->lock.filp = NULL; 111 mutex_exit(&(dev->lock.lock_mutex)); 114 cv_broadcast(&(dev->lock.lock_cv)); 115 mutex_exit(&(dev->lock.lock_mutex)); 133 if (dev->driver->use_dma_queue && lock.context < 0) 136 mutex_enter(&(dev [all...] |
H A D | drm_scatter.c | 51 drm_sg_cleanup(drm_device_t *dev, drm_sg_mem_t *entry) argument 63 drm_pci_free(dev, entry->dmah_sg); 68 drm_pci_free(dev, entry->dmah_gart); 90 if (dev->sg) 110 dmah = drm_pci_alloc(dev, ptob(pages), 4096, 0xfffffffful, pages); 135 if (dev->sg) { 137 drm_sg_cleanup(dev, entry); 140 dev->sg = entry; 146 drm_sg_cleanup(dev, entry); 172 entry = dev [all...] |
H A D | ati_pcigart.c | 43 drm_ati_pcigart_init(drm_device_t *dev, drm_ati_pcigart_info *gart_info) argument 53 entry = dev->sg; 61 entry->dmah_gart = drm_pci_alloc(dev, ATI_PCIGART_TABLE_SIZE, 0, 114 drm_ati_pcigart_cleanup(drm_device_t *dev, drm_ati_pcigart_info *gart_info) argument 120 if (dev->sg == NULL) { 124 dmah = dev->sg->dmah_gart; 125 dev->sg->dmah_gart = NULL; 127 drm_pci_free(dev, dmah);
|
H A D | drm_auth.c | 48 drm_find_file(drm_device_t *dev, drm_magic_t magic) argument 55 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) { 66 drm_add_magic(drm_device_t *dev, drm_file_t *priv, drm_magic_t magic) argument 80 if (dev->magiclist[hash].tail) { 81 dev->magiclist[hash].tail->next = entry; 82 dev->magiclist[hash].tail = entry; 84 dev->magiclist[hash].head = entry; 85 dev->magiclist[hash].tail = entry; 93 drm_remove_magic(drm_device_t *dev, drm_magic_t magic) argument 103 for (pt = dev [all...] |
H A D | drm_irq.c | 49 if ((irq.busnum >> 8) != dev->pci_domain || 50 (irq.busnum & 0xff) != dev->pci_bus || 51 irq.devnum != dev->pci_slot || 52 irq.funcnum != dev->pci_func) 55 irq.irq = dev->irq; 66 drm_device_t *dev = (void *)arg; local 69 mutex_enter(&dev->irq_lock); 70 ret = dev->driver->irq_handler(arg); 71 mutex_exit(&dev->irq_lock); 79 drm_install_irq_handle(drm_device_t *dev) argument 115 drm_irq_install(drm_device_t *dev) argument 156 drm_uninstall_irq_handle(drm_device_t *dev) argument 166 drm_irq_uninstall(drm_device_t *dev) argument 317 drm_vbl_send_signals(drm_device_t *dev) argument 353 drm_locked_tasklet(drm_device_t *dev, void (*func)(drm_device_t *)) argument [all...] |
/solaris-x11-s11/open-src/kernel/i915/src/ |
H A D | intel_modes.c | 87 struct drm_device *dev = connector->dev; local 88 struct drm_i915_private *dev_priv = dev->dev_private; 93 prop = drm_property_create_enum(dev, 0, 114 struct drm_device *dev = connector->dev; local 115 struct drm_i915_private *dev_priv = dev->dev_private; 120 prop = drm_property_create_enum(dev, DRM_MODE_PROP_ENUM,
|
H A D | i915_gem_evict.c | 49 i915_gem_evict_something(struct drm_device *dev, int min_size, argument 53 drm_i915_private_t *dev_priv = dev->dev_private; 156 i915_gem_evict_everything(struct drm_device *dev) argument 158 drm_i915_private_t *dev_priv = dev->dev_private; 172 ret = i915_gpu_idle(dev); 176 i915_gem_retire_requests(dev);
|
H A D | i915_ums.c | 34 static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe) argument 36 struct drm_i915_private *dev_priv = dev->dev_private; 43 if (HAS_PCH_SPLIT(dev)) 51 static void i915_save_palette(struct drm_device *dev, enum pipe pipe) argument 53 struct drm_i915_private *dev_priv = dev->dev_private; 58 if (!i915_pipe_enabled(dev, pipe)) 61 if (HAS_PCH_SPLIT(dev)) 73 static void i915_restore_palette(struct drm_device *dev, enum pipe pipe) argument 75 struct drm_i915_private *dev_priv = dev->dev_private; 80 if (!i915_pipe_enabled(dev, pip 95 i915_save_display_reg(struct drm_device *dev) argument 276 i915_restore_display_reg(struct drm_device *dev) argument [all...] |
H A D | intel_fb.c | 47 struct drm_device *dev = ifbdev->helper.dev; local 48 struct drm_i915_private *dev_priv = dev->dev_private; 79 mutex_lock(&dev->struct_mutex); 81 ret = intel_framebuffer_init(dev, &ifbdev->ifb, &mode_cmd, obj); 89 mutex_unlock(&dev->struct_mutex); 97 mutex_unlock(&dev->struct_mutex); 108 static void intel_fbdev_destroy(struct drm_device *dev, argument 123 int intel_fbdev_init(struct drm_device *dev) argument 126 struct drm_i915_private *dev_priv = dev 148 intel_fbdev_initial_config(struct drm_device *dev) argument 156 intel_fbdev_fini(struct drm_device *dev) argument 167 intel_fb_output_poll_changed(struct drm_device *dev) argument 174 intel_fb_restore_mode(struct drm_device *dev) argument [all...] |
H A D | i915_gem_stolen.c | 49 static unsigned long i915_stolen_to_physical(struct drm_device *dev) argument 51 struct pci_dev *pdev = dev->pdev; 68 if (IS_VALLEYVIEW(dev)) { 69 pci_read_config_dword(dev->pdev, 0x5c, &base); 71 } else if (INTEL_INFO(dev)->gen >= 6) { 78 } else if (INTEL_INFO(dev)->gen > 3 || IS_G33(dev)) { 82 } else if (IS_GEN3(dev)) { 97 static int i915_setup_compression(struct drm_device *dev, int size) argument 99 struct drm_i915_private *dev_priv = dev 148 i915_gem_stolen_setup_compression(struct drm_device *dev, int size) argument 164 i915_gem_stolen_cleanup_compression(struct drm_device *dev) argument 180 i915_gem_cleanup_stolen(struct drm_device *dev) argument 191 i915_gem_init_stolen(struct drm_device *dev) argument 268 _i915_gem_object_create_stolen(struct drm_device *dev, struct drm_mm_node *stolen) argument 306 i915_gem_object_create_stolen(struct drm_device *dev, u32 size) argument 338 i915_gem_object_create_stolen_for_preallocated(struct drm_device *dev, u32 stolen_offset, u32 gtt_offset, u32 size) argument [all...] |
H A D | i915_suspend.c | 37 static u8 i915_read_indexed(struct drm_device *dev, u16 index_port, u16 data_port, u8 reg) argument 39 struct drm_i915_private *dev_priv = dev->dev_private; 45 static u8 i915_read_ar(struct drm_device *dev, u16 st01, u8 reg, u16 palette_enable) argument 47 struct drm_i915_private *dev_priv = dev->dev_private; 54 static void i915_write_ar(struct drm_device *dev, u16 st01, u8 reg, u8 val, u16 palette_enable) argument 56 struct drm_i915_private *dev_priv = dev->dev_private; 63 static void i915_write_indexed(struct drm_device *dev, u16 index_port, u16 data_port, u8 reg, u8 val) argument 65 struct drm_i915_private *dev_priv = dev->dev_private; 71 static void i915_save_vga(struct drm_device *dev) argument 73 struct drm_i915_private *dev_priv = dev 135 i915_restore_vga(struct drm_device *dev) argument 197 i915_save_display(struct drm_device *dev) argument 266 i915_restore_display(struct drm_device *dev) argument 343 i915_save_state(struct drm_device *dev) argument 393 i915_restore_state(struct drm_device *dev) argument [all...] |
/solaris-x11-s11/open-src/kernel/sys/drm/ |
H A D | drm_sun_pci.h | 41 struct drm_device *dev; member in struct:pci_dev 73 extern void pci_read_config_byte(struct pci_dev *dev, int where, u8 *val); 74 extern void pci_read_config_word(struct pci_dev *dev, int where, u16 *val); 75 extern void pci_read_config_dword(struct pci_dev *dev, int where, u32 *val); 76 extern void pci_write_config_byte(struct pci_dev *dev, int where, u8 val); 77 extern void pci_write_config_word(struct pci_dev *dev, int where, u16 val); 78 extern void pci_write_config_dword(struct pci_dev *dev, int where, u32 val); 81 extern struct pci_dev * pci_dev_create(struct drm_device *dev);
|
/solaris-x11-s11/open-src/xserver/xorg/sun-src/os/solaris/mdb/modules/ |
H A D | Xserver_device_grabs.c | 34 DeviceIntRec dev; member in struct:inputdev_walk_data 80 if (mdb_vread(&(iwda->dev), sizeof (DeviceIntRec), wsp->walk_addr) == -1) { 88 wsp->walk_addr = (uintptr_t) iwda->dev.next; 119 DeviceIntPtr dev; local 148 dev = &devRec; 156 if (dev == inputInfo.keyboard) { 158 } else if (dev == inputInfo.pointer) { 164 if (mdb_readstr(devName, sizeof(devName), (uintptr_t) dev->name) == -1) { 165 mdb_warn("failed to read InputdevRec.name at %p", dev->name); 169 mdb_printf("Device \"%s\" id %d: %s\n", devName, dev [all...] |