/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_task_vma.c | 16 #define MINORMASK ((1U << MINORBITS) - 1) macro 18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/linux-6.6.21/include/linux/ |
D | kdev_t.h | 8 #define MINORMASK ((1U << MINORBITS) - 1) macro 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/linux-6.6.21/drivers/dax/ |
D | super.c | 451 minor = ida_alloc_max(&dax_minor_ida, MINORMASK, GFP_KERNEL); in alloc_dax() 570 rc = alloc_chrdev_region(&dax_devt, 0, MINORMASK+1, "dax"); in dax_core_init() 580 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_init() 589 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_exit()
|
/linux-6.6.21/drivers/vfio/ |
D | device_cdev.c | 222 MINORMASK + 1, "vfio-dev"); in vfio_cdev_init() 227 unregister_chrdev_region(device_devt, MINORMASK + 1); in vfio_cdev_cleanup()
|
D | group.c | 548 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc() 938 ret = alloc_chrdev_region(&vfio.group_devt, 0, MINORMASK + 1, "vfio"); in vfio_group_init() 955 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_group_cleanup()
|
D | vfio_main.c | 239 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device()
|
/linux-6.6.21/samples/vfio-mdev/ |
D | mdpy.c | 699 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init() 705 cdev_add(&mdpy_cdev, mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 743 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_init() 755 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_exit()
|
D | mtty.c | 1399 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init() 1408 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1448 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init() 1461 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_exit()
|
D | mbochs.c | 1412 ret = alloc_chrdev_region(&mbochs_devt, 0, MINORMASK + 1, MBOCHS_NAME); in mbochs_dev_init() 1418 cdev_add(&mbochs_cdev, mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1456 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_init() 1468 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_exit()
|
/linux-6.6.21/drivers/dma/idxd/ |
D | cdev.c | 466 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev() 602 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 612 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 622 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_clock.c | 222 index = ida_alloc_max(&ptp_clocks_map, MINORMASK, GFP_KERNEL); in ptp_clock_register() 460 unregister_chrdev_region(ptp_devt, MINORMASK + 1); in ptp_exit() 474 err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp"); in ptp_init()
|
/linux-6.6.21/drivers/char/ |
D | misc.c | 75 MINORMASK, GFP_KERNEL); in misc_minor_alloc()
|
/linux-6.6.21/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-6.6.21/drivers/rpmsg/ |
D | rpmsg_ctrl.c | 31 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
D | rpmsg_char.c | 32 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
/linux-6.6.21/drivers/misc/uacce/ |
D | uacce.c | 630 ret = alloc_chrdev_region(&uacce_devt, 0, MINORMASK, UACCE_NAME); in uacce_init() 639 unregister_chrdev_region(uacce_devt, MINORMASK); in uacce_exit()
|
/linux-6.6.21/drivers/soc/qcom/ |
D | rmtfs_mem.c | 19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
|
/linux-6.6.21/block/ |
D | genhd.c | 435 if (disk->first_minor > MINORMASK || in device_add_disk() 436 disk->minors > MINORMASK + 1 || in device_add_disk() 437 disk->first_minor + disk->minors > MINORMASK + 1) in device_add_disk()
|
/linux-6.6.21/drivers/mtd/ |
D | mtd_blkdevs.c | 313 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
|
/linux-6.6.21/drivers/i2c/ |
D | i2c-dev.c | 49 #define I2C_MINORS (MINORMASK + 1)
|
/linux-6.6.21/drivers/fpga/ |
D | dfl.c | 617 MINORMASK + 1); in dfl_chardev_uinit() 628 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
|
/linux-6.6.21/drivers/misc/mei/ |
D | main.c | 35 #define MEI_MAX_DEVS MINORMASK
|
/linux-6.6.21/drivers/block/ |
D | sunvdc.c | 979 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
|
D | nbd.c | 1820 (MINORMASK >> part_shift) + 1, GFP_KERNEL); in nbd_dev_add() 1978 if (index < 0 || index > MINORMASK >> part_shift) { in nbd_genl_connect()
|
/linux-6.6.21/fs/smb/client/ |
D | inode.c | 276 le64_to_cpu(info->DevMinor) & MINORMASK); in cifs_unix_basic_to_fattr() 282 le64_to_cpu(info->DevMinor) & MINORMASK); in cifs_unix_basic_to_fattr()
|