Lines Matching refs:ppos
125 char *buffer, size_t *lenp, loff_t *ppos) in _proc_do_string() argument
142 if (*ppos > len) in _proc_do_string()
144 len = *ppos; in _proc_do_string()
150 *ppos += *lenp; in _proc_do_string()
164 if (*ppos > len) { in _proc_do_string()
169 data += *ppos; in _proc_do_string()
170 len -= *ppos; in _proc_do_string()
181 *ppos += len; in _proc_do_string()
203 static bool proc_first_pos_non_zero_ignore(loff_t *ppos, in proc_first_pos_non_zero_ignore() argument
206 if (!*ppos) in proc_first_pos_non_zero_ignore()
238 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
241 proc_first_pos_non_zero_ignore(ppos, table); in proc_dostring()
244 ppos); in proc_dostring()
451 size_t *lenp, loff_t *ppos, in __do_proc_dointvec() argument
460 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_dointvec()
473 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_dointvec()
518 *ppos += *lenp; in __do_proc_dointvec()
523 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_dointvec() argument
529 buffer, lenp, ppos, conv, data); in do_proc_dointvec()
535 size_t *lenp, loff_t *ppos, in do_proc_douintvec_w() argument
549 if (proc_first_pos_non_zero_ignore(ppos, table)) in do_proc_douintvec_w()
585 *ppos += *lenp; in do_proc_douintvec_w()
590 size_t *lenp, loff_t *ppos, in do_proc_douintvec_r() argument
615 *ppos += *lenp; in do_proc_douintvec_r()
622 size_t *lenp, loff_t *ppos, in __do_proc_douintvec() argument
630 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_douintvec()
651 return do_proc_douintvec_w(i, table, buffer, lenp, ppos, in __do_proc_douintvec()
653 return do_proc_douintvec_r(i, buffer, lenp, ppos, conv, data); in __do_proc_douintvec()
657 void *buffer, size_t *lenp, loff_t *ppos, in do_proc_douintvec() argument
664 buffer, lenp, ppos, conv, data); in do_proc_douintvec()
684 size_t *lenp, loff_t *ppos) in proc_dobool() argument
699 res = proc_dointvec(&tmp, write, buffer, lenp, ppos); in proc_dobool()
721 size_t *lenp, loff_t *ppos) in proc_dointvec() argument
723 return do_proc_dointvec(table, write, buffer, lenp, ppos, NULL, NULL); in proc_dointvec()
740 size_t *lenp, loff_t *ppos) in proc_douintvec() argument
742 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec()
751 void *buffer, size_t *lenp, loff_t *ppos) in proc_taint() argument
762 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); in proc_taint()
846 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
852 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_minmax()
915 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
921 return do_proc_douintvec(table, write, buffer, lenp, ppos, in proc_douintvec_minmax()
943 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
968 res = do_proc_douintvec(&tmp, write, buffer, lenp, ppos, in proc_dou8vec_minmax()
980 void *buffer, size_t *lenp, loff_t *ppos) in sysrq_sysctl_handler() argument
987 lenp, ppos, NULL, NULL); in sysrq_sysctl_handler()
1000 void *buffer, size_t *lenp, loff_t *ppos, in __do_proc_doulongvec_minmax() argument
1008 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { in __do_proc_doulongvec_minmax()
1020 if (proc_first_pos_non_zero_ignore(ppos, table)) in __do_proc_doulongvec_minmax()
1068 *ppos += *lenp; in __do_proc_doulongvec_minmax()
1073 void *buffer, size_t *lenp, loff_t *ppos, unsigned long convmul, in do_proc_doulongvec_minmax() argument
1077 buffer, lenp, ppos, convmul, convdiv); in do_proc_doulongvec_minmax()
1097 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1099 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); in proc_doulongvec_minmax()
1120 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1123 lenp, ppos, HZ, 1000l); in proc_doulongvec_ms_jiffies_minmax()
1241 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1243 return do_proc_dointvec(table,write,buffer,lenp,ppos, in proc_dointvec_jiffies()
1248 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1254 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies_minmax()
1274 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1276 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_userhz_jiffies()
1296 size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1298 return do_proc_dointvec(table, write, buffer, lenp, ppos, in proc_dointvec_ms_jiffies()
1303 size_t *lenp, loff_t *ppos) in proc_do_cad_pid() argument
1312 lenp, ppos, NULL, NULL); in proc_do_cad_pid()
1342 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1351 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1458 if (*ppos) in proc_do_large_bitmap()
1464 *ppos += *lenp; in proc_do_large_bitmap()
1474 void *buffer, size_t *lenp, loff_t *ppos) in proc_dostring() argument
1480 void *buffer, size_t *lenp, loff_t *ppos) in proc_dobool() argument
1486 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec() argument
1492 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec() argument
1498 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_minmax() argument
1504 void *buffer, size_t *lenp, loff_t *ppos) in proc_douintvec_minmax() argument
1510 void *buffer, size_t *lenp, loff_t *ppos) in proc_dou8vec_minmax() argument
1516 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_jiffies() argument
1522 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies_minmax() argument
1528 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_userhz_jiffies() argument
1534 void *buffer, size_t *lenp, loff_t *ppos) in proc_dointvec_ms_jiffies() argument
1540 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_minmax() argument
1546 void *buffer, size_t *lenp, loff_t *ppos) in proc_doulongvec_ms_jiffies_minmax() argument
1552 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_large_bitmap() argument
1561 void *buffer, size_t *lenp, loff_t *ppos) in proc_do_static_key() argument
1579 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); in proc_do_static_key()