Lines Matching refs:lvalp
428 static int do_proc_dobool_conv(bool *negp, unsigned long *lvalp, in do_proc_dobool_conv() argument
433 *(bool *)valp = *lvalp; in do_proc_dobool_conv()
437 *lvalp = (unsigned long)val; in do_proc_dobool_conv()
443 static int do_proc_dointvec_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_conv() argument
449 if (*lvalp > (unsigned long) INT_MAX + 1) in do_proc_dointvec_conv()
451 WRITE_ONCE(*valp, -*lvalp); in do_proc_dointvec_conv()
453 if (*lvalp > (unsigned long) INT_MAX) in do_proc_dointvec_conv()
455 WRITE_ONCE(*valp, *lvalp); in do_proc_dointvec_conv()
461 *lvalp = -(unsigned long)val; in do_proc_dointvec_conv()
464 *lvalp = (unsigned long)val; in do_proc_dointvec_conv()
470 static int do_proc_douintvec_conv(unsigned long *lvalp, in do_proc_douintvec_conv() argument
475 if (*lvalp > UINT_MAX) in do_proc_douintvec_conv()
477 WRITE_ONCE(*valp, *lvalp); in do_proc_douintvec_conv()
480 *lvalp = (unsigned long)val; in do_proc_douintvec_conv()
490 int (*conv)(bool *negp, unsigned long *lvalp, int *valp, in __do_proc_dointvec() argument
562 int (*conv)(bool *negp, unsigned long *lvalp, int *valp, in do_proc_dointvec() argument
574 int (*conv)(unsigned long *lvalp, in do_proc_douintvec_w() argument
629 int (*conv)(unsigned long *lvalp, in do_proc_douintvec_r() argument
661 int (*conv)(unsigned long *lvalp, in __do_proc_douintvec() argument
696 int (*conv)(unsigned long *lvalp, in do_proc_douintvec() argument
842 static int do_proc_dointvec_minmax_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_minmax_conv() argument
854 ret = do_proc_dointvec_conv(negp, lvalp, ip, write, data); in do_proc_dointvec_minmax_conv()
909 static int do_proc_douintvec_minmax_conv(unsigned long *lvalp, in do_proc_douintvec_minmax_conv() argument
919 ret = do_proc_douintvec_conv(lvalp, up, write, data); in do_proc_douintvec_minmax_conv()
1171 static int do_proc_dointvec_jiffies_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_jiffies_conv() argument
1176 if (*lvalp > INT_MAX / HZ) in do_proc_dointvec_jiffies_conv()
1179 WRITE_ONCE(*valp, -*lvalp * HZ); in do_proc_dointvec_jiffies_conv()
1181 WRITE_ONCE(*valp, *lvalp * HZ); in do_proc_dointvec_jiffies_conv()
1192 *lvalp = lval / HZ; in do_proc_dointvec_jiffies_conv()
1197 static int do_proc_dointvec_userhz_jiffies_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_userhz_jiffies_conv() argument
1202 if (USER_HZ < HZ && *lvalp > (LONG_MAX / HZ) * USER_HZ) in do_proc_dointvec_userhz_jiffies_conv()
1204 *valp = clock_t_to_jiffies(*negp ? -*lvalp : *lvalp); in do_proc_dointvec_userhz_jiffies_conv()
1215 *lvalp = jiffies_to_clock_t(lval); in do_proc_dointvec_userhz_jiffies_conv()
1220 static int do_proc_dointvec_ms_jiffies_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_ms_jiffies_conv() argument
1225 unsigned long jif = msecs_to_jiffies(*negp ? -*lvalp : *lvalp); in do_proc_dointvec_ms_jiffies_conv()
1240 *lvalp = jiffies_to_msecs(lval); in do_proc_dointvec_ms_jiffies_conv()
1245 static int do_proc_dointvec_ms_jiffies_minmax_conv(bool *negp, unsigned long *lvalp, in do_proc_dointvec_ms_jiffies_minmax_conv() argument
1256 ret = do_proc_dointvec_ms_jiffies_conv(negp, lvalp, ip, write, data); in do_proc_dointvec_ms_jiffies_minmax_conv()