Lines Matching refs:port_stat

827 static inline void mtip_process_legacy(struct driver_data *dd, u32 port_stat)  in mtip_process_legacy()  argument
847 static inline void mtip_process_errors(struct driver_data *dd, u32 port_stat) in mtip_process_errors() argument
850 if (unlikely(port_stat & PORT_IRQ_CONNECT)) { in mtip_process_errors()
856 if (unlikely(port_stat & PORT_IRQ_PHYRDY)) { in mtip_process_errors()
862 if (unlikely(port_stat & ~PORT_IRQ_HANDLED)) { in mtip_process_errors()
865 (port_stat & ~PORT_IRQ_HANDLED)); in mtip_process_errors()
869 if (likely(port_stat & (PORT_IRQ_TF_ERR | PORT_IRQ_IF_ERR))) { in mtip_process_errors()
879 u32 hba_stat, port_stat; in mtip_handle_irq() local
889 port_stat = readl(port->mmio + PORT_IRQ_STAT); in mtip_handle_irq()
890 if (unlikely(port_stat == 0xFFFFFFFF)) { in mtip_handle_irq()
894 writel(port_stat, port->mmio + PORT_IRQ_STAT); in mtip_handle_irq()
897 if (likely(port_stat & PORT_IRQ_SDB_FIS)) { in mtip_handle_irq()
934 if (unlikely(port_stat & PORT_IRQ_ERR)) { in mtip_handle_irq()
943 mtip_process_errors(dd, port_stat & PORT_IRQ_ERR); in mtip_handle_irq()
946 if (unlikely(port_stat & PORT_IRQ_LEGACY)) in mtip_handle_irq()
947 mtip_process_legacy(dd, port_stat & PORT_IRQ_LEGACY); in mtip_handle_irq()
1214 u32 hba_stat, port_stat; in mtip_exec_internal_command() local
1231 port_stat = readl(port->mmio + PORT_IRQ_STAT); in mtip_exec_internal_command()
1232 if (!port_stat) in mtip_exec_internal_command()
1235 if (port_stat & PORT_IRQ_ERR) { in mtip_exec_internal_command()
1243 writel(port_stat, port->mmio + PORT_IRQ_STAT); in mtip_exec_internal_command()