Lines Matching defs:min_hopid
769 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid,
787 if (!tb_port_is_nhi(port) && min_hopid < TB_PATH_MIN_HOPID)
788 min_hopid = TB_PATH_MIN_HOPID;
793 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL);
799 * @min_hopid: Minimum acceptable input HopID
802 * Return: HopID between @min_hopid and @max_hopid or negative errno in
805 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid)
807 return tb_port_alloc_hopid(port, true, min_hopid, max_hopid);
813 * @min_hopid: Minimum acceptable output HopID
816 * Return: HopID between @min_hopid and @max_hopid or negative errno in
819 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid)
821 return tb_port_alloc_hopid(port, false, min_hopid, max_hopid);