• Home
  • Raw
  • Download

Lines Matching refs:left

495 	size_t left;  in __do_proc_dointvec()  local
505 left = *lenp; in __do_proc_dointvec()
514 if (left > PAGE_SIZE - 1) in __do_proc_dointvec()
515 left = PAGE_SIZE - 1; in __do_proc_dointvec()
519 for (; left && vleft--; i++, first=0) { in __do_proc_dointvec()
524 proc_skip_spaces(&p, &left); in __do_proc_dointvec()
526 if (!left) in __do_proc_dointvec()
528 err = proc_get_long(&p, &left, &lval, &neg, in __do_proc_dointvec()
543 proc_put_char(&buffer, &left, '\t'); in __do_proc_dointvec()
544 proc_put_long(&buffer, &left, lval, neg); in __do_proc_dointvec()
548 if (!write && !first && left && !err) in __do_proc_dointvec()
549 proc_put_char(&buffer, &left, '\n'); in __do_proc_dointvec()
550 if (write && !err && left) in __do_proc_dointvec()
551 proc_skip_spaces(&p, &left); in __do_proc_dointvec()
554 *lenp -= left; in __do_proc_dointvec()
581 size_t left; in do_proc_douintvec_w() local
585 left = *lenp; in do_proc_douintvec_w()
590 if (left > PAGE_SIZE - 1) in do_proc_douintvec_w()
591 left = PAGE_SIZE - 1; in do_proc_douintvec_w()
593 proc_skip_spaces(&p, &left); in do_proc_douintvec_w()
594 if (!left) { in do_proc_douintvec_w()
599 err = proc_get_long(&p, &left, &lval, &neg, in do_proc_douintvec_w()
612 if (!err && left) in do_proc_douintvec_w()
613 proc_skip_spaces(&p, &left); in do_proc_douintvec_w()
636 size_t left; in do_proc_douintvec_r() local
638 left = *lenp; in do_proc_douintvec_r()
645 proc_put_long(&buffer, &left, lval, false); in do_proc_douintvec_r()
646 if (!left) in do_proc_douintvec_r()
649 proc_put_char(&buffer, &left, '\n'); in do_proc_douintvec_r()
652 *lenp -= left; in do_proc_douintvec_r()
1049 size_t left; in __do_proc_doulongvec_minmax() local
1061 left = *lenp; in __do_proc_doulongvec_minmax()
1067 if (left > PAGE_SIZE - 1) in __do_proc_doulongvec_minmax()
1068 left = PAGE_SIZE - 1; in __do_proc_doulongvec_minmax()
1072 for (; left && vleft--; i++, first = 0) { in __do_proc_doulongvec_minmax()
1078 proc_skip_spaces(&p, &left); in __do_proc_doulongvec_minmax()
1079 if (!left) in __do_proc_doulongvec_minmax()
1082 err = proc_get_long(&p, &left, &val, &neg, in __do_proc_doulongvec_minmax()
1099 proc_put_char(&buffer, &left, '\t'); in __do_proc_doulongvec_minmax()
1100 proc_put_long(&buffer, &left, val, false); in __do_proc_doulongvec_minmax()
1104 if (!write && !first && left && !err) in __do_proc_doulongvec_minmax()
1105 proc_put_char(&buffer, &left, '\n'); in __do_proc_doulongvec_minmax()
1107 proc_skip_spaces(&p, &left); in __do_proc_doulongvec_minmax()
1110 *lenp -= left; in __do_proc_doulongvec_minmax()
1390 size_t left = *lenp; in proc_do_large_bitmap() local
1396 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
1405 if (left > PAGE_SIZE - 1) { in proc_do_large_bitmap()
1406 left = PAGE_SIZE - 1; in proc_do_large_bitmap()
1408 skipped = *lenp - left; in proc_do_large_bitmap()
1414 proc_skip_char(&p, &left, '\n'); in proc_do_large_bitmap()
1415 while (!err && left) { in proc_do_large_bitmap()
1421 saved_left = left; in proc_do_large_bitmap()
1422 err = proc_get_long(&p, &left, &val_a, &neg, tr_a, in proc_do_large_bitmap()
1429 if ((left <= 1) && skipped) { in proc_do_large_bitmap()
1430 left = saved_left; in proc_do_large_bitmap()
1442 if (left) { in proc_do_large_bitmap()
1444 left--; in proc_do_large_bitmap()
1448 err = proc_get_long(&p, &left, &val_b, in proc_do_large_bitmap()
1455 if (!left && skipped) { in proc_do_large_bitmap()
1456 left = saved_left; in proc_do_large_bitmap()
1467 if (left) { in proc_do_large_bitmap()
1469 left--; in proc_do_large_bitmap()
1474 proc_skip_char(&p, &left, '\n'); in proc_do_large_bitmap()
1476 left += skipped; in proc_do_large_bitmap()
1481 while (left) { in proc_do_large_bitmap()
1489 proc_put_char(&buffer, &left, ','); in proc_do_large_bitmap()
1490 proc_put_long(&buffer, &left, bit_a, false); in proc_do_large_bitmap()
1492 proc_put_char(&buffer, &left, '-'); in proc_do_large_bitmap()
1493 proc_put_long(&buffer, &left, bit_b, false); in proc_do_large_bitmap()
1498 proc_put_char(&buffer, &left, '\n'); in proc_do_large_bitmap()
1508 *lenp -= left; in proc_do_large_bitmap()