/Linux-v5.10/tools/lib/traceevent/plugins/ |
D | plugin_jbd2.c | 13 #define MINORMASK ((1U << MINORBITS) - 1) macro 16 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/Linux-v5.10/include/linux/ |
D | kdev_t.h | 8 #define MINORMASK ((1U << MINORBITS) - 1) macro 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/Linux-v5.10/drivers/dma/idxd/ |
D | cdev.c | 220 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_cdev_dev_setup() 301 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 315 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/Linux-v5.10/drivers/ptp/ |
D | ptp_clock.c | 219 index = ida_simple_get(&ptp_clocks_map, 0, MINORMASK + 1, GFP_KERNEL); in ptp_clock_register() 404 unregister_chrdev_region(ptp_devt, MINORMASK + 1); in ptp_exit() 418 err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp"); in ptp_init()
|
/Linux-v5.10/drivers/dax/ |
D | super.c | 594 minor = ida_simple_get(&dax_minor_ida, 0, MINORMASK+1, GFP_KERNEL); in alloc_dax() 737 rc = alloc_chrdev_region(&dax_devt, 0, MINORMASK+1, "dax"); in dax_core_init() 747 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_init() 755 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_exit()
|
/Linux-v5.10/samples/vfio-mdev/ |
D | mdpy.c | 755 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init() 761 cdev_add(&mdpy_cdev, mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 790 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 801 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_exit()
|
D | mtty.c | 1419 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init() 1428 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1465 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1479 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_exit()
|
D | mbochs.c | 1433 ret = alloc_chrdev_region(&mbochs_devt, 0, MINORMASK + 1, MBOCHS_NAME); in mbochs_dev_init() 1439 cdev_add(&mbochs_cdev, mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1468 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1479 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_exit()
|
/Linux-v5.10/drivers/misc/uacce/ |
D | uacce.c | 519 ret = alloc_chrdev_region(&uacce_devt, 0, MINORMASK, UACCE_NAME); in uacce_init() 528 unregister_chrdev_region(uacce_devt, MINORMASK); in uacce_exit()
|
/Linux-v5.10/fs/ |
D | char_dev.c | 110 if (minorct > MINORMASK + 1 - baseminor) { in __register_chrdev_region() 112 name, baseminor, baseminor + minorct - 1, 0, MINORMASK); in __register_chrdev_region()
|
/Linux-v5.10/drivers/vfio/ |
D | vfio.c | 274 return idr_alloc(&vfio.group_idr, group, 0, MINORMASK + 1, GFP_KERNEL); in vfio_alloc_group_minor() 2376 ret = alloc_chrdev_region(&vfio.group_devt, 0, MINORMASK + 1, "vfio"); in vfio_init() 2381 ret = cdev_add(&vfio.group_cdev, vfio.group_devt, MINORMASK + 1); in vfio_init() 2393 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_init() 2411 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_cleanup()
|
/Linux-v5.10/drivers/soc/qcom/ |
D | rmtfs_mem.c | 19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
|
/Linux-v5.10/drivers/rpmsg/ |
D | rpmsg_char.c | 27 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
/Linux-v5.10/drivers/mtd/ |
D | mtd_blkdevs.c | 382 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
|
/Linux-v5.10/drivers/i2c/ |
D | i2c-dev.c | 47 #define I2C_MINORS (MINORMASK + 1)
|
/Linux-v5.10/drivers/fpga/ |
D | dfl.c | 606 MINORMASK + 1); in dfl_chardev_uinit() 617 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
|
/Linux-v5.10/drivers/misc/mei/ |
D | main.c | 33 #define MEI_MAX_DEVS MINORMASK
|
/Linux-v5.10/drivers/block/ |
D | sunvdc.c | 989 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
|
/Linux-v5.10/fs/cifs/ |
D | inode.c | 273 le64_to_cpu(info->DevMinor) & MINORMASK); 279 le64_to_cpu(info->DevMinor) & MINORMASK);
|
/Linux-v5.10/drivers/block/drbd/ |
D | drbd_worker.c | 1632 if (o_minor < -1 || o_minor > MINORMASK) in drbd_resync_after_valid()
|
D | drbd_nl.c | 4342 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
|
/Linux-v5.10/drivers/scsi/cxlflash/ |
D | main.c | 911 minor = bit & MINORMASK; in cxlflash_get_minor()
|
/Linux-v5.10/drivers/md/ |
D | md.c | 783 if (next_minor > MINORMASK) in mddev_find() 5798 devnum <= MINORMASK) in add_named_array()
|