Lines Matching refs:new
12 pub(crate) const DEV_MAJOR_MAX: Major = Major::new(512);
15 pub(crate) const DEV_MAJOR_DYN_END: Major = Major::new(234);
17 pub(crate) const DEV_MAJOR_DYN_EXT_START: Major = Major::new(511);
18 pub(crate) const DEV_MAJOR_DYN_EXT_END: Major = Major::new(384);
28 pub fn new(data: Arc<dyn KObject>) -> Self { in new() method
39 Self(SpinLock::new(KObjMap::default())) in default()
49 Self(vec![BTreeMap::new(); KOBJMAP_HASH_SIZE]) in default()
73 DeviceNumber::new(dev_t.major(), dev_t.minor() + i as u32), in kobj_map()
74 Probe::new(data.clone()), in kobj_map()
93 let rm_dev_t = &DeviceNumber::new(dev_t.major(), dev_t.minor() + i as u32); in kobj_unmap()
125 LockedDevsMap(SpinLock::new(DevsMap::default())) in default()
142 DevsMap(vec![Vec::new(); DEV_MAJOR_HASH_SIZE as usize]) in default()
178 pub fn new(dev_t: DeviceNumber, minorct: u32, name: &'static str) -> Self { in new() method