Lines Matching refs:port
68 let port = _port(self.ctrl_num, self.port_num); in read_at() localVariable
69 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in read_at()
71 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in read_at()
80 volatile_read!(port.clb) as usize in read_at()
156 while (volatile_read!(port.tfd) as u8 & (ATA_DEV_BUSY | ATA_DEV_DRQ)) > 0 in read_at()
167 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in read_at()
171 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in read_at()
174 if (volatile_read!(port.is) & HBA_PxIS_TFES) > 0 { in read_at()
200 let port = _port(self.ctrl_num, self.port_num); in write_at() localVariable
202 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in write_at()
204 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in write_at()
214 volatile_read!(port.clb) as usize in write_at()
289 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in write_at()
293 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in write_at()
296 if (volatile_read!(port.is) & HBA_PxIS_TFES) > 0 { in write_at()