Lines Matching refs:ntb_cntl
631 u32 ntb_cntl; in ntb_link_status() local
633 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); in ntb_link_status()
634 if (ntb_cntl & BWD_CNTL_LINK_DOWN) in ntb_link_status()
1555 u32 ntb_cntl; in ntb_hw_link_up() local
1558 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); in ntb_hw_link_up()
1559 ntb_cntl &= ~(NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK); in ntb_hw_link_up()
1560 ntb_cntl |= NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP; in ntb_hw_link_up()
1561 ntb_cntl |= NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP; in ntb_hw_link_up()
1563 ntb_cntl |= NTB_CNTL_P2S_BAR5_SNOOP | in ntb_hw_link_up()
1566 writel(ntb_cntl, ndev->reg_ofs.lnk_cntl); in ntb_hw_link_up()
1572 u32 ntb_cntl; in ntb_hw_link_down() local
1580 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); in ntb_hw_link_down()
1581 ntb_cntl &= ~(NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP); in ntb_hw_link_down()
1582 ntb_cntl &= ~(NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP); in ntb_hw_link_down()
1584 ntb_cntl &= ~(NTB_CNTL_P2S_BAR5_SNOOP | in ntb_hw_link_down()
1586 ntb_cntl |= NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK; in ntb_hw_link_down()
1587 writel(ntb_cntl, ndev->reg_ofs.lnk_cntl); in ntb_hw_link_down()