Lines Matching defs:new_minor
310 struct drm_minor *new_minor;
320 new_minor = kzalloc(sizeof(struct drm_minor), GFP_KERNEL);
321 if (!new_minor) {
326 new_minor->type = type;
327 new_minor->dev = dev;
328 new_minor->index = minor_id;
329 INIT_LIST_HEAD(&new_minor->master_list);
331 (void) idr_replace(&drm_minors_idr, new_minor, minor_id);
334 (void) sprintf(new_minor->name, "drm%d", new_minor->index);
336 (void) sprintf(new_minor->name, "controlD%d", new_minor->index);
338 (void) sprintf(new_minor->name, "renderD%d", new_minor->index);
340 (void) sprintf(new_minor->name, "gfx%d", new_minor->index - DRM_MINOR_ID_BASE_VGATEXT);
342 (void) sprintf(new_minor->name, "agpmaster%d", new_minor->index - DRM_MINOR_ID_BASE_AGPMASTER);
344 idr_init(&new_minor->clone_idr);
346 ret = drm_sysfs_device_add(new_minor);
349 *minor = new_minor;
357 kfree(new_minor, sizeof (*new_minor));