Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/
Dchar_dev.c44 static inline int major_to_index(unsigned major) in major_to_index() function
56 for (cd = chrdevs[major_to_index(offset)]; cd; cd = cd->next) { in chrdev_show()
77 for (cd = chrdevs[major_to_index(i)]; cd; cd = cd->next) in find_dynamic_major()
133 i = major_to_index(major); in __register_chrdev_region()
175 int i = major_to_index(major); in __unregister_chrdev_region()
/kernel/linux/linux-5.10/block/
Dgenhd.c402 static inline int major_to_index(unsigned major) in major_to_index() function
413 for (dp = major_names[major_to_index(offset)]; dp; dp = dp->next) in blkdev_show()
481 index = major_to_index(major); in register_blkdev()
508 int index = major_to_index(major); in unregister_blkdev()