Lines Matching refs:in_port
18 const struct tb_port *port = hop->in_port; in tb_dump_hop()
198 path->hops[i].in_port = p; in tb_path_discover()
242 struct tb_port *in_port, *out_port, *first_port, *last_port; in tb_path_alloc() local
254 tb_for_each_port_on_path(src, dst, in_port) { in tb_path_alloc()
256 first_port = in_port; in tb_path_alloc()
257 last_port = in_port; in tb_path_alloc()
282 in_port = tb_next_port_on_path(src, dst, out_port); in tb_path_alloc()
283 if (!in_port) in tb_path_alloc()
287 if (!in_port->bonded && in_port->dual_link_port && in tb_path_alloc()
288 in_port->link_nr != link_nr) in tb_path_alloc()
289 in_port = in_port->dual_link_port; in tb_path_alloc()
291 ret = tb_port_alloc_in_hopid(in_port, in_hopid, in_hopid); in tb_path_alloc()
296 out_port = tb_next_port_on_path(src, dst, in_port); in tb_path_alloc()
305 if (!in_port->bonded && out_port->bonded && in tb_path_alloc()
333 path->hops[i].in_port = in_port; in tb_path_alloc()
366 if (hop->in_port) in tb_path_free()
367 tb_port_release_in_hopid(hop->in_port, in tb_path_free()
383 res = tb_port_add_nfc_credits(path->hops[i].in_port, in __tb_path_deallocate_nfc()
386 tb_port_warn(path->hops[i].in_port, in __tb_path_deallocate_nfc()
454 res = __tb_path_deactivate_hop(path->hops[i].in_port, in __tb_path_deactivate_hops()
458 tb_port_warn(path->hops[i].in_port, in __tb_path_deactivate_hops()
472 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_deactivate()
473 path->hops[0].in_port->port, in tb_path_deactivate()
501 path->name, tb_route(path->hops[0].in_port->sw), in tb_path_activate()
502 path->hops[0].in_port->port, in tb_path_activate()
510 res = tb_port_clear_counter(path->hops[i].in_port, in tb_path_activate()
518 res = tb_port_add_nfc_credits(path->hops[i].in_port, in tb_path_activate()
531 __tb_path_deactivate_hop(path->hops[i].in_port, in tb_path_activate()
559 tb_port_dbg(path->hops[i].in_port, "Writing hop %d\n", i); in tb_path_activate()
561 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in tb_path_activate()
587 if (path->hops[i].in_port->sw->is_unplugged) in tb_path_is_invalid()
608 if (path->hops[i].in_port == port || in tb_path_port_on_path()