Lines Matching refs:port_stat

836 static inline void mtip_process_legacy(struct driver_data *dd, u32 port_stat)  in mtip_process_legacy()  argument
856 static inline void mtip_process_errors(struct driver_data *dd, u32 port_stat) in mtip_process_errors() argument
859 if (unlikely(port_stat & PORT_IRQ_CONNECT)) { in mtip_process_errors()
865 if (unlikely(port_stat & PORT_IRQ_PHYRDY)) { in mtip_process_errors()
871 if (unlikely(port_stat & ~PORT_IRQ_HANDLED)) { in mtip_process_errors()
874 (port_stat & ~PORT_IRQ_HANDLED)); in mtip_process_errors()
878 if (likely(port_stat & (PORT_IRQ_TF_ERR | PORT_IRQ_IF_ERR))) { in mtip_process_errors()
888 u32 hba_stat, port_stat; in mtip_handle_irq() local
898 port_stat = readl(port->mmio + PORT_IRQ_STAT); in mtip_handle_irq()
899 if (unlikely(port_stat == 0xFFFFFFFF)) { in mtip_handle_irq()
903 writel(port_stat, port->mmio + PORT_IRQ_STAT); in mtip_handle_irq()
906 if (likely(port_stat & PORT_IRQ_SDB_FIS)) { in mtip_handle_irq()
943 if (unlikely(port_stat & PORT_IRQ_ERR)) { in mtip_handle_irq()
952 mtip_process_errors(dd, port_stat & PORT_IRQ_ERR); in mtip_handle_irq()
955 if (unlikely(port_stat & PORT_IRQ_LEGACY)) in mtip_handle_irq()
956 mtip_process_legacy(dd, port_stat & PORT_IRQ_LEGACY); in mtip_handle_irq()
1211 u32 hba_stat, port_stat; in mtip_exec_internal_command() local
1228 port_stat = readl(port->mmio + PORT_IRQ_STAT); in mtip_exec_internal_command()
1229 if (!port_stat) in mtip_exec_internal_command()
1232 if (port_stat & PORT_IRQ_ERR) { in mtip_exec_internal_command()
1240 writel(port_stat, port->mmio + PORT_IRQ_STAT); in mtip_exec_internal_command()