Lines Matching full:hop
158 static void tb_init_pm_support(struct tb_path_hop *hop) in tb_init_pm_support() argument
160 struct tb_port *out_port = hop->out_port; in tb_init_pm_support()
161 struct tb_port *in_port = hop->in_port; in tb_init_pm_support()
165 hop->pm_support = true; in tb_init_pm_support()
287 static int tb_pci_init_credits(struct tb_path_hop *hop) in tb_pci_init_credits() argument
289 struct tb_port *port = hop->in_port; in tb_pci_init_credits()
310 hop->initial_credits = credits; in tb_pci_init_credits()
316 struct tb_path_hop *hop; in tb_pci_init_path() local
326 tb_path_for_each_hop(path, hop) { in tb_pci_init_path()
329 ret = tb_pci_init_credits(hop); in tb_pci_init_path()
1343 static void tb_dp_init_aux_credits(struct tb_path_hop *hop) in tb_dp_init_aux_credits() argument
1345 struct tb_port *port = hop->in_port; in tb_dp_init_aux_credits()
1349 hop->initial_credits = sw->min_dp_aux_credits; in tb_dp_init_aux_credits()
1351 hop->initial_credits = 1; in tb_dp_init_aux_credits()
1356 struct tb_path_hop *hop; in tb_dp_init_aux_path() local
1365 tb_path_for_each_hop(path, hop) { in tb_dp_init_aux_path()
1366 tb_dp_init_aux_credits(hop); in tb_dp_init_aux_path()
1368 tb_init_pm_support(hop); in tb_dp_init_aux_path()
1372 static int tb_dp_init_video_credits(struct tb_path_hop *hop) in tb_dp_init_video_credits() argument
1374 struct tb_port *port = hop->in_port; in tb_dp_init_video_credits()
1393 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
1395 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
1403 struct tb_path_hop *hop; in tb_dp_init_video_path() local
1412 tb_path_for_each_hop(path, hop) { in tb_dp_init_video_path()
1415 ret = tb_dp_init_video_credits(hop); in tb_dp_init_video_path()
1419 tb_init_pm_support(hop); in tb_dp_init_video_path()
1656 static int tb_dma_reserve_credits(struct tb_path_hop *hop, unsigned int credits) in tb_dma_reserve_credits() argument
1658 struct tb_port *port = hop->in_port; in tb_dma_reserve_credits()
1684 hop->initial_credits = credits; in tb_dma_reserve_credits()
1691 struct tb_path_hop *hop; in tb_dma_init_rx_path() local
1707 hop = &path->hops[0]; in tb_dma_init_rx_path()
1708 tmp = min(tb_usable_credits(hop->in_port), credits); in tb_dma_init_rx_path()
1709 hop->initial_credits = tmp; in tb_dma_init_rx_path()
1710 hop->in_port->dma_credits += tmp; in tb_dma_init_rx_path()
1726 struct tb_path_hop *hop; in tb_dma_init_tx_path() local
1736 tb_path_for_each_hop(path, hop) { in tb_dma_init_tx_path()
1739 ret = tb_dma_reserve_credits(hop, credits); in tb_dma_init_tx_path()
1747 static void tb_dma_release_credits(struct tb_path_hop *hop) in tb_dma_release_credits() argument
1749 struct tb_port *port = hop->in_port; in tb_dma_release_credits()
1752 port->dma_credits -= hop->initial_credits; in tb_dma_release_credits()
1755 hop->initial_credits); in tb_dma_release_credits()
1761 struct tb_path_hop *hop; in tb_dma_destroy_path() local
1763 tb_path_for_each_hop(path, hop) in tb_dma_destroy_path()
1764 tb_dma_release_credits(hop); in tb_dma_destroy_path()
2048 static void tb_usb3_init_credits(struct tb_path_hop *hop) in tb_usb3_init_credits() argument
2050 struct tb_port *port = hop->in_port; in tb_usb3_init_credits()
2063 hop->initial_credits = credits; in tb_usb3_init_credits()
2068 struct tb_path_hop *hop; in tb_usb3_init_path() local
2078 tb_path_for_each_hop(path, hop) in tb_usb3_init_path()
2079 tb_usb3_init_credits(hop); in tb_usb3_init_path()
2153 * hop tunnel. in tb_tunnel_discover_usb3()