Lines Matching full:unique
72 * side-effect this fills out the unique name in the master structure.
73 * 2. Call GET_UNIQUE to read out the unique name from the master structure,
81 * means the the unique name for the master node just opening is _not_ filled
85 * 3. Call GET_UNIQUE, and check whether the unique name has length zero (by
88 * copypasta from drm 1.0 times where a set unique name meant that the driver
92 * _not_ return a unique string when SET_VERSION hasn't been called yet,
93 * otherwise libdrm breaks. Even when that unique string can't ever change, and
109 * Copies the bus id from drm_device::unique into user space.
119 if (copy_to_user(u->unique, master->unique, master->unique_len)) { in drm_getunique()
134 kfree(master->unique); in drm_unset_busid()
135 master->unique = NULL; in drm_unset_busid()
144 if (master->unique != NULL) in drm_set_busid()
154 WARN_ON(!dev->unique); in drm_set_busid()
155 master->unique = kstrdup(dev->unique, GFP_KERNEL); in drm_set_busid()
156 if (master->unique) in drm_set_busid()
157 master->unique_len = strlen(dev->unique); in drm_set_busid()