Lines Matching refs:hopid
2078 int tb_xdomain_alloc_in_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_alloc_in_hopid() argument
2080 if (hopid < 0) in tb_xdomain_alloc_in_hopid()
2081 hopid = TB_PATH_MIN_HOPID; in tb_xdomain_alloc_in_hopid()
2082 if (hopid < TB_PATH_MIN_HOPID || hopid > xd->local_max_hopid) in tb_xdomain_alloc_in_hopid()
2085 return ida_alloc_range(&xd->in_hopids, hopid, xd->local_max_hopid, in tb_xdomain_alloc_in_hopid()
2100 int tb_xdomain_alloc_out_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_alloc_out_hopid() argument
2102 if (hopid < 0) in tb_xdomain_alloc_out_hopid()
2103 hopid = TB_PATH_MIN_HOPID; in tb_xdomain_alloc_out_hopid()
2104 if (hopid < TB_PATH_MIN_HOPID || hopid > xd->remote_max_hopid) in tb_xdomain_alloc_out_hopid()
2107 return ida_alloc_range(&xd->out_hopids, hopid, xd->remote_max_hopid, in tb_xdomain_alloc_out_hopid()
2117 void tb_xdomain_release_in_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_release_in_hopid() argument
2119 ida_free(&xd->in_hopids, hopid); in tb_xdomain_release_in_hopid()
2128 void tb_xdomain_release_out_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_release_out_hopid() argument
2130 ida_free(&xd->out_hopids, hopid); in tb_xdomain_release_out_hopid()