Lines Matching refs:cntl
2604 uint32_t cntl, ppd0, ltr; in intel_ntb4_link_enable() local
2624 cntl = NTB_CTL_E2I_BAR23_SNOOP | NTB_CTL_I2E_BAR23_SNOOP; in intel_ntb4_link_enable()
2625 cntl |= NTB_CTL_E2I_BAR45_SNOOP | NTB_CTL_I2E_BAR45_SNOOP; in intel_ntb4_link_enable()
2626 intel_ntb_reg_write(4, ntb->reg->ntb_ctl, cntl); in intel_ntb4_link_enable()
2650 uint32_t cntl; in intel_ntb_link_enable() local
2668 cntl = intel_ntb_reg_read(4, ntb->reg->ntb_ctl); in intel_ntb_link_enable()
2669 cntl &= ~(NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK); in intel_ntb_link_enable()
2670 cntl |= NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP; in intel_ntb_link_enable()
2671 cntl |= NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP; in intel_ntb_link_enable()
2673 cntl |= NTB_CNTL_P2S_BAR5_SNOOP | NTB_CNTL_S2P_BAR5_SNOOP; in intel_ntb_link_enable()
2674 intel_ntb_reg_write(4, ntb->reg->ntb_ctl, cntl); in intel_ntb_link_enable()
2682 uint32_t cntl; in intel_ntb4_link_disable() local
2686 cntl = intel_ntb_reg_read(4, ntb->reg->ntb_ctl); in intel_ntb4_link_disable()
2687 cntl &= ~(NTB_CTL_E2I_BAR23_SNOOP | NTB_CTL_I2E_BAR23_SNOOP); in intel_ntb4_link_disable()
2688 cntl &= ~(NTB_CTL_E2I_BAR45_SNOOP | NTB_CTL_I2E_BAR45_SNOOP); in intel_ntb4_link_disable()
2689 intel_ntb_reg_write(4, ntb->reg->ntb_ctl, cntl); in intel_ntb4_link_disable()
2706 uint32_t cntl; in intel_ntb_link_disable() local
2718 cntl = intel_ntb_reg_read(4, ntb->reg->ntb_ctl); in intel_ntb_link_disable()
2719 cntl &= ~(NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP); in intel_ntb_link_disable()
2720 cntl &= ~(NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP); in intel_ntb_link_disable()
2722 cntl &= ~(NTB_CNTL_P2S_BAR5_SNOOP | NTB_CNTL_S2P_BAR5_SNOOP); in intel_ntb_link_disable()
2723 cntl |= NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK; in intel_ntb_link_disable()
2724 intel_ntb_reg_write(4, ntb->reg->ntb_ctl, cntl); in intel_ntb_link_disable()
2732 uint32_t cntl; in intel_ntb_link_enabled() local
2735 cntl = pci_read_config(ntb->device, NTB_PPD_OFFSET, 4); in intel_ntb_link_enabled()
2736 return ((cntl & ATOM_PPD_INIT_LINK) != 0); in intel_ntb_link_enabled()
2743 cntl = intel_ntb_reg_read(2, XEON_GEN4_REG_LINK_CTRL); in intel_ntb_link_enabled()
2744 return ((cntl & GEN4_LINK_CTRL_LINK_DISABLE) == 0); in intel_ntb_link_enabled()
2747 cntl = intel_ntb_reg_read(4, ntb->reg->ntb_ctl); in intel_ntb_link_enabled()
2748 return ((cntl & NTB_CNTL_LINK_DISABLE) == 0); in intel_ntb_link_enabled()