Home
last modified time | relevance | path

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

123

/linux-6.15/drivers/staging/greybus/
H A Dvibrator.c113 static DEFINE_IDA(minors);
156 vib->minor = ida_alloc(&minors, GFP_KERNEL); in gb_vibrator_probe()
176 ida_free(&minors, vib->minor); in gb_vibrator_probe()
200 ida_free(&minors, vib->minor); in gb_vibrator_disconnect()
244 ida_destroy(&minors); in gb_vibrator_exit()
H A Draw.c41 static DEFINE_IDA(minors);
184 minor = ida_alloc(&minors, GFP_KERNEL); in gb_raw_probe()
217 ida_free(&minors, minor); in gb_raw_probe()
238 ida_free(&minors, MINOR(raw->dev)); in gb_raw_disconnect()
376 ida_destroy(&minors); in raw_exit()
/linux-6.15/drivers/mmc/core/
H A DKconfig50 int "Number of minors per block device"
55 Number of minors per block device. One is needed for every
58 Number of total MMC minors available is 256, so your number
/linux-6.15/block/
H A Dgenhd.c440 if (WARN_ON(!disk->minors)) in add_disk_fwnode()
443 if (disk->minors > DISK_MAX_PARTS) { in add_disk_fwnode()
446 disk->minors = DISK_MAX_PARTS; in add_disk_fwnode()
449 disk->minors > MINORMASK + 1 || in add_disk_fwnode()
450 disk->first_minor + disk->minors > MINORMASK + 1) in add_disk_fwnode()
453 if (WARN_ON(disk->minors)) in add_disk_fwnode()
957 return sysfs_emit(buf, "%d\n", disk->minors); in disk_range_show()
H A Dearly-lookup.c137 if (partno < disk->minors) { in blk_lookup_devt()
/linux-6.15/drivers/spi/
H A Dspidev.c46 static DECLARE_BITMAP(minors, N_SPI_MINORS);
809 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe()
823 set_bit(minor, minors); in spidev_probe()
851 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/linux-6.15/drivers/block/
H A Dxen-blkfront.c237 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()
1159 gd->minors = nr_minors; in xlvbd_alloc_gendisk()
2485 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove()
2638 kfree(minors); in xlblk_exit()
H A Dz2ram.c327 disk->minors = 1; in z2ram_register_disk()
H A Dbrd.c395 disk->minors = max_part; in brd_alloc()
H A Dps3disk.c452 gendisk->minors = PS3DISK_MINORS; in ps3disk_probe()
/linux-6.15/drivers/s390/block/
H A Ddasd_genhd.c73 gdp->minors = 1 << DASD_PARTN_BITS; in dasd_gendisk_alloc()
H A Dscm_blk.c479 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup()
/linux-6.15/Documentation/arch/arm/sa1100/
H A Dserial_uart.rst14 > serial devices", so you will have a range of minors on those majors (the
/linux-6.15/arch/m68k/emu/
H A Dnfblock.c132 dev->disk->minors = 16; in nfhd_init_one()
/linux-6.15/Documentation/input/
H A Dinput.rst105 There are two ranges of minors: 64 through 95 is the static legacy
107 evdev nodes are created with minors starting with 256.
167 And so on up to js31 in legacy range, and additional nodes with minors
/linux-6.15/drivers/net/wwan/
H A Dwwan_core.c27 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */
366 ida_free(&minors, MINOR(port->dev.devt)); in wwan_port_destroy()
467 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_create_port()
476 ida_free(&minors, minor); in wwan_create_port()
/linux-6.15/drivers/usb/gadget/function/
H A Df_printer.c56 static int major, minors; variable
1480 if (opts->minor >= minors) { in gprinter_alloc()
1551 minors = count; in gprinter_setup()
1559 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup()
1560 major = minors = 0; in gprinter_cleanup()
H A Df_hid.c33 static int major, minors; variable
1604 minors = count; in ghid_setup()
1612 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup()
1613 major = minors = 0; in ghid_cleanup()
/linux-6.15/arch/xtensa/platforms/iss/
H A Dsimdisk.c285 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup()
/linux-6.15/drivers/block/aoe/
H A Daoeblk.c396 gd->minors = AOE_PARTITIONS; in aoeblk_gdalloc()
/linux-6.15/drivers/mtd/ubi/
H A Dblock.c408 gd->minors = 1; in ubiblock_create()
/linux-6.15/drivers/mtd/
H A Dmtd_blkdevs.c354 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev()
/linux-6.15/block/partitions/
H A Dcore.c346 if (bdev_partno(bdev) < disk->minors) { in add_partition()
/linux-6.15/drivers/cdrom/
H A Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/linux-6.15/drivers/md/
H A Ddm-ima.c121 md->disk->minors, num_targets); in dm_ima_alloc_and_copy_device_data()

123