Home
last modified time | relevance | path

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

123

/Linux-v6.1/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()
/Linux-v6.1/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
/Linux-v6.1/block/
Dgenhd.c415 if (WARN_ON(!disk->minors)) in device_add_disk()
418 if (disk->minors > DISK_MAX_PARTS) { in device_add_disk()
421 disk->minors = DISK_MAX_PARTS; in device_add_disk()
423 if (disk->first_minor + disk->minors > MINORMASK + 1) in device_add_disk()
426 if (WARN_ON(disk->minors)) in device_add_disk()
900 return sprintf(buf, "%d\n", disk->minors); in disk_range_show()
1335 if (partno < disk->minors) { in blk_lookup_devt()
/Linux-v6.1/drivers/spi/
Dspidev.c46 static DECLARE_BITMAP(minors, N_SPI_MINORS);
777 minor = find_first_zero_bit(minors, N_SPI_MINORS); in spidev_probe()
791 set_bit(minor, minors); in spidev_probe()
819 clear_bit(MINOR(spidev->devt), minors); in spidev_remove()
/Linux-v6.1/drivers/block/
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()
1155 gd->minors = nr_minors; in xlvbd_alloc_gendisk()
2486 xlbd_release_minors(info->gd->first_minor, info->gd->minors); in blkfront_remove()
2640 kfree(minors); in xlblk_exit()
Dz2ram.c329 disk->minors = 1; in z2ram_register_disk()
Dbrd.c397 disk->minors = max_part; in brd_alloc()
Dps3disk.c456 gendisk->minors = PS3DISK_MINORS; in ps3disk_probe()
/Linux-v6.1/drivers/s390/block/
Ddasd_genhd.c70 gdp->minors = 1 << DASD_PARTN_BITS; in dasd_gendisk_alloc()
Dscm_blk.c483 bdev->gendisk->minors = SCM_NR_PARTS; in scm_blk_dev_setup()
/Linux-v6.1/Documentation/arm/sa1100/
Dserial_uart.rst14 > serial devices", so you will have a range of minors on those majors (the
/Linux-v6.1/drivers/net/wwan/
Dwwan_core.c26 static DEFINE_IDA(minors); /* minors for WWAN port chardevs */
343 ida_free(&minors, MINOR(port->dev.devt)); in wwan_port_destroy()
443 minor = ida_alloc_range(&minors, 0, WWAN_MAX_MINORS - 1, GFP_KERNEL); in wwan_create_port()
452 ida_free(&minors, minor); in wwan_create_port()
/Linux-v6.1/arch/m68k/emu/
Dnfblock.c126 dev->disk->minors = 16; in nfhd_init_one()
/Linux-v6.1/Documentation/input/
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-v6.1/drivers/usb/gadget/function/
Df_printer.c56 static int major, minors; variable
1464 if (opts->minor >= minors) { in gprinter_alloc()
1539 minors = count; in gprinter_setup()
1547 unregister_chrdev_region(MKDEV(major, 0), minors); in gprinter_cleanup()
1548 major = minors = 0; in gprinter_cleanup()
Df_hid.c25 static int major, minors; variable
1337 minors = count; in ghid_setup()
1345 unregister_chrdev_region(MKDEV(major, 0), minors); in ghid_cleanup()
1346 major = minors = 0; in ghid_cleanup()
/Linux-v6.1/arch/xtensa/platforms/iss/
Dsimdisk.c279 dev->gd->minors = SIMDISK_MINORS; in simdisk_setup()
/Linux-v6.1/drivers/block/aoe/
Daoeblk.c395 gd->minors = AOE_PARTITIONS; in aoeblk_gdalloc()
/Linux-v6.1/drivers/mtd/ubi/
Dblock.c425 gd->minors = 1; in ubiblock_create()
/Linux-v6.1/drivers/mtd/
Dmtd_blkdevs.c347 gd->minors = 1 << tr->part_bits; in add_mtd_blktrans_dev()
/Linux-v6.1/block/partitions/
Dcore.c366 if (bdev->bd_partno < disk->minors) { in add_partition()
/Linux-v6.1/drivers/cdrom/
Dgdrom.c720 gd.disk->minors = 1; in probe_gdrom_setupdisk()
/Linux-v6.1/drivers/block/paride/
Dpd.c925 p->minors = 1 << PD_BITS; in pd_probe_drive()
/Linux-v6.1/drivers/md/
Ddm-ima.c122 md->disk->minors, num_targets); in dm_ima_alloc_and_copy_device_data()

123