Lines Matching refs:cmdheader
97 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()
272 volatile_write!(cmdheader.prdtl, check_length as u16); // PRDT entries count in write_at()
296 (MMArch::phys_2_virt(PhysAddr::new(volatile_read!(cmdheader.ctba) as usize)) in write_at()
311 for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) { in write_at()
323 let las = (volatile_read!(cmdheader.prdtl) - 1) as usize; in write_at()