Lines Matching refs:in_port

18 	const struct tb_port *port = hop->in_port;  in tb_dump_hop()
191 path->hops[i].in_port = p; in tb_path_discover()
232 struct tb_port *in_port, *out_port, *first_port, *last_port; in tb_path_alloc() local
244 tb_for_each_port_on_path(src, dst, in_port) { in tb_path_alloc()
246 first_port = in_port; in tb_path_alloc()
247 last_port = in_port; in tb_path_alloc()
270 in_port = tb_next_port_on_path(src, dst, out_port); in tb_path_alloc()
271 if (!in_port) in tb_path_alloc()
275 if (!in_port->bonded && in_port->dual_link_port && in tb_path_alloc()
276 in_port->link_nr != link_nr) in tb_path_alloc()
277 in_port = in_port->dual_link_port; in tb_path_alloc()
279 ret = tb_port_alloc_in_hopid(in_port, in_hopid, in_hopid); in tb_path_alloc()
284 out_port = tb_next_port_on_path(src, dst, in_port); in tb_path_alloc()
293 if (!in_port->bonded && out_port->bonded && in tb_path_alloc()
321 path->hops[i].in_port = in_port; in tb_path_alloc()
353 if (hop->in_port) in tb_path_free()
354 tb_port_release_in_hopid(hop->in_port, in tb_path_free()
369 res = tb_port_add_nfc_credits(path->hops[i].in_port, in __tb_path_deallocate_nfc()
372 tb_port_warn(path->hops[i].in_port, in __tb_path_deallocate_nfc()
433 res = __tb_path_deactivate_hop(path->hops[i].in_port, in __tb_path_deactivate_hops()
437 tb_port_warn(path->hops[i].in_port, in __tb_path_deactivate_hops()
451 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate()
452 path->hops[0].in_port->port, in tb_path_deactivate()
479 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate()
480 path->hops[0].in_port->port, in tb_path_activate()
488 res = tb_port_clear_counter(path->hops[i].in_port, in tb_path_activate()
496 res = tb_port_add_nfc_credits(path->hops[i].in_port, in tb_path_activate()
509 __tb_path_deactivate_hop(path->hops[i].in_port, in tb_path_activate()
537 tb_port_dbg(path->hops[i].in_port, "Writing hop %d\n", i); in tb_path_activate()
539 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in tb_path_activate()
564 if (path->hops[i].in_port->sw->is_unplugged) in tb_path_is_invalid()
585 if (path->hops[i].in_port == port || in tb_path_port_on_path()