Lines Matching refs:u8

31     pub ctrl_num: u8,
32 pub port_num: u8,
57 buf: &mut [u8], in read_at() argument
90 (1 << 5) - 1 as u8, in read_at()
91 (size_of::<FisRegH2D>() / size_of::<u32>()) as u8 in read_at()
98 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
108 let mut x: Vec<u8> = Vec::with_capacity(buf.len()); in read_at()
155 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
159 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
163 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at()
164 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at()
165 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at()
166 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at()
167 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in read_at()
168 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in read_at()
170 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in read_at()
171 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in read_at()
179 while (volatile_read!(port.tfd) as u8 & (ATA_DEV_BUSY | ATA_DEV_DRQ)) > 0 in read_at()
216 buf: &[u8], in write_at() argument
251 (1 << 5) - 1 as u8, in write_at()
252 (size_of::<FisRegH2D>() / size_of::<u32>()) as u8 in write_at()
260 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
270 let mut x: Vec<u8> = Vec::with_capacity(buf.len()); in write_at()
317 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in write_at()
321 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in write_at()
325 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in write_at()
326 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in write_at()
327 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in write_at()
328 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in write_at()
329 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in write_at()
330 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in write_at()
332 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in write_at()
333 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in write_at()
365 ctrl_num: u8, in new() argument
366 port_num: u8, in new() argument
406 let mut buf: Vec<u8> = Vec::new(); in read_mbr_table()
445 fn blk_size_log2(&self) -> u8 { in blk_size_log2() argument
454 buf: &mut [u8], in read_at() argument
468 buf: &[u8], in write_at() argument