Lines Matching defs:master
63 struct drm_master *master = file->master;
65 if (master->unique_len == 0 || master->unique == NULL) {
69 if (u->unique_len >= master->unique_len) {
73 if (DRM_COPY_TO_USER(u->unique, master->unique, master->unique_len))
76 u->unique_len = master->unique_len;
93 struct drm_master *master = file_priv->master;
96 if (master->unique != NULL)
99 master->unique_len = 40;
100 master->unique_size = master->unique_len;
101 master->unique = kmalloc(master->unique_size, GFP_KERNEL);
102 if (master->unique == NULL)
105 len = snprintf(master->unique, master->unique_len, "pci:%04x:%02x:%02x.%1x",
107 if (len >= master->unique_len)
110 master->unique_len = len;
229 (file->master->lock.hw_lock ? file->master->lock.hw_lock->lock : 0);