Lines Matching full:hop

205 static int tb_pci_init_credits(struct tb_path_hop *hop)  in tb_pci_init_credits()  argument
207 struct tb_port *port = hop->in_port; in tb_pci_init_credits()
228 hop->initial_credits = credits; in tb_pci_init_credits()
234 struct tb_path_hop *hop; in tb_pci_init_path() local
244 tb_path_for_each_hop(path, hop) { in tb_pci_init_path()
247 ret = tb_pci_init_credits(hop); in tb_pci_init_path()
1205 static void tb_dp_init_aux_credits(struct tb_path_hop *hop) in tb_dp_init_aux_credits() argument
1207 struct tb_port *port = hop->in_port; in tb_dp_init_aux_credits()
1211 hop->initial_credits = sw->min_dp_aux_credits; in tb_dp_init_aux_credits()
1213 hop->initial_credits = 1; in tb_dp_init_aux_credits()
1218 struct tb_path_hop *hop; in tb_dp_init_aux_path() local
1227 tb_path_for_each_hop(path, hop) in tb_dp_init_aux_path()
1228 tb_dp_init_aux_credits(hop); in tb_dp_init_aux_path()
1231 static int tb_dp_init_video_credits(struct tb_path_hop *hop) in tb_dp_init_video_credits() argument
1233 struct tb_port *port = hop->in_port; in tb_dp_init_video_credits()
1252 hop->nfc_credits = sw->min_dp_main_credits; in tb_dp_init_video_credits()
1254 hop->nfc_credits = min(port->total_credits - 2, 12U); in tb_dp_init_video_credits()
1262 struct tb_path_hop *hop; in tb_dp_init_video_path() local
1271 tb_path_for_each_hop(path, hop) { in tb_dp_init_video_path()
1274 ret = tb_dp_init_video_credits(hop); in tb_dp_init_video_path()
1501 static int tb_dma_reserve_credits(struct tb_path_hop *hop, unsigned int credits) in tb_dma_reserve_credits() argument
1503 struct tb_port *port = hop->in_port; in tb_dma_reserve_credits()
1529 hop->initial_credits = credits; in tb_dma_reserve_credits()
1536 struct tb_path_hop *hop; in tb_dma_init_rx_path() local
1552 hop = &path->hops[0]; in tb_dma_init_rx_path()
1553 tmp = min(tb_usable_credits(hop->in_port), credits); in tb_dma_init_rx_path()
1554 hop->initial_credits = tmp; in tb_dma_init_rx_path()
1555 hop->in_port->dma_credits += tmp; in tb_dma_init_rx_path()
1571 struct tb_path_hop *hop; in tb_dma_init_tx_path() local
1581 tb_path_for_each_hop(path, hop) { in tb_dma_init_tx_path()
1584 ret = tb_dma_reserve_credits(hop, credits); in tb_dma_init_tx_path()
1592 static void tb_dma_release_credits(struct tb_path_hop *hop) in tb_dma_release_credits() argument
1594 struct tb_port *port = hop->in_port; in tb_dma_release_credits()
1597 port->dma_credits -= hop->initial_credits; in tb_dma_release_credits()
1600 hop->initial_credits); in tb_dma_release_credits()
1606 struct tb_path_hop *hop; in tb_dma_deinit_path() local
1608 tb_path_for_each_hop(path, hop) in tb_dma_deinit_path()
1609 tb_dma_release_credits(hop); in tb_dma_deinit_path()
1900 static void tb_usb3_init_credits(struct tb_path_hop *hop) in tb_usb3_init_credits() argument
1902 struct tb_port *port = hop->in_port; in tb_usb3_init_credits()
1915 hop->initial_credits = credits; in tb_usb3_init_credits()
1920 struct tb_path_hop *hop; in tb_usb3_init_path() local
1930 tb_path_for_each_hop(path, hop) in tb_usb3_init_path()
1931 tb_usb3_init_credits(hop); in tb_usb3_init_path()
2005 * hop tunnel. in tb_tunnel_discover_usb3()