Home
last modified time | relevance | path

Searched refs:MINORMASK (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_task_vma.c16 #define MINORMASK ((1U << MINORBITS) - 1) macro
18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/openbmc/linux/include/linux/
H A Dkdev_t.h8 #define MINORMASK ((1U << MINORBITS) - 1) macro
11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/openbmc/linux/drivers/dax/
H A Dsuper.c451 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 Ddevice_cdev.c222 MINORMASK + 1, "vfio-dev"); in vfio_cdev_init()
227 unregister_chrdev_region(device_devt, MINORMASK + 1); in vfio_cdev_cleanup()
H A Dgroup.c548 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 Dvfio_main.c239 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device()
/openbmc/linux/samples/vfio-mdev/
H A Dmdpy.c699 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 Dmtty.c1399 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 Dmbochs.c1412 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 Dptp_clock.c222 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 Dcdev.c542 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 Dmisc.c75 MINORMASK, GFP_KERNEL); in misc_minor_alloc()
/openbmc/linux/fs/
H A Dchar_dev.c110 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 Drpmsg_ctrl.c31 #define RPMSG_DEV_MAX (MINORMASK + 1)
H A Drpmsg_char.c32 #define RPMSG_DEV_MAX (MINORMASK + 1)
/openbmc/linux/drivers/misc/uacce/
H A Duacce.c630 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 Drmtfs_mem.c19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
/openbmc/linux/block/
H A Dgenhd.c433 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 Dmtd_blkdevs.c313 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
/openbmc/linux/drivers/i2c/
H A Di2c-dev.c49 #define I2C_MINORS (MINORMASK + 1)
/openbmc/linux/drivers/fpga/
H A Ddfl.c617 MINORMASK + 1); in dfl_chardev_uinit()
628 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
/openbmc/linux/drivers/misc/mei/
H A Dmain.c35 #define MEI_MAX_DEVS MINORMASK
/openbmc/linux/drivers/block/
H A Dsunvdc.c979 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
H A Dnbd.c1835 (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 Dinode.c279 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()

12