Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs161 let mut temp = self.clone(); in min_node() localVariable
162 while !temp.left().is_null() { in min_node()
163 temp = temp.left(); in min_node()
165 return temp; in min_node()
170 let mut temp = self.clone(); in max_node() localVariable
171 while !temp.right().is_null() { in max_node()
172 temp = temp.right(); in max_node()
174 return temp; in max_node()
182 let mut temp = self; in next() localVariable
184 if temp.parent().is_null() { in next()
[all …]
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs134 let mut temp = Vec::new(); in read_at() localVariable
135 temp.resize(1usize << self.blk_size_log2(), 0); in read_at()
136 BlockDevice::read_at(self, range.lba_start, 1, &mut temp[..])?; in read_at()
138 buf_slice.copy_from_slice(&temp[range.begin..range.end]); in read_at()
168 let mut temp = Vec::new(); in write_at() localVariable
169 temp.resize(1usize << self.blk_size_log2(), 0); in write_at()
171 BlockDevice::read_at(self, range.lba_start, 1, &mut temp[..])?; in write_at()
173 temp[range.begin..range.end].copy_from_slice(&buf_slice); in write_at()
174 BlockDevice::write_at(self, range.lba_start, 1, &temp[..])?; in write_at()
/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs114 let mut temp = NTP_INTERVAL_LENGTH << clock_data.shift; in timekeeper_setup_internals() localVariable
115 let ntpinterval = temp; in timekeeper_setup_internals()
116 temp += (clock_data.mult / 2) as u64; in timekeeper_setup_internals()
119 timekeeper.cycle_interval = CycleNum(temp); in timekeeper_setup_internals()
120 timekeeper.xtime_interval = temp * clock_data.mult as u64; in timekeeper_setup_internals()
/DragonOS-0.1.8/kernel/src/arch/x86_64/pci/
Dpci.rs24 let temp = io_in32(PORT_PCI_CONFIG_DATA); in read_config() localVariable
25 temp in read_config()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.rs389 let temp = message_control & (!0x0070); in msi_install() localVariable
393 (temp as u32) << 16, in msi_install()
397 let temp = message_control & (!0x0070); in msi_install() localVariable
401 ((temp | (0x0001 << 4)) as u32) << 16, in msi_install()
405 let temp = message_control & (!0x0070); in msi_install() localVariable
409 ((temp | (0x0002 << 4)) as u32) << 16, in msi_install()
413 let temp = message_control & (!0x0070); in msi_install() localVariable
417 ((temp | (0x0003 << 4)) as u32) << 16, in msi_install()
421 let temp = message_control & (!0x0070); in msi_install() localVariable
425 ((temp | (0x0004 << 4)) as u32) << 16, in msi_install()
[all …]
/DragonOS-0.1.8/docs/kernel/locking/
Drwlock.md182 "Upgrader1 after upgrade: the value is {temp}
184 temp = *upgraded_guard