Searched refs:ntb_cntl (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/ntb/
H A Dntb_hw.c631 u32 ntb_cntl; ntb_link_status() local
633 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); ntb_link_status()
634 if (ntb_cntl & BWD_CNTL_LINK_DOWN) ntb_link_status()
1555 u32 ntb_cntl; ntb_hw_link_up() local
1558 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); ntb_hw_link_up()
1559 ntb_cntl &= ~(NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK); ntb_hw_link_up()
1560 ntb_cntl |= NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP; ntb_hw_link_up()
1561 ntb_cntl |= NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP; ntb_hw_link_up()
1563 ntb_cntl |= NTB_CNTL_P2S_BAR5_SNOOP | ntb_hw_link_up()
1566 writel(ntb_cntl, ndev->reg_ofs.lnk_cntl); ntb_hw_link_up()
1572 u32 ntb_cntl; ntb_hw_link_down() local
1580 ntb_cntl = readl(ndev->reg_ofs.lnk_cntl); ntb_hw_link_down()
1581 ntb_cntl &= ~(NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP); ntb_hw_link_down()
1582 ntb_cntl &= ~(NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP); ntb_hw_link_down()
1584 ntb_cntl &= ~(NTB_CNTL_P2S_BAR5_SNOOP | ntb_hw_link_down()
1586 ntb_cntl |= NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK; ntb_hw_link_down()
1587 writel(ntb_cntl, ndev->reg_ofs.lnk_cntl); ntb_hw_link_down()

Completed in 51 milliseconds