Lines Matching refs:name
23 static struct tcp_congestion_ops *tcp_ca_find(const char *name) in tcp_ca_find() argument
28 if (strcmp(e->name, name) == 0) in tcp_ca_find()
36 static const struct tcp_congestion_ops *__tcp_ca_find_autoload(const char *name) in __tcp_ca_find_autoload() argument
38 const struct tcp_congestion_ops *ca = tcp_ca_find(name); in __tcp_ca_find_autoload()
42 request_module("tcp_%s", name); in __tcp_ca_find_autoload()
44 ca = tcp_ca_find(name); in __tcp_ca_find_autoload()
73 pr_err("%s does not implement required ops\n", ca->name); in tcp_register_congestion_control()
77 ca->key = jhash(ca->name, sizeof(ca->name), strlen(ca->name)); in tcp_register_congestion_control()
82 ca->name); in tcp_register_congestion_control()
86 pr_debug("%s registered\n", ca->name); in tcp_register_congestion_control()
117 u32 tcp_ca_get_key_by_name(const char *name) in tcp_ca_get_key_by_name() argument
125 ca = __tcp_ca_find_autoload(name); in tcp_ca_get_key_by_name()
141 ret = strncpy(buffer, ca->name, in tcp_ca_get_name_by_key()
207 int tcp_set_default_congestion_control(const char *name) in tcp_set_default_congestion_control() argument
213 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
218 request_module("tcp_%s", name); in tcp_set_default_congestion_control()
220 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
251 offs == 0 ? "" : " ", ca->name); in tcp_get_available_congestion_control()
257 void tcp_get_default_congestion_control(char *name) in tcp_get_default_congestion_control() argument
265 strncpy(name, ca->name, TCP_CA_NAME_MAX); in tcp_get_default_congestion_control()
282 offs == 0 ? "" : " ", ca->name); in tcp_get_allowed_congestion_control()
291 char *saved_clone, *clone, *name; in tcp_set_allowed_congestion_control() local
300 while ((name = strsep(&clone, " ")) && *name) { in tcp_set_allowed_congestion_control()
301 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
313 while ((name = strsep(&val, " ")) && *name) { in tcp_set_allowed_congestion_control()
314 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
327 int tcp_set_congestion_control(struct sock *sk, const char *name) in tcp_set_congestion_control() argument
337 ca = __tcp_ca_find_autoload(name); in tcp_set_congestion_control()
437 .name = "reno",