Lines Matching full:hop
202 static int tb_pci_init_credits(struct tb_path_hop *hop) in tb_pci_init_credits() argument
204 struct tb_port *port = hop->in_port; in tb_pci_init_credits()
225 hop->initial_credits = credits; in tb_pci_init_credits()
231 struct tb_path_hop *hop; in tb_pci_init_path() local
241 tb_path_for_each_hop(path, hop) { in tb_pci_init_path()
244 ret = tb_pci_init_credits(hop); in tb_pci_init_path()
1164 static void tb_dp_init_aux_credits(struct tb_path_hop *hop) in tb_dp_init_aux_credits() argument
1166 struct tb_port *port = hop->in_port; in tb_dp_init_aux_credits()
1170 hop->initial_credits = sw->min_dp_aux_credits; in tb_dp_init_aux_credits()
1172 hop->initial_credits = 1; in tb_dp_init_aux_credits()
1177 struct tb_path_hop *hop; in tb_dp_init_aux_path() local
1186 tb_path_for_each_hop(path, hop) in tb_dp_init_aux_path()
1187 tb_dp_init_aux_credits(hop); in tb_dp_init_aux_path()
1190 static int tb_dp_init_video_credits(struct tb_path_hop *hop) in tb_dp_init_video_credits() argument
1192 struct tb_port *port = hop->in_port; in tb_dp_init_video_credits()
1211 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
1213 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
1221 struct tb_path_hop *hop; in tb_dp_init_video_path() local
1230 tb_path_for_each_hop(path, hop) { in tb_dp_init_video_path()
1233 ret = tb_dp_init_video_credits(hop); in tb_dp_init_video_path()
1458 static int tb_dma_reserve_credits(struct tb_path_hop *hop, unsigned int credits) in tb_dma_reserve_credits() argument
1460 struct tb_port *port = hop->in_port; in tb_dma_reserve_credits()
1486 hop->initial_credits = credits; in tb_dma_reserve_credits()
1493 struct tb_path_hop *hop; in tb_dma_init_rx_path() local
1509 hop = &path->hops[0]; in tb_dma_init_rx_path()
1510 tmp = min(tb_usable_credits(hop->in_port), credits); in tb_dma_init_rx_path()
1511 hop->initial_credits = tmp; in tb_dma_init_rx_path()
1512 hop->in_port->dma_credits += tmp; in tb_dma_init_rx_path()
1528 struct tb_path_hop *hop; in tb_dma_init_tx_path() local
1538 tb_path_for_each_hop(path, hop) { in tb_dma_init_tx_path()
1541 ret = tb_dma_reserve_credits(hop, credits); in tb_dma_init_tx_path()
1549 static void tb_dma_release_credits(struct tb_path_hop *hop) in tb_dma_release_credits() argument
1551 struct tb_port *port = hop->in_port; in tb_dma_release_credits()
1554 port->dma_credits -= hop->initial_credits; in tb_dma_release_credits()
1557 hop->initial_credits); in tb_dma_release_credits()
1563 struct tb_path_hop *hop; in tb_dma_deinit_path() local
1565 tb_path_for_each_hop(path, hop) in tb_dma_deinit_path()
1566 tb_dma_release_credits(hop); in tb_dma_deinit_path()
1848 static void tb_usb3_init_credits(struct tb_path_hop *hop) in tb_usb3_init_credits() argument
1850 struct tb_port *port = hop->in_port; in tb_usb3_init_credits()
1863 hop->initial_credits = credits; in tb_usb3_init_credits()
1868 struct tb_path_hop *hop; in tb_usb3_init_path() local
1878 tb_path_for_each_hop(path, hop) in tb_usb3_init_path()
1879 tb_usb3_init_credits(hop); in tb_usb3_init_path()
1953 * hop tunnel. in tb_tunnel_discover_usb3()