Lines Matching refs:name
22 static struct tcp_congestion_ops *tcp_ca_find(const char *name) in tcp_ca_find() argument
27 if (strcmp(e->name, name) == 0) in tcp_ca_find()
44 pr_err("%s does not implement required ops\n", ca->name); in tcp_register_congestion_control()
49 if (tcp_ca_find(ca->name)) { in tcp_register_congestion_control()
50 pr_notice("%s already registered\n", ca->name); in tcp_register_congestion_control()
54 pr_info("%s registered\n", ca->name); in tcp_register_congestion_control()
122 int tcp_set_default_congestion_control(const char *name) in tcp_set_default_congestion_control() argument
128 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
133 request_module("tcp_%s", name); in tcp_set_default_congestion_control()
135 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
166 offs == 0 ? "" : " ", ca->name); in tcp_get_available_congestion_control()
172 void tcp_get_default_congestion_control(char *name) in tcp_get_default_congestion_control() argument
180 strncpy(name, ca->name, TCP_CA_NAME_MAX); in tcp_get_default_congestion_control()
197 offs == 0 ? "" : " ", ca->name); in tcp_get_allowed_congestion_control()
206 char *saved_clone, *clone, *name; in tcp_set_allowed_congestion_control() local
215 while ((name = strsep(&clone, " ")) && *name) { in tcp_set_allowed_congestion_control()
216 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
228 while ((name = strsep(&val, " ")) && *name) { in tcp_set_allowed_congestion_control()
229 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
242 int tcp_set_congestion_control(struct sock *sk, const char *name) in tcp_set_congestion_control() argument
249 ca = tcp_ca_find(name); in tcp_set_congestion_control()
260 request_module("tcp_%s", name); in tcp_set_congestion_control()
262 ca = tcp_ca_find(name); in tcp_set_congestion_control()
354 .name = "reno",