Lines Matching full:unique
77 * side-effect this fills out the unique name in the master structure.
78 * 2. Call GET_UNIQUE to read out the unique name from the master structure,
86 * means the unique name for the master node just opening is _not_ filled
90 * 3. Call GET_UNIQUE, and check whether the unique name has length zero (by
93 * copypasta from drm 1.0 times where a set unique name meant that the driver
97 * _not_ return a unique string when SET_VERSION hasn't been called yet,
98 * otherwise libdrm breaks. Even when that unique string can't ever change, and
114 * 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()