/linux/tools/lib/traceevent/plugins/ |
A D | plugin_jbd2.c | 13 #define MINORMASK ((1U << MINORBITS) - 1) macro 16 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | bpf_iter_task_vma.c | 16 #define MINORMASK ((1U << MINORBITS) - 1) macro 18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/linux/include/linux/ |
A D | kdev_t.h | 8 #define MINORMASK ((1U << MINORBITS) - 1) macro 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/linux/drivers/dax/ |
A D | super.c | 517 minor = ida_simple_get(&dax_minor_ida, 0, MINORMASK+1, GFP_KERNEL); in alloc_dax() 628 rc = alloc_chrdev_region(&dax_devt, 0, MINORMASK+1, "dax"); in dax_core_init() 638 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_init() 647 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_exit()
|
/linux/drivers/dma/idxd/ |
A D | cdev.c | 263 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev() 369 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 383 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/linux/drivers/ptp/ |
A D | ptp_clock.c | 212 index = ida_simple_get(&ptp_clocks_map, 0, MINORMASK + 1, GFP_KERNEL); in ptp_clock_register() 428 unregister_chrdev_region(ptp_devt, MINORMASK + 1); in ptp_exit() 442 err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp"); in ptp_init()
|
/linux/samples/vfio-mdev/ |
A D | mdpy.c | 747 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init() 753 cdev_add(&mdpy_cdev, mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 788 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 800 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_exit()
|
A D | mtty.c | 1355 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init() 1364 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1401 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1414 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_exit()
|
A D | mbochs.c | 1438 ret = alloc_chrdev_region(&mbochs_devt, 0, MINORMASK + 1, MBOCHS_NAME); in mbochs_dev_init() 1444 cdev_add(&mbochs_cdev, mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1479 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1491 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_exit()
|
/linux/fs/ |
A 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/drivers/misc/uacce/ |
A D | uacce.c | 536 ret = alloc_chrdev_region(&uacce_devt, 0, MINORMASK, UACCE_NAME); in uacce_init() 545 unregister_chrdev_region(uacce_devt, MINORMASK); in uacce_exit()
|
/linux/drivers/soc/qcom/ |
A D | rmtfs_mem.c | 19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
|
/linux/drivers/vfio/ |
A D | vfio.c | 368 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc() 2316 ret = alloc_chrdev_region(&vfio.group_devt, 0, MINORMASK + 1, "vfio"); in vfio_init() 2343 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_cleanup()
|
/linux/drivers/mtd/ |
A D | mtd_blkdevs.c | 312 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
|
/linux/drivers/rpmsg/ |
A D | rpmsg_char.c | 25 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
/linux/drivers/i2c/ |
A D | i2c-dev.c | 49 #define I2C_MINORS (MINORMASK + 1)
|
/linux/drivers/fpga/ |
A D | dfl.c | 605 MINORMASK + 1); in dfl_chardev_uinit() 616 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
|
/linux/drivers/misc/mei/ |
A D | main.c | 33 #define MEI_MAX_DEVS MINORMASK
|
/linux/drivers/block/ |
A D | sunvdc.c | 977 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
|
A D | nbd.c | 1809 if (disk->first_minor < index || disk->first_minor > MINORMASK) { in nbd_dev_add()
|
/linux/fs/cifs/ |
A D | inode.c | 267 le64_to_cpu(info->DevMinor) & MINORMASK); 273 le64_to_cpu(info->DevMinor) & MINORMASK);
|
/linux/drivers/block/drbd/ |
A D | drbd_worker.c | 1635 if (o_minor < -1 || o_minor > MINORMASK) in drbd_resync_after_valid()
|
A D | drbd_nl.c | 4345 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
|
/linux/drivers/scsi/cxlflash/ |
A D | main.c | 911 minor = bit & MINORMASK; in cxlflash_get_minor()
|
/linux/drivers/md/ |
A D | md.c | 720 if (next_minor > MINORMASK) in mddev_alloc_unit() 5772 devnum <= MINORMASK) in add_named_array()
|