/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_vma.c | 16 #define MINORMASK ((1U << MINORBITS) - 1) macro 18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/openbmc/linux/include/linux/ |
H A D | kdev_t.h | 8 #define MINORMASK ((1U << MINORBITS) - 1) macro 11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
|
/openbmc/linux/drivers/dax/ |
H A 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()
|
/openbmc/linux/drivers/vfio/ |
H A 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()
|
H A 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()
|
H A D | vfio_main.c | 239 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device()
|
/openbmc/linux/samples/vfio-mdev/ |
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/ptp/ |
H A 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()
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | cdev.c | 542 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev() 677 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register() 687 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_register() 697 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
|
/openbmc/linux/drivers/char/ |
H A D | misc.c | 75 MINORMASK, GFP_KERNEL); in misc_minor_alloc()
|
/openbmc/linux/fs/ |
H 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()
|
/openbmc/linux/drivers/rpmsg/ |
H A D | rpmsg_ctrl.c | 31 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
H A D | rpmsg_char.c | 32 #define RPMSG_DEV_MAX (MINORMASK + 1)
|
/openbmc/linux/drivers/misc/uacce/ |
H A 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()
|
/openbmc/linux/drivers/soc/qcom/ |
H A D | rmtfs_mem.c | 19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
|
/openbmc/linux/block/ |
H A D | genhd.c | 433 if (disk->first_minor > MINORMASK || in device_add_disk() 434 disk->minors > MINORMASK + 1 || in device_add_disk() 435 disk->first_minor + disk->minors > MINORMASK + 1) in device_add_disk()
|
/openbmc/linux/drivers/mtd/ |
H A D | mtd_blkdevs.c | 313 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-dev.c | 49 #define I2C_MINORS (MINORMASK + 1)
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl.c | 617 MINORMASK + 1); in dfl_chardev_uinit() 628 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
|
/openbmc/linux/drivers/misc/mei/ |
H A D | main.c | 35 #define MEI_MAX_DEVS MINORMASK
|
/openbmc/linux/drivers/block/ |
H A D | sunvdc.c | 979 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
|
H A D | nbd.c | 1835 (MINORMASK >> part_shift) + 1, GFP_KERNEL); in nbd_dev_add() 1993 if (index < 0 || index > MINORMASK >> part_shift) { in nbd_genl_connect()
|
/openbmc/linux/fs/smb/client/ |
H A D | inode.c | 279 le64_to_cpu(info->DevMinor) & MINORMASK); in cifs_unix_basic_to_fattr() 285 le64_to_cpu(info->DevMinor) & MINORMASK); in cifs_unix_basic_to_fattr()
|