Lines Matching refs:cmdfis

131         let cmdfis = unsafe {  in read_at()  localVariable
136 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
137 volatile_set_bit!(cmdfis.pm, 1 << 7, true); // command_bit set in read_at()
138 volatile_write!(cmdfis.command, ATA_CMD_READ_DMA_EXT); 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()
150 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in read_at()
268 let cmdfis = unsafe { in write_at() localVariable
273 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in write_at()
274 volatile_set_bit!(cmdfis.pm, 1 << 7, true); // command_bit set in write_at()
275 volatile_write!(cmdfis.command, ATA_CMD_WRITE_DMA_EXT); 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()
287 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in write_at()