Lines Matching refs:u8

30     pub ctrl_num: u8,
31 pub port_num: u8,
56 buf: &mut [u8], in read_at() argument
89 (1 << 5) - 1 as u8, in read_at()
90 (size_of::<FisRegH2D>() / size_of::<u32>()) as u8 in read_at()
97 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
132 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in read_at()
136 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
140 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in read_at()
141 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in read_at()
142 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in read_at()
143 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in read_at()
144 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in read_at()
145 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in read_at()
147 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in read_at()
148 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in read_at()
156 while (volatile_read!(port.tfd) as u8 & (ATA_DEV_BUSY | ATA_DEV_DRQ)) > 0 in read_at()
189 buf: &[u8], in write_at() argument
224 (1 << 5) - 1 as u8, in write_at()
225 (size_of::<FisRegH2D>() / size_of::<u32>()) as u8 in write_at()
233 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
269 ((&mut cmdtbl.cfis) as *mut [u8] as *mut usize as *mut FisRegH2D) in write_at()
273 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in write_at()
277 volatile_write!(cmdfis.lba0, (lba_id_start & 0xFF) as u8); in write_at()
278 volatile_write!(cmdfis.lba1, ((lba_id_start >> 8) & 0xFF) as u8); in write_at()
279 volatile_write!(cmdfis.lba2, ((lba_id_start >> 16) & 0xFF) as u8); in write_at()
280 volatile_write!(cmdfis.lba3, ((lba_id_start >> 24) & 0xFF) as u8); in write_at()
281 volatile_write!(cmdfis.lba4, ((lba_id_start >> 32) & 0xFF) as u8); in write_at()
282 volatile_write!(cmdfis.lba5, ((lba_id_start >> 40) & 0xFF) as u8); in write_at()
284 volatile_write!(cmdfis.countl, (count & 0xFF) as u8); in write_at()
285 volatile_write!(cmdfis.counth, ((count >> 8) & 0xFF) as u8); in write_at()
317 ctrl_num: u8, in new() argument
318 port_num: u8, in new() argument
358 let mut buf: Vec<u8> = Vec::new(); in read_mbr_table()
397 fn blk_size_log2(&self) -> u8 { in blk_size_log2() argument
406 buf: &mut [u8], in read_at() argument
420 buf: &[u8], in write_at() argument