Lines Matching refs:hopid
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()
2061 return ida_alloc_range(&xd->in_hopids, 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()
2083 return ida_alloc_range(&xd->out_hopids, 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()
2104 void tb_xdomain_release_out_hopid(struct tb_xdomain *xd, int hopid) in tb_xdomain_release_out_hopid() argument
2106 ida_free(&xd->out_hopids, hopid); in tb_xdomain_release_out_hopid()