Lines Matching refs:nr_threads
697 unsigned thr, run_threads, nr_threads; in save_image_lzo() local
708 nr_threads = num_online_cpus() - 1; in save_image_lzo()
709 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in save_image_lzo()
718 data = vzalloc(array_size(nr_threads, sizeof(*data))); in save_image_lzo()
735 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
758 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
777 pr_info("Using %u thread(s) for compression\n", nr_threads); in save_image_lzo()
786 for (thr = 0; thr < nr_threads; thr++) { in save_image_lzo()
880 for (thr = 0; thr < nr_threads; thr++) in save_image_lzo()
1185 unsigned i, thr, run_threads, nr_threads; in load_image_lzo() local
1199 nr_threads = num_online_cpus() - 1; in load_image_lzo()
1200 nr_threads = clamp_val(nr_threads, 1, LZO_THREADS); in load_image_lzo()
1209 data = vzalloc(array_size(nr_threads, sizeof(*data))); in load_image_lzo()
1228 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
1251 for (thr = 0; thr < nr_threads; thr++) { in load_image_lzo()
1294 pr_info("Using %u thread(s) for decompression\n", nr_threads); in load_image_lzo()
1351 for (thr = 0; have && thr < nr_threads; thr++) { in load_image_lzo()
1475 for (thr = 0; thr < nr_threads; thr++) in load_image_lzo()