Lines Matching full:unique
76 * side-effect this fills out the unique name in the master structure.
77 * 2. Call GET_UNIQUE to read out the unique name from the master structure,
85 * means the unique name for the master node just opening is _not_ filled
89 * 3. Call GET_UNIQUE, and check whether the unique name has length zero (by
92 * copypasta from drm 1.0 times where a set unique name meant that the driver
96 * _not_ return a unique string when SET_VERSION hasn't been called yet,
97 * otherwise libdrm breaks. Even when that unique string can't ever change, and
113 * Copies the bus id from drm_device::unique into user space.
124 if (copy_to_user(u->unique, master->unique, master->unique_len)) { in drm_getunique()
139 kfree(master->unique); in drm_unset_busid()
140 master->unique = NULL; in drm_unset_busid()
149 if (master->unique != NULL) in drm_set_busid()
159 WARN_ON(!dev->unique); in drm_set_busid()
160 master->unique = kstrdup(dev->unique, GFP_KERNEL); in drm_set_busid()
161 if (master->unique) in drm_set_busid()
162 master->unique_len = strlen(dev->unique); in drm_set_busid()