Lines Matching refs:port
87 let port = _port(self.ctrl_num, self.port_num); in read_at() localVariable
88 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in read_at()
90 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in read_at()
99 volatile_read!(port.clb) as usize + slot as usize * size_of::<HbaCmdHeader>(), in read_at()
194 while (volatile_read!(port.tfd) as u8 & (ATA_DEV_BUSY | ATA_DEV_DRQ)) > 0 in read_at()
205 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in read_at()
209 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in read_at()
212 if (volatile_read!(port.is) & HBA_PxIS_TFES) > 0 { in read_at()
242 let port = _port(self.ctrl_num, self.port_num); in write_at() localVariable
244 volatile_write!(port.is, u32::MAX); // Clear pending interrupt bits in write_at()
246 let slot = port.find_cmdslot().unwrap_or(u32::MAX); in write_at()
256 volatile_read!(port.clb) as usize + slot as usize * size_of::<HbaCmdHeader>(), in write_at()
357 volatile_set_bit!(port.ci, 1 << slot, true); // Issue command in write_at()
361 if (volatile_read!(port.ci) & (1 << slot)) == 0 { in write_at()
364 if (volatile_read!(port.is) & HBA_PxIS_TFES) > 0 { in write_at()