Lines Matching refs:usize

56         count: usize,                             // 读取lba的数量  in read_at()  argument
58 ) -> Result<usize, SystemError> { in read_at() argument
61 if count * 512 > buf.len() || check_length > u16::MAX as usize { in read_at()
81 volatile_read!(port.clb) as usize in read_at()
82 + slot as usize * size_of::<HbaCmdHeader>() as usize, in read_at()
98 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
118 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()
123 (phys_2_virt(volatile_read!(cmdheader.ctba) as usize) as *mut HbaCmdTable) in read_at()
135 for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) { in read_at()
144 let las = (volatile_read!(cmdheader.prdtl) - 1) as usize; in read_at()
155 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
215 count: usize, in write_at() argument
217 ) -> Result<usize, SystemError> { in write_at() argument
220 if count * 512 > buf.len() || check_length > u16::MAX as usize { in write_at()
241 volatile_read!(port.clb) as usize in write_at()
242 + slot as usize * size_of::<HbaCmdHeader>() as usize, in write_at()
260 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
279 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()
284 (phys_2_virt(volatile_read!(cmdheader.ctba) as usize) as *mut HbaCmdTable) in write_at()
297 for i in 0..((volatile_read!(cmdheader.prdtl) - 1) as usize) { in write_at()
306 let las = (volatile_read!(cmdheader.prdtl) - 1) as usize; in write_at()
317 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in write_at()
453 count: usize, in read_at() argument
455 ) -> Result<usize, SystemError> { in read_at() argument
467 count: usize, in write_at() argument
469 ) -> Result<usize, SystemError> { in write_at() argument
482 fn block_size(&self) -> usize { in block_size() argument