Lines Matching refs:max_hopid
750 int max_hopid)
770 if (max_hopid < 0 || max_hopid > port_max_hopid)
771 max_hopid = port_max_hopid;
773 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL);
780 * @max_hopid: Maximum 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);
794 * @max_hopid: Maximum 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);