Lines Matching refs:unique
89 * side-effect this fills out the unique name in the master structure.
90 * 2. Call GET_UNIQUE to read out the unique name from the master structure,
98 * means the the unique name for the master node just opening is _not_ filled
102 * 3. Call GET_UNIQUE, and check whether the unique name has length zero (by
105 * copypasta from drm 1.0 times where a set unique name meant that the driver
109 * _not_ return a unique string when SET_VERSION hasn't been called yet,
110 * otherwise libdrm breaks. Even when that unique string can't ever change, and
126 * Copies the bus id from drm_device::unique into user space.
151 ret = copy_to_user(u->unique, master->unique,
167 kfree(master->unique);
168 master->unique = NULL;
177 if (master->unique != NULL)
187 WARN_ON(!dev->unique);
188 master->unique = kstrdup(dev->unique, GFP_KERNEL);
189 if (master->unique)
190 master->unique_len = strlen(dev->unique);