Lines Matching refs:ppos
201 void *buffer, size_t *lenp, loff_t *ppos) in bpf_stats_handler() argument
219 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_stats_handler()
232 void *buffer, size_t *lenp, loff_t *ppos) in bpf_unpriv_handler() argument
242 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in bpf_unpriv_handler()
259 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
276 if (*ppos > len) in _proc_do_string()
278 len = *ppos; in _proc_do_string()
284 *ppos += *lenp; in _proc_do_string()
298 if (*ppos > len) { in _proc_do_string()
303 data += *ppos; in _proc_do_string()
304 len -= *ppos; in _proc_do_string()
315 *ppos += len; in _proc_do_string()
337 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
340 if (!*ppos) in proc_first_pos_non_zero_ignore()
372 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
375 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
378 ppos); in proc_dostring()
600 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
609 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
622 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_dointvec()
667 *ppos += *lenp; in __do_proc_dointvec()
672 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
678 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
684 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
698 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
734 *ppos += *lenp; in do_proc_douintvec_w()
739 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
764 *ppos += *lenp; in do_proc_douintvec_r()
771 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
779 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
800 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
802 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
806 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
813 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
830 size_t *lenp, loff_t *ppos) in proc_dobool() argument
832 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dobool()
850 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
852 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
857 int write, void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_warn_RT_change() argument
862 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
865 ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_warn_RT_change()
890 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
892 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
901 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
912 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
941 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_sysadmin() argument
946 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_sysadmin()
1007 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1013 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
1076 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1082 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
1104 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1135 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
1166 void *buffer, size_t *lenp, loff_t *ppos) in proc_dopipe_max_size() argument
1168 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_dopipe_max_size()
1187 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax_coredump() argument
1189 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_dointvec_minmax_coredump()
1197 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring_coredump() argument
1199 int error = proc_dostring(table, write, buffer, lenp, ppos); in proc_dostring_coredump()
1208 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
1215 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1227 int write, void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1235 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1247 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_doulongvec_minmax()
1294 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1299 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1303 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1323 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1325 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1346 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1349 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1440 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1442 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1462 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1464 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_userhz_jiffies()
1485 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1487 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1492 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1501 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1531 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1540 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1647 if (*ppos) in proc_do_large_bitmap()
1653 *ppos += *lenp; in proc_do_large_bitmap()
1663 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1669 void *buffer, size_t *lenp, loff_t *ppos) in proc_dobool() argument
1675 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1681 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1687 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1693 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1699 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1705 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1711 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1717 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1723 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1729 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1735 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1744 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1762 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()