Lines Matching refs:activate
179 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate) in tb_pci_activate() argument
183 if (activate) { in tb_pci_activate()
184 res = tb_pci_set_ext_encapsulation(tunnel, activate); in tb_pci_activate()
189 res = tb_pci_port_enable(tunnel->src_port, activate); in tb_pci_activate()
194 res = tb_pci_port_enable(tunnel->dst_port, activate); in tb_pci_activate()
199 return activate ? 0 : tb_pci_set_ext_encapsulation(tunnel, activate); in tb_pci_activate()
275 tunnel->activate = tb_pci_activate; in tb_tunnel_discover_pci()
352 tunnel->activate = tb_pci_activate; in tb_tunnel_alloc_pci()
1310 tunnel->activate = tb_dp_activate; in tb_tunnel_discover_dp()
1405 tunnel->activate = tb_dp_activate; in tb_tunnel_alloc_dp()
1744 static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate) in tb_usb3_activate() argument
1748 res = tb_usb3_port_enable(tunnel->src_port, activate); in tb_usb3_activate()
1753 return tb_usb3_port_enable(tunnel->dst_port, activate); in tb_usb3_activate()
1905 tunnel->activate = tb_usb3_activate; in tb_tunnel_discover_usb3()
2029 tunnel->activate = tb_usb3_activate; in tb_tunnel_alloc_usb3()
2145 if (tunnel->activate) { in tb_tunnel_restart()
2146 res = tunnel->activate(tunnel, true); in tb_tunnel_restart()
2190 if (tunnel->activate) in tb_tunnel_deactivate()
2191 tunnel->activate(tunnel, false); in tb_tunnel_deactivate()