Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/misc/cxl/
Dfile.c35 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu))
36 #define CXL_AFU_MKDEV_M(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_M(afu))
37 #define CXL_AFU_MKDEV_S(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_S(afu))
43 static dev_t cxl_dev; variable
659 return cxl_dev; in cxl_get_dev()
677 if ((rc = alloc_chrdev_region(&cxl_dev, 0, CXL_NUM_MINORS, "cxl"))) { in cxl_file_init()
682 pr_devel("CXL device allocated, MAJOR %i\n", MAJOR(cxl_dev)); in cxl_file_init()
695 unregister_chrdev_region(cxl_dev, CXL_NUM_MINORS); in cxl_file_init()
701 unregister_chrdev_region(cxl_dev, CXL_NUM_MINORS); in cxl_file_exit()