Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_task_vma.c16 #define MINORMASK ((1U << MINORBITS) - 1) macro
18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/linux-6.6.21/include/linux/
Dkdev_t.h8 #define MINORMASK ((1U << MINORBITS) - 1) macro
11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/linux-6.6.21/drivers/dax/
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()
/linux-6.6.21/drivers/vfio/
Ddevice_cdev.c222 MINORMASK + 1, "vfio-dev"); in vfio_cdev_init()
227 unregister_chrdev_region(device_devt, MINORMASK + 1); in vfio_cdev_cleanup()
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()
Dvfio_main.c239 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device()
/linux-6.6.21/samples/vfio-mdev/
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()
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()
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()
/linux-6.6.21/drivers/dma/idxd/
Dcdev.c466 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/
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()
/linux-6.6.21/drivers/char/
Dmisc.c75 MINORMASK, GFP_KERNEL); in misc_minor_alloc()
/linux-6.6.21/fs/
Dchar_dev.c110 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/
Drpmsg_ctrl.c31 #define RPMSG_DEV_MAX (MINORMASK + 1)
Drpmsg_char.c32 #define RPMSG_DEV_MAX (MINORMASK + 1)
/linux-6.6.21/drivers/misc/uacce/
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()
/linux-6.6.21/drivers/soc/qcom/
Drmtfs_mem.c19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
/linux-6.6.21/block/
Dgenhd.c435 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/
Dmtd_blkdevs.c313 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
/linux-6.6.21/drivers/i2c/
Di2c-dev.c49 #define I2C_MINORS (MINORMASK + 1)
/linux-6.6.21/drivers/fpga/
Ddfl.c617 MINORMASK + 1); in dfl_chardev_uinit()
628 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
/linux-6.6.21/drivers/misc/mei/
Dmain.c35 #define MEI_MAX_DEVS MINORMASK
/linux-6.6.21/drivers/block/
Dsunvdc.c979 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
Dnbd.c1820 (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/
Dinode.c276 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()

12