Lines Matching refs:minor
110 int minor; member
593 int minor = iminor(inode); in ch_open() local
596 ch = idr_find(&ch_index_idr, minor); in ch_open()
914 ch->minor = ret; in ch_probe()
915 sprintf(ch->name,"ch%d",ch->minor); in ch_probe()
919 ch->minor); in ch_probe()
927 MKDEV(SCSI_CHANGER_MAJOR, ch->minor), ch, in ch_probe()
931 ch->minor); in ch_probe()
951 device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR, ch->minor)); in ch_probe()
955 idr_remove(&ch_index_idr, ch->minor); in ch_probe()
966 idr_remove(&ch_index_idr, ch->minor); in ch_remove()
970 device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR,ch->minor)); in ch_remove()