Home
last modified time | relevance | path

Searched refs:max_hopid (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dswitch.c770 int max_hopid) in tb_port_alloc_hopid()
790 if (max_hopid < 0 || max_hopid > port_max_hopid) in tb_port_alloc_hopid()
791 max_hopid = port_max_hopid; in tb_port_alloc_hopid()
793 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL); in tb_port_alloc_hopid()
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) 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()
814 * @max_hopid
769 tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, int max_hopid) tb_port_alloc_hopid() argument
819 tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) tb_port_alloc_out_hopid() argument
[all...]
H A Dtb.h847 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
849 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dswitch.c750 int max_hopid) in tb_port_alloc_hopid()
770 if (max_hopid < 0 || max_hopid > port_max_hopid) in tb_port_alloc_hopid()
771 max_hopid = port_max_hopid; in tb_port_alloc_hopid()
773 return ida_simple_get(ida, min_hopid, max_hopid + 1, GFP_KERNEL); in tb_port_alloc_hopid()
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) 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()
794 * @max_hopid
749 tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, int max_hopid) tb_port_alloc_hopid() argument
799 tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) tb_port_alloc_out_hopid() argument
[all...]
H A Dtb.h1036 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
1038 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);

Completed in 9 milliseconds