Lines Matching refs: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.
126 if (copy_to_user(u->unique, master->unique, master->unique_len)) {
141 kfree(master->unique);
142 master->unique = NULL;
151 if (master->unique != NULL)
161 WARN_ON(!dev->unique);
162 master->unique = kstrdup(dev->unique, GFP_KERNEL);
163 if (master->unique)
164 master->unique_len = strlen(dev->unique);