Lines Matching refs:pnum
574 int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock) in rio_set_port_lockout() argument
579 rdev->phys_efptr + RIO_PORT_N_CTL_CSR(pnum), in rio_set_port_lockout()
587 rdev->phys_efptr + RIO_PORT_N_CTL_CSR(pnum), in rio_set_port_lockout()
739 rio_get_input_status(struct rio_dev *rdev, int pnum, u32 *lnkresp) in rio_get_input_status() argument
748 rdev->phys_efptr + RIO_PORT_N_MNT_RSP_CSR(pnum), in rio_get_input_status()
755 rdev->phys_efptr + RIO_PORT_N_MNT_REQ_CSR(pnum), in rio_get_input_status()
766 rdev->phys_efptr + RIO_PORT_N_MNT_RSP_CSR(pnum), in rio_get_input_status()
783 static int rio_clr_err_stopped(struct rio_dev *rdev, u32 pnum, u32 err_status) in rio_clr_err_stopped() argument
785 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
791 rdev->phys_efptr + RIO_PORT_N_ERR_STS_CSR(pnum), in rio_clr_err_stopped()
799 if (rio_get_input_status(rdev, pnum, ®val)) { in rio_clr_err_stopped()
805 pnum, regval); in rio_clr_err_stopped()
809 rdev->phys_efptr + RIO_PORT_N_ACK_STS_CSR(pnum), in rio_clr_err_stopped()
811 pr_debug("RIO_EM: SP%d_ACK_STS_CSR=0x%08x\n", pnum, regval); in rio_clr_err_stopped()
815 pnum, far_ackid, far_linkstat, near_ackid); in rio_clr_err_stopped()
827 rdev->phys_efptr + RIO_PORT_N_ACK_STS_CSR(pnum), in rio_clr_err_stopped()
845 rdev->phys_efptr + RIO_PORT_N_ERR_STS_CSR(pnum), in rio_clr_err_stopped()
847 pr_debug("RIO_EM: SP%d_ERR_STS_CSR=0x%08x\n", pnum, err_status); in rio_clr_err_stopped()
857 rdev->phys_efptr + RIO_PORT_N_ERR_STS_CSR(pnum), in rio_clr_err_stopped()
859 pr_debug("RIO_EM: SP%d_ERR_STS_CSR=0x%08x\n", pnum, err_status); in rio_clr_err_stopped()