Lines Matching refs:max_hopid
770 int max_hopid)
790 if (max_hopid < 0 || max_hopid > port_max_hopid)
791 max_hopid = port_max_hopid;
793 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL);
800 * @max_hopid: Maximum 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);
814 * @max_hopid: Maximum 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);