Lines Matching refs:lenp

147 		char *buffer, size_t *lenp, loff_t *ppos)
152 if (!data || !maxlen || !*lenp) {
153 *lenp = 0;
172 *ppos += *lenp;
174 while ((p - buffer) < *lenp && len < maxlen - 1) {
187 *lenp = 0;
194 if (len > *lenp)
195 len = *lenp;
198 if (len < *lenp) {
202 *lenp = len;
247 * @lenp: the size of the user buffer
260 void *buffer, size_t *lenp, loff_t *ppos)
265 return _proc_do_string(table->data, table->maxlen, write, buffer, lenp,
473 size_t *lenp, loff_t *ppos,
482 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) {
483 *lenp = 0;
489 left = *lenp;
538 *lenp -= left;
540 *ppos += *lenp;
545 void *buffer, size_t *lenp, loff_t *ppos,
551 buffer, lenp, ppos, conv, data);
557 size_t *lenp, loff_t *ppos,
569 left = *lenp;
607 *ppos += *lenp;
612 size_t *lenp, loff_t *ppos,
622 left = *lenp;
636 *lenp -= left;
637 *ppos += *lenp;
644 size_t *lenp, loff_t *ppos,
652 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) {
653 *lenp = 0;
665 *lenp = 0;
673 return do_proc_douintvec_w(i, table, buffer, lenp, ppos,
675 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data);
679 void *buffer, size_t *lenp, loff_t *ppos,
686 buffer, lenp, ppos, conv, data);
694 * @lenp: the size of the user buffer
706 size_t *lenp, loff_t *ppos)
721 res = proc_dointvec(&tmp, write, buffer, lenp, ppos);
734 * @lenp: the size of the user buffer
743 size_t *lenp, loff_t *ppos)
745 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL);
753 * @lenp: the size of the user buffer
762 size_t *lenp, loff_t *ppos)
764 return do_proc_douintvec(table, write, buffer, lenp, ppos,
773 void *buffer, size_t *lenp, loff_t *ppos)
784 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos);
856 * @lenp: the size of the user buffer
868 void *buffer, size_t *lenp, loff_t *ppos)
874 return do_proc_dointvec(table, write, buffer, lenp, ppos,
922 * @lenp: the size of the user buffer
937 void *buffer, size_t *lenp, loff_t *ppos)
943 return do_proc_douintvec(table, write, buffer, lenp, ppos,
952 * @lenp: the size of the user buffer
965 void *buffer, size_t *lenp, loff_t *ppos)
990 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos,
1002 void *buffer, size_t *lenp, loff_t *ppos)
1009 lenp, ppos, NULL, NULL);
1022 void *buffer, size_t *lenp, loff_t *ppos,
1030 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) {
1031 *lenp = 0;
1039 left = *lenp;
1088 *lenp -= left;
1090 *ppos += *lenp;
1095 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul,
1099 buffer, lenp, ppos, convmul, convdiv);
1107 * @lenp: the size of the user buffer
1119 void *buffer, size_t *lenp, loff_t *ppos)
1121 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l);
1129 * @lenp: the size of the user buffer
1142 void *buffer, size_t *lenp, loff_t *ppos)
1145 lenp, ppos, HZ, 1000l);
1252 * @lenp: the size of the user buffer
1263 void *buffer, size_t *lenp, loff_t *ppos)
1265 return do_proc_dointvec(table,write,buffer,lenp,ppos,
1270 void *buffer, size_t *lenp, loff_t *ppos)
1276 return do_proc_dointvec(table, write, buffer, lenp, ppos,
1285 * @lenp: the size of the user buffer
1296 void *buffer, size_t *lenp, loff_t *ppos)
1298 return do_proc_dointvec(table, write, buffer, lenp, ppos,
1307 * @lenp: the size of the user buffer
1318 size_t *lenp, loff_t *ppos)
1320 return do_proc_dointvec(table, write, buffer, lenp, ppos,
1325 size_t *lenp, loff_t *ppos)
1334 lenp, ppos, NULL, NULL);
1351 * @lenp: the size of the user buffer
1364 void *buffer, size_t *lenp, loff_t *ppos)
1367 size_t left = *lenp;
1374 *lenp = 0;
1385 skipped = *lenp - left;
1485 *lenp -= left;
1486 *ppos += *lenp;
1496 void *buffer, size_t *lenp, loff_t *ppos)
1502 void *buffer, size_t *lenp, loff_t *ppos)
1508 void *buffer, size_t *lenp, loff_t *ppos)
1514 void *buffer, size_t *lenp, loff_t *ppos)
1520 void *buffer, size_t *lenp, loff_t *ppos)
1526 void *buffer, size_t *lenp, loff_t *ppos)
1532 void *buffer, size_t *lenp, loff_t *ppos)
1538 void *buffer, size_t *lenp, loff_t *ppos)
1544 void *buffer, size_t *lenp, loff_t *ppos)
1550 void *buffer, size_t *lenp, loff_t *ppos)
1556 void *buffer, size_t *lenp, loff_t *ppos)
1562 void *buffer, size_t *lenp, loff_t *ppos)
1568 void *buffer, size_t *lenp, loff_t *ppos)
1574 void *buffer, size_t *lenp, loff_t *ppos)
1583 void *buffer, size_t *lenp, loff_t *ppos)
1601 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);