Lines Matching refs:ctl
2841 static int proc_unres_qlen(struct ctl_table *ctl, int write, in proc_unres_qlen() argument
2845 struct ctl_table tmp = *ctl; in proc_unres_qlen()
2851 size = *(int *)ctl->data / SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
2855 *(int *)ctl->data = size * SKB_TRUESIZE(ETH_FRAME_LEN); in proc_unres_qlen()
2888 static void neigh_proc_update(struct ctl_table *ctl, int write) in neigh_proc_update() argument
2890 struct net_device *dev = ctl->extra1; in neigh_proc_update()
2891 struct neigh_parms *p = ctl->extra2; in neigh_proc_update()
2893 int index = (int *) ctl->data - p->data; in neigh_proc_update()
2903 static int neigh_proc_dointvec_zero_intmax(struct ctl_table *ctl, int write, in neigh_proc_dointvec_zero_intmax() argument
2907 struct ctl_table tmp = *ctl; in neigh_proc_dointvec_zero_intmax()
2914 neigh_proc_update(ctl, write); in neigh_proc_dointvec_zero_intmax()
2918 int neigh_proc_dointvec(struct ctl_table *ctl, int write, in neigh_proc_dointvec() argument
2921 int ret = proc_dointvec(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec()
2923 neigh_proc_update(ctl, write); in neigh_proc_dointvec()
2928 int neigh_proc_dointvec_jiffies(struct ctl_table *ctl, int write, in neigh_proc_dointvec_jiffies() argument
2932 int ret = proc_dointvec_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_jiffies()
2934 neigh_proc_update(ctl, write); in neigh_proc_dointvec_jiffies()
2939 static int neigh_proc_dointvec_userhz_jiffies(struct ctl_table *ctl, int write, in neigh_proc_dointvec_userhz_jiffies() argument
2943 int ret = proc_dointvec_userhz_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_userhz_jiffies()
2945 neigh_proc_update(ctl, write); in neigh_proc_dointvec_userhz_jiffies()
2949 int neigh_proc_dointvec_ms_jiffies(struct ctl_table *ctl, int write, in neigh_proc_dointvec_ms_jiffies() argument
2953 int ret = proc_dointvec_ms_jiffies(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_ms_jiffies()
2955 neigh_proc_update(ctl, write); in neigh_proc_dointvec_ms_jiffies()
2960 static int neigh_proc_dointvec_unres_qlen(struct ctl_table *ctl, int write, in neigh_proc_dointvec_unres_qlen() argument
2964 int ret = proc_unres_qlen(ctl, write, buffer, lenp, ppos); in neigh_proc_dointvec_unres_qlen()
2966 neigh_proc_update(ctl, write); in neigh_proc_dointvec_unres_qlen()