Home
last modified time | relevance | path

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

/Linux-v5.10/tools/lib/traceevent/plugins/
Dplugin_jbd2.c13 #define MINORMASK ((1U << MINORBITS) - 1) macro
16 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/Linux-v5.10/include/linux/
Dkdev_t.h8 #define MINORMASK ((1U << MINORBITS) - 1) macro
11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/Linux-v5.10/drivers/dma/idxd/
Dcdev.c220 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_cdev_dev_setup()
301 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
315 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
/Linux-v5.10/drivers/ptp/
Dptp_clock.c219 index = ida_simple_get(&ptp_clocks_map, 0, MINORMASK + 1, GFP_KERNEL); in ptp_clock_register()
404 unregister_chrdev_region(ptp_devt, MINORMASK + 1); in ptp_exit()
418 err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp"); in ptp_init()
/Linux-v5.10/drivers/dax/
Dsuper.c594 minor = ida_simple_get(&dax_minor_ida, 0, MINORMASK+1, GFP_KERNEL); in alloc_dax()
737 rc = alloc_chrdev_region(&dax_devt, 0, MINORMASK+1, "dax"); in dax_core_init()
747 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_init()
755 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_exit()
/Linux-v5.10/samples/vfio-mdev/
Dmdpy.c755 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init()
761 cdev_add(&mdpy_cdev, mdpy_devt, MINORMASK + 1); in mdpy_dev_init()
790 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_init()
801 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_exit()
Dmtty.c1419 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init()
1428 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1465 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1479 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_exit()
Dmbochs.c1433 ret = alloc_chrdev_region(&mbochs_devt, 0, MINORMASK + 1, MBOCHS_NAME); in mbochs_dev_init()
1439 cdev_add(&mbochs_cdev, mbochs_devt, MINORMASK + 1); in mbochs_dev_init()
1468 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_init()
1479 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_exit()
/Linux-v5.10/drivers/misc/uacce/
Duacce.c519 ret = alloc_chrdev_region(&uacce_devt, 0, MINORMASK, UACCE_NAME); in uacce_init()
528 unregister_chrdev_region(uacce_devt, MINORMASK); in uacce_exit()
/Linux-v5.10/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-v5.10/drivers/vfio/
Dvfio.c274 return idr_alloc(&vfio.group_idr, group, 0, MINORMASK + 1, GFP_KERNEL); in vfio_alloc_group_minor()
2376 ret = alloc_chrdev_region(&vfio.group_devt, 0, MINORMASK + 1, "vfio"); in vfio_init()
2381 ret = cdev_add(&vfio.group_cdev, vfio.group_devt, MINORMASK + 1); in vfio_init()
2393 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_init()
2411 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_cleanup()
/Linux-v5.10/drivers/soc/qcom/
Drmtfs_mem.c19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
/Linux-v5.10/drivers/rpmsg/
Drpmsg_char.c27 #define RPMSG_DEV_MAX (MINORMASK + 1)
/Linux-v5.10/drivers/mtd/
Dmtd_blkdevs.c382 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
/Linux-v5.10/drivers/i2c/
Di2c-dev.c47 #define I2C_MINORS (MINORMASK + 1)
/Linux-v5.10/drivers/fpga/
Ddfl.c606 MINORMASK + 1); in dfl_chardev_uinit()
617 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
/Linux-v5.10/drivers/misc/mei/
Dmain.c33 #define MEI_MAX_DEVS MINORMASK
/Linux-v5.10/drivers/block/
Dsunvdc.c989 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
/Linux-v5.10/fs/cifs/
Dinode.c273 le64_to_cpu(info->DevMinor) & MINORMASK);
279 le64_to_cpu(info->DevMinor) & MINORMASK);
/Linux-v5.10/drivers/block/drbd/
Ddrbd_worker.c1632 if (o_minor < -1 || o_minor > MINORMASK) in drbd_resync_after_valid()
Ddrbd_nl.c4342 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
/Linux-v5.10/drivers/scsi/cxlflash/
Dmain.c911 minor = bit & MINORMASK; in cxlflash_get_minor()
/Linux-v5.10/drivers/md/
Dmd.c783 if (next_minor > MINORMASK) in mddev_find()
5798 devnum <= MINORMASK) in add_named_array()