• Home
  • Raw
  • Download

Lines Matching refs:hops

160 	path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL);  in tb_path_discover()
161 if (!path->hops) { in tb_path_discover()
191 path->hops[i].in_port = p; in tb_path_discover()
192 path->hops[i].in_hop_index = h; in tb_path_discover()
193 path->hops[i].in_counter_index = -1; in tb_path_discover()
194 path->hops[i].out_port = out_port; in tb_path_discover()
195 path->hops[i].next_hop_index = next_hop; in tb_path_discover()
260 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
261 if (!path->hops) { in tb_path_alloc()
320 path->hops[i].in_hop_index = in_hopid; in tb_path_alloc()
321 path->hops[i].in_port = in_port; in tb_path_alloc()
322 path->hops[i].in_counter_index = -1; in tb_path_alloc()
323 path->hops[i].out_port = out_port; in tb_path_alloc()
324 path->hops[i].next_hop_index = out_hopid; in tb_path_alloc()
351 const struct tb_path_hop *hop = &path->hops[i]; in tb_path_free()
361 kfree(path->hops); 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()
434 path->hops[i].in_hop_index, in __tb_path_deactivate_hops()
437 tb_port_warn(path->hops[i].in_port, in __tb_path_deactivate_hops()
439 i, path->hops[i].in_hop_index); 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()
453 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_deactivate()
454 path->hops[path->path_length - 1].out_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()
481 tb_route(path->hops[path->path_length - 1].out_port->sw), in tb_path_activate()
482 path->hops[path->path_length - 1].out_port->port); in tb_path_activate()
486 if (path->hops[i].in_counter_index == -1) in tb_path_activate()
488 res = tb_port_clear_counter(path->hops[i].in_port, in tb_path_activate()
489 path->hops[i].in_counter_index); 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()
510 path->hops[i].in_hop_index, path->clear_fc); in tb_path_activate()
513 hop.next_hop = path->hops[i].next_hop_index; in tb_path_activate()
514 hop.out_port = path->hops[i].out_port->port; in tb_path_activate()
515 hop.initial_credits = path->hops[i].initial_credits; in tb_path_activate()
527 hop.counter = path->hops[i].in_counter_index; in tb_path_activate()
528 hop.counter_enable = path->hops[i].in_counter_index != -1; in tb_path_activate()
537 tb_port_dbg(path->hops[i].in_port, "Writing hop %d\n", i); in tb_path_activate()
538 tb_dump_hop(&path->hops[i], &hop); in tb_path_activate()
539 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in tb_path_activate()
540 2 * path->hops[i].in_hop_index, 2); in tb_path_activate()
564 if (path->hops[i].in_port->sw->is_unplugged) in tb_path_is_invalid()
566 if (path->hops[i].out_port->sw->is_unplugged) in tb_path_is_invalid()
585 if (path->hops[i].in_port == port || in tb_path_port_on_path()
586 path->hops[i].out_port == port) in tb_path_port_on_path()