Searched refs:hopid (Results 1 – 7 of 7) sorted by relevance
/linux-6.3-rc2/drivers/thunderbolt/ |
A D | path.c | 40 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()
|
A D | xdomain.c | 2054 int tb_xdomain_alloc_in_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_alloc_in_hopid() argument 2056 if (hopid < 0) in tb_xdomain_alloc_in_hopid() 2057 hopid = TB_PATH_MIN_HOPID; in tb_xdomain_alloc_in_hopid() 2058 if (hopid < TB_PATH_MIN_HOPID || hopid > xd->local_max_hopid) in tb_xdomain_alloc_in_hopid() 2076 int tb_xdomain_alloc_out_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_alloc_out_hopid() argument 2078 if (hopid < 0) in tb_xdomain_alloc_out_hopid() 2079 hopid = TB_PATH_MIN_HOPID; in tb_xdomain_alloc_out_hopid() 2080 if (hopid < TB_PATH_MIN_HOPID || hopid > xd->remote_max_hopid) in tb_xdomain_alloc_out_hopid() 2093 void tb_xdomain_release_in_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_release_in_hopid() argument 2095 ida_free(&xd->in_hopids, hopid); in tb_xdomain_release_in_hopid() [all …]
|
A D | tb.h | 1039 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid); 1040 void tb_port_release_in_hopid(struct tb_port *port, int hopid); 1041 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid); 1042 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
|
A D | debugfs.c | 1368 static int path_show_one(struct tb_port *port, struct seq_file *s, int hopid) in path_show_one() argument 1373 ret = tb_port_read(port, data, TB_CFG_HOPS, hopid * PATH_LEN, in path_show_one() 1376 seq_printf(s, "0x%04x <not accessible>\n", hopid * PATH_LEN); in path_show_one() 1382 hopid * PATH_LEN + i, i, hopid, data[i]); in path_show_one()
|
A D | switch.c | 813 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid() argument 815 ida_simple_remove(&port->in_hopids, hopid); in tb_port_release_in_hopid() 823 void tb_port_release_out_hopid(struct tb_port *port, int hopid) in tb_port_release_out_hopid() argument 825 ida_simple_remove(&port->out_hopids, hopid); in tb_port_release_out_hopid()
|
/linux-6.3-rc2/include/linux/ |
A D | thunderbolt.h | 262 int tb_xdomain_alloc_in_hopid(struct tb_xdomain *xd, int hopid); 263 void tb_xdomain_release_in_hopid(struct tb_xdomain *xd, int hopid); 264 int tb_xdomain_alloc_out_hopid(struct tb_xdomain *xd, int hopid); 265 void tb_xdomain_release_out_hopid(struct tb_xdomain *xd, int hopid);
|
/linux-6.3-rc2/drivers/net/thunderbolt/ |
A D | main.c | 922 int hopid; in tbnet_open() local 934 hopid = tb_xdomain_alloc_out_hopid(xd, -1); in tbnet_open() 935 if (hopid < 0) { in tbnet_open() 939 return hopid; in tbnet_open() 941 net->local_transmit_path = hopid; in tbnet_open() 956 tb_xdomain_release_out_hopid(xd, hopid); in tbnet_open()
|
Completed in 28 milliseconds