Lines Matching refs:volatile_write

70         volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits  in read_at()
95 volatile_write!(cmdheader.prdtl, check_length as u16); // PRDT entries count in read_at()
136 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
145 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
159 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in read_at()
161 volatile_write!(cmdfis.command, ATA_CMD_READ_DMA_EXT); 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()
173 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in read_at()
229 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in write_at()
256 volatile_write!(cmdheader.prdtl, check_length as u16); // PRDT entries count in write_at()
298 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
307 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in write_at()
321 volatile_write!(cmdfis.fis_type, FisType::RegH2D as u8); in write_at()
323 volatile_write!(cmdfis.command, ATA_CMD_WRITE_DMA_EXT); 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()
335 volatile_write!(cmdfis.device, 1 << 6); // LBA Mode in write_at()