Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/misc/cxl/
Dfile.c31 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu))
32 #define CXL_AFU_MKDEV_M(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_M(afu))
33 #define CXL_AFU_MKDEV_S(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_S(afu))
39 static dev_t cxl_dev; variable
656 return cxl_dev; in cxl_get_dev()
674 if ((rc = alloc_chrdev_region(&cxl_dev, 0, CXL_NUM_MINORS, "cxl"))) { in cxl_file_init()
679 pr_devel("CXL device allocated, MAJOR %i\n", MAJOR(cxl_dev)); in cxl_file_init()
692 unregister_chrdev_region(cxl_dev, CXL_NUM_MINORS); in cxl_file_init()
698 unregister_chrdev_region(cxl_dev, CXL_NUM_MINORS); in cxl_file_exit()