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