Home
last modified time | relevance | path

Searched refs:minors (Results 1 – 12 of 12) sorted by relevance

/drivers/staging/greybus/
Dvibrator.c114 static DEFINE_IDA(minors);
157 vib->minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_vibrator_probe()
177 ida_simple_remove(&minors, vib->minor); in gb_vibrator_probe()
201 ida_simple_remove(&minors, vib->minor); in gb_vibrator_disconnect()
245 ida_destroy(&minors); in gb_vibrator_exit()
Draw.c38 static DEFINE_IDA(minors);
181 minor = ida_simple_get(&minors, 0, 0, GFP_KERNEL); in gb_raw_probe()
214 ida_simple_remove(&minors, minor); in gb_raw_probe()
235 ida_simple_remove(&minors, MINOR(raw->dev)); in gb_raw_disconnect()
375 ida_destroy(&minors); in raw_exit()
/drivers/mmc/core/
DKconfig48 int "Number of minors per block device"
53 Number of minors per block device. One is needed for every
56 Number of total MMC minors available is 256, so your number
/drivers/spi/
Dspidev.c47 static DECLARE_BITMAP(minors, N_SPI_MINORS);
771 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe()
785 set_bit(minor, minors); in spidev_probe()
813 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/drivers/block/
Dxen-blkfront.c235 static unsigned long *minors; variable
458 old = minors; in xlbd_reserve_minors()
459 memcpy(bitmap, minors, in xlbd_reserve_minors()
461 minors = bitmap; in xlbd_reserve_minors()
470 if (find_next_bit(minors, end, minor) >= end) { in xlbd_reserve_minors()
471 bitmap_set(minors, minor, nr); in xlbd_reserve_minors()
486 bitmap_clear(minors, minor, nr); in xlbd_release_minors()
1238 nr_minors = info->gd->minors; in xlvbd_release_gendisk()
2853 kfree(minors); in xlblk_exit()
/drivers/usb/gadget/function/
Df_printer.c56 static int major, minors; variable
1465 if (opts->minor >= minors) { in gprinter_alloc()
1540 minors = count; in gprinter_setup()
1548 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup()
1549 major = minors = 0; in gprinter_cleanup()
Df_hid.c25 static int major, minors; variable
1343 minors = count; in ghid_setup()
1351 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup()
1352 major = minors = 0; in ghid_cleanup()
/drivers/ide/
Dide-gd.c397 g->minors = IDE_DISK_MINORS;
Dide-probe.c951 disk->minors, NULL, exact_match, exact_lock, disk); in ide_register_region()
959 disk->minors); in ide_unregister_region()
Dide-cd.c1821 g->minors = 1; in ide_cd_probe()
/drivers/cdrom/
Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/drivers/block/mtip32xx/
Dmtip32xx.c3614 dd->disk->minors = MTIP_MAX_MINORS; in mtip_block_initialize()