Lines Matching full:hop

159 static int tb_pci_init_credits(struct tb_path_hop *hop)  in tb_pci_init_credits()  argument
161 struct tb_port *port = hop->in_port; in tb_pci_init_credits()
182 hop->initial_credits = credits; in tb_pci_init_credits()
188 struct tb_path_hop *hop; in tb_pci_init_path() local
198 tb_path_for_each_hop(path, hop) { in tb_pci_init_path()
201 ret = tb_pci_init_credits(hop); in tb_pci_init_path()
698 static void tb_dp_init_aux_credits(struct tb_path_hop *hop) in tb_dp_init_aux_credits() argument
700 struct tb_port *port = hop->in_port; in tb_dp_init_aux_credits()
704 hop->initial_credits = sw->min_dp_aux_credits; in tb_dp_init_aux_credits()
706 hop->initial_credits = 1; in tb_dp_init_aux_credits()
711 struct tb_path_hop *hop; in tb_dp_init_aux_path() local
720 tb_path_for_each_hop(path, hop) in tb_dp_init_aux_path()
721 tb_dp_init_aux_credits(hop); in tb_dp_init_aux_path()
724 static int tb_dp_init_video_credits(struct tb_path_hop *hop) in tb_dp_init_video_credits() argument
726 struct tb_port *port = hop->in_port; in tb_dp_init_video_credits()
745 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
747 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
755 struct tb_path_hop *hop; in tb_dp_init_video_path() local
764 tb_path_for_each_hop(path, hop) { in tb_dp_init_video_path()
767 ret = tb_dp_init_video_credits(hop); in tb_dp_init_video_path()
941 static int tb_dma_reserve_credits(struct tb_path_hop *hop, unsigned int credits) in tb_dma_reserve_credits() argument
943 struct tb_port *port = hop->in_port; in tb_dma_reserve_credits()
969 hop->initial_credits = credits; in tb_dma_reserve_credits()
976 struct tb_path_hop *hop; in tb_dma_init_rx_path() local
992 hop = &path->hops[0]; in tb_dma_init_rx_path()
993 tmp = min(tb_usable_credits(hop->in_port), credits); in tb_dma_init_rx_path()
994 hop->initial_credits = tmp; in tb_dma_init_rx_path()
995 hop->in_port->dma_credits += tmp; in tb_dma_init_rx_path()
1011 struct tb_path_hop *hop; in tb_dma_init_tx_path() local
1021 tb_path_for_each_hop(path, hop) { in tb_dma_init_tx_path()
1024 ret = tb_dma_reserve_credits(hop, credits); in tb_dma_init_tx_path()
1032 static void tb_dma_release_credits(struct tb_path_hop *hop) in tb_dma_release_credits() argument
1034 struct tb_port *port = hop->in_port; in tb_dma_release_credits()
1037 port->dma_credits -= hop->initial_credits; in tb_dma_release_credits()
1040 hop->initial_credits); in tb_dma_release_credits()
1046 struct tb_path_hop *hop; in tb_dma_deinit_path() local
1048 tb_path_for_each_hop(path, hop) in tb_dma_deinit_path()
1049 tb_dma_release_credits(hop); in tb_dma_deinit_path()
1327 static void tb_usb3_init_credits(struct tb_path_hop *hop) in tb_usb3_init_credits() argument
1329 struct tb_port *port = hop->in_port; in tb_usb3_init_credits()
1342 hop->initial_credits = credits; in tb_usb3_init_credits()
1347 struct tb_path_hop *hop; in tb_usb3_init_path() local
1357 tb_path_for_each_hop(path, hop) in tb_usb3_init_path()
1358 tb_usb3_init_credits(hop); in tb_usb3_init_path()
1432 * hop tunnel. in tb_tunnel_discover_usb3()