Home
last modified time | relevance | path

Searched refs:hopid (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/thunderbolt/
Dpath.c40 int i, ret, hopid; in tb_path_find_dst_port() local
42 hopid = src_hopid; in tb_path_find_dst_port()
48 ret = tb_port_read(port, &hop, TB_CFG_HOPS, 2 * hopid, 2); in tb_path_find_dst_port()
50 tb_port_warn(port, "failed to read path at %d\n", hopid); in tb_path_find_dst_port()
58 hopid = hop.next_hop; in tb_path_find_dst_port()
62 return out_port && hopid == dst_hopid ? out_port : NULL; in tb_path_find_dst_port()
Dtb.h598 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
599 void tb_port_release_in_hopid(struct tb_port *port, int hopid);
600 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
601 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
Dswitch.c709 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid() argument
711 ida_simple_remove(&port->in_hopids, hopid); in tb_port_release_in_hopid()
719 void tb_port_release_out_hopid(struct tb_port *port, int hopid) in tb_port_release_out_hopid() argument
721 ida_simple_remove(&port->out_hopids, hopid); in tb_port_release_out_hopid()