Searched refs:min_hopid (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | switch.c | 769 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid() argument 787 if (!tb_port_is_nhi(port) && min_hopid < TB_PATH_MIN_HOPID) in tb_port_alloc_hopid() 788 min_hopid = TB_PATH_MIN_HOPID; in tb_port_alloc_hopid() 793 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL); in tb_port_alloc_hopid() 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) in tb_port_alloc_in_hopid() argument 807 return tb_port_alloc_hopid(port, true, min_hopid, max_hopid); in tb_port_alloc_in_hopid() 813 * @min_hopid: Minimum acceptable output HopID 816 * Return: HopID between @min_hopid an 819 tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) tb_port_alloc_out_hopid() argument [all...] |
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | switch.c | 749 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid() argument 767 if (!tb_port_is_nhi(port) && min_hopid < TB_PATH_MIN_HOPID) in tb_port_alloc_hopid() 768 min_hopid = TB_PATH_MIN_HOPID; in tb_port_alloc_hopid() 773 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL); in tb_port_alloc_hopid() 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) in tb_port_alloc_in_hopid() argument 787 return tb_port_alloc_hopid(port, true, min_hopid, max_hopid); in tb_port_alloc_in_hopid() 793 * @min_hopid: Minimum acceptable output HopID 796 * Return: HopID between @min_hopid an 799 tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) tb_port_alloc_out_hopid() argument [all...] |
Completed in 9 milliseconds