Searched refs:minors (Results 1 - 25 of 69) sorted by relevance

123

/linux-master/drivers/staging/greybus/
H A Dvibrator.c113 static DEFINE_IDA(minors);
156 vib->minor = ida_alloc(&minors, GFP_KERNEL);
176 ida_free(&minors, vib->minor);
200 ida_free(&minors, vib->minor);
244 ida_destroy(&minors);
H A Draw.c41 static DEFINE_IDA(minors);
184 minor = ida_alloc(&minors, GFP_KERNEL);
217 ida_free(&minors, minor);
238 ida_free(&minors, MINOR(raw->dev));
376 ida_destroy(&minors);
/linux-master/sound/core/seq/
H A Dseq.c21 #include <sound/minors.h>
H A Dseq_virmidi.c32 #include <sound/minors.h>
/linux-master/sound/pci/hda/
H A Dhda_hwdep.c16 #include <sound/minors.h>
H A Dhda_sysfs.c21 #include <sound/minors.h>
/linux-master/sound/core/
H A Dinfo_oss.c12 #include <sound/minors.h>
H A Dsound_oss.c12 #include <sound/minors.h>
H A Dsound.c14 #include <sound/minors.h>
182 /* static minors for module auto loading */
189 /* skip static minors still used for module auto loading */
H A Dhwdep.c16 #include <sound/minors.h>
/linux-master/drivers/s390/block/
H A Ddasd_genhd.c76 gdp->minors = 1 << DASD_PARTN_BITS;
/linux-master/block/
H A Dgenhd.c420 * the number of minors numbers supported, and those will be used to
427 if (WARN_ON(!disk->minors))
430 if (disk->minors > DISK_MAX_PARTS) {
433 disk->minors = DISK_MAX_PARTS;
436 disk->minors > MINORMASK + 1 ||
437 disk->first_minor + disk->minors > MINORMASK + 1)
440 if (WARN_ON(disk->minors))
909 return sprintf(buf, "%d\n", disk->minors);
H A Dearly-lookup.c137 if (partno < disk->minors) {
/linux-master/sound/core/seq/oss/
H A Dseq_oss.c15 #include <sound/minors.h>
/linux-master/arch/m68k/emu/
H A Dnfblock.c131 dev->disk->minors = 16;
/linux-master/drivers/block/
H A Dz2ram.c327 disk->minors = 1;
H A Dxen-blkfront.c237 static unsigned long *minors; variable
458 old = minors;
459 memcpy(bitmap, minors,
461 minors = bitmap;
470 if (find_next_bit(minors, end, minor) >= end) {
471 bitmap_set(minors, minor, nr);
486 bitmap_clear(minors, minor, nr);
1155 gd->minors = nr_minors;
2487 xlbd_release_minors(info->gd->first_minor, info->gd->minors);
2640 kfree(minors);
[all...]
H A Dbrd.c355 disk->minors = max_part;
/linux-master/drivers/net/wwan/
H A Dwwan_core.c23 /* Maximum number of minors in use */
27 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */
358 ida_free(&minors, MINOR(port->dev.devt));
459 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL);
468 ida_free(&minors, minor);
/linux-master/drivers/spi/
H A Dspidev.c46 static DECLARE_BITMAP(minors, N_SPI_MINORS);
795 * Reusing minors is fine so long as udev or mdev is working.
798 minor = find_first_zero_bit(minors, N_SPI_MINORS);
812 set_bit(minor, minors);
840 clear_bit(MINOR(spidev->devt), minors);
/linux-master/drivers/usb/gadget/function/
H A Df_printer.c56 static int major, minors; variable
1460 if (opts->minor >= minors) {
1530 minors = count;
1538 unregister_chrdev_region(MKDEV(major, 0), minors);
1539 major = minors = 0;
H A Df_hid.c25 static int major, minors; variable
1344 minors = count;
1352 unregister_chrdev_region(MKDEV(major, 0), minors);
1353 major = minors = 0;
/linux-master/arch/xtensa/platforms/iss/
H A Dsimdisk.c281 dev->gd->minors = SIMDISK_MINORS;
/linux-master/sound/drivers/opl3/
H A Dopl3_lib.c19 #include <sound/minors.h>
/linux-master/drivers/block/aoe/
H A Daoeblk.c396 gd->minors = AOE_PARTITIONS;

Completed in 198 milliseconds

123