Lines Matching defs:min_hopid
749 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid,
767 if (!tb_port_is_nhi(port) && min_hopid < TB_PATH_MIN_HOPID)
768 min_hopid = TB_PATH_MIN_HOPID;
773 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL);
779 * @min_hopid: Minimum acceptable input HopID
782 * Return: HopID between @min_hopid and @max_hopid or negative errno in
785 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid)
787 return tb_port_alloc_hopid(port, true, min_hopid, max_hopid);
793 * @min_hopid: Minimum acceptable output HopID
796 * Return: HopID between @min_hopid and @max_hopid or negative errno in
799 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid)
801 return tb_port_alloc_hopid(port, false, min_hopid, max_hopid);