Lines Matching refs:cntl
2116 uint32_t cntl;
2131 cntl = ntb_reg_read(4, ntb->reg->ntb_ctl);
2132 cntl &= ~(NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK);
2133 cntl |= NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP;
2134 cntl |= NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP;
2136 cntl |= NTB_CNTL_P2S_BAR5_SNOOP | NTB_CNTL_S2P_BAR5_SNOOP;
2137 ntb_reg_write(4, ntb->reg->ntb_ctl, cntl);
2156 uint32_t cntl;
2165 cntl = ntb_reg_read(4, ntb->reg->ntb_ctl);
2166 cntl &= ~(NTB_CNTL_P2S_BAR23_SNOOP | NTB_CNTL_S2P_BAR23_SNOOP);
2167 cntl &= ~(NTB_CNTL_P2S_BAR4_SNOOP | NTB_CNTL_S2P_BAR4_SNOOP);
2169 cntl &= ~(NTB_CNTL_P2S_BAR5_SNOOP | NTB_CNTL_S2P_BAR5_SNOOP);
2170 cntl |= NTB_CNTL_LINK_DISABLE | NTB_CNTL_CFG_LOCK;
2171 ntb_reg_write(4, ntb->reg->ntb_ctl, cntl);
2178 uint32_t cntl;
2181 cntl = pci_read_config(ntb->device, NTB_PPD_OFFSET, 4);
2182 return ((cntl & ATOM_PPD_INIT_LINK) != 0);
2188 cntl = ntb_reg_read(4, ntb->reg->ntb_ctl);
2189 return ((cntl & NTB_CNTL_LINK_DISABLE) == 0);