Lines Matching refs:usize
9 const CHARDEV_MAJOR_HASH_SIZE: usize = 255;
10 const CHARDEV_MAJOR_MAX: usize = 512;
11 const MINOR_BITS: usize = 20;
12 const MINOR_MASK: usize = 1 << MINOR_BITS - 1;
14 const CHARDEV_MAJOR_DYN_END: usize = 234;
16 const CHARDEV_MAJOR_DYN_EXT_START: usize = 511;
17 const CHARDEV_MAJOR_DYN_EXT_END: usize = 384;
63 minorct: usize, // 次设备号数量
76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new() argument
98 pub fn base_minor(&self) -> usize { in base_minor() argument
106 pub fn minorct(&self) -> usize { in minorct() argument
119 fn major_to_index(major: usize) -> usize { in major_to_index() argument
127 fn find_dynamic_major() -> Result<usize, SystemError> { in find_dynamic_major()
164 count: usize, in register_chardev_region() argument
177 baseminor: usize, in alloc_chardev_region() argument
178 count: usize, in alloc_chardev_region() argument
191 minorct: usize, in __register_chardev_region() argument
214 let mut insert_index: usize = 0; in __register_chardev_region()
245 minorct: usize, in __unregister_chardev_region() argument
270 pub fn cdev_add(cdev: Arc<dyn CharDevice>, dev_t: DeviceNumber, range: usize) { in cdev_add() argument
271 if Into::<usize>::into(dev_t) == 0 { in cdev_add()
282 pub fn cdev_del(dev_t: DeviceNumber, range: usize) { in cdev_del() argument