Lines Matching refs:tbl
229 struct ctl_table tbl = { in proc_tcp_congestion_control() local
237 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_congestion_control()
247 struct ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX, }; in proc_tcp_available_congestion_control() local
250 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_tcp_available_congestion_control()
251 if (!tbl.data) in proc_tcp_available_congestion_control()
253 tcp_get_available_congestion_control(tbl.data, TCP_CA_BUF_MAX); in proc_tcp_available_congestion_control()
254 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_congestion_control()
255 kfree(tbl.data); in proc_tcp_available_congestion_control()
263 struct ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX }; in proc_allowed_congestion_control() local
266 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_allowed_congestion_control()
267 if (!tbl.data) in proc_allowed_congestion_control()
270 tcp_get_allowed_congestion_control(tbl.data, tbl.maxlen); in proc_allowed_congestion_control()
271 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_allowed_congestion_control()
273 ret = tcp_set_allowed_congestion_control(tbl.data); in proc_allowed_congestion_control()
274 kfree(tbl.data); in proc_allowed_congestion_control()
304 struct ctl_table tbl = { .maxlen = ((TCP_FASTOPEN_KEY_LENGTH * in proc_tcp_fastopen_key() local
312 tbl.data = kmalloc(tbl.maxlen, GFP_KERNEL); in proc_tcp_fastopen_key()
313 if (!tbl.data) in proc_tcp_fastopen_key()
326 off += snprintf(tbl.data + off, tbl.maxlen - off, in proc_tcp_fastopen_key()
333 if (WARN_ON_ONCE(off >= tbl.maxlen - 1)) in proc_tcp_fastopen_key()
337 off += snprintf(tbl.data + off, tbl.maxlen - off, ","); in proc_tcp_fastopen_key()
340 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_fastopen_key()
343 backup_data = strchr(tbl.data, ','); in proc_tcp_fastopen_key()
348 if (sscanf_key(tbl.data, key)) { in proc_tcp_fastopen_key()
363 kfree(tbl.data); in proc_tcp_fastopen_key()
386 struct ctl_table tbl = { .maxlen = TCP_ULP_BUF_MAX, }; in proc_tcp_available_ulp() local
389 tbl.data = kmalloc(tbl.maxlen, GFP_USER); in proc_tcp_available_ulp()
390 if (!tbl.data) in proc_tcp_available_ulp()
392 tcp_get_available_ulp(tbl.data, TCP_ULP_BUF_MAX); in proc_tcp_available_ulp()
393 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_tcp_available_ulp()
394 kfree(tbl.data); in proc_tcp_available_ulp()