Lines Matching refs:nr_threads
687 unsigned thr, run_threads, nr_threads; in save_image_lzo() local
698 nr_threads = num_online_cpus() - 1; in save_image_lzo()
699 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in save_image_lzo()
708 data = vzalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo()
725 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
748 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
767 pr_info("Using %u thread(s) for compression\n", nr_threads); in save_image_lzo()
776 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
870 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo()
1174 unsigned i, thr, run_threads, nr_threads; in load_image_lzo() local
1188 nr_threads = num_online_cpus() - 1; in load_image_lzo()
1189 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in load_image_lzo()
1198 data = vzalloc(array_size(nr_threads, sizeof(*data))); in load_image_lzo()
1217 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
1240 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
1283 pr_info("Using %u thread(s) for decompression\n", nr_threads); in load_image_lzo()
1340 for (thr = 0; have && thr < nr_threads; thr++) { in load_image_lzo()
1464 for (thr = 0; thr < nr_threads; thr++) in load_image_lzo()