Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/disk/ahci/
H A Dahcidisk.rs97 let cmdheader: &mut HbaCmdHeader = unsafe { in read_at() localVariable
107 cmdheader.cfl = (size_of::<FisRegH2D>() / size_of::<u32>()) as u8; in read_at()
109 volatile_set_bit!(cmdheader.cfl, 1 << 6, false); // Read/Write bit : Read from device in read_at()
110 volatile_write!(cmdheader.prdtl, check_length as u16); // PRDT entries count in read_at()
132 (MMArch::phys_2_virt(PhysAddr::new(volatile_read!(cmdheader.ctba) as usize)) in read_at()
147 for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) { in read_at()
159 let las = (volatile_read!(cmdheader.prdtl) - 1) as usize; in read_at()
254 let cmdheader: &mut HbaCmdHeader = unsafe { in write_at() localVariable
266 cmdheader.cfl, in write_at()
271 …volatile_set_bit!(cmdheader.cfl, 7 << 5, true); // (p,c,w)都设置为1, Read/Write bit : Write from devi… in write_at()
[all …]