Lines Matching refs:ppos
77 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
94 if (*ppos > len) in _proc_do_string()
96 len = *ppos; in _proc_do_string()
102 *ppos += *lenp; in _proc_do_string()
116 if (*ppos > len) { in _proc_do_string()
121 data += *ppos; in _proc_do_string()
122 len -= *ppos; in _proc_do_string()
133 *ppos += len; in _proc_do_string()
155 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
158 if (!*ppos) in proc_first_pos_non_zero_ignore()
190 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
193 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
196 ppos); in proc_dostring()
403 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
412 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
425 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_dointvec()
470 *ppos += *lenp; in __do_proc_dointvec()
475 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
481 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
487 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
501 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
537 *ppos += *lenp; in do_proc_douintvec_w()
542 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
567 *ppos += *lenp; in do_proc_douintvec_r()
574 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
582 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
603 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
605 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
609 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
616 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
636 size_t *lenp, loff_t *ppos) in proc_dobool() argument
651 res = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_dobool()
673 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
675 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
692 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
694 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
755 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
761 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
824 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
830 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
852 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
877 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
889 void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
897 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
909 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_doulongvec_minmax()
957 *ppos += *lenp; in __do_proc_doulongvec_minmax()
962 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
966 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
986 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
988 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1009 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1012 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1130 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1132 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1137 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1143 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
1163 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1165 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
1185 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1187 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1209 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1218 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1325 if (*ppos) in proc_do_large_bitmap()
1331 *ppos += *lenp; in proc_do_large_bitmap()
1341 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1347 void *buffer, size_t *lenp, loff_t *ppos) in proc_dobool() argument
1353 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1359 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1365 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1371 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1377 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1383 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1389 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1395 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1401 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1407 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1413 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1419 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1428 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1446 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()