Lines Matching refs:left
2350 size_t left; in __do_proc_dointvec() local
2360 left = *lenp; in __do_proc_dointvec()
2369 if (left > PAGE_SIZE - 1) in __do_proc_dointvec()
2370 left = PAGE_SIZE - 1; in __do_proc_dointvec()
2371 p = kbuf = memdup_user_nul(buffer, left); in __do_proc_dointvec()
2376 for (; left && vleft--; i++, first=0) { in __do_proc_dointvec()
2381 left -= proc_skip_spaces(&p); in __do_proc_dointvec()
2383 if (!left) in __do_proc_dointvec()
2385 err = proc_get_long(&p, &left, &lval, &neg, in __do_proc_dointvec()
2400 err = proc_put_char(&buffer, &left, '\t'); in __do_proc_dointvec()
2403 err = proc_put_long(&buffer, &left, lval, neg); in __do_proc_dointvec()
2409 if (!write && !first && left && !err) in __do_proc_dointvec()
2410 err = proc_put_char(&buffer, &left, '\n'); in __do_proc_dointvec()
2411 if (write && !err && left) in __do_proc_dointvec()
2412 left -= proc_skip_spaces(&p); in __do_proc_dointvec()
2418 *lenp -= left; in __do_proc_dointvec()
2445 size_t left; in do_proc_douintvec_w() local
2449 left = *lenp; in do_proc_douintvec_w()
2454 if (left > PAGE_SIZE - 1) in do_proc_douintvec_w()
2455 left = PAGE_SIZE - 1; in do_proc_douintvec_w()
2457 p = kbuf = memdup_user_nul(buffer, left); in do_proc_douintvec_w()
2461 left -= proc_skip_spaces(&p); in do_proc_douintvec_w()
2462 if (!left) { in do_proc_douintvec_w()
2467 err = proc_get_long(&p, &left, &lval, &neg, in do_proc_douintvec_w()
2480 if (!err && left) in do_proc_douintvec_w()
2481 left -= proc_skip_spaces(&p); in do_proc_douintvec_w()
2505 size_t left; in do_proc_douintvec_r() local
2507 left = *lenp; in do_proc_douintvec_r()
2514 err = proc_put_long(&buffer, &left, lval, false); in do_proc_douintvec_r()
2515 if (err || !left) in do_proc_douintvec_r()
2518 err = proc_put_char(&buffer, &left, '\n'); in do_proc_douintvec_r()
2521 *lenp -= left; in do_proc_douintvec_r()
2864 size_t left; in __do_proc_doulongvec_minmax() local
2876 left = *lenp; in __do_proc_doulongvec_minmax()
2882 if (left > PAGE_SIZE - 1) in __do_proc_doulongvec_minmax()
2883 left = PAGE_SIZE - 1; in __do_proc_doulongvec_minmax()
2884 p = kbuf = memdup_user_nul(buffer, left); in __do_proc_doulongvec_minmax()
2889 for (; left && vleft--; i++, first = 0) { in __do_proc_doulongvec_minmax()
2895 left -= proc_skip_spaces(&p); in __do_proc_doulongvec_minmax()
2896 if (!left) in __do_proc_doulongvec_minmax()
2899 err = proc_get_long(&p, &left, &val, &neg, in __do_proc_doulongvec_minmax()
2915 err = proc_put_char(&buffer, &left, '\t'); in __do_proc_doulongvec_minmax()
2919 err = proc_put_long(&buffer, &left, val, false); in __do_proc_doulongvec_minmax()
2925 if (!write && !first && left && !err) in __do_proc_doulongvec_minmax()
2926 err = proc_put_char(&buffer, &left, '\n'); in __do_proc_doulongvec_minmax()
2928 left -= proc_skip_spaces(&p); in __do_proc_doulongvec_minmax()
2934 *lenp -= left; in __do_proc_doulongvec_minmax()
3180 size_t left = *lenp; in proc_do_large_bitmap() local
3186 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
3195 if (left > PAGE_SIZE - 1) { in proc_do_large_bitmap()
3196 left = PAGE_SIZE - 1; in proc_do_large_bitmap()
3198 skipped = *lenp - left; in proc_do_large_bitmap()
3201 p = kbuf = memdup_user_nul(buffer, left); in proc_do_large_bitmap()
3210 proc_skip_char(&p, &left, '\n'); in proc_do_large_bitmap()
3211 while (!err && left) { in proc_do_large_bitmap()
3217 saved_left = left; in proc_do_large_bitmap()
3218 err = proc_get_long(&p, &left, &val_a, &neg, tr_a, in proc_do_large_bitmap()
3225 if ((left <= 1) && skipped) { in proc_do_large_bitmap()
3226 left = saved_left; in proc_do_large_bitmap()
3238 if (left) { in proc_do_large_bitmap()
3240 left--; in proc_do_large_bitmap()
3244 err = proc_get_long(&p, &left, &val_b, in proc_do_large_bitmap()
3251 if (!left && skipped) { in proc_do_large_bitmap()
3252 left = saved_left; in proc_do_large_bitmap()
3263 if (left) { in proc_do_large_bitmap()
3265 left--; in proc_do_large_bitmap()
3271 proc_skip_char(&p, &left, '\n'); in proc_do_large_bitmap()
3274 left += skipped; in proc_do_large_bitmap()
3278 while (left) { in proc_do_large_bitmap()
3286 err = proc_put_char(&buffer, &left, ','); in proc_do_large_bitmap()
3290 err = proc_put_long(&buffer, &left, bit_a, false); in proc_do_large_bitmap()
3294 err = proc_put_char(&buffer, &left, '-'); in proc_do_large_bitmap()
3297 err = proc_put_long(&buffer, &left, bit_b, false); in proc_do_large_bitmap()
3305 err = proc_put_char(&buffer, &left, '\n'); in proc_do_large_bitmap()
3315 *lenp -= left; in proc_do_large_bitmap()