Lines Matching refs:lenp
148 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
153 if (!data || !maxlen || !*lenp) { in _proc_do_string()
154 *lenp = 0; in _proc_do_string()
173 *ppos += *lenp; in _proc_do_string()
175 while ((p - buffer) < *lenp && len < maxlen - 1) { in _proc_do_string()
188 *lenp = 0; in _proc_do_string()
195 if (len > *lenp) in _proc_do_string()
196 len = *lenp; in _proc_do_string()
199 if (len < *lenp) { in _proc_do_string()
203 *lenp = len; in _proc_do_string()
261 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
266 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp, in proc_dostring()
489 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
498 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
499 *lenp = 0; in __do_proc_dointvec()
505 left = *lenp; in __do_proc_dointvec()
554 *lenp -= left; in __do_proc_dointvec()
556 *ppos += *lenp; in __do_proc_dointvec()
561 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
567 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
573 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
585 left = *lenp; in do_proc_douintvec_w()
623 *ppos += *lenp; in do_proc_douintvec_w()
628 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
638 left = *lenp; in do_proc_douintvec_r()
652 *lenp -= left; in do_proc_douintvec_r()
653 *ppos += *lenp; in do_proc_douintvec_r()
660 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
668 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
669 *lenp = 0; in __do_proc_douintvec()
681 *lenp = 0; in __do_proc_douintvec()
689 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
691 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
695 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
702 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
719 size_t *lenp, loff_t *ppos) in proc_dobool() argument
721 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dobool()
739 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
741 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
746 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
751 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
754 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
779 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
781 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
790 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
801 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
885 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
891 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
954 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
960 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
982 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1013 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1025 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1032 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1044 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1052 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1053 *lenp = 0; in __do_proc_doulongvec_minmax()
1061 left = *lenp; in __do_proc_doulongvec_minmax()
1110 *lenp -= left; in __do_proc_doulongvec_minmax()
1112 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1117 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1121 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1141 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1143 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1164 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1167 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1285 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1287 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1292 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1298 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
1318 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1320 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
1341 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1343 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1348 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1357 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1387 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1390 size_t left = *lenp; in proc_do_large_bitmap()
1397 *lenp = 0; in proc_do_large_bitmap()
1408 skipped = *lenp - left; in proc_do_large_bitmap()
1508 *lenp -= left; in proc_do_large_bitmap()
1509 *ppos += *lenp; in proc_do_large_bitmap()
1519 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1525 void *buffer, size_t *lenp, loff_t *ppos) in proc_dobool() argument
1531 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1537 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1543 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1549 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1555 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1561 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1567 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1573 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1579 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1585 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1591 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1597 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1606 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1624 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()