Home
last modified time | relevance | path

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

/linux/tools/lib/traceevent/plugins/
A Dplugin_jbd2.c13 #define MINORMASK ((1U << MINORBITS) - 1) macro
16 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_iter_task_vma.c16 #define MINORMASK ((1U << MINORBITS) - 1) macro
18 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/linux/include/linux/
A Dkdev_t.h8 #define MINORMASK ((1U << MINORBITS) - 1) macro
11 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK))
/linux/drivers/dax/
A Dsuper.c517 minor = ida_simple_get(&dax_minor_ida, 0, MINORMASK+1, GFP_KERNEL); in alloc_dax()
628 rc = alloc_chrdev_region(&dax_devt, 0, MINORMASK+1, "dax"); in dax_core_init()
638 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_init()
647 unregister_chrdev_region(dax_devt, MINORMASK+1); in dax_core_exit()
/linux/drivers/dma/idxd/
A Dcdev.c263 minor = ida_simple_get(&cdev_ctx->minor_ida, 0, MINORMASK, GFP_KERNEL); in idxd_wq_add_cdev()
369 rc = alloc_chrdev_region(&ictx[i].devt, 0, MINORMASK, in idxd_cdev_register()
383 unregister_chrdev_region(ictx[i].devt, MINORMASK); in idxd_cdev_remove()
/linux/drivers/ptp/
A Dptp_clock.c212 index = ida_simple_get(&ptp_clocks_map, 0, MINORMASK + 1, GFP_KERNEL); in ptp_clock_register()
428 unregister_chrdev_region(ptp_devt, MINORMASK + 1); in ptp_exit()
442 err = alloc_chrdev_region(&ptp_devt, 0, MINORMASK + 1, "ptp"); in ptp_init()
/linux/samples/vfio-mdev/
A Dmdpy.c747 ret = alloc_chrdev_region(&mdpy_devt, 0, MINORMASK + 1, MDPY_NAME); in mdpy_dev_init()
753 cdev_add(&mdpy_cdev, mdpy_devt, MINORMASK + 1); in mdpy_dev_init()
788 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_init()
800 unregister_chrdev_region(mdpy_devt, MINORMASK + 1); in mdpy_dev_exit()
A Dmtty.c1355 ret = alloc_chrdev_region(&mtty_dev.vd_devt, 0, MINORMASK + 1, in mtty_dev_init()
1364 cdev_add(&mtty_dev.vd_cdev, mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1401 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_init()
1414 unregister_chrdev_region(mtty_dev.vd_devt, MINORMASK + 1); in mtty_dev_exit()
A Dmbochs.c1438 ret = alloc_chrdev_region(&mbochs_devt, 0, MINORMASK + 1, MBOCHS_NAME); in mbochs_dev_init()
1444 cdev_add(&mbochs_cdev, mbochs_devt, MINORMASK + 1); in mbochs_dev_init()
1479 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_init()
1491 unregister_chrdev_region(mbochs_devt, MINORMASK + 1); in mbochs_dev_exit()
/linux/fs/
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()
/linux/drivers/misc/uacce/
A Duacce.c536 ret = alloc_chrdev_region(&uacce_devt, 0, MINORMASK, UACCE_NAME); in uacce_init()
545 unregister_chrdev_region(uacce_devt, MINORMASK); in uacce_exit()
/linux/drivers/soc/qcom/
A Drmtfs_mem.c19 #define QCOM_RMTFS_MEM_DEV_MAX (MINORMASK + 1)
/linux/drivers/vfio/
A Dvfio.c368 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc()
2316 ret = alloc_chrdev_region(&vfio.group_devt, 0, MINORMASK + 1, "vfio"); in vfio_init()
2343 unregister_chrdev_region(vfio.group_devt, MINORMASK + 1); in vfio_cleanup()
/linux/drivers/mtd/
A Dmtd_blkdevs.c312 if (new->devnum > (MINORMASK >> tr->part_bits) || in add_mtd_blktrans_dev()
/linux/drivers/rpmsg/
A Drpmsg_char.c25 #define RPMSG_DEV_MAX (MINORMASK + 1)
/linux/drivers/i2c/
A Di2c-dev.c49 #define I2C_MINORS (MINORMASK + 1)
/linux/drivers/fpga/
A Ddfl.c605 MINORMASK + 1); in dfl_chardev_uinit()
616 MINORMASK + 1, dfl_chrdevs[i].name); in dfl_chardev_init()
/linux/drivers/misc/mei/
A Dmain.c33 #define MEI_MAX_DEVS MINORMASK
/linux/drivers/block/
A Dsunvdc.c977 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { in vdc_port_probe()
A Dnbd.c1809 if (disk->first_minor < index || disk->first_minor > MINORMASK) { in nbd_dev_add()
/linux/fs/cifs/
A Dinode.c267 le64_to_cpu(info->DevMinor) & MINORMASK);
273 le64_to_cpu(info->DevMinor) & MINORMASK);
/linux/drivers/block/drbd/
A Ddrbd_worker.c1635 if (o_minor < -1 || o_minor > MINORMASK) in drbd_resync_after_valid()
A Ddrbd_nl.c4345 if (dh->minor > MINORMASK) { in drbd_adm_new_minor()
/linux/drivers/scsi/cxlflash/
A Dmain.c911 minor = bit & MINORMASK; in cxlflash_get_minor()
/linux/drivers/md/
A Dmd.c720 if (next_minor > MINORMASK) in mddev_alloc_unit()
5772 devnum <= MINORMASK) in add_named_array()

Completed in 89 milliseconds