Searched refs:tb_tunnel (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/thunderbolt/ |
| H A D | tunnel.h | 73 struct tb_tunnel { struct 79 int (*pre_activate)(struct tb_tunnel *tunnel); argument 80 int (*activate)(struct tb_tunnel *tunnel, bool activate); argument 81 void (*post_deactivate)(struct tb_tunnel *tunnel); argument 82 void (*destroy)(struct tb_tunnel *tunnel); argument 83 int (*maximum_bandwidth)(struct tb_tunnel *tunnel, int *max_up, argument 85 int (*allocated_bandwidth)(struct tb_tunnel *tunnel, int *allocated_up, argument 87 int (*alloc_bandwidth)(struct tb_tunnel *tunnel, int *alloc_up, argument 89 int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up, argument 91 int (*release_unused_bandwidth)(struct tb_tunnel *tunnel); argument [all …]
|
| H A D | tunnel.c | 115 /* Synchronizes kref_get()/put() of struct tb_tunnel */ 182 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc() 185 struct tb_tunnel *tunnel; in tb_tunnel_alloc() 201 static void tb_tunnel_get(struct tb_tunnel *tunnel) in tb_tunnel_get() 210 struct tb_tunnel *tunnel = container_of(kref, typeof(*tunnel), kref); in tb_tunnel_destroy() 224 void tb_tunnel_put(struct tb_tunnel *tunnel) in tb_tunnel_put() 278 static inline void tb_tunnel_set_active(struct tb_tunnel *tunnel, bool active) in tb_tunnel_set_active() 291 static inline void tb_tunnel_changed(struct tb_tunnel *tunnel) in tb_tunnel_changed() 316 static int tb_pci_pre_activate(struct tb_tunnel *tunnel) in tb_pci_pre_activate() 331 static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunne in tb_pci_set_ext_encapsulation() 1605 tb_tunnel_discover_dp(struct tb * tb,struct tb_port * in,bool alloc_hopid,void (* callback)(struct tb_tunnel *,void *),void * callback_data) tb_tunnel_discover_dp() argument 1716 tb_tunnel_alloc_dp(struct tb * tb,struct tb_port * in,struct tb_port * out,int link_nr,int max_up,int max_down,void (* callback)(struct tb_tunnel *,void *),void * callback_data) tb_tunnel_alloc_dp() argument [all...] |
| H A D | tb.c | 93 static void tb_dp_tunnel_active(struct tb_tunnel *tunnel, void *data); 177 struct tb_tunnel *tunnel; in tb_discover_dp_resources() 190 const struct tb_tunnel *tunnel; in tb_enable_clx() 283 static void tb_increase_tmu_accuracy(struct tb_tunnel *tunnel) in tb_increase_tmu_accuracy() 386 struct tb_tunnel *tunnel = NULL; in tb_switch_discover_tunnels() 493 static struct tb_tunnel *tb_find_tunnel(struct tb *tb, enum tb_tunnel_type type, in tb_find_tunnel() 498 struct tb_tunnel *tunnel; in tb_find_tunnel() 511 static struct tb_tunnel *tb_find_first_usb3_tunnel(struct tb *tb, in tb_find_first_usb3_tunnel() 562 struct tb_tunnel *tunnel; in tb_consumed_usb3_pcie_bandwidth() 617 struct tb_tunnel *tunne in tb_consumed_dp_bandwidth() [all...] |
| H A D | test.c | 1358 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_pcie() 1410 static void tb_test_dp_tunnel_active(struct tb_tunnel *tunnel, void *data) in tb_test_dp_tunnel_active() 1418 struct tb_tunnel *tunnel; in tb_test_tunnel_dp() 1457 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_chain() 1504 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_tree() 1556 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_max_length() 1636 struct tb_tunnel *tunnel1, *tunnel2, *tunnel3; in tb_test_tunnel_3dp() 1704 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_usb3() 1760 struct tb_tunnel *dp_tunnel; in tb_test_tunnel_port_on_path() 1826 struct tb_tunnel *tunnel; in tb_test_tunnel_dma() [all …]
|