Searched defs:master (Results 1 - 9 of 9) sorted by relevance

/solaris-x11-s12/open-src/kernel/drm/src/
H A Ddrm_auth.c70 static struct drm_file *drm_find_file(struct drm_master *master, drm_magic_t magic) argument
75 struct drm_device *dev = master->minor->dev;
78 for (pt = master->magiclist[hash].head; pt; pt = pt->next) {
99 static int drm_add_magic(struct drm_master *master, struct drm_file *priv, argument
104 struct drm_device *dev = master->minor->dev;
118 if (master->magiclist[hash].tail) {
119 master->magiclist[hash].tail->next = entry;
120 master->magiclist[hash].tail = entry;
122 master->magiclist[hash].head = entry;
123 master
139 drm_remove_magic(struct drm_master *master, drm_magic_t magic) argument
[all...]
H A Ddrm_lock.c61 struct drm_master *master = file->master; local
72 if (master->lock.hw_lock == NULL)
77 master->lock.hw_lock->lock, lock->flags);
83 mutex_enter(&master->lock.lock_mutex);
84 master->lock.user_waiters++;
86 if (drm_lock_take(&master->lock, lock->context)) {
87 master->lock.file_priv = file;
88 master->lock.lock_time = ddi_get_lbolt();
93 ret = cv_wait_sig(&master
134 struct drm_master *master = file->master; local
314 struct drm_master *master = file_priv->master; local
[all...]
H A Ddrm_ioctl.c63 struct drm_master *master = file->master; local
65 if (master->unique_len == 0 || master->unique == NULL) {
69 if (u->unique_len >= master->unique_len) {
73 if (DRM_COPY_TO_USER(u->unique, master->unique, master->unique_len))
76 u->unique_len = master->unique_len;
93 struct drm_master *master = file_priv->master; local
[all...]
H A Ddrm_stub.c100 struct drm_master *master; local
103 master = kzalloc(sizeof(*master), GFP_KERNEL);
104 if (!master)
107 kref_init(&master->refcount);
108 mutex_init(&master->lock.lock_mutex, NULL, MUTEX_DRIVER, (void *)minor->dev->pdev->intr_block);
109 cv_init(&master->lock.lock_cv, NULL, CV_DRIVER, NULL);
112 master->magiclist[i].head = NULL;
113 master->magiclist[i].tail = NULL;
116 master
123 drm_master_get(struct drm_master *master) argument
131 struct drm_master *master = container_of(kref, struct drm_master, refcount); local
170 drm_master_put(struct drm_master **master) argument
[all...]
H A Ddrm_fops.c215 /* if there is no current master make this fd it */
217 if (!priv->minor->master) {
218 /* create a new master */
219 priv->minor->master = drm_master_create(priv->minor);
220 if (!priv->minor->master) {
228 priv->master = drm_master_get(priv->minor->master);
234 ret = dev->driver->master_create(dev, priv->master);
238 drm_master_put(&priv->minor->master);
239 drm_master_put(&priv->master);
274 struct drm_master *master = fpriv->master; local
380 struct drm_master *master = file_priv->master; local
[all...]
H A Ddrm_bufs.c71 entry->master != dev->primary->master)
219 if (dev->primary->master->lock.hw_lock != NULL) {
224 dev->primary->master->lock.hw_lock = map->handle; /* Pointer to lock */
310 list->master = dev->primary->master;
380 struct drm_master *master; local
385 master = r_list->master;
/solaris-x11-s12/open-src/app/fbconsole/sun-src/
H A Dfbconsole.c121 * console output to it. Returns the master end of the pty.
127 int master; local
137 if ((master = open("/dev/ptmx", O_RDWR, 0)) == -1) {
142 if (grantpt(master) == -1) {
147 if (unlockpt(master) == -1) {
152 if ((slavename = ptsname(master)) == NULL) {
214 return master;
/solaris-x11-s12/open-src/kernel/i915/src/
H A Di915_dma.c89 if (dev->primary->master) {
90 master_priv = dev->primary->master->driver_priv;
150 if (!dev->primary->master)
153 master_priv = dev->primary->master->driver_priv;
185 struct drm_i915_master_private *master_priv = dev->primary->master->driver_priv;
430 struct drm_i915_master_private *master_priv = dev->primary->master->driver_priv;
547 dev->primary->master->driver_priv;
624 struct drm_i915_master_private *master_priv = dev->primary->master->driver_priv;
680 struct drm_i915_master_private *master_priv = dev->primary->master->driver_priv;
748 struct drm_i915_master_private *master_priv = dev->primary->master
1302 i915_master_create(struct drm_device *dev, struct drm_master *master) argument
1315 i915_master_destroy(struct drm_device *dev, struct drm_master *master) argument
[all...]
/solaris-x11-s12/open-src/kernel/sys/drm/
H A DdrmP.h365 if (!_DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock) || \
366 _file_priv->master->lock.file_priv != _file_priv) { \
368 __func__, _DRM_LOCK_IS_HELD(_file_priv->master->lock.hw_lock->lock),\
369 (void *)_file_priv->master->lock.file_priv, (void *)_file_priv); \
476 int idx; /* Index into master buflist */
564 struct drm_master *master; member in struct:drm_map_list
799 int (*set_busid)(struct drm_device *dev, struct drm_master *master);
800 int (*set_unique)(struct drm_device *dev, struct drm_master *master,
906 int (*master_create)(struct drm_device *dev, struct drm_master *master);
907 void (*master_destroy)(struct drm_device *dev, struct drm_master *master);
1006 struct drm_master *master; /* currently active master for this node */ member in struct:drm_minor
1056 struct drm_master *master; /* master this node is currently associated with member in struct:drm_file
[all...]

Completed in 1679 milliseconds