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