Lines Matching defs:minor
59 int drm_sysfs_device_add(struct drm_minor *minor)
61 struct drm_device *dev = minor->dev;
65 switch (minor->type) {
68 (agp_master_softc_t **)&minor->private,
69 dev->pdev->pci_cfg_acc_handle, minor->index);
84 minor->private = gfxp;
87 minor->name, S_IFCHR, minor->index, DDI_NT_DISPLAY, NULL);
98 minor->name, S_IFCHR, minor->index, DDI_NT_DISPLAY_DRM, NULL);
116 void drm_sysfs_device_remove(struct drm_minor *minor)
118 switch (minor->type) {
120 if (minor->private) {
122 (agp_master_softc_t **)&minor->private);
123 minor->private = NULL;
128 if (minor->private) {
129 (void) gfxp_vgatext_detach(minor->dev->devinfo,
130 DDI_DETACH, minor->private);
131 gfxp_vgatext_softc_free(minor->private);
132 minor->private = NULL;
139 ddi_remove_minor_node(minor->dev->devinfo, minor->name);