Lines Matching refs:u8
43 pub ctrl_num: u8,
44 pub port_num: u8,
74 buf: &mut [u8], in read_at() argument
107 cmdheader.cfl = (size_of::<FisRegH2D>() / size_of::<u32>()) as u8; in read_at()
113 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
120 let x: Vec<u8> = vec![0; buf.len()]; in read_at()
170 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
174 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
178 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at()
179 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at()
180 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at()
181 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at()
182 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in read_at()
183 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in read_at()
185 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in read_at()
186 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in read_at()
194 while (volatile_read!(port.tfd) as u8 & (ATA_DEV_BUSY | ATA_DEV_DRQ)) > 0 in read_at()
230 buf: &[u8], in write_at() argument
268 (size_of::<FisRegH2D>() / size_of::<u32>()) as u8 in write_at()
276 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
282 let mut x: Vec<u8> = vec![0; buf.len()]; in write_at()
337 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in write_at()
341 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in write_at()
345 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in write_at()
346 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in write_at()
347 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in write_at()
348 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in write_at()
349 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in write_at()
350 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in write_at()
352 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in write_at()
353 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in write_at()
382 pub fn new(ctrl_num: u8, port_num: u8) -> Result<Arc<LockedAhciDisk>, SystemError> { in new() argument
541 fn blk_size_log2(&self) -> u8 { in blk_size_log2() argument
567 buf: &mut [u8], in read_at_sync() argument
577 buf: &[u8], in write_at_sync() argument