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, bool *ecn_ca) in tcp_ca_get_key_by_name() argument
125 ca = __tcp_ca_find_autoload(name); in tcp_ca_get_key_by_name()
144 ret = strncpy(buffer, ca->name, in tcp_ca_get_name_by_key()
218 int tcp_set_default_congestion_control(const char *name) in tcp_set_default_congestion_control() argument
224 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
229 request_module("tcp_%s", name); in tcp_set_default_congestion_control()
231 ca = tcp_ca_find(name); in tcp_set_default_congestion_control()
262 offs == 0 ? "" : " ", ca->name); in tcp_get_available_congestion_control()
268 void tcp_get_default_congestion_control(char *name) in tcp_get_default_congestion_control() argument
276 strncpy(name, ca->name, TCP_CA_NAME_MAX); in tcp_get_default_congestion_control()
293 offs == 0 ? "" : " ", ca->name); in tcp_get_allowed_congestion_control()
302 char *saved_clone, *clone, *name; in tcp_set_allowed_congestion_control() local
311 while ((name = strsep(&clone, " ")) && *name) { in tcp_set_allowed_congestion_control()
312 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
324 while ((name = strsep(&val, " ")) && *name) { in tcp_set_allowed_congestion_control()
325 ca = tcp_ca_find(name); in tcp_set_allowed_congestion_control()
338 int tcp_set_congestion_control(struct sock *sk, const char *name) in tcp_set_congestion_control() argument
348 ca = __tcp_ca_find_autoload(name); in tcp_set_congestion_control()
446 .name = "reno",