Lines Matching refs:new
32 pub fn new(id_vec: Vec<&'static str>) -> CompatibleTable { in new() method
59 pub fn new() -> LockedPlatformBusDriver { in new() method
60 LockedPlatformBusDriver(SpinLock::new(PlatformBusDriver::new())) in new()
69 CompatibleTable::new(vec!["platform"]) in get_compatible_table()
220 pub fn new() -> Self { in new() method
222 drivers: BTreeMap::new(), in new()
223 devices: BTreeMap::new(), in new()
238 IdTable::new("PlatformBusDriver", 0) in id_table()
274 pub fn new() -> LockedPlatform { in new() method
275 LockedPlatform(SpinLock::new(Platform::new())) in new()
284 CompatibleTable::new(vec!["platform"]) in compatible_table()
342 pub fn new() -> Self { in new() method
362 IdTable::new("platform", 0) in id_table()
390 let platform_driver: Arc<LockedPlatformBusDriver> = Arc::new(LockedPlatformBusDriver::new()); in platform_bus_init()
391 let platform_device: Arc<LockedPlatform> = Arc::new(LockedPlatform::new()); in platform_bus_init()