Lines Matching refs:ppos
204 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
222 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
239 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument
249 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler()
269 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
286 if (*ppos > len) in _proc_do_string()
288 len = *ppos; in _proc_do_string()
294 *ppos += *lenp; in _proc_do_string()
308 if (*ppos > len) { in _proc_do_string()
313 data += *ppos; in _proc_do_string()
314 len -= *ppos; in _proc_do_string()
325 *ppos += len; in _proc_do_string()
347 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
350 if (!*ppos) in proc_first_pos_non_zero_ignore()
382 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
385 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
388 ppos); in proc_dostring()
595 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
604 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
617 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_dointvec()
662 *ppos += *lenp; in __do_proc_dointvec()
667 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
673 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
679 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
693 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
729 *ppos += *lenp; in do_proc_douintvec_w()
734 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
759 *ppos += *lenp; in do_proc_douintvec_r()
766 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
774 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
795 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
797 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
801 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
808 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
825 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
827 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
832 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
837 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
840 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
865 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
867 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
876 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
887 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
916 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
921 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
982 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
988 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
1051 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1057 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
1079 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1110 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1141 void *buffer, size_t *lenp, loff_t *ppos) in proc_dopipe_max_size() argument
1143 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_dopipe_max_size()
1162 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_coredump() argument
1164 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_coredump()
1172 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring_coredump() argument
1174 int error = proc_dostring(table, write, buffer, lenp, ppos); in proc_dostring_coredump()
1183 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1190 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1202 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1210 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1222 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_doulongvec_minmax()
1269 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1274 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1278 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1298 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1300 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1321 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1324 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1418 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1420 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1440 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1442 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_userhz_jiffies()
1463 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1465 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1470 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1479 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1509 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1519 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1626 if (*ppos) in proc_do_large_bitmap()
1632 *ppos += *lenp; in proc_do_large_bitmap()
1642 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1648 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1654 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1660 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1666 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1672 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1678 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1684 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1690 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1696 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1702 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1708 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1717 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1735 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()