Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 23 of 23) sorted by relevance

/net/mctp/
A Daf_mctp.c444 size = sizeof(*ctl); in mctp_ioctl_tag_copy_from_user()
445 ptr = ctl; in mctp_ioctl_tag_copy_from_user()
461 ctl->tag = ctl_compat.tag; in mctp_ioctl_tag_copy_from_user()
464 if (ctl->flags) in mctp_ioctl_tag_copy_from_user()
484 ptr = ctl; in mctp_ioctl_tag_copy_to_user()
485 size = sizeof(*ctl); in mctp_ioctl_tag_copy_to_user()
488 ctl_compat.tag = ctl->tag; in mctp_ioctl_tag_copy_to_user()
507 struct mctp_ioc_tag_ctl2 ctl; in mctp_ioctl_alloctag() local
516 if (ctl.tag) in mctp_ioctl_alloctag()
549 struct mctp_ioc_tag_ctl2 ctl; in mctp_ioctl_droptag() local
[all …]
/net/sctp/
A Dsysctl.c48 static int proc_sctp_do_rto_min(const struct ctl_table *ctl, int write,
56 static int proc_sctp_do_auth(const struct ctl_table *ctl, int write,
390 struct net *net = container_of(ctl->data, struct net, in proc_sctp_do_hmac_alg()
437 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_min()
438 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_min()
465 unsigned int min = *(unsigned int *) ctl->extra1; in proc_sctp_do_rto_max()
466 unsigned int max = *(unsigned int *) ctl->extra2; in proc_sctp_do_rto_max()
496 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); in proc_sctp_do_alpha_beta()
534 unsigned int min = *(unsigned int *)ctl->extra1; in proc_sctp_do_udp_port()
535 unsigned int max = *(unsigned int *)ctl->extra2; in proc_sctp_do_udp_port()
[all …]
/net/sched/
A Dsch_choke.c340 const struct tc_red_qopt *ctl; in choke_change() local
361 ctl = nla_data(tb[TCA_CHOKE_PARMS]); in choke_change()
363 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Scell_log, stab)) in choke_change()
366 if (ctl->limit > CHOKE_MAX_QUEUE) in choke_change()
369 mask = roundup_pow_of_two(ctl->limit + 1) - 1; in choke_change()
408 WRITE_ONCE(q->flags, ctl->flags); in choke_change()
409 WRITE_ONCE(q->limit, ctl->limit); in choke_change()
411 red_set_parms(&q->parms, ctl->qth_min, ctl->qth_max, ctl->Wlog, in choke_change()
412 ctl->Plog, ctl->Scell_log, in choke_change()
A Dsch_red.c242 struct tc_red_qopt *ctl; in __red_change() local
255 ctl = nla_data(tb[TCA_RED_PARMS]); in __red_change()
257 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, in __red_change()
258 ctl->Scell_log, stab)) in __red_change()
261 err = red_get_flags(ctl->flags, TC_RED_HISTORIC_FLAGS, in __red_change()
267 if (ctl->limit > 0) { in __red_change()
268 child = fifo_create_dflt(sch, &bfifo_qdisc_ops, ctl->limit, in __red_change()
286 q->limit = ctl->limit; in __red_change()
294 ctl->qth_min, ctl->qth_max, ctl->Wlog, in __red_change()
295 ctl->Plog, ctl->Scell_log, in __red_change()
[all …]
A Dsch_gred.c490 if (!red_check_params(ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Scell_log, stab)) { in gred_change_vq()
505 if (ctl->limit > sch->limit) in gred_change_vq()
508 q->limit = ctl->limit; in gred_change_vq()
514 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, in gred_change_vq()
515 ctl->Scell_log, stab, max_P); in gred_change_vq()
646 struct tc_gred_qopt *ctl; in gred_change() local
673 ctl = nla_data(tb[TCA_GRED_PARMS]); in gred_change()
676 if (ctl->DP >= table->DPs) { in gred_change()
689 if (ctl->prio == 0) { in gred_change()
700 prio = ctl->prio; in gred_change()
[all …]
A Dsch_sfq.c631 struct tc_sfq_qopt *ctl = nla_data(opt); in sfq_change() local
651 if (ctl->divisor && in sfq_change()
652 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
655 if ((int)ctl->quantum < 0) { in sfq_change()
660 if (ctl->perturb_period < 0 || in sfq_change()
687 if (ctl->quantum) in sfq_change()
688 quantum = ctl->quantum; in sfq_change()
689 if (ctl->flows) in sfq_change()
691 if (ctl->divisor) { in sfq_change()
692 divisor = ctl->divisor; in sfq_change()
[all …]
A Dsch_sfb.c498 const struct tc_sfb_qopt *ctl = &sfb_default_ops; in sfb_change() local
511 ctl = nla_data(tb[TCA_SFB_PARMS]); in sfb_change()
514 limit = ctl->limit; in sfb_change()
531 q->warmup_time = msecs_to_jiffies(ctl->warmup_time); in sfb_change()
534 q->increment = ctl->increment; in sfb_change()
535 q->decrement = ctl->decrement; in sfb_change()
536 q->max = ctl->max; in sfb_change()
537 q->bin_size = ctl->bin_size; in sfb_change()
538 q->penalty_rate = ctl->penalty_rate; in sfb_change()
539 q->penalty_burst = ctl->penalty_burst; in sfb_change()
[all …]
A Dsch_plug.c136 struct tc_plug_qopt *ctl = nla_data(opt); in plug_init() local
138 if (nla_len(opt) < sizeof(*ctl)) in plug_init()
141 q->limit = ctl->limit; in plug_init()
A Dsch_fifo.c114 struct tc_fifo_qopt *ctl = nla_data(opt); in __fifo_init() local
116 if (nla_len(opt) < sizeof(*ctl)) in __fifo_init()
119 WRITE_ONCE(sch->limit, ctl->limit); in __fifo_init()
A Dsch_skbprio.c169 struct tc_skbprio_qopt *ctl = nla_data(opt); in skbprio_change() local
171 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change()
174 WRITE_ONCE(sch->limit, ctl->limit); in skbprio_change()
/net/mptcp/
A Dctrl.c130 static int proc_scheduler(const struct ctl_table *ctl, int write, in proc_scheduler() argument
133 char (*scheduler)[MPTCP_SCHED_NAME_MAX] = ctl->data; in proc_scheduler()
150 static int proc_available_schedulers(const struct ctl_table *ctl, in proc_available_schedulers() argument
200 static int proc_path_manager(const struct ctl_table *ctl, int write, in proc_path_manager() argument
203 struct mptcp_pernet *pernet = container_of(ctl->data, in proc_path_manager()
206 char (*path_manager)[MPTCP_PM_NAME_MAX] = ctl->data; in proc_path_manager()
233 static int proc_pm_type(const struct ctl_table *ctl, int write, in proc_pm_type() argument
236 struct mptcp_pernet *pernet = container_of(ctl->data, in proc_pm_type()
241 ret = proc_dou8vec_minmax(ctl, write, buffer, lenp, ppos); in proc_pm_type()
243 u8 pm_type = READ_ONCE(*(u8 *)ctl->data); in proc_pm_type()
[all …]
/net/unix/
A Dsysctl_net_unix.c40 net->unx.ctl = register_net_sysctl_sz(net, "net/unix", table, in unix_sysctl_register()
42 if (net->unx.ctl == NULL) in unix_sysctl_register()
58 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
59 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
/net/rds/
A Dtcp.c64 static int rds_tcp_sndbuf_handler(const struct ctl_table *ctl, int write,
66 static int rds_tcp_rcvbuf_handler(const struct ctl_table *ctl, int write,
684 const struct ctl_table *ctl, int write, in rds_tcp_skbuf_handler() argument
689 err = proc_dointvec_minmax(ctl, write, buffer, lenp, fpos); in rds_tcp_skbuf_handler()
692 *(int *)(ctl->extra1)); in rds_tcp_skbuf_handler()
705 static int rds_tcp_sndbuf_handler(const struct ctl_table *ctl, int write, in rds_tcp_sndbuf_handler() argument
708 struct rds_tcp_net *rtn = container_of(ctl->data, struct rds_tcp_net, in rds_tcp_sndbuf_handler()
711 return rds_tcp_skbuf_handler(rtn, ctl, write, buffer, lenp, fpos); in rds_tcp_sndbuf_handler()
714 static int rds_tcp_rcvbuf_handler(const struct ctl_table *ctl, int write, in rds_tcp_rcvbuf_handler() argument
717 struct rds_tcp_net *rtn = container_of(ctl->data, struct rds_tcp_net, in rds_tcp_rcvbuf_handler()
[all …]
/net/core/
A Dneighbour.c3576 struct ctl_table tmp = *ctl; in proc_unres_qlen()
3610 struct neigh_parms *p = ctl->extra2; in neigh_proc_update()
3628 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax()
3635 neigh_proc_update(ctl, write); in neigh_proc_dointvec_zero_intmax()
3642 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_ms_jiffies_positive()
3651 neigh_proc_update(ctl, write); in neigh_proc_dointvec_ms_jiffies_positive()
3660 neigh_proc_update(ctl, write); in neigh_proc_dointvec()
3670 neigh_proc_update(ctl, write); in neigh_proc_dointvec_jiffies()
3681 neigh_proc_update(ctl, write); in neigh_proc_dointvec_userhz_jiffies()
3690 neigh_proc_update(ctl, write); in neigh_proc_dointvec_ms_jiffies()
[all …]
/net/ipv6/
A Dndisc.c1919 dev_name, ctl->procname, in ndisc_warn_deprecated_sysctl()
1920 dev_name, ctl->procname); in ndisc_warn_deprecated_sysctl()
1928 struct net_device *dev = ctl->extra1; in ndisc_ifinfo_sysctl_change()
1932 if ((strcmp(ctl->procname, "retrans_time") == 0) || in ndisc_ifinfo_sysctl_change()
1933 (strcmp(ctl->procname, "base_reachable_time") == 0)) in ndisc_ifinfo_sysctl_change()
1936 if (strcmp(ctl->procname, "retrans_time") == 0) in ndisc_ifinfo_sysctl_change()
1937 ret = neigh_proc_dointvec(ctl, write, buffer, lenp, ppos); in ndisc_ifinfo_sysctl_change()
1939 else if (strcmp(ctl->procname, "base_reachable_time") == 0) in ndisc_ifinfo_sysctl_change()
1940 ret = neigh_proc_dointvec_jiffies(ctl, write, in ndisc_ifinfo_sysctl_change()
1944 (strcmp(ctl->procname, "base_reachable_time_ms") == 0)) in ndisc_ifinfo_sysctl_change()
[all …]
A Daddrconf.c6330 int *valp = ctl->data; in addrconf_sysctl_forward()
6340 lctl = *ctl; in addrconf_sysctl_forward()
6359 lctl = *ctl; in addrconf_sysctl_mtu()
6427 int *valp = ctl->data; in addrconf_sysctl_disable()
6437 lctl = *ctl; in addrconf_sysctl_disable()
6452 int *valp = ctl->data; in addrconf_sysctl_proxy_ndp()
6501 .mode = ctl->mode, in addrconf_sysctl_addr_gen_mode()
6630 int *valp = ctl->data; in addrconf_sysctl_ignore_routes_with_linkdown()
6639 lctl = *ctl; in addrconf_sysctl_ignore_routes_with_linkdown()
6728 int *valp = ctl->data; in addrconf_sysctl_disable_policy()
[all …]
A Droute.c6509 static int ipv6_sysctl_rtcache_flush(const struct ctl_table *ctl, int write, in ipv6_sysctl_rtcache_flush() argument
6518 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in ipv6_sysctl_rtcache_flush()
6522 net = (struct net *)ctl->extra1; in ipv6_sysctl_rtcache_flush()
/net/ipv4/
A Ddevinet.c2472 int old_value = *(int *)ctl->data; in devinet_conf_proc()
2474 int new_value = *(int *)ctl->data; in devinet_conf_proc()
2477 struct ipv4_devconf *cnf = ctl->extra1; in devinet_conf_proc()
2478 struct net *net = ctl->extra2; in devinet_conf_proc()
2479 int i = (int *)ctl->data - cnf->data; in devinet_conf_proc()
2524 int *valp = ctl->data; in devinet_sysctl_forward()
2527 struct net *net = ctl->extra2; in devinet_sysctl_forward()
2533 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in devinet_sysctl_forward()
2546 struct ipv4_devconf *cnf = ctl->extra1; in devinet_sysctl_forward()
2571 int *valp = ctl->data; in ipv4_doint_and_flush()
[all …]
A Dsysctl_net_ipv4.c215 static int proc_tcp_congestion_control(const struct ctl_table *ctl, int write, in proc_tcp_congestion_control() argument
218 struct net *net = container_of(ctl->data, struct net, in proc_tcp_congestion_control()
235 static int proc_tcp_available_congestion_control(const struct ctl_table *ctl, in proc_tcp_available_congestion_control() argument
251 static int proc_allowed_congestion_control(const struct ctl_table *ctl, in proc_allowed_congestion_control() argument
374 static int proc_tcp_available_ulp(const struct ctl_table *ctl, in proc_tcp_available_ulp() argument
/net/mpls/
A Daf_mpls.c1349 static int mpls_conf_proc(const struct ctl_table *ctl, int write, in mpls_conf_proc() argument
1352 int oval = *(int *)ctl->data; in mpls_conf_proc()
1353 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in mpls_conf_proc()
1356 struct mpls_dev *mdev = ctl->extra1; in mpls_conf_proc()
1357 int i = (int *)ctl->data - (int *)mdev; in mpls_conf_proc()
1358 struct net *net = ctl->extra2; in mpls_conf_proc()
1359 int val = *(int *)ctl->data; in mpls_conf_proc()
2676 net->mpls.ctl = register_net_sysctl_sz(net, "net/mpls", table, in mpls_net_init()
2678 if (net->mpls.ctl == NULL) { in mpls_net_init()
2693 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit()
[all …]
/net/bridge/
A Dbr_netfilter_hooks.c1177 int brnf_sysctl_call_tables(const struct ctl_table *ctl, int write, in brnf_sysctl_call_tables() argument
1182 ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in brnf_sysctl_call_tables()
1184 if (write && *(int *)(ctl->data)) in brnf_sysctl_call_tables()
1185 *(int *)(ctl->data) = 1; in brnf_sysctl_call_tables()
/net/
A Dsocket.c2561 unsigned char ctl[sizeof(struct cmsghdr) + 20] in ____sys_sendmsg() local
2564 unsigned char *ctl_buf = ctl; in ____sys_sendmsg()
2576 cmsghdr_from_user_compat_to_kern(msg_sys, sock->sk, ctl, in ____sys_sendmsg()
2577 sizeof(ctl)); in ____sys_sendmsg()
2585 if (ctl_len > sizeof(ctl)) { in ____sys_sendmsg()
2627 if (ctl_buf != ctl) in ____sys_sendmsg()
/net/can/j1939/
A Dtransport.c590 bool ctl, in j1939_tp_tx_dat_new() argument
616 if (ctl) { in j1939_tp_tx_dat_new()

Completed in 787 milliseconds